Introduce a pointertracking pass.
[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 ENABLE_PROFILING
834 DISABLE_ASSERTIONS
835 ENABLE_EXPENSIVE_CHECKS
836 EXPENSIVE_CHECKS
837 DEBUG_RUNTIME
838 JIT
839 TARGET_HAS_JIT
840 ENABLE_DOXYGEN
841 ENABLE_THREADS
842 ENABLE_PIC
843 TARGETS_TO_BUILD
844 LLVM_ENUM_TARGETS
845 LLVM_ENUM_ASM_PRINTERS
846 ENABLE_CBE_PRINTF_A
847 EXTRA_OPTIONS
848 BINUTILS_INCDIR
849 ENABLE_LLVMC_DYNAMIC
850 ENABLE_LLVMC_DYNAMIC_PLUGINS
851 CXX
852 CXXFLAGS
853 ac_ct_CXX
854 NM
855 ifGNUmake
856 LN_S
857 CMP
858 CP
859 DATE
860 FIND
861 MKDIR
862 MV
863 RANLIB
864 RM
865 SED
866 TAR
867 BINPWD
868 GRAPHVIZ
869 DOT
870 FDP
871 NEATO
872 TWOPI
873 CIRCO
874 GV
875 DOTTY
876 PERL
877 HAVE_PERL
878 INSTALL_PROGRAM
879 INSTALL_SCRIPT
880 INSTALL_DATA
881 BZIP2
882 DOXYGEN
883 GROFF
884 GZIP
885 POD2HTML
886 POD2MAN
887 RUNTEST
888 TCLSH
889 ZIP
890 OCAMLC
891 OCAMLOPT
892 OCAMLDEP
893 OCAMLDOC
894 GAS
895 INSTALL_LTDL_TRUE
896 INSTALL_LTDL_FALSE
897 CONVENIENCE_LTDL_TRUE
898 CONVENIENCE_LTDL_FALSE
899 LIBADD_DL
900 ECHO
901 AR
902 STRIP
903 CXXCPP
904 F77
905 FFLAGS
906 ac_ct_F77
907 LIBTOOL
908 LLVMGCCCOMMAND
909 LLVMGXXCOMMAND
910 LLVMGCC
911 LLVMGXX
912 USE_UDIS86
913 USE_OPROFILE
914 HAVE_PTHREAD
915 HUGE_VAL_SANITY
916 ALLOCA
917 MMAP_FILE
918 LLVMCC1
919 LLVMCC1PLUS
920 LLVMGCCDIR
921 LLVMGCCLIBEXEC
922 LLVMGCC_VERSION
923 LLVMGCC_MAJVERS
924 LLVMGCC_LANGS
925 SHLIBEXT
926 LLVM_PREFIX
927 LLVM_BINDIR
928 LLVM_LIBDIR
929 LLVM_DATADIR
930 LLVM_DOCSDIR
931 LLVM_ETCDIR
932 LLVM_INCLUDEDIR
933 LLVM_INFODIR
934 LLVM_MANDIR
935 LLVM_CONFIGTIME
936 BINDINGS_TO_BUILD
937 ALL_BINDINGS
938 OCAML_LIBDIR
939 ENABLE_VISIBILITY_INLINES_HIDDEN
940 RPATH
941 RDYNAMIC
942 LIBOBJS
943 LTLIBOBJS'
944 ac_subst_files=''
945       ac_precious_vars='build_alias
946 host_alias
947 target_alias
948 CC
949 CFLAGS
950 LDFLAGS
951 CPPFLAGS
952 CPP
953 CXX
954 CXXFLAGS
955 CCC
956 CXXCPP
957 F77
958 FFLAGS'
959 ac_subdirs_all='projects/sample
960 projects/privbracket
961 projects/llvm-stacker
962 projects/llvm-test
963 projects/test-suite
964 projects/llvm-reopt
965 projects/llvm-gcc
966 projects/llvm-java
967 projects/llvm-tv
968 projects/llvm-poolalloc
969 projects/poolalloc
970 projects/llvm-kernel'
971
972 # Initialize some variables set by options.
973 ac_init_help=
974 ac_init_version=false
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
977 cache_file=/dev/null
978 exec_prefix=NONE
979 no_create=
980 no_recursion=
981 prefix=NONE
982 program_prefix=NONE
983 program_suffix=NONE
984 program_transform_name=s,x,x,
985 silent=
986 site=
987 srcdir=
988 verbose=
989 x_includes=NONE
990 x_libraries=NONE
991
992 # Installation directory options.
993 # These are left unexpanded so users can "make install exec_prefix=/foo"
994 # and all the variables that are supposed to be based on exec_prefix
995 # by default will actually change.
996 # Use braces instead of parens because sh, perl, etc. also accept them.
997 # (The list follows the same order as the GNU Coding Standards.)
998 bindir='${exec_prefix}/bin'
999 sbindir='${exec_prefix}/sbin'
1000 libexecdir='${exec_prefix}/libexec'
1001 datarootdir='${prefix}/share'
1002 datadir='${datarootdir}'
1003 sysconfdir='${prefix}/etc'
1004 sharedstatedir='${prefix}/com'
1005 localstatedir='${prefix}/var'
1006 includedir='${prefix}/include'
1007 oldincludedir='/usr/include'
1008 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1009 infodir='${datarootdir}/info'
1010 htmldir='${docdir}'
1011 dvidir='${docdir}'
1012 pdfdir='${docdir}'
1013 psdir='${docdir}'
1014 libdir='${exec_prefix}/lib'
1015 localedir='${datarootdir}/locale'
1016 mandir='${datarootdir}/man'
1017
1018 ac_prev=
1019 ac_dashdash=
1020 for ac_option
1021 do
1022   # If the previous option needs an argument, assign it.
1023   if test -n "$ac_prev"; then
1024     eval $ac_prev=\$ac_option
1025     ac_prev=
1026     continue
1027   fi
1028
1029   case $ac_option in
1030   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031   *)    ac_optarg=yes ;;
1032   esac
1033
1034   # Accept the important Cygnus configure options, so we can diagnose typos.
1035
1036   case $ac_dashdash$ac_option in
1037   --)
1038     ac_dashdash=yes ;;
1039
1040   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041     ac_prev=bindir ;;
1042   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043     bindir=$ac_optarg ;;
1044
1045   -build | --build | --buil | --bui | --bu)
1046     ac_prev=build_alias ;;
1047   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048     build_alias=$ac_optarg ;;
1049
1050   -cache-file | --cache-file | --cache-fil | --cache-fi \
1051   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052     ac_prev=cache_file ;;
1053   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055     cache_file=$ac_optarg ;;
1056
1057   --config-cache | -C)
1058     cache_file=config.cache ;;
1059
1060   -datadir | --datadir | --datadi | --datad)
1061     ac_prev=datadir ;;
1062   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1063     datadir=$ac_optarg ;;
1064
1065   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066   | --dataroo | --dataro | --datar)
1067     ac_prev=datarootdir ;;
1068   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070     datarootdir=$ac_optarg ;;
1071
1072   -disable-* | --disable-*)
1073     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074     # Reject names that are not valid shell variable names.
1075     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1076       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077    { (exit 1); exit 1; }; }
1078     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1079     eval enable_$ac_feature=no ;;
1080
1081   -docdir | --docdir | --docdi | --doc | --do)
1082     ac_prev=docdir ;;
1083   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084     docdir=$ac_optarg ;;
1085
1086   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087     ac_prev=dvidir ;;
1088   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089     dvidir=$ac_optarg ;;
1090
1091   -enable-* | --enable-*)
1092     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093     # Reject names that are not valid shell variable names.
1094     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1095       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1096    { (exit 1); exit 1; }; }
1097     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1098     eval enable_$ac_feature=\$ac_optarg ;;
1099
1100   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102   | --exec | --exe | --ex)
1103     ac_prev=exec_prefix ;;
1104   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106   | --exec=* | --exe=* | --ex=*)
1107     exec_prefix=$ac_optarg ;;
1108
1109   -gas | --gas | --ga | --g)
1110     # Obsolete; use --with-gas.
1111     with_gas=yes ;;
1112
1113   -help | --help | --hel | --he | -h)
1114     ac_init_help=long ;;
1115   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116     ac_init_help=recursive ;;
1117   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118     ac_init_help=short ;;
1119
1120   -host | --host | --hos | --ho)
1121     ac_prev=host_alias ;;
1122   -host=* | --host=* | --hos=* | --ho=*)
1123     host_alias=$ac_optarg ;;
1124
1125   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126     ac_prev=htmldir ;;
1127   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128   | --ht=*)
1129     htmldir=$ac_optarg ;;
1130
1131   -includedir | --includedir | --includedi | --included | --include \
1132   | --includ | --inclu | --incl | --inc)
1133     ac_prev=includedir ;;
1134   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135   | --includ=* | --inclu=* | --incl=* | --inc=*)
1136     includedir=$ac_optarg ;;
1137
1138   -infodir | --infodir | --infodi | --infod | --info | --inf)
1139     ac_prev=infodir ;;
1140   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141     infodir=$ac_optarg ;;
1142
1143   -libdir | --libdir | --libdi | --libd)
1144     ac_prev=libdir ;;
1145   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146     libdir=$ac_optarg ;;
1147
1148   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149   | --libexe | --libex | --libe)
1150     ac_prev=libexecdir ;;
1151   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152   | --libexe=* | --libex=* | --libe=*)
1153     libexecdir=$ac_optarg ;;
1154
1155   -localedir | --localedir | --localedi | --localed | --locale)
1156     ac_prev=localedir ;;
1157   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158     localedir=$ac_optarg ;;
1159
1160   -localstatedir | --localstatedir | --localstatedi | --localstated \
1161   | --localstate | --localstat | --localsta | --localst | --locals)
1162     ac_prev=localstatedir ;;
1163   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1164   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1165     localstatedir=$ac_optarg ;;
1166
1167   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168     ac_prev=mandir ;;
1169   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170     mandir=$ac_optarg ;;
1171
1172   -nfp | --nfp | --nf)
1173     # Obsolete; use --without-fp.
1174     with_fp=no ;;
1175
1176   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177   | --no-cr | --no-c | -n)
1178     no_create=yes ;;
1179
1180   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182     no_recursion=yes ;;
1183
1184   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186   | --oldin | --oldi | --old | --ol | --o)
1187     ac_prev=oldincludedir ;;
1188   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191     oldincludedir=$ac_optarg ;;
1192
1193   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194     ac_prev=prefix ;;
1195   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196     prefix=$ac_optarg ;;
1197
1198   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199   | --program-pre | --program-pr | --program-p)
1200     ac_prev=program_prefix ;;
1201   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203     program_prefix=$ac_optarg ;;
1204
1205   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206   | --program-suf | --program-su | --program-s)
1207     ac_prev=program_suffix ;;
1208   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210     program_suffix=$ac_optarg ;;
1211
1212   -program-transform-name | --program-transform-name \
1213   | --program-transform-nam | --program-transform-na \
1214   | --program-transform-n | --program-transform- \
1215   | --program-transform | --program-transfor \
1216   | --program-transfo | --program-transf \
1217   | --program-trans | --program-tran \
1218   | --progr-tra | --program-tr | --program-t)
1219     ac_prev=program_transform_name ;;
1220   -program-transform-name=* | --program-transform-name=* \
1221   | --program-transform-nam=* | --program-transform-na=* \
1222   | --program-transform-n=* | --program-transform-=* \
1223   | --program-transform=* | --program-transfor=* \
1224   | --program-transfo=* | --program-transf=* \
1225   | --program-trans=* | --program-tran=* \
1226   | --progr-tra=* | --program-tr=* | --program-t=*)
1227     program_transform_name=$ac_optarg ;;
1228
1229   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230     ac_prev=pdfdir ;;
1231   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232     pdfdir=$ac_optarg ;;
1233
1234   -psdir | --psdir | --psdi | --psd | --ps)
1235     ac_prev=psdir ;;
1236   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237     psdir=$ac_optarg ;;
1238
1239   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240   | -silent | --silent | --silen | --sile | --sil)
1241     silent=yes ;;
1242
1243   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244     ac_prev=sbindir ;;
1245   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246   | --sbi=* | --sb=*)
1247     sbindir=$ac_optarg ;;
1248
1249   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251   | --sharedst | --shareds | --shared | --share | --shar \
1252   | --sha | --sh)
1253     ac_prev=sharedstatedir ;;
1254   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257   | --sha=* | --sh=*)
1258     sharedstatedir=$ac_optarg ;;
1259
1260   -site | --site | --sit)
1261     ac_prev=site ;;
1262   -site=* | --site=* | --sit=*)
1263     site=$ac_optarg ;;
1264
1265   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266     ac_prev=srcdir ;;
1267   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268     srcdir=$ac_optarg ;;
1269
1270   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271   | --syscon | --sysco | --sysc | --sys | --sy)
1272     ac_prev=sysconfdir ;;
1273   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275     sysconfdir=$ac_optarg ;;
1276
1277   -target | --target | --targe | --targ | --tar | --ta | --t)
1278     ac_prev=target_alias ;;
1279   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280     target_alias=$ac_optarg ;;
1281
1282   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1283     verbose=yes ;;
1284
1285   -version | --version | --versio | --versi | --vers | -V)
1286     ac_init_version=: ;;
1287
1288   -with-* | --with-*)
1289     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290     # Reject names that are not valid shell variable names.
1291     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1292       { echo "$as_me: error: invalid package name: $ac_package" >&2
1293    { (exit 1); exit 1; }; }
1294     ac_package=`echo $ac_package| sed 's/-/_/g'`
1295     eval with_$ac_package=\$ac_optarg ;;
1296
1297   -without-* | --without-*)
1298     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299     # Reject names that are not valid shell variable names.
1300     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1301       { echo "$as_me: error: invalid package name: $ac_package" >&2
1302    { (exit 1); exit 1; }; }
1303     ac_package=`echo $ac_package | sed 's/-/_/g'`
1304     eval with_$ac_package=no ;;
1305
1306   --x)
1307     # Obsolete; use --with-x.
1308     with_x=yes ;;
1309
1310   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311   | --x-incl | --x-inc | --x-in | --x-i)
1312     ac_prev=x_includes ;;
1313   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315     x_includes=$ac_optarg ;;
1316
1317   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319     ac_prev=x_libraries ;;
1320   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322     x_libraries=$ac_optarg ;;
1323
1324   -*) { echo "$as_me: error: unrecognized option: $ac_option
1325 Try \`$0 --help' for more information." >&2
1326    { (exit 1); exit 1; }; }
1327     ;;
1328
1329   *=*)
1330     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331     # Reject names that are not valid shell variable names.
1332     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1333       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334    { (exit 1); exit 1; }; }
1335     eval $ac_envvar=\$ac_optarg
1336     export $ac_envvar ;;
1337
1338   *)
1339     # FIXME: should be removed in autoconf 3.0.
1340     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344     ;;
1345
1346   esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351   { echo "$as_me: error: missing argument to $ac_option" >&2
1352    { (exit 1); exit 1; }; }
1353 fi
1354
1355 # Be sure to have absolute directory names.
1356 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357                 datadir sysconfdir sharedstatedir localstatedir includedir \
1358                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359                 libdir localedir mandir
1360 do
1361   eval ac_val=\$$ac_var
1362   case $ac_val in
1363     [\\/$]* | ?:[\\/]* )  continue;;
1364     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365   esac
1366   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367    { (exit 1); exit 1; }; }
1368 done
1369
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1373 build=$build_alias
1374 host=$host_alias
1375 target=$target_alias
1376
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379   if test "x$build_alias" = x; then
1380     cross_compiling=maybe
1381     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382     If a cross compiler is detected then cross compile mode will be used." >&2
1383   elif test "x$build_alias" != "x$host_alias"; then
1384     cross_compiling=yes
1385   fi
1386 fi
1387
1388 ac_tool_prefix=
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390
1391 test "$silent" = yes && exec 6>/dev/null
1392
1393
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397   { echo "$as_me: error: Working directory cannot be determined" >&2
1398    { (exit 1); exit 1; }; }
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400   { echo "$as_me: error: pwd does not report name of working directory" >&2
1401    { (exit 1); exit 1; }; }
1402
1403
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406   ac_srcdir_defaulted=yes
1407   # Try the directory containing this script, then the parent directory.
1408   ac_confdir=`$as_dirname -- "$0" ||
1409 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410          X"$0" : 'X\(//\)[^/]' \| \
1411          X"$0" : 'X\(//\)$' \| \
1412          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1413 echo X"$0" |
1414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415             s//\1/
1416             q
1417           }
1418           /^X\(\/\/\)[^/].*/{
1419             s//\1/
1420             q
1421           }
1422           /^X\(\/\/\)$/{
1423             s//\1/
1424             q
1425           }
1426           /^X\(\/\).*/{
1427             s//\1/
1428             q
1429           }
1430           s/.*/./; q'`
1431   srcdir=$ac_confdir
1432   if test ! -r "$srcdir/$ac_unique_file"; then
1433     srcdir=..
1434   fi
1435 else
1436   ac_srcdir_defaulted=no
1437 fi
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1441    { (exit 1); exit 1; }; }
1442 fi
1443 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444 ac_abs_confdir=`(
1445         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1446    { (exit 1); exit 1; }; }
1447         pwd)`
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1450   srcdir=.
1451 fi
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1455 case $srcdir in
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457 esac
1458 for ac_var in $ac_precious_vars; do
1459   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460   eval ac_env_${ac_var}_value=\$${ac_var}
1461   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1463 done
1464
1465 #
1466 # Report the --help message.
1467 #
1468 if test "$ac_init_help" = "long"; then
1469   # Omit some internal or obsolete options to make the list less imposing.
1470   # This message is too long to be a string in the A/UX 3.1 sh.
1471   cat <<_ACEOF
1472 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1473
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1475
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE.  See below for descriptions of some of the useful variables.
1478
1479 Defaults for the options are specified in brackets.
1480
1481 Configuration:
1482   -h, --help              display this help and exit
1483       --help=short        display options specific to this package
1484       --help=recursive    display the short help of all the included packages
1485   -V, --version           display version information and exit
1486   -q, --quiet, --silent   do not print \`checking...' messages
1487       --cache-file=FILE   cache test results in FILE [disabled]
1488   -C, --config-cache      alias for \`--cache-file=config.cache'
1489   -n, --no-create         do not create output files
1490       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1491
1492 Installation directories:
1493   --prefix=PREFIX         install architecture-independent files in PREFIX
1494                           [$ac_default_prefix]
1495   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1496                           [PREFIX]
1497
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1502
1503 For better control, use the options below.
1504
1505 Fine tuning of the installation directories:
1506   --bindir=DIR           user executables [EPREFIX/bin]
1507   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1508   --libexecdir=DIR       program executables [EPREFIX/libexec]
1509   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1510   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1511   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1512   --libdir=DIR           object code libraries [EPREFIX/lib]
1513   --includedir=DIR       C header files [PREFIX/include]
1514   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1515   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1516   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1517   --infodir=DIR          info documentation [DATAROOTDIR/info]
1518   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1519   --mandir=DIR           man documentation [DATAROOTDIR/man]
1520   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1521   --htmldir=DIR          html documentation [DOCDIR]
1522   --dvidir=DIR           dvi documentation [DOCDIR]
1523   --pdfdir=DIR           pdf documentation [DOCDIR]
1524   --psdir=DIR            ps documentation [DOCDIR]
1525 _ACEOF
1526
1527   cat <<\_ACEOF
1528
1529 System types:
1530   --build=BUILD     configure for building on BUILD [guessed]
1531   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1532   --target=TARGET   configure for building compilers for TARGET [HOST]
1533 _ACEOF
1534 fi
1535
1536 if test -n "$ac_init_help"; then
1537   case $ac_init_help in
1538      short | recursive ) echo "Configuration of llvm 2.6svn:";;
1539    esac
1540   cat <<\_ACEOF
1541
1542 Optional Features:
1543   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1544   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1545   --enable-optimized      Compile with optimizations enabled (default is NO)
1546   --enable-profiling      Compile with profiling enabled (default is NO)
1547   --enable-assertions     Compile with assertion checks enabled (default is
1548                           YES)
1549   --enable-expensive-checks
1550                           Compile with expensive debug checks enabled (default
1551                           is NO)
1552   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1553                           NO)
1554   --enable-jit            Enable Just In Time Compiling (default is YES)
1555   --enable-doxygen        Build doxygen documentation (default is NO)
1556   --enable-threads        Use threads if available (default is YES)
1557   --enable-pic            Build LLVM with Position Independent Code (default
1558                           is YES)
1559   --enable-targets        Build specific host targets:
1560                           all,host-only,{target-name} (default=all)
1561   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1562                           %a (default is YES)
1563   --enable-bindings       Build specific language bindings:
1564                           all,auto,none,{binding-name} (default=auto)
1565   --enable-libffi         Check for the presence of libffi (default is YES)
1566   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1567                           Win32)
1568   --enable-llvmc-dynamic-plugins
1569                           Enable dynamic LLVMC plugins (default is YES)
1570   --enable-ltdl-install   install libltdl
1571   --enable-shared[=PKGS]  build shared libraries
1572                           [default=yes]
1573   --enable-static[=PKGS]  build static libraries
1574                           [default=yes]
1575   --enable-fast-install[=PKGS]
1576                           optimize for fast installation
1577                           [default=yes]
1578   --disable-libtool-lock  avoid locking (might break parallel builds)
1579
1580 Optional Packages:
1581   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1582   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1583   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1584                           searches PATH)
1585   --with-llvmgcc          Specify location of llvm-gcc driver (default
1586                           searches PATH)
1587   --with-llvmgxx          Specify location of llvm-g++ driver (default
1588                           searches PATH)
1589   --with-extra-options    Specify additional options to compile LLVM with
1590   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1591                           is stdlib)
1592   --with-binutils-include Specify path to binutils/include/ containing
1593                           plugin-api.h file for gold plugin.
1594   --with-tclinclude       directory where tcl headers are
1595   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1596   --with-pic              try to use only PIC/non-PIC objects [default=use
1597                           both]
1598   --with-tags[=TAGS]      include additional configurations [automatic]
1599   --with-udis86=<path>    Use udis86 external x86 disassembler library
1600   --with-oprofile=<prefix>
1601                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1602
1603 Some influential environment variables:
1604   CC          C compiler command
1605   CFLAGS      C compiler flags
1606   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1607               nonstandard directory <lib dir>
1608   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1609               you have headers in a nonstandard directory <include dir>
1610   CPP         C preprocessor
1611   CXX         C++ compiler command
1612   CXXFLAGS    C++ compiler flags
1613   CXXCPP      C++ preprocessor
1614   F77         Fortran 77 compiler command
1615   FFLAGS      Fortran 77 compiler flags
1616
1617 Use these variables to override the choices made by `configure' or to help
1618 it to find libraries and programs with nonstandard names/locations.
1619
1620 Report bugs to <llvmbugs@cs.uiuc.edu>.
1621 _ACEOF
1622 ac_status=$?
1623 fi
1624
1625 if test "$ac_init_help" = "recursive"; then
1626   # If there are subdirs, report their specific --help.
1627   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628     test -d "$ac_dir" || continue
1629     ac_builddir=.
1630
1631 case "$ac_dir" in
1632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *)
1634   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1635   # A ".." for each directory in $ac_dir_suffix.
1636   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1637   case $ac_top_builddir_sub in
1638   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640   esac ;;
1641 esac
1642 ac_abs_top_builddir=$ac_pwd
1643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644 # for backward compatibility:
1645 ac_top_builddir=$ac_top_build_prefix
1646
1647 case $srcdir in
1648   .)  # We are building in place.
1649     ac_srcdir=.
1650     ac_top_srcdir=$ac_top_builddir_sub
1651     ac_abs_top_srcdir=$ac_pwd ;;
1652   [\\/]* | ?:[\\/]* )  # Absolute name.
1653     ac_srcdir=$srcdir$ac_dir_suffix;
1654     ac_top_srcdir=$srcdir
1655     ac_abs_top_srcdir=$srcdir ;;
1656   *) # Relative name.
1657     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658     ac_top_srcdir=$ac_top_build_prefix$srcdir
1659     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1660 esac
1661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1662
1663     cd "$ac_dir" || { ac_status=$?; continue; }
1664     # Check for guested configure.
1665     if test -f "$ac_srcdir/configure.gnu"; then
1666       echo &&
1667       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668     elif test -f "$ac_srcdir/configure"; then
1669       echo &&
1670       $SHELL "$ac_srcdir/configure" --help=recursive
1671     else
1672       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1673     fi || ac_status=$?
1674     cd "$ac_pwd" || { ac_status=$?; break; }
1675   done
1676 fi
1677
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1680   cat <<\_ACEOF
1681 llvm configure 2.6svn
1682 generated by GNU Autoconf 2.60
1683
1684 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1685 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1686 This configure script is free software; the Free Software Foundation
1687 gives unlimited permission to copy, distribute and modify it.
1688
1689 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1690 _ACEOF
1691   exit
1692 fi
1693 cat >config.log <<_ACEOF
1694 This file contains any messages produced by compilers while
1695 running configure, to aid debugging if configure makes a mistake.
1696
1697 It was created by llvm $as_me 2.6svn, which was
1698 generated by GNU Autoconf 2.60.  Invocation command line was
1699
1700   $ $0 $@
1701
1702 _ACEOF
1703 exec 5>>config.log
1704 {
1705 cat <<_ASUNAME
1706 ## --------- ##
1707 ## Platform. ##
1708 ## --------- ##
1709
1710 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1711 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1712 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1713 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1714 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1715
1716 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1717 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1718
1719 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1720 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1721 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1722 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1723 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1724 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1725 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1726
1727 _ASUNAME
1728
1729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 for as_dir in $PATH
1731 do
1732   IFS=$as_save_IFS
1733   test -z "$as_dir" && as_dir=.
1734   echo "PATH: $as_dir"
1735 done
1736 IFS=$as_save_IFS
1737
1738 } >&5
1739
1740 cat >&5 <<_ACEOF
1741
1742
1743 ## ----------- ##
1744 ## Core tests. ##
1745 ## ----------- ##
1746
1747 _ACEOF
1748
1749
1750 # Keep a trace of the command line.
1751 # Strip out --no-create and --no-recursion so they do not pile up.
1752 # Strip out --silent because we don't want to record it for future runs.
1753 # Also quote any args containing shell meta-characters.
1754 # Make two passes to allow for proper duplicate-argument suppression.
1755 ac_configure_args=
1756 ac_configure_args0=
1757 ac_configure_args1=
1758 ac_must_keep_next=false
1759 for ac_pass in 1 2
1760 do
1761   for ac_arg
1762   do
1763     case $ac_arg in
1764     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1765     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1766     | -silent | --silent | --silen | --sile | --sil)
1767       continue ;;
1768     *\'*)
1769       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1770     esac
1771     case $ac_pass in
1772     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1773     2)
1774       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1775       if test $ac_must_keep_next = true; then
1776         ac_must_keep_next=false # Got value, back to normal.
1777       else
1778         case $ac_arg in
1779           *=* | --config-cache | -C | -disable-* | --disable-* \
1780           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1781           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1782           | -with-* | --with-* | -without-* | --without-* | --x)
1783             case "$ac_configure_args0 " in
1784               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1785             esac
1786             ;;
1787           -* ) ac_must_keep_next=true ;;
1788         esac
1789       fi
1790       ac_configure_args="$ac_configure_args '$ac_arg'"
1791       ;;
1792     esac
1793   done
1794 done
1795 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1796 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1797
1798 # When interrupted or exit'd, cleanup temporary files, and complete
1799 # config.log.  We remove comments because anyway the quotes in there
1800 # would cause problems or look ugly.
1801 # WARNING: Use '\'' to represent an apostrophe within the trap.
1802 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1803 trap 'exit_status=$?
1804   # Save into config.log some information that might help in debugging.
1805   {
1806     echo
1807
1808     cat <<\_ASBOX
1809 ## ---------------- ##
1810 ## Cache variables. ##
1811 ## ---------------- ##
1812 _ASBOX
1813     echo
1814     # The following way of writing the cache mishandles newlines in values,
1815 (
1816   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1817     eval ac_val=\$$ac_var
1818     case $ac_val in #(
1819     *${as_nl}*)
1820       case $ac_var in #(
1821       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1822 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1823       esac
1824       case $ac_var in #(
1825       _ | IFS | as_nl) ;; #(
1826       *) $as_unset $ac_var ;;
1827       esac ;;
1828     esac
1829   done
1830   (set) 2>&1 |
1831     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1832     *${as_nl}ac_space=\ *)
1833       sed -n \
1834         "s/'\''/'\''\\\\'\'''\''/g;
1835           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1836       ;; #(
1837     *)
1838       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1839       ;;
1840     esac |
1841     sort
1842 )
1843     echo
1844
1845     cat <<\_ASBOX
1846 ## ----------------- ##
1847 ## Output variables. ##
1848 ## ----------------- ##
1849 _ASBOX
1850     echo
1851     for ac_var in $ac_subst_vars
1852     do
1853       eval ac_val=\$$ac_var
1854       case $ac_val in
1855       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856       esac
1857       echo "$ac_var='\''$ac_val'\''"
1858     done | sort
1859     echo
1860
1861     if test -n "$ac_subst_files"; then
1862       cat <<\_ASBOX
1863 ## ------------------- ##
1864 ## File substitutions. ##
1865 ## ------------------- ##
1866 _ASBOX
1867       echo
1868       for ac_var in $ac_subst_files
1869       do
1870         eval ac_val=\$$ac_var
1871         case $ac_val in
1872         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1873         esac
1874         echo "$ac_var='\''$ac_val'\''"
1875       done | sort
1876       echo
1877     fi
1878
1879     if test -s confdefs.h; then
1880       cat <<\_ASBOX
1881 ## ----------- ##
1882 ## confdefs.h. ##
1883 ## ----------- ##
1884 _ASBOX
1885       echo
1886       cat confdefs.h
1887       echo
1888     fi
1889     test "$ac_signal" != 0 &&
1890       echo "$as_me: caught signal $ac_signal"
1891     echo "$as_me: exit $exit_status"
1892   } >&5
1893   rm -f core *.core core.conftest.* &&
1894     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1895     exit $exit_status
1896 ' 0
1897 for ac_signal in 1 2 13 15; do
1898   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1899 done
1900 ac_signal=0
1901
1902 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1903 rm -f -r conftest* confdefs.h
1904
1905 # Predefined preprocessor variables.
1906
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_NAME "$PACKAGE_NAME"
1909 _ACEOF
1910
1911
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1914 _ACEOF
1915
1916
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1919 _ACEOF
1920
1921
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_STRING "$PACKAGE_STRING"
1924 _ACEOF
1925
1926
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1929 _ACEOF
1930
1931
1932 # Let the site file select an alternate cache file if it wants to.
1933 # Prefer explicitly selected file to automatically selected ones.
1934 if test -n "$CONFIG_SITE"; then
1935   set x "$CONFIG_SITE"
1936 elif test "x$prefix" != xNONE; then
1937   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1938 else
1939   set x "$ac_default_prefix/share/config.site" \
1940         "$ac_default_prefix/etc/config.site"
1941 fi
1942 shift
1943 for ac_site_file
1944 do
1945   if test -r "$ac_site_file"; then
1946     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1947 echo "$as_me: loading site script $ac_site_file" >&6;}
1948     sed 's/^/| /' "$ac_site_file" >&5
1949     . "$ac_site_file"
1950   fi
1951 done
1952
1953 if test -r "$cache_file"; then
1954   # Some versions of bash will fail to source /dev/null (special
1955   # files actually), so we avoid doing that.
1956   if test -f "$cache_file"; then
1957     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1958 echo "$as_me: loading cache $cache_file" >&6;}
1959     case $cache_file in
1960       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1961       *)                      . "./$cache_file";;
1962     esac
1963   fi
1964 else
1965   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1966 echo "$as_me: creating cache $cache_file" >&6;}
1967   >$cache_file
1968 fi
1969
1970 # Check that the precious variables saved in the cache have kept the same
1971 # value.
1972 ac_cache_corrupted=false
1973 for ac_var in $ac_precious_vars; do
1974   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1975   eval ac_new_set=\$ac_env_${ac_var}_set
1976   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1977   eval ac_new_val=\$ac_env_${ac_var}_value
1978   case $ac_old_set,$ac_new_set in
1979     set,)
1980       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1981 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1982       ac_cache_corrupted=: ;;
1983     ,set)
1984       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1985 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1986       ac_cache_corrupted=: ;;
1987     ,);;
1988     *)
1989       if test "x$ac_old_val" != "x$ac_new_val"; then
1990         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1991 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1992         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1993 echo "$as_me:   former value:  $ac_old_val" >&2;}
1994         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1995 echo "$as_me:   current value: $ac_new_val" >&2;}
1996         ac_cache_corrupted=:
1997       fi;;
1998   esac
1999   # Pass precious variables to config.status.
2000   if test "$ac_new_set" = set; then
2001     case $ac_new_val in
2002     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2003     *) ac_arg=$ac_var=$ac_new_val ;;
2004     esac
2005     case " $ac_configure_args " in
2006       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2007       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2008     esac
2009   fi
2010 done
2011 if $ac_cache_corrupted; then
2012   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2013 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2014   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2015 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2016    { (exit 1); exit 1; }; }
2017 fi
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043 ac_ext=c
2044 ac_cpp='$CPP $CPPFLAGS'
2045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048
2049
2050
2051 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2052
2053
2054
2055
2056
2057
2058
2059 ac_aux_dir=
2060 for ac_dir in autoconf "$srcdir"/autoconf; do
2061   if test -f "$ac_dir/install-sh"; then
2062     ac_aux_dir=$ac_dir
2063     ac_install_sh="$ac_aux_dir/install-sh -c"
2064     break
2065   elif test -f "$ac_dir/install.sh"; then
2066     ac_aux_dir=$ac_dir
2067     ac_install_sh="$ac_aux_dir/install.sh -c"
2068     break
2069   elif test -f "$ac_dir/shtool"; then
2070     ac_aux_dir=$ac_dir
2071     ac_install_sh="$ac_aux_dir/shtool install -c"
2072     break
2073   fi
2074 done
2075 if test -z "$ac_aux_dir"; then
2076   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2077 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2078    { (exit 1); exit 1; }; }
2079 fi
2080
2081 # These three variables are undocumented and unsupported,
2082 # and are intended to be withdrawn in a future Autoconf release.
2083 # They can cause serious problems if a builder's source tree is in a directory
2084 # whose full name contains unusual characters.
2085 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2086 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2087 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2088
2089
2090
2091 if test ${srcdir} != "." ; then
2092   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2093     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2094 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2095    { (exit 1); exit 1; }; }
2096   fi
2097 fi
2098
2099 for i in `ls ${srcdir}/projects`
2100 do
2101   if test -d ${srcdir}/projects/${i} ; then
2102     case ${i} in
2103       CVS) ;;
2104       sample)       subdirs="$subdirs projects/sample"
2105     ;;
2106       privbracket)  subdirs="$subdirs projects/privbracket"
2107  ;;
2108       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2109  ;;
2110       # llvm-test is the old name of the test-suite, kept here for backwards
2111       # compatibility
2112       llvm-test)    subdirs="$subdirs projects/llvm-test"
2113  ;;
2114       test-suite)   subdirs="$subdirs projects/test-suite"
2115  ;;
2116       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2117 ;;
2118       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2119   ;;
2120       llvm-java)    subdirs="$subdirs projects/llvm-java"
2121  ;;
2122       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2123    ;;
2124       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2125  ;;
2126       poolalloc)    subdirs="$subdirs projects/poolalloc"
2127  ;;
2128       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2129  ;;
2130       *)
2131         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2132 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2133         ;;
2134     esac
2135   fi
2136 done
2137
2138
2139 # Make sure we can run config.sub.
2140 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2141   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2142 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2143    { (exit 1); exit 1; }; }
2144
2145 { echo "$as_me:$LINENO: checking build system type" >&5
2146 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2147 if test "${ac_cv_build+set}" = set; then
2148   echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150   ac_build_alias=$build_alias
2151 test "x$ac_build_alias" = x &&
2152   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2153 test "x$ac_build_alias" = x &&
2154   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2155 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2156    { (exit 1); exit 1; }; }
2157 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2158   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2159 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2160    { (exit 1); exit 1; }; }
2161
2162 fi
2163 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2164 echo "${ECHO_T}$ac_cv_build" >&6; }
2165 case $ac_cv_build in
2166 *-*-*) ;;
2167 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2168 echo "$as_me: error: invalid value of canonical build" >&2;}
2169    { (exit 1); exit 1; }; };;
2170 esac
2171 build=$ac_cv_build
2172 ac_save_IFS=$IFS; IFS='-'
2173 set x $ac_cv_build
2174 shift
2175 build_cpu=$1
2176 build_vendor=$2
2177 shift; shift
2178 # Remember, the first character of IFS is used to create $*,
2179 # except with old shells:
2180 build_os=$*
2181 IFS=$ac_save_IFS
2182 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2183
2184
2185 { echo "$as_me:$LINENO: checking host system type" >&5
2186 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2187 if test "${ac_cv_host+set}" = set; then
2188   echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190   if test "x$host_alias" = x; then
2191   ac_cv_host=$ac_cv_build
2192 else
2193   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2194     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2195 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2196    { (exit 1); exit 1; }; }
2197 fi
2198
2199 fi
2200 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2201 echo "${ECHO_T}$ac_cv_host" >&6; }
2202 case $ac_cv_host in
2203 *-*-*) ;;
2204 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2205 echo "$as_me: error: invalid value of canonical host" >&2;}
2206    { (exit 1); exit 1; }; };;
2207 esac
2208 host=$ac_cv_host
2209 ac_save_IFS=$IFS; IFS='-'
2210 set x $ac_cv_host
2211 shift
2212 host_cpu=$1
2213 host_vendor=$2
2214 shift; shift
2215 # Remember, the first character of IFS is used to create $*,
2216 # except with old shells:
2217 host_os=$*
2218 IFS=$ac_save_IFS
2219 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2220
2221
2222 { echo "$as_me:$LINENO: checking target system type" >&5
2223 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2224 if test "${ac_cv_target+set}" = set; then
2225   echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227   if test "x$target_alias" = x; then
2228   ac_cv_target=$ac_cv_host
2229 else
2230   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2231     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2232 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2233    { (exit 1); exit 1; }; }
2234 fi
2235
2236 fi
2237 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2238 echo "${ECHO_T}$ac_cv_target" >&6; }
2239 case $ac_cv_target in
2240 *-*-*) ;;
2241 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2242 echo "$as_me: error: invalid value of canonical target" >&2;}
2243    { (exit 1); exit 1; }; };;
2244 esac
2245 target=$ac_cv_target
2246 ac_save_IFS=$IFS; IFS='-'
2247 set x $ac_cv_target
2248 shift
2249 target_cpu=$1
2250 target_vendor=$2
2251 shift; shift
2252 # Remember, the first character of IFS is used to create $*,
2253 # except with old shells:
2254 target_os=$*
2255 IFS=$ac_save_IFS
2256 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2257
2258
2259 # The aliases save the names the user supplied, while $host etc.
2260 # will get canonicalized.
2261 test -n "$target_alias" &&
2262   test "$program_prefix$program_suffix$program_transform_name" = \
2263     NONENONEs,x,x, &&
2264   program_prefix=${target_alias}-
2265
2266 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2267 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2268 if test "${llvm_cv_os_type+set}" = set; then
2269   echo $ECHO_N "(cached) $ECHO_C" >&6
2270 else
2271   case $host in
2272   *-*-aix*)
2273     llvm_cv_link_all_option="-Wl,--whole-archive"
2274     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275     llvm_cv_os_type="AIX"
2276     llvm_cv_platform_type="Unix" ;;
2277   *-*-irix*)
2278     llvm_cv_link_all_option="-Wl,--whole-archive"
2279     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280     llvm_cv_os_type="IRIX"
2281     llvm_cv_platform_type="Unix" ;;
2282   *-*-cygwin*)
2283     llvm_cv_link_all_option="-Wl,--whole-archive"
2284     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285     llvm_cv_os_type="Cygwin"
2286     llvm_cv_platform_type="Unix" ;;
2287   *-*-darwin*)
2288     llvm_cv_link_all_option="-Wl,-all_load"
2289     llvm_cv_no_link_all_option="-Wl,-noall_load"
2290     llvm_cv_os_type="Darwin"
2291     llvm_cv_platform_type="Unix" ;;
2292   *-*-freebsd*)
2293     llvm_cv_link_all_option="-Wl,--whole-archive"
2294     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2295     llvm_cv_os_type="FreeBSD"
2296     llvm_cv_platform_type="Unix" ;;
2297   *-*-openbsd*)
2298     llvm_cv_link_all_option="-Wl,--whole-archive"
2299     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2300     llvm_cv_os_type="OpenBSD"
2301     llvm_cv_platform_type="Unix" ;;
2302   *-*-netbsd*)
2303     llvm_cv_link_all_option="-Wl,--whole-archive"
2304     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2305     llvm_cv_os_type="NetBSD"
2306     llvm_cv_platform_type="Unix" ;;
2307   *-*-dragonfly*)
2308     llvm_cv_link_all_option="-Wl,--whole-archive"
2309     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2310     llvm_cv_os_type="DragonFly"
2311     llvm_cv_platform_type="Unix" ;;
2312   *-*-hpux*)
2313     llvm_cv_link_all_option="-Wl,--whole-archive"
2314     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2315     llvm_cv_os_type="HP-UX"
2316     llvm_cv_platform_type="Unix" ;;
2317   *-*-interix*)
2318     llvm_cv_link_all_option="-Wl,--whole-archive"
2319     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2320     llvm_cv_os_type="Interix"
2321     llvm_cv_platform_type="Unix" ;;
2322   *-*-linux*)
2323     llvm_cv_link_all_option="-Wl,--whole-archive"
2324     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2325     llvm_cv_os_type="Linux"
2326     llvm_cv_platform_type="Unix" ;;
2327   *-*-solaris*)
2328     llvm_cv_link_all_option="-Wl,-z,allextract"
2329     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2330     llvm_cv_os_type="SunOS"
2331     llvm_cv_platform_type="Unix" ;;
2332   *-*-win32*)
2333     llvm_cv_link_all_option="-Wl,--whole-archive"
2334     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2335     llvm_cv_os_type="Win32"
2336     llvm_cv_platform_type="Win32" ;;
2337   *-*-mingw*)
2338     llvm_cv_link_all_option="-Wl,--whole-archive"
2339     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2340     llvm_cv_os_type="MingW"
2341     llvm_cv_platform_type="Win32" ;;
2342   *)
2343     llvm_cv_link_all_option=""
2344     llvm_cv_no_link_all_option=""
2345     llvm_cv_os_type="Unknown"
2346     llvm_cv_platform_type="Unknown" ;;
2347 esac
2348 fi
2349 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2350 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2351
2352 if test "$llvm_cv_os_type" = "Unknown" ; then
2353   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2354 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2355    { (exit 1); exit 1; }; }
2356 fi
2357
2358 OS=$llvm_cv_os_type
2359
2360
2361 LINKALL=$llvm_cv_link_all_option
2362
2363 NOLINKALL=$llvm_cv_no_link_all_option
2364
2365
2366 case $llvm_cv_platform_type in
2367   Unix)
2368
2369 cat >>confdefs.h <<\_ACEOF
2370 #define LLVM_ON_UNIX 1
2371 _ACEOF
2372
2373     LLVM_ON_UNIX=1
2374
2375     LLVM_ON_WIN32=0
2376
2377     ;;
2378   Win32)
2379
2380 cat >>confdefs.h <<\_ACEOF
2381 #define LLVM_ON_WIN32 1
2382 _ACEOF
2383
2384     LLVM_ON_UNIX=0
2385
2386     LLVM_ON_WIN32=1
2387
2388     ;;
2389 esac
2390
2391 { echo "$as_me:$LINENO: checking target architecture" >&5
2392 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2393 if test "${llvm_cv_target_arch+set}" = set; then
2394   echo $ECHO_N "(cached) $ECHO_C" >&6
2395 else
2396   case $target in
2397   i?86-*)                 llvm_cv_target_arch="x86" ;;
2398   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2399   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2400   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2401   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2402   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2403   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2404   mips-*)                 llvm_cv_target_arch="Mips" ;;
2405   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2406   xcore-*)                llvm_cv_target_arch="XCore" ;;
2407   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2408   *)                      llvm_cv_target_arch="Unknown" ;;
2409 esac
2410 fi
2411 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2412 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2413
2414 if test "$llvm_cv_target_arch" = "Unknown" ; then
2415   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2416 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2417 fi
2418
2419 # Determine the LLVM native architecture for the target
2420 case "$llvm_cv_target_arch" in
2421     x86)     LLVM_NATIVE_ARCH="X86" ;;
2422     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2423     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2424 esac
2425
2426 ARCH=$llvm_cv_target_arch
2427
2428
2429 ac_ext=c
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434 if test -n "$ac_tool_prefix"; then
2435   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   if test -n "$CC"; then
2443   ac_cv_prog_CC="$CC" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2447 do
2448   IFS=$as_save_IFS
2449   test -z "$as_dir" && as_dir=.
2450   for ac_exec_ext in '' $ac_executable_extensions; do
2451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2452     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454     break 2
2455   fi
2456 done
2457 done
2458 IFS=$as_save_IFS
2459
2460 fi
2461 fi
2462 CC=$ac_cv_prog_CC
2463 if test -n "$CC"; then
2464   { echo "$as_me:$LINENO: result: $CC" >&5
2465 echo "${ECHO_T}$CC" >&6; }
2466 else
2467   { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2469 fi
2470
2471
2472 fi
2473 if test -z "$ac_cv_prog_CC"; then
2474   ac_ct_CC=$CC
2475   # Extract the first word of "gcc", so it can be a program name with args.
2476 set dummy gcc; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2480   echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482   if test -n "$ac_ct_CC"; then
2483   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490   for ac_exec_ext in '' $ac_executable_extensions; do
2491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2492     ac_cv_prog_ac_ct_CC="gcc"
2493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494     break 2
2495   fi
2496 done
2497 done
2498 IFS=$as_save_IFS
2499
2500 fi
2501 fi
2502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503 if test -n "$ac_ct_CC"; then
2504   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505 echo "${ECHO_T}$ac_ct_CC" >&6; }
2506 else
2507   { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2509 fi
2510
2511   if test "x$ac_ct_CC" = x; then
2512     CC=""
2513   else
2514     case $cross_compiling:$ac_tool_warned in
2515 yes:)
2516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517 whose name does not start with the host triplet.  If you think this
2518 configuration is useful to you, please write to autoconf@gnu.org." >&5
2519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet.  If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522 ac_tool_warned=yes ;;
2523 esac
2524     CC=$ac_ct_CC
2525   fi
2526 else
2527   CC="$ac_cv_prog_CC"
2528 fi
2529
2530 if test -z "$CC"; then
2531           if test -n "$ac_tool_prefix"; then
2532     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2533 set dummy ${ac_tool_prefix}cc; ac_word=$2
2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537   echo $ECHO_N "(cached) $ECHO_C" >&6
2538 else
2539   if test -n "$CC"; then
2540   ac_cv_prog_CC="$CC" # Let the user override the test.
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2544 do
2545   IFS=$as_save_IFS
2546   test -z "$as_dir" && as_dir=.
2547   for ac_exec_ext in '' $ac_executable_extensions; do
2548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2549     ac_cv_prog_CC="${ac_tool_prefix}cc"
2550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551     break 2
2552   fi
2553 done
2554 done
2555 IFS=$as_save_IFS
2556
2557 fi
2558 fi
2559 CC=$ac_cv_prog_CC
2560 if test -n "$CC"; then
2561   { echo "$as_me:$LINENO: result: $CC" >&5
2562 echo "${ECHO_T}$CC" >&6; }
2563 else
2564   { echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6; }
2566 fi
2567
2568
2569   fi
2570 fi
2571 if test -z "$CC"; then
2572   # Extract the first word of "cc", so it can be a program name with args.
2573 set dummy cc; ac_word=$2
2574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576 if test "${ac_cv_prog_CC+set}" = set; then
2577   echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579   if test -n "$CC"; then
2580   ac_cv_prog_CC="$CC" # Let the user override the test.
2581 else
2582   ac_prog_rejected=no
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586   IFS=$as_save_IFS
2587   test -z "$as_dir" && as_dir=.
2588   for ac_exec_ext in '' $ac_executable_extensions; do
2589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2590     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2591        ac_prog_rejected=yes
2592        continue
2593      fi
2594     ac_cv_prog_CC="cc"
2595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596     break 2
2597   fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 if test $ac_prog_rejected = yes; then
2603   # We found a bogon in the path, so make sure we never use it.
2604   set dummy $ac_cv_prog_CC
2605   shift
2606   if test $# != 0; then
2607     # We chose a different compiler from the bogus one.
2608     # However, it has the same basename, so the bogon will be chosen
2609     # first if we set CC to just the basename; use the full file name.
2610     shift
2611     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2612   fi
2613 fi
2614 fi
2615 fi
2616 CC=$ac_cv_prog_CC
2617 if test -n "$CC"; then
2618   { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2620 else
2621   { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2623 fi
2624
2625
2626 fi
2627 if test -z "$CC"; then
2628   if test -n "$ac_tool_prefix"; then
2629   for ac_prog in cl.exe
2630   do
2631     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636   echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638   if test -n "$CC"; then
2639   ac_cv_prog_CC="$CC" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2643 do
2644   IFS=$as_save_IFS
2645   test -z "$as_dir" && as_dir=.
2646   for ac_exec_ext in '' $ac_executable_extensions; do
2647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2648     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650     break 2
2651   fi
2652 done
2653 done
2654 IFS=$as_save_IFS
2655
2656 fi
2657 fi
2658 CC=$ac_cv_prog_CC
2659 if test -n "$CC"; then
2660   { echo "$as_me:$LINENO: result: $CC" >&5
2661 echo "${ECHO_T}$CC" >&6; }
2662 else
2663   { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2665 fi
2666
2667
2668     test -n "$CC" && break
2669   done
2670 fi
2671 if test -z "$CC"; then
2672   ac_ct_CC=$CC
2673   for ac_prog in cl.exe
2674 do
2675   # Extract the first word of "$ac_prog", so it can be a program name with args.
2676 set dummy $ac_prog; ac_word=$2
2677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2680   echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682   if test -n "$ac_ct_CC"; then
2683   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2687 do
2688   IFS=$as_save_IFS
2689   test -z "$as_dir" && as_dir=.
2690   for ac_exec_ext in '' $ac_executable_extensions; do
2691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2692     ac_cv_prog_ac_ct_CC="$ac_prog"
2693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694     break 2
2695   fi
2696 done
2697 done
2698 IFS=$as_save_IFS
2699
2700 fi
2701 fi
2702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2705 echo "${ECHO_T}$ac_ct_CC" >&6; }
2706 else
2707   { echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6; }
2709 fi
2710
2711
2712   test -n "$ac_ct_CC" && break
2713 done
2714
2715   if test "x$ac_ct_CC" = x; then
2716     CC=""
2717   else
2718     case $cross_compiling:$ac_tool_warned in
2719 yes:)
2720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2721 whose name does not start with the host triplet.  If you think this
2722 configuration is useful to you, please write to autoconf@gnu.org." >&5
2723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2724 whose name does not start with the host triplet.  If you think this
2725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2726 ac_tool_warned=yes ;;
2727 esac
2728     CC=$ac_ct_CC
2729   fi
2730 fi
2731
2732 fi
2733
2734
2735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2736 See \`config.log' for more details." >&5
2737 echo "$as_me: error: no acceptable C compiler found in \$PATH
2738 See \`config.log' for more details." >&2;}
2739    { (exit 1); exit 1; }; }
2740
2741 # Provide some information about the compiler.
2742 echo "$as_me:$LINENO: checking for C compiler version" >&5
2743 ac_compiler=`set X $ac_compile; echo $2`
2744 { (ac_try="$ac_compiler --version >&5"
2745 case "(($ac_try" in
2746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747   *) ac_try_echo=$ac_try;;
2748 esac
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750   (eval "$ac_compiler --version >&5") 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }
2754 { (ac_try="$ac_compiler -v >&5"
2755 case "(($ac_try" in
2756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757   *) ac_try_echo=$ac_try;;
2758 esac
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760   (eval "$ac_compiler -v >&5") 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); }
2764 { (ac_try="$ac_compiler -V >&5"
2765 case "(($ac_try" in
2766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767   *) ac_try_echo=$ac_try;;
2768 esac
2769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2770   (eval "$ac_compiler -V >&5") 2>&5
2771   ac_status=$?
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); }
2774
2775 cat >conftest.$ac_ext <<_ACEOF
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2781
2782 int
2783 main ()
2784 {
2785
2786   ;
2787   return 0;
2788 }
2789 _ACEOF
2790 ac_clean_files_save=$ac_clean_files
2791 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2792 # Try to create an executable without -o first, disregard a.out.
2793 # It will help us diagnose broken compilers, and finding out an intuition
2794 # of exeext.
2795 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2796 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2797 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2798 #
2799 # List of possible output files, starting from the most likely.
2800 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2801 # only as a last resort.  b.out is created by i960 compilers.
2802 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2803 #
2804 # The IRIX 6 linker writes into existing files which may not be
2805 # executable, retaining their permissions.  Remove them first so a
2806 # subsequent execution test works.
2807 ac_rmfiles=
2808 for ac_file in $ac_files
2809 do
2810   case $ac_file in
2811     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2812     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2813   esac
2814 done
2815 rm -f $ac_rmfiles
2816
2817 if { (ac_try="$ac_link_default"
2818 case "(($ac_try" in
2819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820   *) ac_try_echo=$ac_try;;
2821 esac
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823   (eval "$ac_link_default") 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); }; then
2827   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2828 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2829 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2830 # so that the user can short-circuit this test for compilers unknown to
2831 # Autoconf.
2832 for ac_file in $ac_files
2833 do
2834   test -f "$ac_file" || continue
2835   case $ac_file in
2836     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2837         ;;
2838     [ab].out )
2839         # We found the default executable, but exeext='' is most
2840         # certainly right.
2841         break;;
2842     *.* )
2843         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2844         then :; else
2845            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2846         fi
2847         # We set ac_cv_exeext here because the later test for it is not
2848         # safe: cross compilers may not add the suffix if given an `-o'
2849         # argument, so we may need to know it at that point already.
2850         # Even if this section looks crufty: it has the advantage of
2851         # actually working.
2852         break;;
2853     * )
2854         break;;
2855   esac
2856 done
2857 test "$ac_cv_exeext" = no && ac_cv_exeext=
2858
2859 else
2860   echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2864 See \`config.log' for more details." >&5
2865 echo "$as_me: error: C compiler cannot create executables
2866 See \`config.log' for more details." >&2;}
2867    { (exit 77); exit 77; }; }
2868 fi
2869
2870 ac_exeext=$ac_cv_exeext
2871 { echo "$as_me:$LINENO: result: $ac_file" >&5
2872 echo "${ECHO_T}$ac_file" >&6; }
2873
2874 # Check that the compiler produces executables we can run.  If not, either
2875 # the compiler is broken, or we cross compile.
2876 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2877 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2878 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2879 # If not cross compiling, check that we can run a simple program.
2880 if test "$cross_compiling" != yes; then
2881   if { ac_try='./$ac_file'
2882   { (case "(($ac_try" in
2883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884   *) ac_try_echo=$ac_try;;
2885 esac
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887   (eval "$ac_try") 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }; }; then
2891     cross_compiling=no
2892   else
2893     if test "$cross_compiling" = maybe; then
2894         cross_compiling=yes
2895     else
2896         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2897 If you meant to cross compile, use \`--host'.
2898 See \`config.log' for more details." >&5
2899 echo "$as_me: error: cannot run C compiled programs.
2900 If you meant to cross compile, use \`--host'.
2901 See \`config.log' for more details." >&2;}
2902    { (exit 1); exit 1; }; }
2903     fi
2904   fi
2905 fi
2906 { echo "$as_me:$LINENO: result: yes" >&5
2907 echo "${ECHO_T}yes" >&6; }
2908
2909 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2910 ac_clean_files=$ac_clean_files_save
2911 # Check that the compiler produces executables we can run.  If not, either
2912 # the compiler is broken, or we cross compile.
2913 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2914 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2915 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2916 echo "${ECHO_T}$cross_compiling" >&6; }
2917
2918 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2919 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2920 if { (ac_try="$ac_link"
2921 case "(($ac_try" in
2922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923   *) ac_try_echo=$ac_try;;
2924 esac
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926   (eval "$ac_link") 2>&5
2927   ac_status=$?
2928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929   (exit $ac_status); }; then
2930   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2931 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2932 # work properly (i.e., refer to `conftest.exe'), while it won't with
2933 # `rm'.
2934 for ac_file in conftest.exe conftest conftest.*; do
2935   test -f "$ac_file" || continue
2936   case $ac_file in
2937     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2938     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2939           break;;
2940     * ) break;;
2941   esac
2942 done
2943 else
2944   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2945 See \`config.log' for more details." >&5
2946 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2947 See \`config.log' for more details." >&2;}
2948    { (exit 1); exit 1; }; }
2949 fi
2950
2951 rm -f conftest$ac_cv_exeext
2952 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2953 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2954
2955 rm -f conftest.$ac_ext
2956 EXEEXT=$ac_cv_exeext
2957 ac_exeext=$EXEEXT
2958 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2959 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2960 if test "${ac_cv_objext+set}" = set; then
2961   echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963   cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h.  */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h.  */
2969
2970 int
2971 main ()
2972 {
2973
2974   ;
2975   return 0;
2976 }
2977 _ACEOF
2978 rm -f conftest.o conftest.obj
2979 if { (ac_try="$ac_compile"
2980 case "(($ac_try" in
2981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982   *) ac_try_echo=$ac_try;;
2983 esac
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985   (eval "$ac_compile") 2>&5
2986   ac_status=$?
2987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988   (exit $ac_status); }; then
2989   for ac_file in conftest.o conftest.obj conftest.*; do
2990   test -f "$ac_file" || continue;
2991   case $ac_file in
2992     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2993     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2994        break;;
2995   esac
2996 done
2997 else
2998   echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3000
3001 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3002 See \`config.log' for more details." >&5
3003 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3004 See \`config.log' for more details." >&2;}
3005    { (exit 1); exit 1; }; }
3006 fi
3007
3008 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3009 fi
3010 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3011 echo "${ECHO_T}$ac_cv_objext" >&6; }
3012 OBJEXT=$ac_cv_objext
3013 ac_objext=$OBJEXT
3014 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3015 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3016 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3017   echo $ECHO_N "(cached) $ECHO_C" >&6
3018 else
3019   cat >conftest.$ac_ext <<_ACEOF
3020 /* confdefs.h.  */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h.  */
3025
3026 int
3027 main ()
3028 {
3029 #ifndef __GNUC__
3030        choke me
3031 #endif
3032
3033   ;
3034   return 0;
3035 }
3036 _ACEOF
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3039 case "(($ac_try" in
3040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041   *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044   (eval "$ac_compile") 2>conftest.er1
3045   ac_status=$?
3046   grep -v '^ *+' conftest.er1 >conftest.err
3047   rm -f conftest.er1
3048   cat conftest.err >&5
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); } &&
3051          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3052   { (case "(($ac_try" in
3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054   *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057   (eval "$ac_try") 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); }; } &&
3061          { ac_try='test -s conftest.$ac_objext'
3062   { (case "(($ac_try" in
3063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064   *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067   (eval "$ac_try") 2>&5
3068   ac_status=$?
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); }; }; then
3071   ac_compiler_gnu=yes
3072 else
3073   echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3075
3076         ac_compiler_gnu=no
3077 fi
3078
3079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3080 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3081
3082 fi
3083 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3084 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3085 GCC=`test $ac_compiler_gnu = yes && echo yes`
3086 ac_test_CFLAGS=${CFLAGS+set}
3087 ac_save_CFLAGS=$CFLAGS
3088 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3089 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3090 if test "${ac_cv_prog_cc_g+set}" = set; then
3091   echo $ECHO_N "(cached) $ECHO_C" >&6
3092 else
3093   ac_save_c_werror_flag=$ac_c_werror_flag
3094    ac_c_werror_flag=yes
3095    ac_cv_prog_cc_g=no
3096    CFLAGS="-g"
3097    cat >conftest.$ac_ext <<_ACEOF
3098 /* confdefs.h.  */
3099 _ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h.  */
3103
3104 int
3105 main ()
3106 {
3107
3108   ;
3109   return 0;
3110 }
3111 _ACEOF
3112 rm -f conftest.$ac_objext
3113 if { (ac_try="$ac_compile"
3114 case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119   (eval "$ac_compile") 2>conftest.er1
3120   ac_status=$?
3121   grep -v '^ *+' conftest.er1 >conftest.err
3122   rm -f conftest.er1
3123   cat conftest.err >&5
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); } &&
3126          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3127   { (case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132   (eval "$ac_try") 2>&5
3133   ac_status=$?
3134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135   (exit $ac_status); }; } &&
3136          { ac_try='test -s conftest.$ac_objext'
3137   { (case "(($ac_try" in
3138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139   *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142   (eval "$ac_try") 2>&5
3143   ac_status=$?
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); }; }; then
3146   ac_cv_prog_cc_g=yes
3147 else
3148   echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3150
3151         CFLAGS=""
3152       cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h.  */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h.  */
3158
3159 int
3160 main ()
3161 {
3162
3163   ;
3164   return 0;
3165 }
3166 _ACEOF
3167 rm -f conftest.$ac_objext
3168 if { (ac_try="$ac_compile"
3169 case "(($ac_try" in
3170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171   *) ac_try_echo=$ac_try;;
3172 esac
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174   (eval "$ac_compile") 2>conftest.er1
3175   ac_status=$?
3176   grep -v '^ *+' conftest.er1 >conftest.err
3177   rm -f conftest.er1
3178   cat conftest.err >&5
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); } &&
3181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3182   { (case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_try") 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }; } &&
3191          { ac_try='test -s conftest.$ac_objext'
3192   { (case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197   (eval "$ac_try") 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }; }; then
3201   :
3202 else
3203   echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3205
3206         ac_c_werror_flag=$ac_save_c_werror_flag
3207          CFLAGS="-g"
3208          cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h.  */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h.  */
3214
3215 int
3216 main ()
3217 {
3218
3219   ;
3220   return 0;
3221 }
3222 _ACEOF
3223 rm -f conftest.$ac_objext
3224 if { (ac_try="$ac_compile"
3225 case "(($ac_try" in
3226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227   *) ac_try_echo=$ac_try;;
3228 esac
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230   (eval "$ac_compile") 2>conftest.er1
3231   ac_status=$?
3232   grep -v '^ *+' conftest.er1 >conftest.err
3233   rm -f conftest.er1
3234   cat conftest.err >&5
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); } &&
3237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3238   { (case "(($ac_try" in
3239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240   *) ac_try_echo=$ac_try;;
3241 esac
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243   (eval "$ac_try") 2>&5
3244   ac_status=$?
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); }; } &&
3247          { ac_try='test -s conftest.$ac_objext'
3248   { (case "(($ac_try" in
3249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250   *) ac_try_echo=$ac_try;;
3251 esac
3252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253   (eval "$ac_try") 2>&5
3254   ac_status=$?
3255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256   (exit $ac_status); }; }; then
3257   ac_cv_prog_cc_g=yes
3258 else
3259   echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3261
3262
3263 fi
3264
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 fi
3267
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 fi
3270
3271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272    ac_c_werror_flag=$ac_save_c_werror_flag
3273 fi
3274 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3275 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3276 if test "$ac_test_CFLAGS" = set; then
3277   CFLAGS=$ac_save_CFLAGS
3278 elif test $ac_cv_prog_cc_g = yes; then
3279   if test "$GCC" = yes; then
3280     CFLAGS="-g -O2"
3281   else
3282     CFLAGS="-g"
3283   fi
3284 else
3285   if test "$GCC" = yes; then
3286     CFLAGS="-O2"
3287   else
3288     CFLAGS=
3289   fi
3290 fi
3291 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3292 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3293 if test "${ac_cv_prog_cc_c89+set}" = set; then
3294   echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296   ac_cv_prog_cc_c89=no
3297 ac_save_CC=$CC
3298 cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h.  */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h.  */
3304 #include <stdarg.h>
3305 #include <stdio.h>
3306 #include <sys/types.h>
3307 #include <sys/stat.h>
3308 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3309 struct buf { int x; };
3310 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3311 static char *e (p, i)
3312      char **p;
3313      int i;
3314 {
3315   return p[i];
3316 }
3317 static char *f (char * (*g) (char **, int), char **p, ...)
3318 {
3319   char *s;
3320   va_list v;
3321   va_start (v,p);
3322   s = g (p, va_arg (v,int));
3323   va_end (v);
3324   return s;
3325 }
3326
3327 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3328    function prototypes and stuff, but not '\xHH' hex character constants.
3329    These don't provoke an error unfortunately, instead are silently treated
3330    as 'x'.  The following induces an error, until -std is added to get
3331    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3332    array size at least.  It's necessary to write '\x00'==0 to get something
3333    that's true only with -std.  */
3334 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3335
3336 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3337    inside strings and character constants.  */
3338 #define FOO(x) 'x'
3339 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3340
3341 int test (int i, double x);
3342 struct s1 {int (*f) (int a);};
3343 struct s2 {int (*f) (double a);};
3344 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3345 int argc;
3346 char **argv;
3347 int
3348 main ()
3349 {
3350 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3351   ;
3352   return 0;
3353 }
3354 _ACEOF
3355 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3356         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3357 do
3358   CC="$ac_save_CC $ac_arg"
3359   rm -f conftest.$ac_objext
3360 if { (ac_try="$ac_compile"
3361 case "(($ac_try" in
3362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363   *) ac_try_echo=$ac_try;;
3364 esac
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366   (eval "$ac_compile") 2>conftest.er1
3367   ac_status=$?
3368   grep -v '^ *+' conftest.er1 >conftest.err
3369   rm -f conftest.er1
3370   cat conftest.err >&5
3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372   (exit $ac_status); } &&
3373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3374   { (case "(($ac_try" in
3375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376   *) ac_try_echo=$ac_try;;
3377 esac
3378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379   (eval "$ac_try") 2>&5
3380   ac_status=$?
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); }; } &&
3383          { ac_try='test -s conftest.$ac_objext'
3384   { (case "(($ac_try" in
3385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386   *) ac_try_echo=$ac_try;;
3387 esac
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389   (eval "$ac_try") 2>&5
3390   ac_status=$?
3391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392   (exit $ac_status); }; }; then
3393   ac_cv_prog_cc_c89=$ac_arg
3394 else
3395   echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3397
3398
3399 fi
3400
3401 rm -f core conftest.err conftest.$ac_objext
3402   test "x$ac_cv_prog_cc_c89" != "xno" && break
3403 done
3404 rm -f conftest.$ac_ext
3405 CC=$ac_save_CC
3406
3407 fi
3408 # AC_CACHE_VAL
3409 case "x$ac_cv_prog_cc_c89" in
3410   x)
3411     { echo "$as_me:$LINENO: result: none needed" >&5
3412 echo "${ECHO_T}none needed" >&6; } ;;
3413   xno)
3414     { echo "$as_me:$LINENO: result: unsupported" >&5
3415 echo "${ECHO_T}unsupported" >&6; } ;;
3416   *)
3417     CC="$CC $ac_cv_prog_cc_c89"
3418     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3419 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3420 esac
3421
3422
3423 ac_ext=c
3424 ac_cpp='$CPP $CPPFLAGS'
3425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428
3429
3430 ac_ext=c
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3436 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3437 # On Suns, sometimes $CPP names a directory.
3438 if test -n "$CPP" && test -d "$CPP"; then
3439   CPP=
3440 fi
3441 if test -z "$CPP"; then
3442   if test "${ac_cv_prog_CPP+set}" = set; then
3443   echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445       # Double quotes because CPP needs to be expanded
3446     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3447     do
3448       ac_preproc_ok=false
3449 for ac_c_preproc_warn_flag in '' yes
3450 do
3451   # Use a header file that comes with gcc, so configuring glibc
3452   # with a fresh cross-compiler works.
3453   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3454   # <limits.h> exists even on freestanding compilers.
3455   # On the NeXT, cc -E runs the code through the compiler's parser,
3456   # not just through cpp. "Syntax error" is here to catch this case.
3457   cat >conftest.$ac_ext <<_ACEOF
3458 /* confdefs.h.  */
3459 _ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h.  */
3463 #ifdef __STDC__
3464 # include <limits.h>
3465 #else
3466 # include <assert.h>
3467 #endif
3468                      Syntax error
3469 _ACEOF
3470 if { (ac_try="$ac_cpp conftest.$ac_ext"
3471 case "(($ac_try" in
3472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473   *) ac_try_echo=$ac_try;;
3474 esac
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3477   ac_status=$?
3478   grep -v '^ *+' conftest.er1 >conftest.err
3479   rm -f conftest.er1
3480   cat conftest.err >&5
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); } >/dev/null; then
3483   if test -s conftest.err; then
3484     ac_cpp_err=$ac_c_preproc_warn_flag
3485     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3486   else
3487     ac_cpp_err=
3488   fi
3489 else
3490   ac_cpp_err=yes
3491 fi
3492 if test -z "$ac_cpp_err"; then
3493   :
3494 else
3495   echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498   # Broken: fails on valid input.
3499 continue
3500 fi
3501
3502 rm -f conftest.err conftest.$ac_ext
3503
3504   # OK, works on sane cases.  Now check whether nonexistent headers
3505   # can be detected and how.
3506   cat >conftest.$ac_ext <<_ACEOF
3507 /* confdefs.h.  */
3508 _ACEOF
3509 cat confdefs.h >>conftest.$ac_ext
3510 cat >>conftest.$ac_ext <<_ACEOF
3511 /* end confdefs.h.  */
3512 #include <ac_nonexistent.h>
3513 _ACEOF
3514 if { (ac_try="$ac_cpp conftest.$ac_ext"
3515 case "(($ac_try" in
3516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517   *) ac_try_echo=$ac_try;;
3518 esac
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3521   ac_status=$?
3522   grep -v '^ *+' conftest.er1 >conftest.err
3523   rm -f conftest.er1
3524   cat conftest.err >&5
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); } >/dev/null; then
3527   if test -s conftest.err; then
3528     ac_cpp_err=$ac_c_preproc_warn_flag
3529     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3530   else
3531     ac_cpp_err=
3532   fi
3533 else
3534   ac_cpp_err=yes
3535 fi
3536 if test -z "$ac_cpp_err"; then
3537   # Broken: success on invalid input.
3538 continue
3539 else
3540   echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3542
3543   # Passes both tests.
3544 ac_preproc_ok=:
3545 break
3546 fi
3547
3548 rm -f conftest.err conftest.$ac_ext
3549
3550 done
3551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3552 rm -f conftest.err conftest.$ac_ext
3553 if $ac_preproc_ok; then
3554   break
3555 fi
3556
3557     done
3558     ac_cv_prog_CPP=$CPP
3559
3560 fi
3561   CPP=$ac_cv_prog_CPP
3562 else
3563   ac_cv_prog_CPP=$CPP
3564 fi
3565 { echo "$as_me:$LINENO: result: $CPP" >&5
3566 echo "${ECHO_T}$CPP" >&6; }
3567 ac_preproc_ok=false
3568 for ac_c_preproc_warn_flag in '' yes
3569 do
3570   # Use a header file that comes with gcc, so configuring glibc
3571   # with a fresh cross-compiler works.
3572   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3573   # <limits.h> exists even on freestanding compilers.
3574   # On the NeXT, cc -E runs the code through the compiler's parser,
3575   # not just through cpp. "Syntax error" is here to catch this case.
3576   cat >conftest.$ac_ext <<_ACEOF
3577 /* confdefs.h.  */
3578 _ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h.  */
3582 #ifdef __STDC__
3583 # include <limits.h>
3584 #else
3585 # include <assert.h>
3586 #endif
3587                      Syntax error
3588 _ACEOF
3589 if { (ac_try="$ac_cpp conftest.$ac_ext"
3590 case "(($ac_try" in
3591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592   *) ac_try_echo=$ac_try;;
3593 esac
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3596   ac_status=$?
3597   grep -v '^ *+' conftest.er1 >conftest.err
3598   rm -f conftest.er1
3599   cat conftest.err >&5
3600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601   (exit $ac_status); } >/dev/null; then
3602   if test -s conftest.err; then
3603     ac_cpp_err=$ac_c_preproc_warn_flag
3604     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3605   else
3606     ac_cpp_err=
3607   fi
3608 else
3609   ac_cpp_err=yes
3610 fi
3611 if test -z "$ac_cpp_err"; then
3612   :
3613 else
3614   echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617   # Broken: fails on valid input.
3618 continue
3619 fi
3620
3621 rm -f conftest.err conftest.$ac_ext
3622
3623   # OK, works on sane cases.  Now check whether nonexistent headers
3624   # can be detected and how.
3625   cat >conftest.$ac_ext <<_ACEOF
3626 /* confdefs.h.  */
3627 _ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h.  */
3631 #include <ac_nonexistent.h>
3632 _ACEOF
3633 if { (ac_try="$ac_cpp conftest.$ac_ext"
3634 case "(($ac_try" in
3635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636   *) ac_try_echo=$ac_try;;
3637 esac
3638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3640   ac_status=$?
3641   grep -v '^ *+' conftest.er1 >conftest.err
3642   rm -f conftest.er1
3643   cat conftest.err >&5
3644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645   (exit $ac_status); } >/dev/null; then
3646   if test -s conftest.err; then
3647     ac_cpp_err=$ac_c_preproc_warn_flag
3648     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3649   else
3650     ac_cpp_err=
3651   fi
3652 else
3653   ac_cpp_err=yes
3654 fi
3655 if test -z "$ac_cpp_err"; then
3656   # Broken: success on invalid input.
3657 continue
3658 else
3659   echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3661
3662   # Passes both tests.
3663 ac_preproc_ok=:
3664 break
3665 fi
3666
3667 rm -f conftest.err conftest.$ac_ext
3668
3669 done
3670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3671 rm -f conftest.err conftest.$ac_ext
3672 if $ac_preproc_ok; then
3673   :
3674 else
3675   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3676 See \`config.log' for more details." >&5
3677 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3678 See \`config.log' for more details." >&2;}
3679    { (exit 1); exit 1; }; }
3680 fi
3681
3682 ac_ext=c
3683 ac_cpp='$CPP $CPPFLAGS'
3684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687
3688
3689 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3690 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3691 if test "${ac_cv_path_GREP+set}" = set; then
3692   echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694   # Extract the first word of "grep ggrep" to use in msg output
3695 if test -z "$GREP"; then
3696 set dummy grep ggrep; ac_prog_name=$2
3697 if test "${ac_cv_path_GREP+set}" = set; then
3698   echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700   ac_path_GREP_found=false
3701 # Loop through the user's path and test for each of PROGNAME-LIST
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3704 do
3705   IFS=$as_save_IFS
3706   test -z "$as_dir" && as_dir=.
3707   for ac_prog in grep ggrep; do
3708   for ac_exec_ext in '' $ac_executable_extensions; do
3709     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3710     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3711     # Check for GNU ac_path_GREP and select it if it is found.
3712   # Check for GNU $ac_path_GREP
3713 case `"$ac_path_GREP" --version 2>&1` in
3714 *GNU*)
3715   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3716 *)
3717   ac_count=0
3718   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3719   while :
3720   do
3721     cat "conftest.in" "conftest.in" >"conftest.tmp"
3722     mv "conftest.tmp" "conftest.in"
3723     cp "conftest.in" "conftest.nl"
3724     echo 'GREP' >> "conftest.nl"
3725     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3726     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3727     ac_count=`expr $ac_count + 1`
3728     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3729       # Best one so far, save it but keep looking for a better one
3730       ac_cv_path_GREP="$ac_path_GREP"
3731       ac_path_GREP_max=$ac_count
3732     fi
3733     # 10*(2^10) chars as input seems more than enough
3734     test $ac_count -gt 10 && break
3735   done
3736   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3737 esac
3738
3739
3740     $ac_path_GREP_found && break 3
3741   done
3742 done
3743
3744 done
3745 IFS=$as_save_IFS
3746
3747
3748 fi
3749
3750 GREP="$ac_cv_path_GREP"
3751 if test -z "$GREP"; then
3752   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3753 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3754    { (exit 1); exit 1; }; }
3755 fi
3756
3757 else
3758   ac_cv_path_GREP=$GREP
3759 fi
3760
3761
3762 fi
3763 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3764 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3765  GREP="$ac_cv_path_GREP"
3766
3767
3768 { echo "$as_me:$LINENO: checking for egrep" >&5
3769 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3770 if test "${ac_cv_path_EGREP+set}" = set; then
3771   echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3774    then ac_cv_path_EGREP="$GREP -E"
3775    else
3776      # Extract the first word of "egrep" to use in msg output
3777 if test -z "$EGREP"; then
3778 set dummy egrep; ac_prog_name=$2
3779 if test "${ac_cv_path_EGREP+set}" = set; then
3780   echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782   ac_path_EGREP_found=false
3783 # Loop through the user's path and test for each of PROGNAME-LIST
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3786 do
3787   IFS=$as_save_IFS
3788   test -z "$as_dir" && as_dir=.
3789   for ac_prog in egrep; do
3790   for ac_exec_ext in '' $ac_executable_extensions; do
3791     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3792     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3793     # Check for GNU ac_path_EGREP and select it if it is found.
3794   # Check for GNU $ac_path_EGREP
3795 case `"$ac_path_EGREP" --version 2>&1` in
3796 *GNU*)
3797   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3798 *)
3799   ac_count=0
3800   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3801   while :
3802   do
3803     cat "conftest.in" "conftest.in" >"conftest.tmp"
3804     mv "conftest.tmp" "conftest.in"
3805     cp "conftest.in" "conftest.nl"
3806     echo 'EGREP' >> "conftest.nl"
3807     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3808     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3809     ac_count=`expr $ac_count + 1`
3810     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3811       # Best one so far, save it but keep looking for a better one
3812       ac_cv_path_EGREP="$ac_path_EGREP"
3813       ac_path_EGREP_max=$ac_count
3814     fi
3815     # 10*(2^10) chars as input seems more than enough
3816     test $ac_count -gt 10 && break
3817   done
3818   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3819 esac
3820
3821
3822     $ac_path_EGREP_found && break 3
3823   done
3824 done
3825
3826 done
3827 IFS=$as_save_IFS
3828
3829
3830 fi
3831
3832 EGREP="$ac_cv_path_EGREP"
3833 if test -z "$EGREP"; then
3834   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3835 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3836    { (exit 1); exit 1; }; }
3837 fi
3838
3839 else
3840   ac_cv_path_EGREP=$EGREP
3841 fi
3842
3843
3844    fi
3845 fi
3846 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3847 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3848  EGREP="$ac_cv_path_EGREP"
3849
3850
3851 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3852 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3853 if test "${ac_cv_header_stdc+set}" = set; then
3854   echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856   cat >conftest.$ac_ext <<_ACEOF
3857 /* confdefs.h.  */
3858 _ACEOF
3859 cat confdefs.h >>conftest.$ac_ext
3860 cat >>conftest.$ac_ext <<_ACEOF
3861 /* end confdefs.h.  */
3862 #include <stdlib.h>
3863 #include <stdarg.h>
3864 #include <string.h>
3865 #include <float.h>
3866
3867 int
3868 main ()
3869 {
3870
3871   ;
3872   return 0;
3873 }
3874 _ACEOF
3875 rm -f conftest.$ac_objext
3876 if { (ac_try="$ac_compile"
3877 case "(($ac_try" in
3878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879   *) ac_try_echo=$ac_try;;
3880 esac
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882   (eval "$ac_compile") 2>conftest.er1
3883   ac_status=$?
3884   grep -v '^ *+' conftest.er1 >conftest.err
3885   rm -f conftest.er1
3886   cat conftest.err >&5
3887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888   (exit $ac_status); } &&
3889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3890   { (case "(($ac_try" in
3891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892   *) ac_try_echo=$ac_try;;
3893 esac
3894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3895   (eval "$ac_try") 2>&5
3896   ac_status=$?
3897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); }; } &&
3899          { ac_try='test -s conftest.$ac_objext'
3900   { (case "(($ac_try" in
3901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902   *) ac_try_echo=$ac_try;;
3903 esac
3904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3905   (eval "$ac_try") 2>&5
3906   ac_status=$?
3907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908   (exit $ac_status); }; }; then
3909   ac_cv_header_stdc=yes
3910 else
3911   echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3913
3914         ac_cv_header_stdc=no
3915 fi
3916
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918
3919 if test $ac_cv_header_stdc = yes; then
3920   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3921   cat >conftest.$ac_ext <<_ACEOF
3922 /* confdefs.h.  */
3923 _ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h.  */
3927 #include <string.h>
3928
3929 _ACEOF
3930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3931   $EGREP "memchr" >/dev/null 2>&1; then
3932   :
3933 else
3934   ac_cv_header_stdc=no
3935 fi
3936 rm -f conftest*
3937
3938 fi
3939
3940 if test $ac_cv_header_stdc = yes; then
3941   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3942   cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h.  */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h.  */
3948 #include <stdlib.h>
3949
3950 _ACEOF
3951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3952   $EGREP "free" >/dev/null 2>&1; then
3953   :
3954 else
3955   ac_cv_header_stdc=no
3956 fi
3957 rm -f conftest*
3958
3959 fi
3960
3961 if test $ac_cv_header_stdc = yes; then
3962   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3963   if test "$cross_compiling" = yes; then
3964   :
3965 else
3966   cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h.  */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h.  */
3972 #include <ctype.h>
3973 #include <stdlib.h>
3974 #if ((' ' & 0x0FF) == 0x020)
3975 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3976 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3977 #else
3978 # define ISLOWER(c) \
3979                    (('a' <= (c) && (c) <= 'i') \
3980                      || ('j' <= (c) && (c) <= 'r') \
3981                      || ('s' <= (c) && (c) <= 'z'))
3982 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3983 #endif
3984
3985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3986 int
3987 main ()
3988 {
3989   int i;
3990   for (i = 0; i < 256; i++)
3991     if (XOR (islower (i), ISLOWER (i))
3992         || toupper (i) != TOUPPER (i))
3993       return 2;
3994   return 0;
3995 }
3996 _ACEOF
3997 rm -f conftest$ac_exeext
3998 if { (ac_try="$ac_link"
3999 case "(($ac_try" in
4000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001   *) ac_try_echo=$ac_try;;
4002 esac
4003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004   (eval "$ac_link") 2>&5
4005   ac_status=$?
4006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4008   { (case "(($ac_try" in
4009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010   *) ac_try_echo=$ac_try;;
4011 esac
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013   (eval "$ac_try") 2>&5
4014   ac_status=$?
4015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016   (exit $ac_status); }; }; then
4017   :
4018 else
4019   echo "$as_me: program exited with status $ac_status" >&5
4020 echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4022
4023 ( exit $ac_status )
4024 ac_cv_header_stdc=no
4025 fi
4026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4027 fi
4028
4029
4030 fi
4031 fi
4032 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4033 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4034 if test $ac_cv_header_stdc = yes; then
4035
4036 cat >>confdefs.h <<\_ACEOF
4037 #define STDC_HEADERS 1
4038 _ACEOF
4039
4040 fi
4041
4042 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4053                   inttypes.h stdint.h unistd.h
4054 do
4055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4059   echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061   cat >conftest.$ac_ext <<_ACEOF
4062 /* confdefs.h.  */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h.  */
4067 $ac_includes_default
4068
4069 #include <$ac_header>
4070 _ACEOF
4071 rm -f conftest.$ac_objext
4072 if { (ac_try="$ac_compile"
4073 case "(($ac_try" in
4074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075   *) ac_try_echo=$ac_try;;
4076 esac
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078   (eval "$ac_compile") 2>conftest.er1
4079   ac_status=$?
4080   grep -v '^ *+' conftest.er1 >conftest.err
4081   rm -f conftest.er1
4082   cat conftest.err >&5
4083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084   (exit $ac_status); } &&
4085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4086   { (case "(($ac_try" in
4087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088   *) ac_try_echo=$ac_try;;
4089 esac
4090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091   (eval "$ac_try") 2>&5
4092   ac_status=$?
4093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); }; } &&
4095          { ac_try='test -s conftest.$ac_objext'
4096   { (case "(($ac_try" in
4097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098   *) ac_try_echo=$ac_try;;
4099 esac
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101   (eval "$ac_try") 2>&5
4102   ac_status=$?
4103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); }; }; then
4105   eval "$as_ac_Header=yes"
4106 else
4107   echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4109
4110         eval "$as_ac_Header=no"
4111 fi
4112
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114 fi
4115 ac_res=`eval echo '${'$as_ac_Header'}'`
4116                { echo "$as_me:$LINENO: result: $ac_res" >&5
4117 echo "${ECHO_T}$ac_res" >&6; }
4118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4119   cat >>confdefs.h <<_ACEOF
4120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4121 _ACEOF
4122
4123 fi
4124
4125 done
4126
4127
4128 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4129 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4130 if test "${ac_cv_c_bigendian+set}" = set; then
4131   echo $ECHO_N "(cached) $ECHO_C" >&6
4132 else
4133   # See if sys/param.h defines the BYTE_ORDER macro.
4134 cat >conftest.$ac_ext <<_ACEOF
4135 /* confdefs.h.  */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h.  */
4140 #include <sys/types.h>
4141 #include <sys/param.h>
4142
4143 int
4144 main ()
4145 {
4146 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4147  bogus endian macros
4148 #endif
4149
4150   ;
4151   return 0;
4152 }
4153 _ACEOF
4154 rm -f conftest.$ac_objext
4155 if { (ac_try="$ac_compile"
4156 case "(($ac_try" in
4157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158   *) ac_try_echo=$ac_try;;
4159 esac
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161   (eval "$ac_compile") 2>conftest.er1
4162   ac_status=$?
4163   grep -v '^ *+' conftest.er1 >conftest.err
4164   rm -f conftest.er1
4165   cat conftest.err >&5
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); } &&
4168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4169   { (case "(($ac_try" in
4170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171   *) ac_try_echo=$ac_try;;
4172 esac
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174   (eval "$ac_try") 2>&5
4175   ac_status=$?
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); }; } &&
4178          { ac_try='test -s conftest.$ac_objext'
4179   { (case "(($ac_try" in
4180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181   *) ac_try_echo=$ac_try;;
4182 esac
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184   (eval "$ac_try") 2>&5
4185   ac_status=$?
4186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187   (exit $ac_status); }; }; then
4188   # It does; now see whether it defined to BIG_ENDIAN or not.
4189 cat >conftest.$ac_ext <<_ACEOF
4190 /* confdefs.h.  */
4191 _ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h.  */
4195 #include <sys/types.h>
4196 #include <sys/param.h>
4197
4198 int
4199 main ()
4200 {
4201 #if BYTE_ORDER != BIG_ENDIAN
4202  not big endian
4203 #endif
4204
4205   ;
4206   return 0;
4207 }
4208 _ACEOF
4209 rm -f conftest.$ac_objext
4210 if { (ac_try="$ac_compile"
4211 case "(($ac_try" in
4212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213   *) ac_try_echo=$ac_try;;
4214 esac
4215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4216   (eval "$ac_compile") 2>conftest.er1
4217   ac_status=$?
4218   grep -v '^ *+' conftest.er1 >conftest.err
4219   rm -f conftest.er1
4220   cat conftest.err >&5
4221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222   (exit $ac_status); } &&
4223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4224   { (case "(($ac_try" in
4225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226   *) ac_try_echo=$ac_try;;
4227 esac
4228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229   (eval "$ac_try") 2>&5
4230   ac_status=$?
4231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); }; } &&
4233          { ac_try='test -s conftest.$ac_objext'
4234   { (case "(($ac_try" in
4235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236   *) ac_try_echo=$ac_try;;
4237 esac
4238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239   (eval "$ac_try") 2>&5
4240   ac_status=$?
4241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242   (exit $ac_status); }; }; then
4243   ac_cv_c_bigendian=yes
4244 else
4245   echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248         ac_cv_c_bigendian=no
4249 fi
4250
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252 else
4253   echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4255
4256         # It does not; compile a test program.
4257 if test "$cross_compiling" = yes; then
4258   # try to guess the endianness by grepping values into an object file
4259   ac_cv_c_bigendian=unknown
4260   cat >conftest.$ac_ext <<_ACEOF
4261 /* confdefs.h.  */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h.  */
4266 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4267 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4268 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4269 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4270 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4271 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4272 int
4273 main ()
4274 {
4275  _ascii (); _ebcdic ();
4276   ;
4277   return 0;
4278 }
4279 _ACEOF
4280 rm -f conftest.$ac_objext
4281 if { (ac_try="$ac_compile"
4282 case "(($ac_try" in
4283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284   *) ac_try_echo=$ac_try;;
4285 esac
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287   (eval "$ac_compile") 2>conftest.er1
4288   ac_status=$?
4289   grep -v '^ *+' conftest.er1 >conftest.err
4290   rm -f conftest.er1
4291   cat conftest.err >&5
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); } &&
4294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4295   { (case "(($ac_try" in
4296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297   *) ac_try_echo=$ac_try;;
4298 esac
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300   (eval "$ac_try") 2>&5
4301   ac_status=$?
4302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303   (exit $ac_status); }; } &&
4304          { ac_try='test -s conftest.$ac_objext'
4305   { (case "(($ac_try" in
4306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307   *) ac_try_echo=$ac_try;;
4308 esac
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310   (eval "$ac_try") 2>&5
4311   ac_status=$?
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); }; }; then
4314   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4315   ac_cv_c_bigendian=yes
4316 fi
4317 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4318   if test "$ac_cv_c_bigendian" = unknown; then
4319     ac_cv_c_bigendian=no
4320   else
4321     # finding both strings is unlikely to happen, but who knows?
4322     ac_cv_c_bigendian=unknown
4323   fi
4324 fi
4325 else
4326   echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4328
4329
4330 fi
4331
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333 else
4334   cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h.  */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h.  */
4340 $ac_includes_default
4341 int
4342 main ()
4343 {
4344
4345   /* Are we little or big endian?  From Harbison&Steele.  */
4346   union
4347   {
4348     long int l;
4349     char c[sizeof (long int)];
4350   } u;
4351   u.l = 1;
4352   return u.c[sizeof (long int) - 1] == 1;
4353
4354   ;
4355   return 0;
4356 }
4357 _ACEOF
4358 rm -f conftest$ac_exeext
4359 if { (ac_try="$ac_link"
4360 case "(($ac_try" in
4361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362   *) ac_try_echo=$ac_try;;
4363 esac
4364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365   (eval "$ac_link") 2>&5
4366   ac_status=$?
4367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4369   { (case "(($ac_try" in
4370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371   *) ac_try_echo=$ac_try;;
4372 esac
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374   (eval "$ac_try") 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); }; }; then
4378   ac_cv_c_bigendian=no
4379 else
4380   echo "$as_me: program exited with status $ac_status" >&5
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4383
4384 ( exit $ac_status )
4385 ac_cv_c_bigendian=yes
4386 fi
4387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4388 fi
4389
4390
4391 fi
4392
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394 fi
4395 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4396 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4397 case $ac_cv_c_bigendian in
4398   yes)
4399     ENDIAN=big
4400  ;;
4401   no)
4402     ENDIAN=little
4403  ;;
4404   *)
4405     { { echo "$as_me:$LINENO: error: unknown endianness
4406 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4407 echo "$as_me: error: unknown endianness
4408 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4409    { (exit 1); exit 1; }; } ;;
4410 esac
4411
4412
4413 if test "$cross_compiling" = yes; then
4414   LLVM_CROSS_COMPILING=1
4415
4416
4417 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4418 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4419 if test "${ac_cv_build_exeext+set}" = set; then
4420   echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4423   ac_cv_build_exeext=.exe
4424 else
4425   ac_build_prefix=${build_alias}-
4426
4427   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4428 set dummy ${ac_build_prefix}gcc; ac_word=$2
4429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434   if test -n "$BUILD_CC"; then
4435   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440   IFS=$as_save_IFS
4441   test -z "$as_dir" && as_dir=.
4442   for ac_exec_ext in '' $ac_executable_extensions; do
4443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4444     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446     break 2
4447   fi
4448 done
4449 done
4450 IFS=$as_save_IFS
4451
4452 fi
4453 fi
4454 BUILD_CC=$ac_cv_prog_BUILD_CC
4455 if test -n "$BUILD_CC"; then
4456   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4457 echo "${ECHO_T}$BUILD_CC" >&6; }
4458 else
4459   { echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6; }
4461 fi
4462
4463
4464   if test -z "$BUILD_CC"; then
4465      # Extract the first word of "gcc", so it can be a program name with args.
4466 set dummy gcc; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   if test -n "$BUILD_CC"; then
4473   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478   IFS=$as_save_IFS
4479   test -z "$as_dir" && as_dir=.
4480   for ac_exec_ext in '' $ac_executable_extensions; do
4481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4482     ac_cv_prog_BUILD_CC="gcc"
4483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484     break 2
4485   fi
4486 done
4487 done
4488 IFS=$as_save_IFS
4489
4490 fi
4491 fi
4492 BUILD_CC=$ac_cv_prog_BUILD_CC
4493 if test -n "$BUILD_CC"; then
4494   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4495 echo "${ECHO_T}$BUILD_CC" >&6; }
4496 else
4497   { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4499 fi
4500
4501
4502      if test -z "$BUILD_CC"; then
4503        # Extract the first word of "cc", so it can be a program name with args.
4504 set dummy cc; ac_word=$2
4505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4507 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4508   echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510   if test -n "$BUILD_CC"; then
4511   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4512 else
4513   ac_prog_rejected=no
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4516 do
4517   IFS=$as_save_IFS
4518   test -z "$as_dir" && as_dir=.
4519   for ac_exec_ext in '' $ac_executable_extensions; do
4520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4521     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4522        ac_prog_rejected=yes
4523        continue
4524      fi
4525     ac_cv_prog_BUILD_CC="cc"
4526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527     break 2
4528   fi
4529 done
4530 done
4531 IFS=$as_save_IFS
4532
4533 if test $ac_prog_rejected = yes; then
4534   # We found a bogon in the path, so make sure we never use it.
4535   set dummy $ac_cv_prog_BUILD_CC
4536   shift
4537   if test $# != 0; then
4538     # We chose a different compiler from the bogus one.
4539     # However, it has the same basename, so the bogon will be chosen
4540     # first if we set BUILD_CC to just the basename; use the full file name.
4541     shift
4542     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4543   fi
4544 fi
4545 fi
4546 fi
4547 BUILD_CC=$ac_cv_prog_BUILD_CC
4548 if test -n "$BUILD_CC"; then
4549   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4550 echo "${ECHO_T}$BUILD_CC" >&6; }
4551 else
4552   { echo "$as_me:$LINENO: result: no" >&5
4553 echo "${ECHO_T}no" >&6; }
4554 fi
4555
4556
4557      fi
4558   fi
4559   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4560 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4561    { (exit 1); exit 1; }; }
4562   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4563   rm -f conftest*
4564   echo 'int main () { return 0; }' > conftest.$ac_ext
4565   ac_cv_build_exeext=
4566   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4567   (eval $ac_build_link) 2>&5
4568   ac_status=$?
4569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570   (exit $ac_status); }; then
4571     for file in conftest.*; do
4572       case $file in
4573       *.c | *.o | *.obj | *.dSYM) ;;
4574       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4575       esac
4576     done
4577   else
4578     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4579 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4580    { (exit 1); exit 1; }; }
4581   fi
4582   rm -f conftest*
4583   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4584 fi
4585 fi
4586
4587 BUILD_EXEEXT=""
4588 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4589 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4590 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4591 ac_build_exeext=$BUILD_EXEEXT
4592
4593   ac_build_prefix=${build_alias}-
4594   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4595 set dummy ${ac_build_prefix}g++; ac_word=$2
4596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4598 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601   if test -n "$BUILD_CXX"; then
4602   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609   for ac_exec_ext in '' $ac_executable_extensions; do
4610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4611     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616 done
4617 IFS=$as_save_IFS
4618
4619 fi
4620 fi
4621 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4622 if test -n "$BUILD_CXX"; then
4623   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4624 echo "${ECHO_T}$BUILD_CXX" >&6; }
4625 else
4626   { echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6; }
4628 fi
4629
4630
4631   if test -z "$BUILD_CXX"; then
4632      # Extract the first word of "g++", so it can be a program name with args.
4633 set dummy g++; ac_word=$2
4634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4636 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4637   echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639   if test -n "$BUILD_CXX"; then
4640   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645   IFS=$as_save_IFS
4646   test -z "$as_dir" && as_dir=.
4647   for ac_exec_ext in '' $ac_executable_extensions; do
4648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4649     ac_cv_prog_BUILD_CXX="g++"
4650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651     break 2
4652   fi
4653 done
4654 done
4655 IFS=$as_save_IFS
4656
4657 fi
4658 fi
4659 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4660 if test -n "$BUILD_CXX"; then
4661   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4662 echo "${ECHO_T}$BUILD_CXX" >&6; }
4663 else
4664   { echo "$as_me:$LINENO: result: no" >&5
4665 echo "${ECHO_T}no" >&6; }
4666 fi
4667
4668
4669      if test -z "$BUILD_CXX"; then
4670        # Extract the first word of "c++", so it can be a program name with args.
4671 set dummy c++; ac_word=$2
4672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4674 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4675   echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677   if test -n "$BUILD_CXX"; then
4678   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4679 else
4680   ac_prog_rejected=no
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4683 do
4684   IFS=$as_save_IFS
4685   test -z "$as_dir" && as_dir=.
4686   for ac_exec_ext in '' $ac_executable_extensions; do
4687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4688     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4689        ac_prog_rejected=yes
4690        continue
4691      fi
4692     ac_cv_prog_BUILD_CXX="c++"
4693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4694     break 2
4695   fi
4696 done
4697 done
4698 IFS=$as_save_IFS
4699
4700 if test $ac_prog_rejected = yes; then
4701   # We found a bogon in the path, so make sure we never use it.
4702   set dummy $ac_cv_prog_BUILD_CXX
4703   shift
4704   if test $# != 0; then
4705     # We chose a different compiler from the bogus one.
4706     # However, it has the same basename, so the bogon will be chosen
4707     # first if we set BUILD_CXX to just the basename; use the full file name.
4708     shift
4709     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4710   fi
4711 fi
4712 fi
4713 fi
4714 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4715 if test -n "$BUILD_CXX"; then
4716   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4717 echo "${ECHO_T}$BUILD_CXX" >&6; }
4718 else
4719   { echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6; }
4721 fi
4722
4723
4724      fi
4725   fi
4726 else
4727   LLVM_CROSS_COMPILING=0
4728
4729 fi
4730
4731 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4732   cvsbuild="yes"
4733   optimize="no"
4734   CVSBUILD=CVSBUILD=1
4735
4736 else
4737   cvsbuild="no"
4738   optimize="yes"
4739 fi
4740
4741
4742 # Check whether --enable-optimized was given.
4743 if test "${enable_optimized+set}" = set; then
4744   enableval=$enable_optimized;
4745 else
4746   enableval=$optimize
4747 fi
4748
4749 if test ${enableval} = "no" ; then
4750   ENABLE_OPTIMIZED=
4751
4752 else
4753   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4754
4755 fi
4756
4757 # Check whether --enable-profiling was given.
4758 if test "${enable_profiling+set}" = set; then
4759   enableval=$enable_profiling;
4760 else
4761   enableval="no"
4762 fi
4763
4764 if test ${enableval} = "no" ; then
4765   ENABLE_PROFILING=
4766
4767 else
4768   ENABLE_PROFILING=ENABLE_PROFILING=1
4769
4770 fi
4771
4772 # Check whether --enable-assertions was given.
4773 if test "${enable_assertions+set}" = set; then
4774   enableval=$enable_assertions;
4775 else
4776   enableval="yes"
4777 fi
4778
4779 if test ${enableval} = "yes" ; then
4780   DISABLE_ASSERTIONS=
4781
4782 else
4783   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4784
4785 fi
4786
4787 # Check whether --enable-expensive-checks was given.
4788 if test "${enable_expensive_checks+set}" = set; then
4789   enableval=$enable_expensive_checks;
4790 else
4791   enableval="no"
4792 fi
4793
4794 if test ${enableval} = "yes" ; then
4795   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4796
4797   EXPENSIVE_CHECKS=yes
4798
4799 else
4800   ENABLE_EXPENSIVE_CHECKS=
4801
4802   EXPENSIVE_CHECKS=no
4803
4804 fi
4805
4806 # Check whether --enable-debug-runtime was given.
4807 if test "${enable_debug_runtime+set}" = set; then
4808   enableval=$enable_debug_runtime;
4809 else
4810   enableval=no
4811 fi
4812
4813 if test ${enableval} = "no" ; then
4814   DEBUG_RUNTIME=
4815
4816 else
4817   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4818
4819 fi
4820
4821 # Check whether --enable-jit was given.
4822 if test "${enable_jit+set}" = set; then
4823   enableval=$enable_jit;
4824 else
4825   enableval=default
4826 fi
4827
4828 if test ${enableval} = "no"
4829 then
4830   JIT=
4831
4832 else
4833   case "$llvm_cv_target_arch" in
4834     x86)     TARGET_HAS_JIT=1
4835  ;;
4836     Sparc)   TARGET_HAS_JIT=0
4837  ;;
4838     PowerPC) TARGET_HAS_JIT=1
4839  ;;
4840     x86_64)  TARGET_HAS_JIT=1
4841  ;;
4842     Alpha)   TARGET_HAS_JIT=1
4843  ;;
4844     IA64)    TARGET_HAS_JIT=0
4845  ;;
4846     ARM)     TARGET_HAS_JIT=0
4847  ;;
4848     Mips)    TARGET_HAS_JIT=0
4849  ;;
4850     PIC16)   TARGET_HAS_JIT=0
4851  ;;
4852     XCore)   TARGET_HAS_JIT=0
4853  ;;
4854     MSP430)  TARGET_HAS_JIT=0
4855  ;;
4856     *)       TARGET_HAS_JIT=0
4857  ;;
4858   esac
4859 fi
4860
4861 # Check whether --enable-doxygen was given.
4862 if test "${enable_doxygen+set}" = set; then
4863   enableval=$enable_doxygen;
4864 else
4865   enableval=default
4866 fi
4867
4868 case "$enableval" in
4869   yes) ENABLE_DOXYGEN=1
4870  ;;
4871   no)  ENABLE_DOXYGEN=0
4872  ;;
4873   default) ENABLE_DOXYGEN=0
4874  ;;
4875   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4876 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4877    { (exit 1); exit 1; }; } ;;
4878 esac
4879
4880 # Check whether --enable-threads was given.
4881 if test "${enable_threads+set}" = set; then
4882   enableval=$enable_threads;
4883 else
4884   enableval=default
4885 fi
4886
4887 case "$enableval" in
4888   yes) ENABLE_THREADS=1
4889  ;;
4890   no)  ENABLE_THREADS=0
4891  ;;
4892   default) ENABLE_THREADS=1
4893  ;;
4894   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4895 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4896    { (exit 1); exit 1; }; } ;;
4897 esac
4898
4899 cat >>confdefs.h <<_ACEOF
4900 #define ENABLE_THREADS $ENABLE_THREADS
4901 _ACEOF
4902
4903
4904 # Check whether --enable-pic was given.
4905 if test "${enable_pic+set}" = set; then
4906   enableval=$enable_pic;
4907 else
4908   enableval=default
4909 fi
4910
4911 case "$enableval" in
4912   yes) ENABLE_PIC=1
4913  ;;
4914   no)  ENABLE_PIC=0
4915  ;;
4916   default) ENABLE_PIC=1
4917  ;;
4918   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4920    { (exit 1); exit 1; }; } ;;
4921 esac
4922
4923 cat >>confdefs.h <<_ACEOF
4924 #define ENABLE_PIC $ENABLE_PIC
4925 _ACEOF
4926
4927
4928 TARGETS_TO_BUILD=""
4929 # Check whether --enable-targets was given.
4930 if test "${enable_targets+set}" = set; then
4931   enableval=$enable_targets;
4932 else
4933   enableval=all
4934 fi
4935
4936 case "$enableval" in
4937   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
4938   host-only)
4939     case "$llvm_cv_target_arch" in
4940       x86)     TARGETS_TO_BUILD="X86" ;;
4941       x86_64)  TARGETS_TO_BUILD="X86" ;;
4942       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4943       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4944       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4945       IA64)    TARGETS_TO_BUILD="IA64" ;;
4946       ARM)     TARGETS_TO_BUILD="ARM" ;;
4947       Mips)    TARGETS_TO_BUILD="Mips" ;;
4948       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4949       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4950       XCore)   TARGETS_TO_BUILD="XCore" ;;
4951       MSP430)  TARGETS_TO_BUILD="MSP430" ;;
4952       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4953 echo "$as_me: error: Can not set target to build" >&2;}
4954    { (exit 1); exit 1; }; } ;;
4955     esac
4956     ;;
4957   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4958       case "$a_target" in
4959         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4960         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4961         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4962         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4963         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4964         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4965         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4966         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4967         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4968         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4969         xcore)   TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4970         msp430)  TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4971         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4972         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4973         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4974         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4975 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4976    { (exit 1); exit 1; }; } ;;
4977       esac
4978   done
4979   ;;
4980 esac
4981 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4982
4983
4984 # Determine whether we are building LLVM support for the native architecture.
4985 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4986 for a_target in $TARGETS_TO_BUILD; do
4987   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4988     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4989
4990 cat >>confdefs.h <<_ACEOF
4991 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4992 _ACEOF
4993
4994   fi
4995 done
4996
4997 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4998 # Targets.def and AsmPrinters.def.
4999 LLVM_ENUM_TARGETS=""
5000 LLVM_ENUM_ASM_PRINTERS=""
5001 for target_to_build in $TARGETS_TO_BUILD; do
5002   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5003   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5004     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5005   fi
5006 done
5007
5008
5009
5010 # Check whether --enable-cbe-printf-a was given.
5011 if test "${enable_cbe_printf_a+set}" = set; then
5012   enableval=$enable_cbe_printf_a;
5013 else
5014   enableval=default
5015 fi
5016
5017 case "$enableval" in
5018   yes) ENABLE_CBE_PRINTF_A=1
5019  ;;
5020   no)  ENABLE_CBE_PRINTF_A=0
5021  ;;
5022   default)  ENABLE_CBE_PRINTF_A=1
5023  ;;
5024   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5025 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5026    { (exit 1); exit 1; }; } ;;
5027 esac
5028
5029 cat >>confdefs.h <<_ACEOF
5030 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5031 _ACEOF
5032
5033
5034
5035 # Check whether --with-llvmgccdir was given.
5036 if test "${with_llvmgccdir+set}" = set; then
5037   withval=$with_llvmgccdir;
5038 else
5039   withval=default
5040 fi
5041
5042 case "$withval" in
5043   default) WITH_LLVMGCCDIR=default ;;
5044   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5045   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5046 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5047    { (exit 1); exit 1; }; } ;;
5048 esac
5049
5050
5051 # Check whether --with-llvmgcc was given.
5052 if test "${with_llvmgcc+set}" = set; then
5053   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5054       WITH_LLVMGCCDIR=""
5055 fi
5056
5057
5058
5059 # Check whether --with-llvmgxx was given.
5060 if test "${with_llvmgxx+set}" = set; then
5061   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5062     WITH_LLVMGCCDIR=""
5063 fi
5064
5065
5066 if test -n "$LLVMGCC"; then
5067    LLVMGCCCOMMAND="$LLVMGCC"
5068 fi
5069
5070 if test -n "$LLVMGXX"; then
5071    LLVMGXXCOMMAND="$LLVMGXX"
5072 fi
5073
5074 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5075    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5076 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5077    { (exit 1); exit 1; }; };
5078 fi
5079
5080 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5081    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5082 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5083    { (exit 1); exit 1; }; };
5084 fi
5085
5086
5087 # Check whether --with-extra-options was given.
5088 if test "${with_extra_options+set}" = set; then
5089   withval=$with_extra_options;
5090 else
5091   withval=default
5092 fi
5093
5094 case "$withval" in
5095   default) EXTRA_OPTIONS= ;;
5096   *) EXTRA_OPTIONS=$withval ;;
5097 esac
5098 EXTRA_OPTIONS=$EXTRA_OPTIONS
5099
5100
5101 # Check whether --enable-bindings was given.
5102 if test "${enable_bindings+set}" = set; then
5103   enableval=$enable_bindings;
5104 else
5105   enableval=default
5106 fi
5107
5108 BINDINGS_TO_BUILD=""
5109 case "$enableval" in
5110   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5111   all ) BINDINGS_TO_BUILD="ocaml" ;;
5112   none | no) BINDINGS_TO_BUILD="" ;;
5113   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5114       case "$a_binding" in
5115         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5116         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5117 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5118    { (exit 1); exit 1; }; } ;;
5119       esac
5120   done
5121   ;;
5122 esac
5123
5124
5125 # Check whether --with-ocaml-libdir was given.
5126 if test "${with_ocaml_libdir+set}" = set; then
5127   withval=$with_ocaml_libdir;
5128 else
5129   withval=auto
5130 fi
5131
5132 case "$withval" in
5133   auto) with_ocaml_libdir="$withval" ;;
5134   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5135   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5136 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5137    { (exit 1); exit 1; }; } ;;
5138 esac
5139
5140
5141 # Check whether --with-binutils-include was given.
5142 if test "${with_binutils_include+set}" = set; then
5143   withval=$with_binutils_include;
5144 else
5145   withval=default
5146 fi
5147
5148 case "$withval" in
5149   default) WITH_BINUTILS_INCDIR=default ;;
5150   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5151   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5152 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5153    { (exit 1); exit 1; }; } ;;
5154 esac
5155 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5156   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5157
5158   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5159      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5160      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5161 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5162    { (exit 1); exit 1; }; };
5163   fi
5164 fi
5165
5166 # Check whether --enable-libffi was given.
5167 if test "${enable_libffi+set}" = set; then
5168   enableval=$enable_libffi;
5169 else
5170   enableval=yes
5171 fi
5172
5173 case "$enableval" in
5174   yes) llvm_cv_enable_libffi="yes" ;;
5175   no)  llvm_cv_enable_libffi="no"  ;;
5176   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5177 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5178    { (exit 1); exit 1; }; } ;;
5179 esac
5180
5181 if test "$llvm_cv_os_type" = "Win32" ; then
5182    llvmc_dynamic="yes"
5183 else
5184    llvmc_dynamic="no"
5185 fi
5186
5187 # Check whether --enable-llvmc-dynamic was given.
5188 if test "${enable_llvmc_dynamic+set}" = set; then
5189   enableval=$enable_llvmc_dynamic;
5190 else
5191   enableval=$llvmc_dynamic
5192 fi
5193
5194 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5195    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5196
5197 else
5198    ENABLE_LLVMC_DYNAMIC=
5199
5200 fi
5201
5202 # Check whether --enable-llvmc-dynamic-plugins was given.
5203 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5204   enableval=$enable_llvmc_dynamic_plugins;
5205 else
5206   enableval=yes
5207 fi
5208
5209 if test ${enableval} = "yes" ; then
5210    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5211
5212 else
5213    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5214
5215 fi
5216
5217
5218 ac_ext=c
5219 ac_cpp='$CPP $CPPFLAGS'
5220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5223 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5224 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5225 # On Suns, sometimes $CPP names a directory.
5226 if test -n "$CPP" && test -d "$CPP"; then
5227   CPP=
5228 fi
5229 if test -z "$CPP"; then
5230   if test "${ac_cv_prog_CPP+set}" = set; then
5231   echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233       # Double quotes because CPP needs to be expanded
5234     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5235     do
5236       ac_preproc_ok=false
5237 for ac_c_preproc_warn_flag in '' yes
5238 do
5239   # Use a header file that comes with gcc, so configuring glibc
5240   # with a fresh cross-compiler works.
5241   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5242   # <limits.h> exists even on freestanding compilers.
5243   # On the NeXT, cc -E runs the code through the compiler's parser,
5244   # not just through cpp. "Syntax error" is here to catch this case.
5245   cat >conftest.$ac_ext <<_ACEOF
5246 /* confdefs.h.  */
5247 _ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h.  */
5251 #ifdef __STDC__
5252 # include <limits.h>
5253 #else
5254 # include <assert.h>
5255 #endif
5256                      Syntax error
5257 _ACEOF
5258 if { (ac_try="$ac_cpp conftest.$ac_ext"
5259 case "(($ac_try" in
5260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261   *) ac_try_echo=$ac_try;;
5262 esac
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5265   ac_status=$?
5266   grep -v '^ *+' conftest.er1 >conftest.err
5267   rm -f conftest.er1
5268   cat conftest.err >&5
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); } >/dev/null; then
5271   if test -s conftest.err; then
5272     ac_cpp_err=$ac_c_preproc_warn_flag
5273     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5274   else
5275     ac_cpp_err=
5276   fi
5277 else
5278   ac_cpp_err=yes
5279 fi
5280 if test -z "$ac_cpp_err"; then
5281   :
5282 else
5283   echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5285
5286   # Broken: fails on valid input.
5287 continue
5288 fi
5289
5290 rm -f conftest.err conftest.$ac_ext
5291
5292   # OK, works on sane cases.  Now check whether nonexistent headers
5293   # can be detected and how.
5294   cat >conftest.$ac_ext <<_ACEOF
5295 /* confdefs.h.  */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h.  */
5300 #include <ac_nonexistent.h>
5301 _ACEOF
5302 if { (ac_try="$ac_cpp conftest.$ac_ext"
5303 case "(($ac_try" in
5304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305   *) ac_try_echo=$ac_try;;
5306 esac
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5309   ac_status=$?
5310   grep -v '^ *+' conftest.er1 >conftest.err
5311   rm -f conftest.er1
5312   cat conftest.err >&5
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); } >/dev/null; then
5315   if test -s conftest.err; then
5316     ac_cpp_err=$ac_c_preproc_warn_flag
5317     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5318   else
5319     ac_cpp_err=
5320   fi
5321 else
5322   ac_cpp_err=yes
5323 fi
5324 if test -z "$ac_cpp_err"; then
5325   # Broken: success on invalid input.
5326 continue
5327 else
5328   echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5330
5331   # Passes both tests.
5332 ac_preproc_ok=:
5333 break
5334 fi
5335
5336 rm -f conftest.err conftest.$ac_ext
5337
5338 done
5339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5340 rm -f conftest.err conftest.$ac_ext
5341 if $ac_preproc_ok; then
5342   break
5343 fi
5344
5345     done
5346     ac_cv_prog_CPP=$CPP
5347
5348 fi
5349   CPP=$ac_cv_prog_CPP
5350 else
5351   ac_cv_prog_CPP=$CPP
5352 fi
5353 { echo "$as_me:$LINENO: result: $CPP" >&5
5354 echo "${ECHO_T}$CPP" >&6; }
5355 ac_preproc_ok=false
5356 for ac_c_preproc_warn_flag in '' yes
5357 do
5358   # Use a header file that comes with gcc, so configuring glibc
5359   # with a fresh cross-compiler works.
5360   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5361   # <limits.h> exists even on freestanding compilers.
5362   # On the NeXT, cc -E runs the code through the compiler's parser,
5363   # not just through cpp. "Syntax error" is here to catch this case.
5364   cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h.  */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h.  */
5370 #ifdef __STDC__
5371 # include <limits.h>
5372 #else
5373 # include <assert.h>
5374 #endif
5375                      Syntax error
5376 _ACEOF
5377 if { (ac_try="$ac_cpp conftest.$ac_ext"
5378 case "(($ac_try" in
5379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380   *) ac_try_echo=$ac_try;;
5381 esac
5382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5384   ac_status=$?
5385   grep -v '^ *+' conftest.er1 >conftest.err
5386   rm -f conftest.er1
5387   cat conftest.err >&5
5388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389   (exit $ac_status); } >/dev/null; then
5390   if test -s conftest.err; then
5391     ac_cpp_err=$ac_c_preproc_warn_flag
5392     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5393   else
5394     ac_cpp_err=
5395   fi
5396 else
5397   ac_cpp_err=yes
5398 fi
5399 if test -z "$ac_cpp_err"; then
5400   :
5401 else
5402   echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5404
5405   # Broken: fails on valid input.
5406 continue
5407 fi
5408
5409 rm -f conftest.err conftest.$ac_ext
5410
5411   # OK, works on sane cases.  Now check whether nonexistent headers
5412   # can be detected and how.
5413   cat >conftest.$ac_ext <<_ACEOF
5414 /* confdefs.h.  */
5415 _ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h.  */
5419 #include <ac_nonexistent.h>
5420 _ACEOF
5421 if { (ac_try="$ac_cpp conftest.$ac_ext"
5422 case "(($ac_try" in
5423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424   *) ac_try_echo=$ac_try;;
5425 esac
5426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5428   ac_status=$?
5429   grep -v '^ *+' conftest.er1 >conftest.err
5430   rm -f conftest.er1
5431   cat conftest.err >&5
5432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433   (exit $ac_status); } >/dev/null; then
5434   if test -s conftest.err; then
5435     ac_cpp_err=$ac_c_preproc_warn_flag
5436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5437   else
5438     ac_cpp_err=
5439   fi
5440 else
5441   ac_cpp_err=yes
5442 fi
5443 if test -z "$ac_cpp_err"; then
5444   # Broken: success on invalid input.
5445 continue
5446 else
5447   echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5449
5450   # Passes both tests.
5451 ac_preproc_ok=:
5452 break
5453 fi
5454
5455 rm -f conftest.err conftest.$ac_ext
5456
5457 done
5458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5459 rm -f conftest.err conftest.$ac_ext
5460 if $ac_preproc_ok; then
5461   :
5462 else
5463   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5464 See \`config.log' for more details." >&5
5465 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5466 See \`config.log' for more details." >&2;}
5467    { (exit 1); exit 1; }; }
5468 fi
5469
5470 ac_ext=c
5471 ac_cpp='$CPP $CPPFLAGS'
5472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475
5476 ac_ext=c
5477 ac_cpp='$CPP $CPPFLAGS'
5478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5481 if test -n "$ac_tool_prefix"; then
5482   for ac_prog in gcc
5483   do
5484     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5488 if test "${ac_cv_prog_CC+set}" = set; then
5489   echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491   if test -n "$CC"; then
5492   ac_cv_prog_CC="$CC" # Let the user override the test.
5493 else
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5496 do
5497   IFS=$as_save_IFS
5498   test -z "$as_dir" && as_dir=.
5499   for ac_exec_ext in '' $ac_executable_extensions; do
5500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5501     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5503     break 2
5504   fi
5505 done
5506 done
5507 IFS=$as_save_IFS
5508
5509 fi
5510 fi
5511 CC=$ac_cv_prog_CC
5512 if test -n "$CC"; then
5513   { echo "$as_me:$LINENO: result: $CC" >&5
5514 echo "${ECHO_T}$CC" >&6; }
5515 else
5516   { echo "$as_me:$LINENO: result: no" >&5
5517 echo "${ECHO_T}no" >&6; }
5518 fi
5519
5520
5521     test -n "$CC" && break
5522   done
5523 fi
5524 if test -z "$CC"; then
5525   ac_ct_CC=$CC
5526   for ac_prog in gcc
5527 do
5528   # Extract the first word of "$ac_prog", so it can be a program name with args.
5529 set dummy $ac_prog; ac_word=$2
5530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5533   echo $ECHO_N "(cached) $ECHO_C" >&6
5534 else
5535   if test -n "$ac_ct_CC"; then
5536   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5540 do
5541   IFS=$as_save_IFS
5542   test -z "$as_dir" && as_dir=.
5543   for ac_exec_ext in '' $ac_executable_extensions; do
5544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5545     ac_cv_prog_ac_ct_CC="$ac_prog"
5546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5547     break 2
5548   fi
5549 done
5550 done
5551 IFS=$as_save_IFS
5552
5553 fi
5554 fi
5555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5556 if test -n "$ac_ct_CC"; then
5557   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5558 echo "${ECHO_T}$ac_ct_CC" >&6; }
5559 else
5560   { echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6; }
5562 fi
5563
5564
5565   test -n "$ac_ct_CC" && break
5566 done
5567
5568   if test "x$ac_ct_CC" = x; then
5569     CC=""
5570   else
5571     case $cross_compiling:$ac_tool_warned in
5572 yes:)
5573 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5574 whose name does not start with the host triplet.  If you think this
5575 configuration is useful to you, please write to autoconf@gnu.org." >&5
5576 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5577 whose name does not start with the host triplet.  If you think this
5578 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5579 ac_tool_warned=yes ;;
5580 esac
5581     CC=$ac_ct_CC
5582   fi
5583 fi
5584
5585
5586 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5587 See \`config.log' for more details." >&5
5588 echo "$as_me: error: no acceptable C compiler found in \$PATH
5589 See \`config.log' for more details." >&2;}
5590    { (exit 1); exit 1; }; }
5591
5592 # Provide some information about the compiler.
5593 echo "$as_me:$LINENO: checking for C compiler version" >&5
5594 ac_compiler=`set X $ac_compile; echo $2`
5595 { (ac_try="$ac_compiler --version >&5"
5596 case "(($ac_try" in
5597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598   *) ac_try_echo=$ac_try;;
5599 esac
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601   (eval "$ac_compiler --version >&5") 2>&5
5602   ac_status=$?
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); }
5605 { (ac_try="$ac_compiler -v >&5"
5606 case "(($ac_try" in
5607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608   *) ac_try_echo=$ac_try;;
5609 esac
5610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611   (eval "$ac_compiler -v >&5") 2>&5
5612   ac_status=$?
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); }
5615 { (ac_try="$ac_compiler -V >&5"
5616 case "(($ac_try" in
5617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618   *) ac_try_echo=$ac_try;;
5619 esac
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621   (eval "$ac_compiler -V >&5") 2>&5
5622   ac_status=$?
5623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624   (exit $ac_status); }
5625
5626 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5627 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5628 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5629   echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631   cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h.  */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h.  */
5637
5638 int
5639 main ()
5640 {
5641 #ifndef __GNUC__
5642        choke me
5643 #endif
5644
5645   ;
5646   return 0;
5647 }
5648 _ACEOF
5649 rm -f conftest.$ac_objext
5650 if { (ac_try="$ac_compile"
5651 case "(($ac_try" in
5652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653   *) ac_try_echo=$ac_try;;
5654 esac
5655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656   (eval "$ac_compile") 2>conftest.er1
5657   ac_status=$?
5658   grep -v '^ *+' conftest.er1 >conftest.err
5659   rm -f conftest.er1
5660   cat conftest.err >&5
5661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662   (exit $ac_status); } &&
5663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5664   { (case "(($ac_try" in
5665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666   *) ac_try_echo=$ac_try;;
5667 esac
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669   (eval "$ac_try") 2>&5
5670   ac_status=$?
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); }; } &&
5673          { ac_try='test -s conftest.$ac_objext'
5674   { (case "(($ac_try" in
5675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676   *) ac_try_echo=$ac_try;;
5677 esac
5678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5679   (eval "$ac_try") 2>&5
5680   ac_status=$?
5681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682   (exit $ac_status); }; }; then
5683   ac_compiler_gnu=yes
5684 else
5685   echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5687
5688         ac_compiler_gnu=no
5689 fi
5690
5691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5693
5694 fi
5695 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5696 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5697 GCC=`test $ac_compiler_gnu = yes && echo yes`
5698 ac_test_CFLAGS=${CFLAGS+set}
5699 ac_save_CFLAGS=$CFLAGS
5700 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5701 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5702 if test "${ac_cv_prog_cc_g+set}" = set; then
5703   echo $ECHO_N "(cached) $ECHO_C" >&6
5704 else
5705   ac_save_c_werror_flag=$ac_c_werror_flag
5706    ac_c_werror_flag=yes
5707    ac_cv_prog_cc_g=no
5708    CFLAGS="-g"
5709    cat >conftest.$ac_ext <<_ACEOF
5710 /* confdefs.h.  */
5711 _ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h.  */
5715
5716 int
5717 main ()
5718 {
5719
5720   ;
5721   return 0;
5722 }
5723 _ACEOF
5724 rm -f conftest.$ac_objext
5725 if { (ac_try="$ac_compile"
5726 case "(($ac_try" in
5727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728   *) ac_try_echo=$ac_try;;
5729 esac
5730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731   (eval "$ac_compile") 2>conftest.er1
5732   ac_status=$?
5733   grep -v '^ *+' conftest.er1 >conftest.err
5734   rm -f conftest.er1
5735   cat conftest.err >&5
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); } &&
5738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5739   { (case "(($ac_try" in
5740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741   *) ac_try_echo=$ac_try;;
5742 esac
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744   (eval "$ac_try") 2>&5
5745   ac_status=$?
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); }; } &&
5748          { ac_try='test -s conftest.$ac_objext'
5749   { (case "(($ac_try" in
5750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751   *) ac_try_echo=$ac_try;;
5752 esac
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754   (eval "$ac_try") 2>&5
5755   ac_status=$?
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); }; }; then
5758   ac_cv_prog_cc_g=yes
5759 else
5760   echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5762
5763         CFLAGS=""
5764       cat >conftest.$ac_ext <<_ACEOF
5765 /* confdefs.h.  */
5766 _ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h.  */
5770
5771 int
5772 main ()
5773 {
5774
5775   ;
5776   return 0;
5777 }
5778 _ACEOF
5779 rm -f conftest.$ac_objext
5780 if { (ac_try="$ac_compile"
5781 case "(($ac_try" in
5782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783   *) ac_try_echo=$ac_try;;
5784 esac
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786   (eval "$ac_compile") 2>conftest.er1
5787   ac_status=$?
5788   grep -v '^ *+' conftest.er1 >conftest.err
5789   rm -f conftest.er1
5790   cat conftest.err >&5
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); } &&
5793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5794   { (case "(($ac_try" in
5795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796   *) ac_try_echo=$ac_try;;
5797 esac
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799   (eval "$ac_try") 2>&5
5800   ac_status=$?
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); }; } &&
5803          { ac_try='test -s conftest.$ac_objext'
5804   { (case "(($ac_try" in
5805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806   *) ac_try_echo=$ac_try;;
5807 esac
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809   (eval "$ac_try") 2>&5
5810   ac_status=$?
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); }; }; then
5813   :
5814 else
5815   echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5817
5818         ac_c_werror_flag=$ac_save_c_werror_flag
5819          CFLAGS="-g"
5820          cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h.  */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h.  */
5826
5827 int
5828 main ()
5829 {
5830
5831   ;
5832   return 0;
5833 }
5834 _ACEOF
5835 rm -f conftest.$ac_objext
5836 if { (ac_try="$ac_compile"
5837 case "(($ac_try" in
5838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839   *) ac_try_echo=$ac_try;;
5840 esac
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842   (eval "$ac_compile") 2>conftest.er1
5843   ac_status=$?
5844   grep -v '^ *+' conftest.er1 >conftest.err
5845   rm -f conftest.er1
5846   cat conftest.err >&5
5847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848   (exit $ac_status); } &&
5849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5850   { (case "(($ac_try" in
5851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852   *) ac_try_echo=$ac_try;;
5853 esac
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855   (eval "$ac_try") 2>&5
5856   ac_status=$?
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); }; } &&
5859          { ac_try='test -s conftest.$ac_objext'
5860   { (case "(($ac_try" in
5861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862   *) ac_try_echo=$ac_try;;
5863 esac
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865   (eval "$ac_try") 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); }; }; then
5869   ac_cv_prog_cc_g=yes
5870 else
5871   echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5873
5874
5875 fi
5876
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 fi
5879
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881 fi
5882
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884    ac_c_werror_flag=$ac_save_c_werror_flag
5885 fi
5886 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5887 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5888 if test "$ac_test_CFLAGS" = set; then
5889   CFLAGS=$ac_save_CFLAGS
5890 elif test $ac_cv_prog_cc_g = yes; then
5891   if test "$GCC" = yes; then
5892     CFLAGS="-g -O2"
5893   else
5894     CFLAGS="-g"
5895   fi
5896 else
5897   if test "$GCC" = yes; then
5898     CFLAGS="-O2"
5899   else
5900     CFLAGS=
5901   fi
5902 fi
5903 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5904 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5905 if test "${ac_cv_prog_cc_c89+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   ac_cv_prog_cc_c89=no
5909 ac_save_CC=$CC
5910 cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h.  */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h.  */
5916 #include <stdarg.h>
5917 #include <stdio.h>
5918 #include <sys/types.h>
5919 #include <sys/stat.h>
5920 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5921 struct buf { int x; };
5922 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5923 static char *e (p, i)
5924      char **p;
5925      int i;
5926 {
5927   return p[i];
5928 }
5929 static char *f (char * (*g) (char **, int), char **p, ...)
5930 {
5931   char *s;
5932   va_list v;
5933   va_start (v,p);
5934   s = g (p, va_arg (v,int));
5935   va_end (v);
5936   return s;
5937 }
5938
5939 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5940    function prototypes and stuff, but not '\xHH' hex character constants.
5941    These don't provoke an error unfortunately, instead are silently treated
5942    as 'x'.  The following induces an error, until -std is added to get
5943    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5944    array size at least.  It's necessary to write '\x00'==0 to get something
5945    that's true only with -std.  */
5946 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5947
5948 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5949    inside strings and character constants.  */
5950 #define FOO(x) 'x'
5951 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5952
5953 int test (int i, double x);
5954 struct s1 {int (*f) (int a);};
5955 struct s2 {int (*f) (double a);};
5956 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5957 int argc;
5958 char **argv;
5959 int
5960 main ()
5961 {
5962 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5963   ;
5964   return 0;
5965 }
5966 _ACEOF
5967 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5968         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5969 do
5970   CC="$ac_save_CC $ac_arg"
5971   rm -f conftest.$ac_objext
5972 if { (ac_try="$ac_compile"
5973 case "(($ac_try" in
5974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975   *) ac_try_echo=$ac_try;;
5976 esac
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978   (eval "$ac_compile") 2>conftest.er1
5979   ac_status=$?
5980   grep -v '^ *+' conftest.er1 >conftest.err
5981   rm -f conftest.er1
5982   cat conftest.err >&5
5983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984   (exit $ac_status); } &&
5985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5986   { (case "(($ac_try" in
5987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988   *) ac_try_echo=$ac_try;;
5989 esac
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991   (eval "$ac_try") 2>&5
5992   ac_status=$?
5993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); }; } &&
5995          { ac_try='test -s conftest.$ac_objext'
5996   { (case "(($ac_try" in
5997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998   *) ac_try_echo=$ac_try;;
5999 esac
6000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001   (eval "$ac_try") 2>&5
6002   ac_status=$?
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); }; }; then
6005   ac_cv_prog_cc_c89=$ac_arg
6006 else
6007   echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6009
6010
6011 fi
6012
6013 rm -f core conftest.err conftest.$ac_objext
6014   test "x$ac_cv_prog_cc_c89" != "xno" && break
6015 done
6016 rm -f conftest.$ac_ext
6017 CC=$ac_save_CC
6018
6019 fi
6020 # AC_CACHE_VAL
6021 case "x$ac_cv_prog_cc_c89" in
6022   x)
6023     { echo "$as_me:$LINENO: result: none needed" >&5
6024 echo "${ECHO_T}none needed" >&6; } ;;
6025   xno)
6026     { echo "$as_me:$LINENO: result: unsupported" >&5
6027 echo "${ECHO_T}unsupported" >&6; } ;;
6028   *)
6029     CC="$CC $ac_cv_prog_cc_c89"
6030     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6031 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6032 esac
6033
6034
6035 ac_ext=c
6036 ac_cpp='$CPP $CPPFLAGS'
6037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6040
6041 ac_ext=cpp
6042 ac_cpp='$CXXCPP $CPPFLAGS'
6043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6046 if test -z "$CXX"; then
6047   if test -n "$CCC"; then
6048     CXX=$CCC
6049   else
6050     if test -n "$ac_tool_prefix"; then
6051   for ac_prog in g++
6052   do
6053     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6057 if test "${ac_cv_prog_CXX+set}" = set; then
6058   echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060   if test -n "$CXX"; then
6061   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6062 else
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6065 do
6066   IFS=$as_save_IFS
6067   test -z "$as_dir" && as_dir=.
6068   for ac_exec_ext in '' $ac_executable_extensions; do
6069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6070     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072     break 2
6073   fi
6074 done
6075 done
6076 IFS=$as_save_IFS
6077
6078 fi
6079 fi
6080 CXX=$ac_cv_prog_CXX
6081 if test -n "$CXX"; then
6082   { echo "$as_me:$LINENO: result: $CXX" >&5
6083 echo "${ECHO_T}$CXX" >&6; }
6084 else
6085   { echo "$as_me:$LINENO: result: no" >&5
6086 echo "${ECHO_T}no" >&6; }
6087 fi
6088
6089
6090     test -n "$CXX" && break
6091   done
6092 fi
6093 if test -z "$CXX"; then
6094   ac_ct_CXX=$CXX
6095   for ac_prog in g++
6096 do
6097   # Extract the first word of "$ac_prog", so it can be a program name with args.
6098 set dummy $ac_prog; ac_word=$2
6099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6101 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6102   echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104   if test -n "$ac_ct_CXX"; then
6105   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6106 else
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110   IFS=$as_save_IFS
6111   test -z "$as_dir" && as_dir=.
6112   for ac_exec_ext in '' $ac_executable_extensions; do
6113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6114     ac_cv_prog_ac_ct_CXX="$ac_prog"
6115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116     break 2
6117   fi
6118 done
6119 done
6120 IFS=$as_save_IFS
6121
6122 fi
6123 fi
6124 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6125 if test -n "$ac_ct_CXX"; then
6126   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6127 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6128 else
6129   { echo "$as_me:$LINENO: result: no" >&5
6130 echo "${ECHO_T}no" >&6; }
6131 fi
6132
6133
6134   test -n "$ac_ct_CXX" && break
6135 done
6136
6137   if test "x$ac_ct_CXX" = x; then
6138     CXX="g++"
6139   else
6140     case $cross_compiling:$ac_tool_warned in
6141 yes:)
6142 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6143 whose name does not start with the host triplet.  If you think this
6144 configuration is useful to you, please write to autoconf@gnu.org." >&5
6145 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6146 whose name does not start with the host triplet.  If you think this
6147 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6148 ac_tool_warned=yes ;;
6149 esac
6150     CXX=$ac_ct_CXX
6151   fi
6152 fi
6153
6154   fi
6155 fi
6156 # Provide some information about the compiler.
6157 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6158 ac_compiler=`set X $ac_compile; echo $2`
6159 { (ac_try="$ac_compiler --version >&5"
6160 case "(($ac_try" in
6161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162   *) ac_try_echo=$ac_try;;
6163 esac
6164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165   (eval "$ac_compiler --version >&5") 2>&5
6166   ac_status=$?
6167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); }
6169 { (ac_try="$ac_compiler -v >&5"
6170 case "(($ac_try" in
6171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172   *) ac_try_echo=$ac_try;;
6173 esac
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175   (eval "$ac_compiler -v >&5") 2>&5
6176   ac_status=$?
6177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178   (exit $ac_status); }
6179 { (ac_try="$ac_compiler -V >&5"
6180 case "(($ac_try" in
6181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182   *) ac_try_echo=$ac_try;;
6183 esac
6184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6185   (eval "$ac_compiler -V >&5") 2>&5
6186   ac_status=$?
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); }
6189
6190 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6191 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6192 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6193   echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195   cat >conftest.$ac_ext <<_ACEOF
6196 /* confdefs.h.  */
6197 _ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h.  */
6201
6202 int
6203 main ()
6204 {
6205 #ifndef __GNUC__
6206        choke me
6207 #endif
6208
6209   ;
6210   return 0;
6211 }
6212 _ACEOF
6213 rm -f conftest.$ac_objext
6214 if { (ac_try="$ac_compile"
6215 case "(($ac_try" in
6216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217   *) ac_try_echo=$ac_try;;
6218 esac
6219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220   (eval "$ac_compile") 2>conftest.er1
6221   ac_status=$?
6222   grep -v '^ *+' conftest.er1 >conftest.err
6223   rm -f conftest.er1
6224   cat conftest.err >&5
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); } &&
6227          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6228   { (case "(($ac_try" in
6229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230   *) ac_try_echo=$ac_try;;
6231 esac
6232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233   (eval "$ac_try") 2>&5
6234   ac_status=$?
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); }; } &&
6237          { ac_try='test -s conftest.$ac_objext'
6238   { (case "(($ac_try" in
6239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240   *) ac_try_echo=$ac_try;;
6241 esac
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243   (eval "$ac_try") 2>&5
6244   ac_status=$?
6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246   (exit $ac_status); }; }; then
6247   ac_compiler_gnu=yes
6248 else
6249   echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6251
6252         ac_compiler_gnu=no
6253 fi
6254
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6257
6258 fi
6259 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6260 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6261 GXX=`test $ac_compiler_gnu = yes && echo yes`
6262 ac_test_CXXFLAGS=${CXXFLAGS+set}
6263 ac_save_CXXFLAGS=$CXXFLAGS
6264 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6265 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6266 if test "${ac_cv_prog_cxx_g+set}" = set; then
6267   echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6270    ac_cxx_werror_flag=yes
6271    ac_cv_prog_cxx_g=no
6272    CXXFLAGS="-g"
6273    cat >conftest.$ac_ext <<_ACEOF
6274 /* confdefs.h.  */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h.  */
6279
6280 int
6281 main ()
6282 {
6283
6284   ;
6285   return 0;
6286 }
6287 _ACEOF
6288 rm -f conftest.$ac_objext
6289 if { (ac_try="$ac_compile"
6290 case "(($ac_try" in
6291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292   *) ac_try_echo=$ac_try;;
6293 esac
6294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6295   (eval "$ac_compile") 2>conftest.er1
6296   ac_status=$?
6297   grep -v '^ *+' conftest.er1 >conftest.err
6298   rm -f conftest.er1
6299   cat conftest.err >&5
6300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301   (exit $ac_status); } &&
6302          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6303   { (case "(($ac_try" in
6304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305   *) ac_try_echo=$ac_try;;
6306 esac
6307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308   (eval "$ac_try") 2>&5
6309   ac_status=$?
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); }; } &&
6312          { ac_try='test -s conftest.$ac_objext'
6313   { (case "(($ac_try" in
6314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315   *) ac_try_echo=$ac_try;;
6316 esac
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318   (eval "$ac_try") 2>&5
6319   ac_status=$?
6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); }; }; then
6322   ac_cv_prog_cxx_g=yes
6323 else
6324   echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6326
6327         CXXFLAGS=""
6328       cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h.  */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h.  */
6334
6335 int
6336 main ()
6337 {
6338
6339   ;
6340   return 0;
6341 }
6342 _ACEOF
6343 rm -f conftest.$ac_objext
6344 if { (ac_try="$ac_compile"
6345 case "(($ac_try" in
6346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347   *) ac_try_echo=$ac_try;;
6348 esac
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350   (eval "$ac_compile") 2>conftest.er1
6351   ac_status=$?
6352   grep -v '^ *+' conftest.er1 >conftest.err
6353   rm -f conftest.er1
6354   cat conftest.err >&5
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); } &&
6357          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6358   { (case "(($ac_try" in
6359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360   *) ac_try_echo=$ac_try;;
6361 esac
6362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6363   (eval "$ac_try") 2>&5
6364   ac_status=$?
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); }; } &&
6367          { ac_try='test -s conftest.$ac_objext'
6368   { (case "(($ac_try" in
6369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370   *) ac_try_echo=$ac_try;;
6371 esac
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373   (eval "$ac_try") 2>&5
6374   ac_status=$?
6375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376   (exit $ac_status); }; }; then
6377   :
6378 else
6379   echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6381
6382         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6383          CXXFLAGS="-g"
6384          cat >conftest.$ac_ext <<_ACEOF
6385 /* confdefs.h.  */
6386 _ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h.  */
6390
6391 int
6392 main ()
6393 {
6394
6395   ;
6396   return 0;
6397 }
6398 _ACEOF
6399 rm -f conftest.$ac_objext
6400 if { (ac_try="$ac_compile"
6401 case "(($ac_try" in
6402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403   *) ac_try_echo=$ac_try;;
6404 esac
6405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406   (eval "$ac_compile") 2>conftest.er1
6407   ac_status=$?
6408   grep -v '^ *+' conftest.er1 >conftest.err
6409   rm -f conftest.er1
6410   cat conftest.err >&5
6411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412   (exit $ac_status); } &&
6413          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6414   { (case "(($ac_try" in
6415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416   *) ac_try_echo=$ac_try;;
6417 esac
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419   (eval "$ac_try") 2>&5
6420   ac_status=$?
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); }; } &&
6423          { ac_try='test -s conftest.$ac_objext'
6424   { (case "(($ac_try" in
6425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426   *) ac_try_echo=$ac_try;;
6427 esac
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429   (eval "$ac_try") 2>&5
6430   ac_status=$?
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); }; }; then
6433   ac_cv_prog_cxx_g=yes
6434 else
6435   echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6437
6438
6439 fi
6440
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 fi
6443
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 fi
6446
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6449 fi
6450 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6451 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6452 if test "$ac_test_CXXFLAGS" = set; then
6453   CXXFLAGS=$ac_save_CXXFLAGS
6454 elif test $ac_cv_prog_cxx_g = yes; then
6455   if test "$GXX" = yes; then
6456     CXXFLAGS="-g -O2"
6457   else
6458     CXXFLAGS="-g"
6459   fi
6460 else
6461   if test "$GXX" = yes; then
6462     CXXFLAGS="-O2"
6463   else
6464     CXXFLAGS=
6465   fi
6466 fi
6467 ac_ext=c
6468 ac_cpp='$CPP $CPPFLAGS'
6469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6472
6473
6474 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6475 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6476 if test "${lt_cv_path_NM+set}" = set; then
6477   echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479   if test -n "$NM"; then
6480   # Let the user override the test.
6481   lt_cv_path_NM="$NM"
6482 else
6483   lt_nm_to_check="${ac_tool_prefix}nm"
6484   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6485     lt_nm_to_check="$lt_nm_to_check nm"
6486   fi
6487   for lt_tmp_nm in $lt_nm_to_check; do
6488     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6489     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6490       IFS="$lt_save_ifs"
6491       test -z "$ac_dir" && ac_dir=.
6492       tmp_nm="$ac_dir/$lt_tmp_nm"
6493       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6494         # Check to see if the nm accepts a BSD-compat flag.
6495         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6496         #   nm: unknown option "B" ignored
6497         # Tru64's nm complains that /dev/null is an invalid object file
6498         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6499         */dev/null* | *'Invalid file or object type'*)
6500           lt_cv_path_NM="$tmp_nm -B"
6501           break
6502           ;;
6503         *)
6504           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6505           */dev/null*)
6506             lt_cv_path_NM="$tmp_nm -p"
6507             break
6508             ;;
6509           *)
6510             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6511             continue # so that we can try to find one that supports BSD flags
6512             ;;
6513           esac
6514           ;;
6515         esac
6516       fi
6517     done
6518     IFS="$lt_save_ifs"
6519   done
6520   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6521 fi
6522 fi
6523 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6524 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6525 NM="$lt_cv_path_NM"
6526
6527
6528
6529 { echo "$as_me:$LINENO: checking for GNU make" >&5
6530 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6531 if test "${llvm_cv_gnu_make_command+set}" = set; then
6532   echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534   llvm_cv_gnu_make_command=''
6535  for a in "$MAKE" make gmake gnumake ; do
6536   if test -z "$a" ; then continue ; fi ;
6537   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6538   then
6539    llvm_cv_gnu_make_command=$a ;
6540    break;
6541   fi
6542  done
6543 fi
6544 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6545 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6546  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6547    ifGNUmake='' ;
6548  else
6549    ifGNUmake='#' ;
6550    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6551 echo "${ECHO_T}\"Not found\"" >&6; };
6552  fi
6553
6554
6555 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6556 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6557 LN_S=$as_ln_s
6558 if test "$LN_S" = "ln -s"; then
6559   { echo "$as_me:$LINENO: result: yes" >&5
6560 echo "${ECHO_T}yes" >&6; }
6561 else
6562   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6563 echo "${ECHO_T}no, using $LN_S" >&6; }
6564 fi
6565
6566 # Extract the first word of "cmp", so it can be a program name with args.
6567 set dummy cmp; ac_word=$2
6568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6570 if test "${ac_cv_path_CMP+set}" = set; then
6571   echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573   case $CMP in
6574   [\\/]* | ?:[\\/]*)
6575   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6576   ;;
6577   *)
6578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581   IFS=$as_save_IFS
6582   test -z "$as_dir" && as_dir=.
6583   for ac_exec_ext in '' $ac_executable_extensions; do
6584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6585     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587     break 2
6588   fi
6589 done
6590 done
6591 IFS=$as_save_IFS
6592
6593   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6594   ;;
6595 esac
6596 fi
6597 CMP=$ac_cv_path_CMP
6598 if test -n "$CMP"; then
6599   { echo "$as_me:$LINENO: result: $CMP" >&5
6600 echo "${ECHO_T}$CMP" >&6; }
6601 else
6602   { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6604 fi
6605
6606
6607 # Extract the first word of "cp", so it can be a program name with args.
6608 set dummy cp; ac_word=$2
6609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6611 if test "${ac_cv_path_CP+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614   case $CP in
6615   [\\/]* | ?:[\\/]*)
6616   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6617   ;;
6618   *)
6619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622   IFS=$as_save_IFS
6623   test -z "$as_dir" && as_dir=.
6624   for ac_exec_ext in '' $ac_executable_extensions; do
6625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6626     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6628     break 2
6629   fi
6630 done
6631 done
6632 IFS=$as_save_IFS
6633
6634   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6635   ;;
6636 esac
6637 fi
6638 CP=$ac_cv_path_CP
6639 if test -n "$CP"; then
6640   { echo "$as_me:$LINENO: result: $CP" >&5
6641 echo "${ECHO_T}$CP" >&6; }
6642 else
6643   { echo "$as_me:$LINENO: result: no" >&5
6644 echo "${ECHO_T}no" >&6; }
6645 fi
6646
6647
6648 # Extract the first word of "date", so it can be a program name with args.
6649 set dummy date; ac_word=$2
6650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6652 if test "${ac_cv_path_DATE+set}" = set; then
6653   echo $ECHO_N "(cached) $ECHO_C" >&6
6654 else
6655   case $DATE in
6656   [\\/]* | ?:[\\/]*)
6657   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6658   ;;
6659   *)
6660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in $PATH
6662 do
6663   IFS=$as_save_IFS
6664   test -z "$as_dir" && as_dir=.
6665   for ac_exec_ext in '' $ac_executable_extensions; do
6666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6667     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6669     break 2
6670   fi
6671 done
6672 done
6673 IFS=$as_save_IFS
6674
6675   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6676   ;;
6677 esac
6678 fi
6679 DATE=$ac_cv_path_DATE
6680 if test -n "$DATE"; then
6681   { echo "$as_me:$LINENO: result: $DATE" >&5
6682 echo "${ECHO_T}$DATE" >&6; }
6683 else
6684   { echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6; }
6686 fi
6687
6688
6689 # Extract the first word of "find", so it can be a program name with args.
6690 set dummy find; ac_word=$2
6691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6693 if test "${ac_cv_path_FIND+set}" = set; then
6694   echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696   case $FIND in
6697   [\\/]* | ?:[\\/]*)
6698   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6699   ;;
6700   *)
6701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704   IFS=$as_save_IFS
6705   test -z "$as_dir" && as_dir=.
6706   for ac_exec_ext in '' $ac_executable_extensions; do
6707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6708     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710     break 2
6711   fi
6712 done
6713 done
6714 IFS=$as_save_IFS
6715
6716   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6717   ;;
6718 esac
6719 fi
6720 FIND=$ac_cv_path_FIND
6721 if test -n "$FIND"; then
6722   { echo "$as_me:$LINENO: result: $FIND" >&5
6723 echo "${ECHO_T}$FIND" >&6; }
6724 else
6725   { echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6; }
6727 fi
6728
6729
6730 # Extract the first word of "grep", so it can be a program name with args.
6731 set dummy grep; ac_word=$2
6732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734 if test "${ac_cv_path_GREP+set}" = set; then
6735   echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737   case $GREP in
6738   [\\/]* | ?:[\\/]*)
6739   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6740   ;;
6741   *)
6742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745   IFS=$as_save_IFS
6746   test -z "$as_dir" && as_dir=.
6747   for ac_exec_ext in '' $ac_executable_extensions; do
6748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6749     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751     break 2
6752   fi
6753 done
6754 done
6755 IFS=$as_save_IFS
6756
6757   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6758   ;;
6759 esac
6760 fi
6761 GREP=$ac_cv_path_GREP
6762 if test -n "$GREP"; then
6763   { echo "$as_me:$LINENO: result: $GREP" >&5
6764 echo "${ECHO_T}$GREP" >&6; }
6765 else
6766   { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6768 fi
6769
6770
6771 # Extract the first word of "mkdir", so it can be a program name with args.
6772 set dummy mkdir; ac_word=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_path_MKDIR+set}" = set; then
6776   echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778   case $MKDIR in
6779   [\\/]* | ?:[\\/]*)
6780   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6781   ;;
6782   *)
6783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   test -z "$as_dir" && as_dir=.
6788   for ac_exec_ext in '' $ac_executable_extensions; do
6789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6790     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792     break 2
6793   fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6799   ;;
6800 esac
6801 fi
6802 MKDIR=$ac_cv_path_MKDIR
6803 if test -n "$MKDIR"; then
6804   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6805 echo "${ECHO_T}$MKDIR" >&6; }
6806 else
6807   { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6809 fi
6810
6811
6812 # Extract the first word of "mv", so it can be a program name with args.
6813 set dummy mv; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_MV+set}" = set; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   case $MV in
6820   [\\/]* | ?:[\\/]*)
6821   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6822   ;;
6823   *)
6824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829   for ac_exec_ext in '' $ac_executable_extensions; do
6830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6831     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6840   ;;
6841 esac
6842 fi
6843 MV=$ac_cv_path_MV
6844 if test -n "$MV"; then
6845   { echo "$as_me:$LINENO: result: $MV" >&5
6846 echo "${ECHO_T}$MV" >&6; }
6847 else
6848   { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6850 fi
6851
6852
6853 if test -n "$ac_tool_prefix"; then
6854   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_prog_RANLIB+set}" = set; then
6859   echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861   if test -n "$RANLIB"; then
6862   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867   IFS=$as_save_IFS
6868   test -z "$as_dir" && as_dir=.
6869   for ac_exec_ext in '' $ac_executable_extensions; do
6870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6871     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873     break 2
6874   fi
6875 done
6876 done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 RANLIB=$ac_cv_prog_RANLIB
6882 if test -n "$RANLIB"; then
6883   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6884 echo "${ECHO_T}$RANLIB" >&6; }
6885 else
6886   { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6888 fi
6889
6890
6891 fi
6892 if test -z "$ac_cv_prog_RANLIB"; then
6893   ac_ct_RANLIB=$RANLIB
6894   # Extract the first word of "ranlib", so it can be a program name with args.
6895 set dummy ranlib; ac_word=$2
6896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6899   echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901   if test -n "$ac_ct_RANLIB"; then
6902   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6903 else
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 for as_dir in $PATH
6906 do
6907   IFS=$as_save_IFS
6908   test -z "$as_dir" && as_dir=.
6909   for ac_exec_ext in '' $ac_executable_extensions; do
6910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6911     ac_cv_prog_ac_ct_RANLIB="ranlib"
6912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913     break 2
6914   fi
6915 done
6916 done
6917 IFS=$as_save_IFS
6918
6919 fi
6920 fi
6921 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6922 if test -n "$ac_ct_RANLIB"; then
6923   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6924 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6925 else
6926   { echo "$as_me:$LINENO: result: no" >&5
6927 echo "${ECHO_T}no" >&6; }
6928 fi
6929
6930   if test "x$ac_ct_RANLIB" = x; then
6931     RANLIB=":"
6932   else
6933     case $cross_compiling:$ac_tool_warned in
6934 yes:)
6935 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6936 whose name does not start with the host triplet.  If you think this
6937 configuration is useful to you, please write to autoconf@gnu.org." >&5
6938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6939 whose name does not start with the host triplet.  If you think this
6940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6941 ac_tool_warned=yes ;;
6942 esac
6943     RANLIB=$ac_ct_RANLIB
6944   fi
6945 else
6946   RANLIB="$ac_cv_prog_RANLIB"
6947 fi
6948
6949 # Extract the first word of "rm", so it can be a program name with args.
6950 set dummy rm; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_path_RM+set}" = set; then
6954   echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956   case $RM in
6957   [\\/]* | ?:[\\/]*)
6958   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6959   ;;
6960   *)
6961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964   IFS=$as_save_IFS
6965   test -z "$as_dir" && as_dir=.
6966   for ac_exec_ext in '' $ac_executable_extensions; do
6967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6968     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970     break 2
6971   fi
6972 done
6973 done
6974 IFS=$as_save_IFS
6975
6976   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6977   ;;
6978 esac
6979 fi
6980 RM=$ac_cv_path_RM
6981 if test -n "$RM"; then
6982   { echo "$as_me:$LINENO: result: $RM" >&5
6983 echo "${ECHO_T}$RM" >&6; }
6984 else
6985   { echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6; }
6987 fi
6988
6989
6990 # Extract the first word of "sed", so it can be a program name with args.
6991 set dummy sed; ac_word=$2
6992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6994 if test "${ac_cv_path_SED+set}" = set; then
6995   echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997   case $SED in
6998   [\\/]* | ?:[\\/]*)
6999   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7000   ;;
7001   *)
7002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005   IFS=$as_save_IFS
7006   test -z "$as_dir" && as_dir=.
7007   for ac_exec_ext in '' $ac_executable_extensions; do
7008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7009     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011     break 2
7012   fi
7013 done
7014 done
7015 IFS=$as_save_IFS
7016
7017   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7018   ;;
7019 esac
7020 fi
7021 SED=$ac_cv_path_SED
7022 if test -n "$SED"; then
7023   { echo "$as_me:$LINENO: result: $SED" >&5
7024 echo "${ECHO_T}$SED" >&6; }
7025 else
7026   { echo "$as_me:$LINENO: result: no" >&5
7027 echo "${ECHO_T}no" >&6; }
7028 fi
7029
7030
7031 # Extract the first word of "tar", so it can be a program name with args.
7032 set dummy tar; ac_word=$2
7033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035 if test "${ac_cv_path_TAR+set}" = set; then
7036   echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038   case $TAR in
7039   [\\/]* | ?:[\\/]*)
7040   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7041   ;;
7042   *)
7043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046   IFS=$as_save_IFS
7047   test -z "$as_dir" && as_dir=.
7048   for ac_exec_ext in '' $ac_executable_extensions; do
7049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7050     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052     break 2
7053   fi
7054 done
7055 done
7056 IFS=$as_save_IFS
7057
7058   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7059   ;;
7060 esac
7061 fi
7062 TAR=$ac_cv_path_TAR
7063 if test -n "$TAR"; then
7064   { echo "$as_me:$LINENO: result: $TAR" >&5
7065 echo "${ECHO_T}$TAR" >&6; }
7066 else
7067   { echo "$as_me:$LINENO: result: no" >&5
7068 echo "${ECHO_T}no" >&6; }
7069 fi
7070
7071
7072 # Extract the first word of "pwd", so it can be a program name with args.
7073 set dummy pwd; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_path_BINPWD+set}" = set; then
7077   echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079   case $BINPWD in
7080   [\\/]* | ?:[\\/]*)
7081   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7082   ;;
7083   *)
7084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087   IFS=$as_save_IFS
7088   test -z "$as_dir" && as_dir=.
7089   for ac_exec_ext in '' $ac_executable_extensions; do
7090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093     break 2
7094   fi
7095 done
7096 done
7097 IFS=$as_save_IFS
7098
7099   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7100   ;;
7101 esac
7102 fi
7103 BINPWD=$ac_cv_path_BINPWD
7104 if test -n "$BINPWD"; then
7105   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7106 echo "${ECHO_T}$BINPWD" >&6; }
7107 else
7108   { echo "$as_me:$LINENO: result: no" >&5
7109 echo "${ECHO_T}no" >&6; }
7110 fi
7111
7112
7113
7114 # Extract the first word of "Graphviz", so it can be a program name with args.
7115 set dummy Graphviz; ac_word=$2
7116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7118 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7119   echo $ECHO_N "(cached) $ECHO_C" >&6
7120 else
7121   case $GRAPHVIZ in
7122   [\\/]* | ?:[\\/]*)
7123   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7124   ;;
7125   *)
7126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129   IFS=$as_save_IFS
7130   test -z "$as_dir" && as_dir=.
7131   for ac_exec_ext in '' $ac_executable_extensions; do
7132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7133     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135     break 2
7136   fi
7137 done
7138 done
7139 IFS=$as_save_IFS
7140
7141   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7142   ;;
7143 esac
7144 fi
7145 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7146 if test -n "$GRAPHVIZ"; then
7147   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7148 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7149 else
7150   { echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6; }
7152 fi
7153
7154
7155 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7156
7157 cat >>confdefs.h <<\_ACEOF
7158 #define HAVE_GRAPHVIZ 1
7159 _ACEOF
7160
7161     if test "$llvm_cv_os_type" = "MingW" ; then
7162     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7163   fi
7164
7165 cat >>confdefs.h <<_ACEOF
7166 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7167 _ACEOF
7168
7169 fi
7170 # Extract the first word of "dot", so it can be a program name with args.
7171 set dummy dot; ac_word=$2
7172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174 if test "${ac_cv_path_DOT+set}" = set; then
7175   echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177   case $DOT in
7178   [\\/]* | ?:[\\/]*)
7179   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7180   ;;
7181   *)
7182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7184 do
7185   IFS=$as_save_IFS
7186   test -z "$as_dir" && as_dir=.
7187   for ac_exec_ext in '' $ac_executable_extensions; do
7188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7189     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191     break 2
7192   fi
7193 done
7194 done
7195 IFS=$as_save_IFS
7196
7197   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7198   ;;
7199 esac
7200 fi
7201 DOT=$ac_cv_path_DOT
7202 if test -n "$DOT"; then
7203   { echo "$as_me:$LINENO: result: $DOT" >&5
7204 echo "${ECHO_T}$DOT" >&6; }
7205 else
7206   { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7208 fi
7209
7210
7211 if test "$DOT" != "echo dot" ; then
7212
7213 cat >>confdefs.h <<\_ACEOF
7214 #define HAVE_DOT 1
7215 _ACEOF
7216
7217     if test "$llvm_cv_os_type" = "MingW" ; then
7218     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7219   fi
7220
7221 cat >>confdefs.h <<_ACEOF
7222 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7223 _ACEOF
7224
7225 fi
7226 # Extract the first word of "fdp", so it can be a program name with args.
7227 set dummy fdp; ac_word=$2
7228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7230 if test "${ac_cv_path_FDP+set}" = set; then
7231   echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233   case $FDP in
7234   [\\/]* | ?:[\\/]*)
7235   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7236   ;;
7237   *)
7238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241   IFS=$as_save_IFS
7242   test -z "$as_dir" && as_dir=.
7243   for ac_exec_ext in '' $ac_executable_extensions; do
7244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7245     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247     break 2
7248   fi
7249 done
7250 done
7251 IFS=$as_save_IFS
7252
7253   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7254   ;;
7255 esac
7256 fi
7257 FDP=$ac_cv_path_FDP
7258 if test -n "$FDP"; then
7259   { echo "$as_me:$LINENO: result: $FDP" >&5
7260 echo "${ECHO_T}$FDP" >&6; }
7261 else
7262   { echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6; }
7264 fi
7265
7266
7267 if test "$FDP" != "echo fdp" ; then
7268
7269 cat >>confdefs.h <<\_ACEOF
7270 #define HAVE_FDP 1
7271 _ACEOF
7272
7273     if test "$llvm_cv_os_type" = "MingW" ; then
7274     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7275   fi
7276
7277 cat >>confdefs.h <<_ACEOF
7278 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7279 _ACEOF
7280
7281 fi
7282 # Extract the first word of "neato", so it can be a program name with args.
7283 set dummy neato; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_path_NEATO+set}" = set; then
7287   echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289   case $NEATO in
7290   [\\/]* | ?:[\\/]*)
7291   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7292   ;;
7293   *)
7294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297   IFS=$as_save_IFS
7298   test -z "$as_dir" && as_dir=.
7299   for ac_exec_ext in '' $ac_executable_extensions; do
7300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303     break 2
7304   fi
7305 done
7306 done
7307 IFS=$as_save_IFS
7308
7309   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7310   ;;
7311 esac
7312 fi
7313 NEATO=$ac_cv_path_NEATO
7314 if test -n "$NEATO"; then
7315   { echo "$as_me:$LINENO: result: $NEATO" >&5
7316 echo "${ECHO_T}$NEATO" >&6; }
7317 else
7318   { echo "$as_me:$LINENO: result: no" >&5
7319 echo "${ECHO_T}no" >&6; }
7320 fi
7321
7322
7323 if test "$NEATO" != "echo neato" ; then
7324
7325 cat >>confdefs.h <<\_ACEOF
7326 #define HAVE_NEATO 1
7327 _ACEOF
7328
7329     if test "$llvm_cv_os_type" = "MingW" ; then
7330     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7331   fi
7332
7333 cat >>confdefs.h <<_ACEOF
7334 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7335 _ACEOF
7336
7337 fi
7338 # Extract the first word of "twopi", so it can be a program name with args.
7339 set dummy twopi; ac_word=$2
7340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7342 if test "${ac_cv_path_TWOPI+set}" = set; then
7343   echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345   case $TWOPI in
7346   [\\/]* | ?:[\\/]*)
7347   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7348   ;;
7349   *)
7350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353   IFS=$as_save_IFS
7354   test -z "$as_dir" && as_dir=.
7355   for ac_exec_ext in '' $ac_executable_extensions; do
7356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7357     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359     break 2
7360   fi
7361 done
7362 done
7363 IFS=$as_save_IFS
7364
7365   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7366   ;;
7367 esac
7368 fi
7369 TWOPI=$ac_cv_path_TWOPI
7370 if test -n "$TWOPI"; then
7371   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7372 echo "${ECHO_T}$TWOPI" >&6; }
7373 else
7374   { echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6; }
7376 fi
7377
7378
7379 if test "$TWOPI" != "echo twopi" ; then
7380
7381 cat >>confdefs.h <<\_ACEOF
7382 #define HAVE_TWOPI 1
7383 _ACEOF
7384
7385     if test "$llvm_cv_os_type" = "MingW" ; then
7386     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7387   fi
7388
7389 cat >>confdefs.h <<_ACEOF
7390 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7391 _ACEOF
7392
7393 fi
7394 # Extract the first word of "circo", so it can be a program name with args.
7395 set dummy circo; ac_word=$2
7396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7398 if test "${ac_cv_path_CIRCO+set}" = set; then
7399   echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401   case $CIRCO in
7402   [\\/]* | ?:[\\/]*)
7403   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7404   ;;
7405   *)
7406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409   IFS=$as_save_IFS
7410   test -z "$as_dir" && as_dir=.
7411   for ac_exec_ext in '' $ac_executable_extensions; do
7412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7413     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415     break 2
7416   fi
7417 done
7418 done
7419 IFS=$as_save_IFS
7420
7421   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7422   ;;
7423 esac
7424 fi
7425 CIRCO=$ac_cv_path_CIRCO
7426 if test -n "$CIRCO"; then
7427   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7428 echo "${ECHO_T}$CIRCO" >&6; }
7429 else
7430   { echo "$as_me:$LINENO: result: no" >&5
7431 echo "${ECHO_T}no" >&6; }
7432 fi
7433
7434
7435 if test "$CIRCO" != "echo circo" ; then
7436
7437 cat >>confdefs.h <<\_ACEOF
7438 #define HAVE_CIRCO 1
7439 _ACEOF
7440
7441     if test "$llvm_cv_os_type" = "MingW" ; then
7442     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7443   fi
7444
7445 cat >>confdefs.h <<_ACEOF
7446 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7447 _ACEOF
7448
7449 fi
7450 for ac_prog in gv gsview32
7451 do
7452   # Extract the first word of "$ac_prog", so it can be a program name with args.
7453 set dummy $ac_prog; ac_word=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_path_GV+set}" = set; then
7457   echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459   case $GV in
7460   [\\/]* | ?:[\\/]*)
7461   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7462   ;;
7463   *)
7464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 for as_dir in $PATH
7466 do
7467   IFS=$as_save_IFS
7468   test -z "$as_dir" && as_dir=.
7469   for ac_exec_ext in '' $ac_executable_extensions; do
7470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7471     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473     break 2
7474   fi
7475 done
7476 done
7477 IFS=$as_save_IFS
7478
7479   ;;
7480 esac
7481 fi
7482 GV=$ac_cv_path_GV
7483 if test -n "$GV"; then
7484   { echo "$as_me:$LINENO: result: $GV" >&5
7485 echo "${ECHO_T}$GV" >&6; }
7486 else
7487   { echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6; }
7489 fi
7490
7491
7492   test -n "$GV" && break
7493 done
7494 test -n "$GV" || GV="echo gv"
7495
7496 if test "$GV" != "echo gv" ; then
7497
7498 cat >>confdefs.h <<\_ACEOF
7499 #define HAVE_GV 1
7500 _ACEOF
7501
7502     if test "$llvm_cv_os_type" = "MingW" ; then
7503     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7504   fi
7505
7506 cat >>confdefs.h <<_ACEOF
7507 #define LLVM_PATH_GV "$GV${EXEEXT}"
7508 _ACEOF
7509
7510 fi
7511 # Extract the first word of "dotty", so it can be a program name with args.
7512 set dummy dotty; ac_word=$2
7513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7515 if test "${ac_cv_path_DOTTY+set}" = set; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   case $DOTTY in
7519   [\\/]* | ?:[\\/]*)
7520   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7521   ;;
7522   *)
7523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $PATH
7525 do
7526   IFS=$as_save_IFS
7527   test -z "$as_dir" && as_dir=.
7528   for ac_exec_ext in '' $ac_executable_extensions; do
7529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7530     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532     break 2
7533   fi
7534 done
7535 done
7536 IFS=$as_save_IFS
7537
7538   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7539   ;;
7540 esac
7541 fi
7542 DOTTY=$ac_cv_path_DOTTY
7543 if test -n "$DOTTY"; then
7544   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7545 echo "${ECHO_T}$DOTTY" >&6; }
7546 else
7547   { echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6; }
7549 fi
7550
7551
7552 if test "$DOTTY" != "echo dotty" ; then
7553
7554 cat >>confdefs.h <<\_ACEOF
7555 #define HAVE_DOTTY 1
7556 _ACEOF
7557
7558     if test "$llvm_cv_os_type" = "MingW" ; then
7559     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7560   fi
7561
7562 cat >>confdefs.h <<_ACEOF
7563 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7564 _ACEOF
7565
7566 fi
7567
7568
7569 # Extract the first word of "perl", so it can be a program name with args.
7570 set dummy perl; ac_word=$2
7571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7573 if test "${ac_cv_path_PERL+set}" = set; then
7574   echo $ECHO_N "(cached) $ECHO_C" >&6
7575 else
7576   case $PERL in
7577   [\\/]* | ?:[\\/]*)
7578   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7579   ;;
7580   *)
7581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584   IFS=$as_save_IFS
7585   test -z "$as_dir" && as_dir=.
7586   for ac_exec_ext in '' $ac_executable_extensions; do
7587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7588     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7590     break 2
7591   fi
7592 done
7593 done
7594 IFS=$as_save_IFS
7595
7596   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7597   ;;
7598 esac
7599 fi
7600 PERL=$ac_cv_path_PERL
7601 if test -n "$PERL"; then
7602   { echo "$as_me:$LINENO: result: $PERL" >&5
7603 echo "${ECHO_T}$PERL" >&6; }
7604 else
7605   { echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6; }
7607 fi
7608
7609
7610 if test "$PERL" != "none"; then
7611   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7612 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7613   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7614     { echo "$as_me:$LINENO: result: yes" >&5
7615 echo "${ECHO_T}yes" >&6; }
7616   else
7617     PERL=none
7618     { echo "$as_me:$LINENO: result: not found" >&5
7619 echo "${ECHO_T}not found" >&6; }
7620   fi
7621 fi
7622
7623
7624 if test x"$PERL" = xnone; then
7625    HAVE_PERL=0
7626
7627    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7628 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7629    { (exit 1); exit 1; }; }
7630 else
7631    HAVE_PERL=1
7632
7633 fi
7634
7635 # Find a good install program.  We prefer a C program (faster),
7636 # so one script is as good as another.  But avoid the broken or
7637 # incompatible versions:
7638 # SysV /etc/install, /usr/sbin/install
7639 # SunOS /usr/etc/install
7640 # IRIX /sbin/install
7641 # AIX /bin/install
7642 # AmigaOS /C/install, which installs bootblocks on floppy discs
7643 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7644 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7645 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7646 # OS/2's system install, which has a completely different semantic
7647 # ./install, which can be erroneously created by make from ./install.sh.
7648 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7649 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7650 if test -z "$INSTALL"; then
7651 if test "${ac_cv_path_install+set}" = set; then
7652   echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657   IFS=$as_save_IFS
7658   test -z "$as_dir" && as_dir=.
7659   # Account for people who put trailing slashes in PATH elements.
7660 case $as_dir/ in
7661   ./ | .// | /cC/* | \
7662   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7663   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7664   /usr/ucb/* ) ;;
7665   *)
7666     # OSF1 and SCO ODT 3.0 have their own names for install.
7667     # Don't use installbsd from OSF since it installs stuff as root
7668     # by default.
7669     for ac_prog in ginstall scoinst install; do
7670       for ac_exec_ext in '' $ac_executable_extensions; do
7671         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7672           if test $ac_prog = install &&
7673             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7674             # AIX install.  It has an incompatible calling convention.
7675             :
7676           elif test $ac_prog = install &&
7677             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7678             # program-specific install script used by HP pwplus--don't use.
7679             :
7680           else
7681             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7682             break 3
7683           fi
7684         fi
7685       done
7686     done
7687     ;;
7688 esac
7689 done
7690 IFS=$as_save_IFS
7691
7692
7693 fi
7694   if test "${ac_cv_path_install+set}" = set; then
7695     INSTALL=$ac_cv_path_install
7696   else
7697     # As a last resort, use the slow shell script.  Don't cache a
7698     # value for INSTALL within a source directory, because that will
7699     # break other packages using the cache if that directory is
7700     # removed, or if the value is a relative name.
7701     INSTALL=$ac_install_sh
7702   fi
7703 fi
7704 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7705 echo "${ECHO_T}$INSTALL" >&6; }
7706
7707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7708 # It thinks the first close brace ends the variable substitution.
7709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7710
7711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7712
7713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7714
7715
7716 # Extract the first word of "bzip2", so it can be a program name with args.
7717 set dummy bzip2; ac_word=$2
7718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7720 if test "${ac_cv_path_BZIP2+set}" = set; then
7721   echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7723   case $BZIP2 in
7724   [\\/]* | ?:[\\/]*)
7725   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7726   ;;
7727   *)
7728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 for as_dir in $PATH
7730 do
7731   IFS=$as_save_IFS
7732   test -z "$as_dir" && as_dir=.
7733   for ac_exec_ext in '' $ac_executable_extensions; do
7734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7735     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7737     break 2
7738   fi
7739 done
7740 done
7741 IFS=$as_save_IFS
7742
7743   ;;
7744 esac
7745 fi
7746 BZIP2=$ac_cv_path_BZIP2
7747 if test -n "$BZIP2"; then
7748   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7749 echo "${ECHO_T}$BZIP2" >&6; }
7750 else
7751   { echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6; }
7753 fi
7754
7755
7756 # Extract the first word of "doxygen", so it can be a program name with args.
7757 set dummy doxygen; ac_word=$2
7758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7760 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7761   echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763   case $DOXYGEN in
7764   [\\/]* | ?:[\\/]*)
7765   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7766   ;;
7767   *)
7768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 for as_dir in $PATH
7770 do
7771   IFS=$as_save_IFS
7772   test -z "$as_dir" && as_dir=.
7773   for ac_exec_ext in '' $ac_executable_extensions; do
7774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7775     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7777     break 2
7778   fi
7779 done
7780 done
7781 IFS=$as_save_IFS
7782
7783   ;;
7784 esac
7785 fi
7786 DOXYGEN=$ac_cv_path_DOXYGEN
7787 if test -n "$DOXYGEN"; then
7788   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7789 echo "${ECHO_T}$DOXYGEN" >&6; }
7790 else
7791   { echo "$as_me:$LINENO: result: no" >&5
7792 echo "${ECHO_T}no" >&6; }
7793 fi
7794
7795
7796 # Extract the first word of "groff", so it can be a program name with args.
7797 set dummy groff; ac_word=$2
7798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7800 if test "${ac_cv_path_GROFF+set}" = set; then
7801   echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803   case $GROFF in
7804   [\\/]* | ?:[\\/]*)
7805   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7806   ;;
7807   *)
7808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 for as_dir in $PATH
7810 do
7811   IFS=$as_save_IFS
7812   test -z "$as_dir" && as_dir=.
7813   for ac_exec_ext in '' $ac_executable_extensions; do
7814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7815     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7817     break 2
7818   fi
7819 done
7820 done
7821 IFS=$as_save_IFS
7822
7823   ;;
7824 esac
7825 fi
7826 GROFF=$ac_cv_path_GROFF
7827 if test -n "$GROFF"; then
7828   { echo "$as_me:$LINENO: result: $GROFF" >&5
7829 echo "${ECHO_T}$GROFF" >&6; }
7830 else
7831   { echo "$as_me:$LINENO: result: no" >&5
7832 echo "${ECHO_T}no" >&6; }
7833 fi
7834
7835
7836 # Extract the first word of "gzip", so it can be a program name with args.
7837 set dummy gzip; ac_word=$2
7838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7840 if test "${ac_cv_path_GZIP+set}" = set; then
7841   echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843   case $GZIP in
7844   [\\/]* | ?:[\\/]*)
7845   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7846   ;;
7847   *)
7848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH
7850 do
7851   IFS=$as_save_IFS
7852   test -z "$as_dir" && as_dir=.
7853   for ac_exec_ext in '' $ac_executable_extensions; do
7854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7855     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7857     break 2
7858   fi
7859 done
7860 done
7861 IFS=$as_save_IFS
7862
7863   ;;
7864 esac
7865 fi
7866 GZIP=$ac_cv_path_GZIP
7867 if test -n "$GZIP"; then
7868   { echo "$as_me:$LINENO: result: $GZIP" >&5
7869 echo "${ECHO_T}$GZIP" >&6; }
7870 else
7871   { echo "$as_me:$LINENO: result: no" >&5
7872 echo "${ECHO_T}no" >&6; }
7873 fi
7874
7875
7876 # Extract the first word of "pod2html", so it can be a program name with args.
7877 set dummy pod2html; ac_word=$2
7878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7880 if test "${ac_cv_path_POD2HTML+set}" = set; then
7881   echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883   case $POD2HTML in
7884   [\\/]* | ?:[\\/]*)
7885   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7886   ;;
7887   *)
7888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7890 do
7891   IFS=$as_save_IFS
7892   test -z "$as_dir" && as_dir=.
7893   for ac_exec_ext in '' $ac_executable_extensions; do
7894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7895     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7897     break 2
7898   fi
7899 done
7900 done
7901 IFS=$as_save_IFS
7902
7903   ;;
7904 esac
7905 fi
7906 POD2HTML=$ac_cv_path_POD2HTML
7907 if test -n "$POD2HTML"; then
7908   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7909 echo "${ECHO_T}$POD2HTML" >&6; }
7910 else
7911   { echo "$as_me:$LINENO: result: no" >&5
7912 echo "${ECHO_T}no" >&6; }
7913 fi
7914
7915
7916 # Extract the first word of "pod2man", so it can be a program name with args.
7917 set dummy pod2man; ac_word=$2
7918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7920 if test "${ac_cv_path_POD2MAN+set}" = set; then
7921   echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923   case $POD2MAN in
7924   [\\/]* | ?:[\\/]*)
7925   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7926   ;;
7927   *)
7928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 for as_dir in $PATH
7930 do
7931   IFS=$as_save_IFS
7932   test -z "$as_dir" && as_dir=.
7933   for ac_exec_ext in '' $ac_executable_extensions; do
7934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7935     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7937     break 2
7938   fi
7939 done
7940 done
7941 IFS=$as_save_IFS
7942
7943   ;;
7944 esac
7945 fi
7946 POD2MAN=$ac_cv_path_POD2MAN
7947 if test -n "$POD2MAN"; then
7948   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7949 echo "${ECHO_T}$POD2MAN" >&6; }
7950 else
7951   { echo "$as_me:$LINENO: result: no" >&5
7952 echo "${ECHO_T}no" >&6; }
7953 fi
7954
7955
7956 # Extract the first word of "runtest", so it can be a program name with args.
7957 set dummy runtest; ac_word=$2
7958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7960 if test "${ac_cv_path_RUNTEST+set}" = set; then
7961   echo $ECHO_N "(cached) $ECHO_C" >&6
7962 else
7963   case $RUNTEST in
7964   [\\/]* | ?:[\\/]*)
7965   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7966   ;;
7967   *)
7968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7970 do
7971   IFS=$as_save_IFS
7972   test -z "$as_dir" && as_dir=.
7973   for ac_exec_ext in '' $ac_executable_extensions; do
7974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7975     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7977     break 2
7978   fi
7979 done
7980 done
7981 IFS=$as_save_IFS
7982
7983   ;;
7984 esac
7985 fi
7986 RUNTEST=$ac_cv_path_RUNTEST
7987 if test -n "$RUNTEST"; then
7988   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7989 echo "${ECHO_T}$RUNTEST" >&6; }
7990 else
7991   { echo "$as_me:$LINENO: result: no" >&5
7992 echo "${ECHO_T}no" >&6; }
7993 fi
7994
7995
7996
7997 no_itcl=true
7998 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7999 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8000
8001 # Check whether --with-tclinclude was given.
8002 if test "${with_tclinclude+set}" = set; then
8003   withval=$with_tclinclude; with_tclinclude=${withval}
8004 else
8005   with_tclinclude=''
8006 fi
8007
8008 if test "${ac_cv_path_tclsh+set}" = set; then
8009   echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011
8012 if test x"${with_tclinclude}" != x ; then
8013   if test -f ${with_tclinclude}/tclsh ; then
8014     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8015   elif test -f ${with_tclinclude}/src/tclsh ; then
8016     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8017   else
8018     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8019 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8020    { (exit 1); exit 1; }; }
8021   fi
8022 fi
8023
8024 if test x"${ac_cv_path_tclsh}" = x ; then
8025   { echo "$as_me:$LINENO: result: none" >&5
8026 echo "${ECHO_T}none" >&6; }
8027   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
8028 do
8029   # Extract the first word of "$ac_prog", so it can be a program name with args.
8030 set dummy $ac_prog; ac_word=$2
8031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8033 if test "${ac_cv_path_TCLSH+set}" = set; then
8034   echo $ECHO_N "(cached) $ECHO_C" >&6
8035 else
8036   case $TCLSH in
8037   [\\/]* | ?:[\\/]*)
8038   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8039   ;;
8040   *)
8041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 for as_dir in $PATH
8043 do
8044   IFS=$as_save_IFS
8045   test -z "$as_dir" && as_dir=.
8046   for ac_exec_ext in '' $ac_executable_extensions; do
8047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8048     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8050     break 2
8051   fi
8052 done
8053 done
8054 IFS=$as_save_IFS
8055
8056   ;;
8057 esac
8058 fi
8059 TCLSH=$ac_cv_path_TCLSH
8060 if test -n "$TCLSH"; then
8061   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8062 echo "${ECHO_T}$TCLSH" >&6; }
8063 else
8064   { echo "$as_me:$LINENO: result: no" >&5
8065 echo "${ECHO_T}no" >&6; }
8066 fi
8067
8068
8069   test -n "$TCLSH" && break
8070 done
8071
8072   if test x"${TCLSH}" = x ; then
8073     ac_cv_path_tclsh='';
8074   else
8075     ac_cv_path_tclsh="${TCLSH}";
8076   fi
8077 else
8078   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8079 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8080   TCLSH="${ac_cv_path_tclsh}"
8081
8082 fi
8083
8084 fi
8085
8086 # Extract the first word of "zip", so it can be a program name with args.
8087 set dummy zip; ac_word=$2
8088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8090 if test "${ac_cv_path_ZIP+set}" = set; then
8091   echo $ECHO_N "(cached) $ECHO_C" >&6
8092 else
8093   case $ZIP in
8094   [\\/]* | ?:[\\/]*)
8095   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8096   ;;
8097   *)
8098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 for as_dir in $PATH
8100 do
8101   IFS=$as_save_IFS
8102   test -z "$as_dir" && as_dir=.
8103   for ac_exec_ext in '' $ac_executable_extensions; do
8104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8105     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8107     break 2
8108   fi
8109 done
8110 done
8111 IFS=$as_save_IFS
8112
8113   ;;
8114 esac
8115 fi
8116 ZIP=$ac_cv_path_ZIP
8117 if test -n "$ZIP"; then
8118   { echo "$as_me:$LINENO: result: $ZIP" >&5
8119 echo "${ECHO_T}$ZIP" >&6; }
8120 else
8121   { echo "$as_me:$LINENO: result: no" >&5
8122 echo "${ECHO_T}no" >&6; }
8123 fi
8124
8125
8126 for ac_prog in ocamlc
8127 do
8128   # Extract the first word of "$ac_prog", so it can be a program name with args.
8129 set dummy $ac_prog; ac_word=$2
8130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8132 if test "${ac_cv_path_OCAMLC+set}" = set; then
8133   echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135   case $OCAMLC in
8136   [\\/]* | ?:[\\/]*)
8137   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8138   ;;
8139   *)
8140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8142 do
8143   IFS=$as_save_IFS
8144   test -z "$as_dir" && as_dir=.
8145   for ac_exec_ext in '' $ac_executable_extensions; do
8146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8147     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8149     break 2
8150   fi
8151 done
8152 done
8153 IFS=$as_save_IFS
8154
8155   ;;
8156 esac
8157 fi
8158 OCAMLC=$ac_cv_path_OCAMLC
8159 if test -n "$OCAMLC"; then
8160   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8161 echo "${ECHO_T}$OCAMLC" >&6; }
8162 else
8163   { echo "$as_me:$LINENO: result: no" >&5
8164 echo "${ECHO_T}no" >&6; }
8165 fi
8166
8167
8168   test -n "$OCAMLC" && break
8169 done
8170
8171 for ac_prog in ocamlopt
8172 do
8173   # Extract the first word of "$ac_prog", so it can be a program name with args.
8174 set dummy $ac_prog; ac_word=$2
8175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8177 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8178   echo $ECHO_N "(cached) $ECHO_C" >&6
8179 else
8180   case $OCAMLOPT in
8181   [\\/]* | ?:[\\/]*)
8182   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8183   ;;
8184   *)
8185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 for as_dir in $PATH
8187 do
8188   IFS=$as_save_IFS
8189   test -z "$as_dir" && as_dir=.
8190   for ac_exec_ext in '' $ac_executable_extensions; do
8191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8192     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8194     break 2
8195   fi
8196 done
8197 done
8198 IFS=$as_save_IFS
8199
8200   ;;
8201 esac
8202 fi
8203 OCAMLOPT=$ac_cv_path_OCAMLOPT
8204 if test -n "$OCAMLOPT"; then
8205   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8206 echo "${ECHO_T}$OCAMLOPT" >&6; }
8207 else
8208   { echo "$as_me:$LINENO: result: no" >&5
8209 echo "${ECHO_T}no" >&6; }
8210 fi
8211
8212
8213   test -n "$OCAMLOPT" && break
8214 done
8215
8216 for ac_prog in ocamldep
8217 do
8218   # Extract the first word of "$ac_prog", so it can be a program name with args.
8219 set dummy $ac_prog; ac_word=$2
8220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8222 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8223   echo $ECHO_N "(cached) $ECHO_C" >&6
8224 else
8225   case $OCAMLDEP in
8226   [\\/]* | ?:[\\/]*)
8227   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8228   ;;
8229   *)
8230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 for as_dir in $PATH
8232 do
8233   IFS=$as_save_IFS
8234   test -z "$as_dir" && as_dir=.
8235   for ac_exec_ext in '' $ac_executable_extensions; do
8236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8237     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8239     break 2
8240   fi
8241 done
8242 done
8243 IFS=$as_save_IFS
8244
8245   ;;
8246 esac
8247 fi
8248 OCAMLDEP=$ac_cv_path_OCAMLDEP
8249 if test -n "$OCAMLDEP"; then
8250   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8251 echo "${ECHO_T}$OCAMLDEP" >&6; }
8252 else
8253   { echo "$as_me:$LINENO: result: no" >&5
8254 echo "${ECHO_T}no" >&6; }
8255 fi
8256
8257
8258   test -n "$OCAMLDEP" && break
8259 done
8260
8261 for ac_prog in ocamldoc
8262 do
8263   # Extract the first word of "$ac_prog", so it can be a program name with args.
8264 set dummy $ac_prog; ac_word=$2
8265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8267 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8268   echo $ECHO_N "(cached) $ECHO_C" >&6
8269 else
8270   case $OCAMLDOC in
8271   [\\/]* | ?:[\\/]*)
8272   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8273   ;;
8274   *)
8275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276 for as_dir in $PATH
8277 do
8278   IFS=$as_save_IFS
8279   test -z "$as_dir" && as_dir=.
8280   for ac_exec_ext in '' $ac_executable_extensions; do
8281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8282     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8284     break 2
8285   fi
8286 done
8287 done
8288 IFS=$as_save_IFS
8289
8290   ;;
8291 esac
8292 fi
8293 OCAMLDOC=$ac_cv_path_OCAMLDOC
8294 if test -n "$OCAMLDOC"; then
8295   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8296 echo "${ECHO_T}$OCAMLDOC" >&6; }
8297 else
8298   { echo "$as_me:$LINENO: result: no" >&5
8299 echo "${ECHO_T}no" >&6; }
8300 fi
8301
8302
8303   test -n "$OCAMLDOC" && break
8304 done
8305
8306 for ac_prog in gas as
8307 do
8308   # Extract the first word of "$ac_prog", so it can be a program name with args.
8309 set dummy $ac_prog; ac_word=$2
8310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8312 if test "${ac_cv_path_GAS+set}" = set; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315   case $GAS in
8316   [\\/]* | ?:[\\/]*)
8317   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8318   ;;
8319   *)
8320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 for as_dir in $PATH
8322 do
8323   IFS=$as_save_IFS
8324   test -z "$as_dir" && as_dir=.
8325   for ac_exec_ext in '' $ac_executable_extensions; do
8326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8327     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8329     break 2
8330   fi
8331 done
8332 done
8333 IFS=$as_save_IFS
8334
8335   ;;
8336 esac
8337 fi
8338 GAS=$ac_cv_path_GAS
8339 if test -n "$GAS"; then
8340   { echo "$as_me:$LINENO: result: $GAS" >&5
8341 echo "${ECHO_T}$GAS" >&6; }
8342 else
8343   { echo "$as_me:$LINENO: result: no" >&5
8344 echo "${ECHO_T}no" >&6; }
8345 fi
8346
8347
8348   test -n "$GAS" && break
8349 done
8350
8351
8352 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8353 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8354 if test "${llvm_cv_link_use_r+set}" = set; then
8355   echo $ECHO_N "(cached) $ECHO_C" >&6
8356 else
8357    ac_ext=c
8358 ac_cpp='$CPP $CPPFLAGS'
8359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8362
8363   oldcflags="$CFLAGS"
8364   CFLAGS="$CFLAGS -Wl,-R."
8365   cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h.  */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h.  */
8371
8372 int
8373 main ()
8374 {
8375 int main() { return 0; }
8376   ;
8377   return 0;
8378 }
8379 _ACEOF
8380 rm -f conftest.$ac_objext conftest$ac_exeext
8381 if { (ac_try="$ac_link"
8382 case "(($ac_try" in
8383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384   *) ac_try_echo=$ac_try;;
8385 esac
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387   (eval "$ac_link") 2>conftest.er1
8388   ac_status=$?
8389   grep -v '^ *+' conftest.er1 >conftest.err
8390   rm -f conftest.er1
8391   cat conftest.err >&5
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); } &&
8394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8395   { (case "(($ac_try" in
8396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397   *) ac_try_echo=$ac_try;;
8398 esac
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400   (eval "$ac_try") 2>&5
8401   ac_status=$?
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); }; } &&
8404          { ac_try='test -s conftest$ac_exeext'
8405   { (case "(($ac_try" in
8406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407   *) ac_try_echo=$ac_try;;
8408 esac
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410   (eval "$ac_try") 2>&5
8411   ac_status=$?
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); }; }; then
8414   llvm_cv_link_use_r=yes
8415 else
8416   echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8418
8419         llvm_cv_link_use_r=no
8420 fi
8421
8422 rm -f core conftest.err conftest.$ac_objext \
8423       conftest$ac_exeext conftest.$ac_ext
8424   CFLAGS="$oldcflags"
8425   ac_ext=c
8426 ac_cpp='$CPP $CPPFLAGS'
8427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8430
8431
8432 fi
8433 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8434 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8435 if test "$llvm_cv_link_use_r" = yes ; then
8436
8437 cat >>confdefs.h <<\_ACEOF
8438 #define HAVE_LINK_R 1
8439 _ACEOF
8440
8441   fi
8442
8443
8444 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8445 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8446 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8447   echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449    ac_ext=c
8450 ac_cpp='$CPP $CPPFLAGS'
8451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8454
8455   oldcflags="$CFLAGS"
8456   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8457   cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h.  */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h.  */
8463
8464 int
8465 main ()
8466 {
8467 int main() { return 0; }
8468   ;
8469   return 0;
8470 }
8471 _ACEOF
8472 rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (ac_try="$ac_link"
8474 case "(($ac_try" in
8475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476   *) ac_try_echo=$ac_try;;
8477 esac
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479   (eval "$ac_link") 2>conftest.er1
8480   ac_status=$?
8481   grep -v '^ *+' conftest.er1 >conftest.err
8482   rm -f conftest.er1
8483   cat conftest.err >&5
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); } &&
8486          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8487   { (case "(($ac_try" in
8488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489   *) ac_try_echo=$ac_try;;
8490 esac
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492   (eval "$ac_try") 2>&5
8493   ac_status=$?
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); }; } &&
8496          { ac_try='test -s conftest$ac_exeext'
8497   { (case "(($ac_try" in
8498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499   *) ac_try_echo=$ac_try;;
8500 esac
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502   (eval "$ac_try") 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); }; }; then
8506   llvm_cv_link_use_export_dynamic=yes
8507 else
8508   echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511         llvm_cv_link_use_export_dynamic=no
8512 fi
8513
8514 rm -f core conftest.err conftest.$ac_objext \
8515       conftest$ac_exeext conftest.$ac_ext
8516   CFLAGS="$oldcflags"
8517   ac_ext=c
8518 ac_cpp='$CPP $CPPFLAGS'
8519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8522
8523
8524 fi
8525 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8526 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8527 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8528
8529 cat >>confdefs.h <<\_ACEOF
8530 #define HAVE_LINK_EXPORT_DYNAMIC 1
8531 _ACEOF
8532
8533   fi
8534
8535
8536
8537
8538 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8539 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8540 if test "${ac_cv_c_const+set}" = set; then
8541   echo $ECHO_N "(cached) $ECHO_C" >&6
8542 else
8543   cat >conftest.$ac_ext <<_ACEOF
8544 /* confdefs.h.  */
8545 _ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h.  */
8549
8550 int
8551 main ()
8552 {
8553 /* FIXME: Include the comments suggested by Paul. */
8554 #ifndef __cplusplus
8555   /* Ultrix mips cc rejects this.  */
8556   typedef int charset[2];
8557   const charset x;
8558   /* SunOS 4.1.1 cc rejects this.  */
8559   char const *const *ccp;
8560   char **p;
8561   /* NEC SVR4.0.2 mips cc rejects this.  */
8562   struct point {int x, y;};
8563   static struct point const zero = {0,0};
8564   /* AIX XL C 1.02.0.0 rejects this.
8565      It does not let you subtract one const X* pointer from another in
8566      an arm of an if-expression whose if-part is not a constant
8567      expression */
8568   const char *g = "string";
8569   ccp = &g + (g ? g-g : 0);
8570   /* HPUX 7.0 cc rejects these. */
8571   ++ccp;
8572   p = (char**) ccp;
8573   ccp = (char const *const *) p;
8574   { /* SCO 3.2v4 cc rejects this.  */
8575     char *t;
8576     char const *s = 0 ? (char *) 0 : (char const *) 0;
8577
8578     *t++ = 0;
8579     if (s) return 0;
8580   }
8581   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8582     int x[] = {25, 17};
8583     const int *foo = &x[0];
8584     ++foo;
8585   }
8586   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8587     typedef const int *iptr;
8588     iptr p = 0;
8589     ++p;
8590   }
8591   { /* AIX XL C 1.02.0.0 rejects this saying
8592        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8593     struct s { int j; const int *ap[3]; };
8594     struct s *b; b->j = 5;
8595   }
8596   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8597     const int foo = 10;
8598     if (!foo) return 0;
8599   }
8600   return !x[0] && !zero.x;
8601 #endif
8602
8603   ;
8604   return 0;
8605 }
8606 _ACEOF
8607 rm -f conftest.$ac_objext
8608 if { (ac_try="$ac_compile"
8609 case "(($ac_try" in
8610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611   *) ac_try_echo=$ac_try;;
8612 esac
8613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614   (eval "$ac_compile") 2>conftest.er1
8615   ac_status=$?
8616   grep -v '^ *+' conftest.er1 >conftest.err
8617   rm -f conftest.er1
8618   cat conftest.err >&5
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } &&
8621          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8622   { (case "(($ac_try" in
8623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624   *) ac_try_echo=$ac_try;;
8625 esac
8626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627   (eval "$ac_try") 2>&5
8628   ac_status=$?
8629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630   (exit $ac_status); }; } &&
8631          { ac_try='test -s conftest.$ac_objext'
8632   { (case "(($ac_try" in
8633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634   *) ac_try_echo=$ac_try;;
8635 esac
8636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637   (eval "$ac_try") 2>&5
8638   ac_status=$?
8639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640   (exit $ac_status); }; }; then
8641   ac_cv_c_const=yes
8642 else
8643   echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8645
8646         ac_cv_c_const=no
8647 fi
8648
8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650 fi
8651 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8652 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8653 if test $ac_cv_c_const = no; then
8654
8655 cat >>confdefs.h <<\_ACEOF
8656 #define const
8657 _ACEOF
8658
8659 fi
8660
8661
8662
8663
8664
8665
8666 ac_header_dirent=no
8667 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8668   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8669 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8670 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8672   echo $ECHO_N "(cached) $ECHO_C" >&6
8673 else
8674   cat >conftest.$ac_ext <<_ACEOF
8675 /* confdefs.h.  */
8676 _ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h.  */
8680 #include <sys/types.h>
8681 #include <$ac_hdr>
8682
8683 int
8684 main ()
8685 {
8686 if ((DIR *) 0)
8687 return 0;
8688   ;
8689   return 0;
8690 }
8691 _ACEOF
8692 rm -f conftest.$ac_objext
8693 if { (ac_try="$ac_compile"
8694 case "(($ac_try" in
8695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696   *) ac_try_echo=$ac_try;;
8697 esac
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699   (eval "$ac_compile") 2>conftest.er1
8700   ac_status=$?
8701   grep -v '^ *+' conftest.er1 >conftest.err
8702   rm -f conftest.er1
8703   cat conftest.err >&5
8704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705   (exit $ac_status); } &&
8706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8707   { (case "(($ac_try" in
8708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709   *) ac_try_echo=$ac_try;;
8710 esac
8711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712   (eval "$ac_try") 2>&5
8713   ac_status=$?
8714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); }; } &&
8716          { ac_try='test -s conftest.$ac_objext'
8717   { (case "(($ac_try" in
8718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719   *) ac_try_echo=$ac_try;;
8720 esac
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722   (eval "$ac_try") 2>&5
8723   ac_status=$?
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); }; }; then
8726   eval "$as_ac_Header=yes"
8727 else
8728   echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8730
8731         eval "$as_ac_Header=no"
8732 fi
8733
8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 fi
8736 ac_res=`eval echo '${'$as_ac_Header'}'`
8737                { echo "$as_me:$LINENO: result: $ac_res" >&5
8738 echo "${ECHO_T}$ac_res" >&6; }
8739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8740   cat >>confdefs.h <<_ACEOF
8741 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8742 _ACEOF
8743
8744 ac_header_dirent=$ac_hdr; break
8745 fi
8746
8747 done
8748 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8749 if test $ac_header_dirent = dirent.h; then
8750   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8751 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8752 if test "${ac_cv_search_opendir+set}" = set; then
8753   echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755   ac_func_search_save_LIBS=$LIBS
8756 cat >conftest.$ac_ext <<_ACEOF
8757 /* confdefs.h.  */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h.  */
8762
8763 /* Override any GCC internal prototype to avoid an error.
8764    Use char because int might match the return type of a GCC
8765    builtin and then its argument prototype would still apply.  */
8766 #ifdef __cplusplus
8767 extern "C"
8768 #endif
8769 char opendir ();
8770 int
8771 main ()
8772 {
8773 return opendir ();
8774   ;
8775   return 0;
8776 }
8777 _ACEOF
8778 for ac_lib in '' dir; do
8779   if test -z "$ac_lib"; then
8780     ac_res="none required"
8781   else
8782     ac_res=-l$ac_lib
8783     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8784   fi
8785   rm -f conftest.$ac_objext conftest$ac_exeext
8786 if { (ac_try="$ac_link"
8787 case "(($ac_try" in
8788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789   *) ac_try_echo=$ac_try;;
8790 esac
8791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792   (eval "$ac_link") 2>conftest.er1
8793   ac_status=$?
8794   grep -v '^ *+' conftest.er1 >conftest.err
8795   rm -f conftest.er1
8796   cat conftest.err >&5
8797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798   (exit $ac_status); } &&
8799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8800   { (case "(($ac_try" in
8801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802   *) ac_try_echo=$ac_try;;
8803 esac
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805   (eval "$ac_try") 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); }; } &&
8809          { ac_try='test -s conftest$ac_exeext'
8810   { (case "(($ac_try" in
8811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812   *) ac_try_echo=$ac_try;;
8813 esac
8814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8815   (eval "$ac_try") 2>&5
8816   ac_status=$?
8817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818   (exit $ac_status); }; }; then
8819   ac_cv_search_opendir=$ac_res
8820 else
8821   echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8823
8824
8825 fi
8826
8827 rm -f core conftest.err conftest.$ac_objext \
8828       conftest$ac_exeext
8829   if test "${ac_cv_search_opendir+set}" = set; then
8830   break
8831 fi
8832 done
8833 if test "${ac_cv_search_opendir+set}" = set; then
8834   :
8835 else
8836   ac_cv_search_opendir=no
8837 fi
8838 rm conftest.$ac_ext
8839 LIBS=$ac_func_search_save_LIBS
8840 fi
8841 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8842 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8843 ac_res=$ac_cv_search_opendir
8844 if test "$ac_res" != no; then
8845   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8846
8847 fi
8848
8849 else
8850   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8851 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8852 if test "${ac_cv_search_opendir+set}" = set; then
8853   echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855   ac_func_search_save_LIBS=$LIBS
8856 cat >conftest.$ac_ext <<_ACEOF
8857 /* confdefs.h.  */
8858 _ACEOF
8859 cat confdefs.h >>conftest.$ac_ext
8860 cat >>conftest.$ac_ext <<_ACEOF
8861 /* end confdefs.h.  */
8862
8863 /* Override any GCC internal prototype to avoid an error.
8864    Use char because int might match the return type of a GCC
8865    builtin and then its argument prototype would still apply.  */
8866 #ifdef __cplusplus
8867 extern "C"
8868 #endif
8869 char opendir ();
8870 int
8871 main ()
8872 {
8873 return opendir ();
8874   ;
8875   return 0;
8876 }
8877 _ACEOF
8878 for ac_lib in '' x; do
8879   if test -z "$ac_lib"; then
8880     ac_res="none required"
8881   else
8882     ac_res=-l$ac_lib
8883     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8884   fi
8885   rm -f conftest.$ac_objext conftest$ac_exeext
8886 if { (ac_try="$ac_link"
8887 case "(($ac_try" in
8888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889   *) ac_try_echo=$ac_try;;
8890 esac
8891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8892   (eval "$ac_link") 2>conftest.er1
8893   ac_status=$?
8894   grep -v '^ *+' conftest.er1 >conftest.err
8895   rm -f conftest.er1
8896   cat conftest.err >&5
8897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); } &&
8899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8900   { (case "(($ac_try" in
8901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8902   *) ac_try_echo=$ac_try;;
8903 esac
8904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8905   (eval "$ac_try") 2>&5
8906   ac_status=$?
8907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908   (exit $ac_status); }; } &&
8909          { ac_try='test -s conftest$ac_exeext'
8910   { (case "(($ac_try" in
8911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912   *) ac_try_echo=$ac_try;;
8913 esac
8914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915   (eval "$ac_try") 2>&5
8916   ac_status=$?
8917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918   (exit $ac_status); }; }; then
8919   ac_cv_search_opendir=$ac_res
8920 else
8921   echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8923
8924
8925 fi
8926
8927 rm -f core conftest.err conftest.$ac_objext \
8928       conftest$ac_exeext
8929   if test "${ac_cv_search_opendir+set}" = set; then
8930   break
8931 fi
8932 done
8933 if test "${ac_cv_search_opendir+set}" = set; then
8934   :
8935 else
8936   ac_cv_search_opendir=no
8937 fi
8938 rm conftest.$ac_ext
8939 LIBS=$ac_func_search_save_LIBS
8940 fi
8941 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8942 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8943 ac_res=$ac_cv_search_opendir
8944 if test "$ac_res" != no; then
8945   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8946
8947 fi
8948
8949 fi
8950
8951
8952 for ac_header in dlfcn.h
8953 do
8954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8956   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8959   echo $ECHO_N "(cached) $ECHO_C" >&6
8960 fi
8961 ac_res=`eval echo '${'$as_ac_Header'}'`
8962                { echo "$as_me:$LINENO: result: $ac_res" >&5
8963 echo "${ECHO_T}$ac_res" >&6; }
8964 else
8965   # Is the header compilable?
8966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8968 cat >conftest.$ac_ext <<_ACEOF
8969 /* confdefs.h.  */
8970 _ACEOF
8971 cat confdefs.h >>conftest.$ac_ext
8972 cat >>conftest.$ac_ext <<_ACEOF
8973 /* end confdefs.h.  */
8974 $ac_includes_default
8975 #include <$ac_header>
8976 _ACEOF
8977 rm -f conftest.$ac_objext
8978 if { (ac_try="$ac_compile"
8979 case "(($ac_try" in
8980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981   *) ac_try_echo=$ac_try;;
8982 esac
8983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984   (eval "$ac_compile") 2>conftest.er1
8985   ac_status=$?
8986   grep -v '^ *+' conftest.er1 >conftest.err
8987   rm -f conftest.er1
8988   cat conftest.err >&5
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); } &&
8991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8992   { (case "(($ac_try" in
8993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994   *) ac_try_echo=$ac_try;;
8995 esac
8996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997   (eval "$ac_try") 2>&5
8998   ac_status=$?
8999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000   (exit $ac_status); }; } &&
9001          { ac_try='test -s conftest.$ac_objext'
9002   { (case "(($ac_try" in
9003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004   *) ac_try_echo=$ac_try;;
9005 esac
9006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007   (eval "$ac_try") 2>&5
9008   ac_status=$?
9009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010   (exit $ac_status); }; }; then
9011   ac_header_compiler=yes
9012 else
9013   echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9015
9016         ac_header_compiler=no
9017 fi
9018
9019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9021 echo "${ECHO_T}$ac_header_compiler" >&6; }
9022
9023 # Is the header present?
9024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9026 cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h.  */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h.  */
9032 #include <$ac_header>
9033 _ACEOF
9034 if { (ac_try="$ac_cpp conftest.$ac_ext"
9035 case "(($ac_try" in
9036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037   *) ac_try_echo=$ac_try;;
9038 esac
9039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9040   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9041   ac_status=$?
9042   grep -v '^ *+' conftest.er1 >conftest.err
9043   rm -f conftest.er1
9044   cat conftest.err >&5
9045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046   (exit $ac_status); } >/dev/null; then
9047   if test -s conftest.err; then
9048     ac_cpp_err=$ac_c_preproc_warn_flag
9049     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9050   else
9051     ac_cpp_err=
9052   fi
9053 else
9054   ac_cpp_err=yes
9055 fi
9056 if test -z "$ac_cpp_err"; then
9057   ac_header_preproc=yes
9058 else
9059   echo "$as_me: failed program was:" >&5
9060 sed 's/^/| /' conftest.$ac_ext >&5
9061
9062   ac_header_preproc=no
9063 fi
9064
9065 rm -f conftest.err conftest.$ac_ext
9066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9067 echo "${ECHO_T}$ac_header_preproc" >&6; }
9068
9069 # So?  What about this header?
9070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9071   yes:no: )
9072     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9076     ac_header_preproc=yes
9077     ;;
9078   no:yes:* )
9079     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9081     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9082 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9083     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9085     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9086 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9089     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9091     ( cat <<\_ASBOX
9092 ## ----------------------------------- ##
9093 ## Report this to llvmbugs@cs.uiuc.edu ##
9094 ## ----------------------------------- ##
9095 _ASBOX
9096      ) | sed "s/^/$as_me: WARNING:     /" >&2
9097     ;;
9098 esac
9099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9102   echo $ECHO_N "(cached) $ECHO_C" >&6
9103 else
9104   eval "$as_ac_Header=\$ac_header_preproc"
9105 fi
9106 ac_res=`eval echo '${'$as_ac_Header'}'`
9107                { echo "$as_me:$LINENO: result: $ac_res" >&5
9108 echo "${ECHO_T}$ac_res" >&6; }
9109
9110 fi
9111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9112   cat >>confdefs.h <<_ACEOF
9113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9114 _ACEOF
9115
9116 fi
9117
9118 done
9119
9120 # Check whether --enable-ltdl-install was given.
9121 if test "${enable_ltdl_install+set}" = set; then
9122   enableval=$enable_ltdl_install;
9123 fi
9124
9125
9126
9127
9128 if test x"${enable_ltdl_install-no}" != xno; then
9129   INSTALL_LTDL_TRUE=
9130   INSTALL_LTDL_FALSE='#'
9131 else
9132   INSTALL_LTDL_TRUE='#'
9133   INSTALL_LTDL_FALSE=
9134 fi
9135
9136
9137
9138 if test x"${enable_ltdl_convenience-no}" != xno; then
9139   CONVENIENCE_LTDL_TRUE=
9140   CONVENIENCE_LTDL_FALSE='#'
9141 else
9142   CONVENIENCE_LTDL_TRUE='#'
9143   CONVENIENCE_LTDL_FALSE=
9144 fi
9145
9146
9147 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9148 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9149 library_names_spec=
9150 libname_spec='lib$name'
9151 soname_spec=
9152 shrext_cmds=".so"
9153 postinstall_cmds=
9154 postuninstall_cmds=
9155 finish_cmds=
9156 finish_eval=
9157 shlibpath_var=
9158 shlibpath_overrides_runpath=unknown
9159 version_type=none
9160 dynamic_linker="$host_os ld.so"
9161 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9162 if test "$GCC" = yes; then
9163   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9164   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9165     # if the path contains ";" then we assume it to be the separator
9166     # otherwise default to the standard path separator (i.e. ":") - it is
9167     # assumed that no part of a normal pathname contains ";" but that should
9168     # okay in the real world where ";" in dirpaths is itself problematic.
9169     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9170   else
9171     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9172   fi
9173 else
9174   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9175 fi
9176 need_lib_prefix=unknown
9177 hardcode_into_libs=no
9178
9179 # when you set need_version to no, make sure it does not cause -set_version
9180 # flags to be left without arguments
9181 need_version=unknown
9182
9183 case $host_os in
9184 aix3*)
9185   version_type=linux
9186   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9187   shlibpath_var=LIBPATH
9188
9189   # AIX 3 has no versioning support, so we append a major version to the name.
9190   soname_spec='${libname}${release}${shared_ext}$major'
9191   ;;
9192
9193 aix4* | aix5*)
9194   version_type=linux
9195   need_lib_prefix=no
9196   need_version=no
9197   hardcode_into_libs=yes
9198   if test "$host_cpu" = ia64; then
9199     # AIX 5 supports IA64
9200     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9201     shlibpath_var=LD_LIBRARY_PATH
9202   else
9203     # With GCC up to 2.95.x, collect2 would create an import file
9204     # for dependence libraries.  The import file would start with
9205     # the line `#! .'.  This would cause the generated library to
9206     # depend on `.', always an invalid library.  This was fixed in
9207     # development snapshots of GCC prior to 3.0.
9208     case $host_os in
9209       aix4 | aix4.[01] | aix4.[01].*)
9210       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9211            echo ' yes '
9212            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9213         :
9214       else
9215         can_build_shared=no
9216       fi
9217       ;;
9218     esac
9219     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9220     # soname into executable. Probably we can add versioning support to
9221     # collect2, so additional links can be useful in future.
9222     if test "$aix_use_runtimelinking" = yes; then
9223       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9224       # instead of lib<name>.a to let people know that these are not
9225       # typical AIX shared libraries.
9226       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227     else
9228       # We preserve .a as extension for shared libraries through AIX4.2
9229       # and later when we are not doing run time linking.
9230       library_names_spec='${libname}${release}.a $libname.a'
9231       soname_spec='${libname}${release}${shared_ext}$major'
9232     fi
9233     shlibpath_var=LIBPATH
9234   fi
9235   ;;
9236
9237 amigaos*)
9238   library_names_spec='$libname.ixlibrary $libname.a'
9239   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9240   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'
9241   ;;
9242
9243 beos*)
9244   library_names_spec='${libname}${shared_ext}'
9245   dynamic_linker="$host_os ld.so"
9246   shlibpath_var=LIBRARY_PATH
9247   ;;
9248
9249 bsdi[45]*)
9250   version_type=linux
9251   need_version=no
9252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253   soname_spec='${libname}${release}${shared_ext}$major'
9254   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9255   shlibpath_var=LD_LIBRARY_PATH
9256   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9257   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9258   # the default ld.so.conf also contains /usr/contrib/lib and
9259   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9260   # libtool to hard-code these into programs
9261   ;;
9262
9263 cygwin* | mingw* | pw32*)
9264   version_type=windows
9265   shrext_cmds=".dll"
9266   need_version=no
9267   need_lib_prefix=no
9268
9269   case $GCC,$host_os in
9270   yes,cygwin* | yes,mingw* | yes,pw32*)
9271     library_names_spec='$libname.dll.a'
9272     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9273     postinstall_cmds='base_file=`basename \${file}`~
9274       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9275       dldir=$destdir/`dirname \$dlpath`~
9276       test -d \$dldir || mkdir -p \$dldir~
9277       $install_prog $dir/$dlname \$dldir/$dlname~
9278       chmod a+x \$dldir/$dlname'
9279     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9280       dlpath=$dir/\$dldll~
9281        $rm \$dlpath'
9282     shlibpath_overrides_runpath=yes
9283
9284     case $host_os in
9285     cygwin*)
9286       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9287       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9288       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9289       ;;
9290     mingw*)
9291       # MinGW DLLs use traditional 'lib' prefix
9292       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9293       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9294       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9295         # It is most probably a Windows format PATH printed by
9296         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9297         # path with ; separators, and with drive letters. We can handle the
9298         # drive letters (cygwin fileutils understands them), so leave them,
9299         # especially as we might pass files found there to a mingw objdump,
9300         # which wouldn't understand a cygwinified path. Ahh.
9301         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9302       else
9303         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9304       fi
9305       ;;
9306     pw32*)
9307       # pw32 DLLs use 'pw' prefix rather than 'lib'
9308       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9309       ;;
9310     esac
9311     ;;
9312
9313   *)
9314     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9315     ;;
9316   esac
9317   dynamic_linker='Win32 ld.exe'
9318   # FIXME: first we should search . and the directory the executable is in
9319   shlibpath_var=PATH
9320   ;;
9321
9322 darwin* | rhapsody*)
9323   dynamic_linker="$host_os dyld"
9324   version_type=darwin
9325   need_lib_prefix=no
9326   need_version=no
9327   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9328   soname_spec='${libname}${release}${major}$shared_ext'
9329   shlibpath_overrides_runpath=yes
9330   shlibpath_var=DYLD_LIBRARY_PATH
9331   shrext_cmds='.dylib'
9332   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9333   if test "$GCC" = yes; then
9334     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"`
9335   else
9336     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9337   fi
9338   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9339   ;;
9340
9341 dgux*)
9342   version_type=linux
9343   need_lib_prefix=no
9344   need_version=no
9345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9346   soname_spec='${libname}${release}${shared_ext}$major'
9347   shlibpath_var=LD_LIBRARY_PATH
9348   ;;
9349
9350 freebsd1*)
9351   dynamic_linker=no
9352   ;;
9353
9354 kfreebsd*-gnu)
9355   version_type=linux
9356   need_lib_prefix=no
9357   need_version=no
9358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9359   soname_spec='${libname}${release}${shared_ext}$major'
9360   shlibpath_var=LD_LIBRARY_PATH
9361   shlibpath_overrides_runpath=no
9362   hardcode_into_libs=yes
9363   dynamic_linker='GNU ld.so'
9364   ;;
9365
9366 freebsd* | dragonfly*)
9367   # DragonFly does not have aout.  When/if they implement a new
9368   # versioning mechanism, adjust this.
9369   if test -x /usr/bin/objformat; then
9370     objformat=`/usr/bin/objformat`
9371   else
9372     case $host_os in
9373     freebsd[123]*) objformat=aout ;;
9374     *) objformat=elf ;;
9375     esac
9376   fi
9377   version_type=freebsd-$objformat
9378   case $version_type in
9379     freebsd-elf*)
9380       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9381       need_version=no
9382       need_lib_prefix=no
9383       ;;
9384     freebsd-*)
9385       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9386       need_version=yes
9387       ;;
9388   esac
9389   shlibpath_var=LD_LIBRARY_PATH
9390   case $host_os in
9391   freebsd2*)
9392     shlibpath_overrides_runpath=yes
9393     ;;
9394   freebsd3.[01]* | freebsdelf3.[01]*)
9395     shlibpath_overrides_runpath=yes
9396     hardcode_into_libs=yes
9397     ;;
9398   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9399   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9400     shlibpath_overrides_runpath=no
9401     hardcode_into_libs=yes
9402     ;;
9403   freebsd*) # from 4.6 on
9404     shlibpath_overrides_runpath=yes
9405     hardcode_into_libs=yes
9406     ;;
9407   esac
9408   ;;
9409
9410 gnu*)
9411   version_type=linux
9412   need_lib_prefix=no
9413   need_version=no
9414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9415   soname_spec='${libname}${release}${shared_ext}$major'
9416   shlibpath_var=LD_LIBRARY_PATH
9417   hardcode_into_libs=yes
9418   ;;
9419
9420 hpux9* | hpux10* | hpux11*)
9421   # Give a soname corresponding to the major version so that dld.sl refuses to
9422   # link against other versions.
9423   version_type=sunos
9424   need_lib_prefix=no
9425   need_version=no
9426   case $host_cpu in
9427   ia64*)
9428     shrext_cmds='.so'
9429     hardcode_into_libs=yes
9430     dynamic_linker="$host_os dld.so"
9431     shlibpath_var=LD_LIBRARY_PATH
9432     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434     soname_spec='${libname}${release}${shared_ext}$major'
9435     if test "X$HPUX_IA64_MODE" = X32; then
9436       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9437     else
9438       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9439     fi
9440     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9441     ;;
9442    hppa*64*)
9443      shrext_cmds='.sl'
9444      hardcode_into_libs=yes
9445      dynamic_linker="$host_os dld.sl"
9446      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9447      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9448      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449      soname_spec='${libname}${release}${shared_ext}$major'
9450      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9451      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9452      ;;
9453    *)
9454     shrext_cmds='.sl'
9455     dynamic_linker="$host_os dld.sl"
9456     shlibpath_var=SHLIB_PATH
9457     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9458     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459     soname_spec='${libname}${release}${shared_ext}$major'
9460     ;;
9461   esac
9462   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9463   postinstall_cmds='chmod 555 $lib'
9464   ;;
9465
9466 interix3*)
9467   version_type=linux
9468   need_lib_prefix=no
9469   need_version=no
9470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9471   soname_spec='${libname}${release}${shared_ext}$major'
9472   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9473   shlibpath_var=LD_LIBRARY_PATH
9474   shlibpath_overrides_runpath=no
9475   hardcode_into_libs=yes
9476   ;;
9477
9478 irix5* | irix6* | nonstopux*)
9479   case $host_os in
9480     nonstopux*) version_type=nonstopux ;;
9481     *)
9482         if test "$lt_cv_prog_gnu_ld" = yes; then
9483                 version_type=linux
9484         else
9485                 version_type=irix
9486         fi ;;
9487   esac
9488   need_lib_prefix=no
9489   need_version=no
9490   soname_spec='${libname}${release}${shared_ext}$major'
9491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9492   case $host_os in
9493   irix5* | nonstopux*)
9494     libsuff= shlibsuff=
9495     ;;
9496   *)
9497     case $LD in # libtool.m4 will add one of these switches to LD
9498     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9499       libsuff= shlibsuff= libmagic=32-bit;;
9500     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9501       libsuff=32 shlibsuff=N32 libmagic=N32;;
9502     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9503       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9504     *) libsuff= shlibsuff= libmagic=never-match;;
9505     esac
9506     ;;
9507   esac
9508   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9509   shlibpath_overrides_runpath=no
9510   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9511   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9512   hardcode_into_libs=yes
9513   ;;
9514
9515 # No shared lib support for Linux oldld, aout, or coff.
9516 linux*oldld* | linux*aout* | linux*coff*)
9517   dynamic_linker=no
9518   ;;
9519
9520 # This must be Linux ELF.
9521 linux*)
9522   version_type=linux
9523   need_lib_prefix=no
9524   need_version=no
9525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526   soname_spec='${libname}${release}${shared_ext}$major'
9527   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9528   shlibpath_var=LD_LIBRARY_PATH
9529   shlibpath_overrides_runpath=no
9530   # This implies no fast_install, which is unacceptable.
9531   # Some rework will be needed to allow for fast_install
9532   # before this can be enabled.
9533   hardcode_into_libs=yes
9534
9535   # Append ld.so.conf contents to the search path
9536   if test -f /etc/ld.so.conf; then
9537     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' ' '`
9538     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9539   fi
9540
9541   # We used to test for /lib/ld.so.1 and disable shared libraries on
9542   # powerpc, because MkLinux only supported shared libraries with the
9543   # GNU dynamic linker.  Since this was broken with cross compilers,
9544   # most powerpc-linux boxes support dynamic linking these days and
9545   # people can always --disable-shared, the test was removed, and we
9546   # assume the GNU/Linux dynamic linker is in use.
9547   dynamic_linker='GNU/Linux ld.so'
9548   ;;
9549
9550 knetbsd*-gnu)
9551   version_type=linux
9552   need_lib_prefix=no
9553   need_version=no
9554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9555   soname_spec='${libname}${release}${shared_ext}$major'
9556   shlibpath_var=LD_LIBRARY_PATH
9557   shlibpath_overrides_runpath=no
9558   hardcode_into_libs=yes
9559   dynamic_linker='GNU ld.so'
9560   ;;
9561
9562 netbsd*)
9563   version_type=sunos
9564   need_lib_prefix=no
9565   need_version=no
9566   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9567     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9568     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9569     dynamic_linker='NetBSD (a.out) ld.so'
9570   else
9571     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9572     soname_spec='${libname}${release}${shared_ext}$major'
9573     dynamic_linker='NetBSD ld.elf_so'
9574   fi
9575   shlibpath_var=LD_LIBRARY_PATH
9576   shlibpath_overrides_runpath=yes
9577   hardcode_into_libs=yes
9578   ;;
9579
9580 newsos6)
9581   version_type=linux
9582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583   shlibpath_var=LD_LIBRARY_PATH
9584   shlibpath_overrides_runpath=yes
9585   ;;
9586
9587 nto-qnx*)
9588   version_type=linux
9589   need_lib_prefix=no
9590   need_version=no
9591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9592   soname_spec='${libname}${release}${shared_ext}$major'
9593   shlibpath_var=LD_LIBRARY_PATH
9594   shlibpath_overrides_runpath=yes
9595   ;;
9596
9597 openbsd*)
9598   version_type=sunos
9599   sys_lib_dlsearch_path_spec="/usr/lib"
9600   need_lib_prefix=no
9601   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9602   case $host_os in
9603     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9604     *)                         need_version=no  ;;
9605   esac
9606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9607   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9608   shlibpath_var=LD_LIBRARY_PATH
9609   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9610     case $host_os in
9611       openbsd2.[89] | openbsd2.[89].*)
9612         shlibpath_overrides_runpath=no
9613         ;;
9614       *)
9615         shlibpath_overrides_runpath=yes
9616         ;;
9617       esac
9618   else
9619     shlibpath_overrides_runpath=yes
9620   fi
9621   ;;
9622
9623 os2*)
9624   libname_spec='$name'
9625   shrext_cmds=".dll"
9626   need_lib_prefix=no
9627   library_names_spec='$libname${shared_ext} $libname.a'
9628   dynamic_linker='OS/2 ld.exe'
9629   shlibpath_var=LIBPATH
9630   ;;
9631
9632 osf3* | osf4* | osf5*)
9633   version_type=osf
9634   need_lib_prefix=no
9635   need_version=no
9636   soname_spec='${libname}${release}${shared_ext}$major'
9637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638   shlibpath_var=LD_LIBRARY_PATH
9639   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9640   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9641   ;;
9642
9643 solaris*)
9644   version_type=linux
9645   need_lib_prefix=no
9646   need_version=no
9647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9648   soname_spec='${libname}${release}${shared_ext}$major'
9649   shlibpath_var=LD_LIBRARY_PATH
9650   shlibpath_overrides_runpath=yes
9651   hardcode_into_libs=yes
9652   # ldd complains unless libraries are executable
9653   postinstall_cmds='chmod +x $lib'
9654   ;;
9655
9656 sunos4*)
9657   version_type=sunos
9658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9659   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9660   shlibpath_var=LD_LIBRARY_PATH
9661   shlibpath_overrides_runpath=yes
9662   if test "$with_gnu_ld" = yes; then
9663     need_lib_prefix=no
9664   fi
9665   need_version=yes
9666   ;;
9667
9668 sysv4 | sysv4.3*)
9669   version_type=linux
9670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9671   soname_spec='${libname}${release}${shared_ext}$major'
9672   shlibpath_var=LD_LIBRARY_PATH
9673   case $host_vendor in
9674     sni)
9675       shlibpath_overrides_runpath=no
9676       need_lib_prefix=no
9677       export_dynamic_flag_spec='${wl}-Blargedynsym'
9678       runpath_var=LD_RUN_PATH
9679       ;;
9680     siemens)
9681       need_lib_prefix=no
9682       ;;
9683     motorola)
9684       need_lib_prefix=no
9685       need_version=no
9686       shlibpath_overrides_runpath=no
9687       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9688       ;;
9689   esac
9690   ;;
9691
9692 sysv4*MP*)
9693   if test -d /usr/nec ;then
9694     version_type=linux
9695     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9696     soname_spec='$libname${shared_ext}.$major'
9697     shlibpath_var=LD_LIBRARY_PATH
9698   fi
9699   ;;
9700
9701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9702   version_type=freebsd-elf
9703   need_lib_prefix=no
9704   need_version=no
9705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9706   soname_spec='${libname}${release}${shared_ext}$major'
9707   shlibpath_var=LD_LIBRARY_PATH
9708   hardcode_into_libs=yes
9709   if test "$with_gnu_ld" = yes; then
9710     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9711     shlibpath_overrides_runpath=no
9712   else
9713     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9714     shlibpath_overrides_runpath=yes
9715     case $host_os in
9716       sco3.2v5*)
9717         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9718         ;;
9719     esac
9720   fi
9721   sys_lib_dlsearch_path_spec='/usr/lib'
9722   ;;
9723
9724 uts4*)
9725   version_type=linux
9726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727   soname_spec='${libname}${release}${shared_ext}$major'
9728   shlibpath_var=LD_LIBRARY_PATH
9729   ;;
9730
9731 *)
9732   dynamic_linker=no
9733   ;;
9734 esac
9735 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9736 echo "${ECHO_T}$dynamic_linker" >&6; }
9737 test "$dynamic_linker" = no && can_build_shared=no
9738
9739 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9740 if test "$GCC" = yes; then
9741   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9742 fi
9743
9744
9745 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9746 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9747 if test "${libltdl_cv_shlibext+set}" = set; then
9748   echo $ECHO_N "(cached) $ECHO_C" >&6
9749 else
9750
9751 module=yes
9752 eval libltdl_cv_shlibext=$shrext_cmds
9753
9754 fi
9755 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9756 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9757 if test -n "$libltdl_cv_shlibext"; then
9758
9759 cat >>confdefs.h <<_ACEOF
9760 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9761 _ACEOF
9762
9763 fi
9764
9765
9766 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9767 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9768 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9769   echo $ECHO_N "(cached) $ECHO_C" >&6
9770 else
9771   libltdl_cv_shlibpath_var="$shlibpath_var"
9772 fi
9773 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9774 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9775 if test -n "$libltdl_cv_shlibpath_var"; then
9776
9777 cat >>confdefs.h <<_ACEOF
9778 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9779 _ACEOF
9780
9781 fi
9782
9783
9784 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9785 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9786 if test "${libltdl_cv_sys_search_path+set}" = set; then
9787   echo $ECHO_N "(cached) $ECHO_C" >&6
9788 else
9789   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9790 fi
9791 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9792 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9793 if test -n "$libltdl_cv_sys_search_path"; then
9794   sys_search_path=
9795   for dir in $libltdl_cv_sys_search_path; do
9796     if test -z "$sys_search_path"; then
9797       sys_search_path="$dir"
9798     else
9799       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9800     fi
9801   done
9802
9803 cat >>confdefs.h <<_ACEOF
9804 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9805 _ACEOF
9806
9807 fi
9808
9809 { echo "$as_me:$LINENO: checking for objdir" >&5
9810 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9811 if test "${libltdl_cv_objdir+set}" = set; then
9812   echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814   libltdl_cv_objdir="$objdir"
9815   if test -n "$objdir"; then
9816     :
9817   else
9818     rm -f .libs 2>/dev/null
9819     mkdir .libs 2>/dev/null
9820     if test -d .libs; then
9821       libltdl_cv_objdir=.libs
9822     else
9823       # MS-DOS does not allow filenames that begin with a dot.
9824       libltdl_cv_objdir=_libs
9825     fi
9826   rmdir .libs 2>/dev/null
9827   fi
9828
9829 fi
9830 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9831 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9832
9833 cat >>confdefs.h <<_ACEOF
9834 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9835 _ACEOF
9836
9837
9838
9839
9840
9841
9842 # Check for command to grab the raw symbol name followed by C symbol from nm.
9843 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9844 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9845 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9846   echo $ECHO_N "(cached) $ECHO_C" >&6
9847 else
9848
9849 # These are sane defaults that work on at least a few old systems.
9850 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9851
9852 # Character class describing NM global symbol codes.
9853 symcode='[BCDEGRST]'
9854
9855 # Regexp to match symbols that can be accessed directly from C.
9856 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9857
9858 # Transform an extracted symbol line into a proper C declaration
9859 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9860
9861 # Transform an extracted symbol line into symbol name and symbol address
9862 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'"
9863
9864 # Define system-specific variables.
9865 case $host_os in
9866 aix*)
9867   symcode='[BCDT]'
9868   ;;
9869 cygwin* | mingw* | pw32*)
9870   symcode='[ABCDGISTW]'
9871   ;;
9872 hpux*) # Its linker distinguishes data from code symbols
9873   if test "$host_cpu" = ia64; then
9874     symcode='[ABCDEGRST]'
9875   fi
9876   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9877   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'"
9878   ;;
9879 linux*)
9880   if test "$host_cpu" = ia64; then
9881     symcode='[ABCDGIRSTW]'
9882     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9883     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'"
9884   fi
9885   ;;
9886 irix* | nonstopux*)
9887   symcode='[BCDEGRST]'
9888   ;;
9889 osf*)
9890   symcode='[BCDEGQRST]'
9891   ;;
9892 solaris*)
9893   symcode='[BDRT]'
9894   ;;
9895 sco3.2v5*)
9896   symcode='[DT]'
9897   ;;
9898 sysv4.2uw2*)
9899   symcode='[DT]'
9900   ;;
9901 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9902   symcode='[ABDT]'
9903   ;;
9904 sysv4)
9905   symcode='[DFNSTU]'
9906   ;;
9907 esac
9908
9909 # Handle CRLF in mingw tool chain
9910 opt_cr=
9911 case $build_os in
9912 mingw*)
9913   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9914   ;;
9915 esac
9916
9917 # If we're using GNU nm, then use its standard symbol codes.
9918 case `$NM -V 2>&1` in
9919 *GNU* | *'with BFD'*)
9920   symcode='[ABCDGIRSTW]' ;;
9921 esac
9922
9923 # Try without a prefix undercore, then with it.
9924 for ac_symprfx in "" "_"; do
9925
9926   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9927   symxfrm="\\1 $ac_symprfx\\2 \\2"
9928
9929   # Write the raw and C identifiers.
9930   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9931
9932   # Check to see that the pipe works correctly.
9933   pipe_works=no
9934
9935   rm -f conftest*
9936   cat > conftest.$ac_ext <<EOF
9937 #ifdef __cplusplus
9938 extern "C" {
9939 #endif
9940 char nm_test_var;
9941 void nm_test_func(){}
9942 #ifdef __cplusplus
9943 }
9944 #endif
9945 int main(){nm_test_var='a';nm_test_func();return(0);}
9946 EOF
9947
9948   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9949   (eval $ac_compile) 2>&5
9950   ac_status=$?
9951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952   (exit $ac_status); }; then
9953     # Now try to grab the symbols.
9954     nlist=conftest.nm
9955     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9956   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9957   ac_status=$?
9958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959   (exit $ac_status); } && test -s "$nlist"; then
9960       # Try sorting and uniquifying the output.
9961       if sort "$nlist" | uniq > "$nlist"T; then
9962         mv -f "$nlist"T "$nlist"
9963       else
9964         rm -f "$nlist"T
9965       fi
9966
9967       # Make sure that we snagged all the symbols we need.
9968       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9969         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9970           cat <<EOF > conftest.$ac_ext
9971 #ifdef __cplusplus
9972 extern "C" {
9973 #endif
9974
9975 EOF
9976           # Now generate the symbol file.
9977           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9978
9979           cat <<EOF >> conftest.$ac_ext
9980 #if defined (__STDC__) && __STDC__
9981 # define lt_ptr_t void *
9982 #else
9983 # define lt_ptr_t char *
9984 # define const
9985 #endif
9986
9987 /* The mapping between symbol names and symbols. */
9988 const struct {
9989   const char *name;
9990   lt_ptr_t address;
9991 }
9992 lt_preloaded_symbols[] =
9993 {
9994 EOF
9995           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9996           cat <<\EOF >> conftest.$ac_ext
9997   {0, (lt_ptr_t) 0}
9998 };
9999
10000 #ifdef __cplusplus
10001 }
10002 #endif
10003 EOF
10004           # Now try linking the two files.
10005           mv conftest.$ac_objext conftstm.$ac_objext
10006           lt_save_LIBS="$LIBS"
10007           lt_save_CFLAGS="$CFLAGS"
10008           LIBS="conftstm.$ac_objext"
10009           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10010           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10011   (eval $ac_link) 2>&5
10012   ac_status=$?
10013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10015             pipe_works=yes
10016           fi
10017           LIBS="$lt_save_LIBS"
10018           CFLAGS="$lt_save_CFLAGS"
10019         else
10020           echo "cannot find nm_test_func in $nlist" >&5
10021         fi
10022       else
10023         echo "cannot find nm_test_var in $nlist" >&5
10024       fi
10025     else
10026       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10027     fi
10028   else
10029     echo "$progname: failed program was:" >&5
10030     cat conftest.$ac_ext >&5
10031   fi
10032   rm -f conftest* conftst*
10033
10034   # Do not use the global_symbol_pipe unless it works.
10035   if test "$pipe_works" = yes; then
10036     break
10037   else
10038     lt_cv_sys_global_symbol_pipe=
10039   fi
10040 done
10041
10042 fi
10043
10044 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10045   lt_cv_sys_global_symbol_to_cdecl=
10046 fi
10047 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10048   { echo "$as_me:$LINENO: result: failed" >&5
10049 echo "${ECHO_T}failed" >&6; }
10050 else
10051   { echo "$as_me:$LINENO: result: ok" >&5
10052 echo "${ECHO_T}ok" >&6; }
10053 fi
10054
10055
10056 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10057 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10058 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10059   echo $ECHO_N "(cached) $ECHO_C" >&6
10060 else
10061   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10062     libltdl_cv_preloaded_symbols=yes
10063   else
10064     libltdl_cv_preloaded_symbols=no
10065   fi
10066
10067 fi
10068 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10069 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10070 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10071
10072 cat >>confdefs.h <<\_ACEOF
10073 #define HAVE_PRELOADED_SYMBOLS 1
10074 _ACEOF
10075
10076 fi
10077
10078 LIBADD_DL=
10079
10080 ac_ext=c
10081 ac_cpp='$CPP $CPPFLAGS'
10082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10085
10086
10087 { echo "$as_me:$LINENO: checking for shl_load" >&5
10088 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10089 if test "${ac_cv_func_shl_load+set}" = set; then
10090   echo $ECHO_N "(cached) $ECHO_C" >&6
10091 else
10092   cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h.  */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h.  */
10098 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10099    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10100 #define shl_load innocuous_shl_load
10101
10102 /* System header to define __stub macros and hopefully few prototypes,
10103     which can conflict with char shl_load (); below.
10104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10105     <limits.h> exists even on freestanding compilers.  */
10106
10107 #ifdef __STDC__
10108 # include <limits.h>
10109 #else
10110 # include <assert.h>
10111 #endif
10112
10113 #undef shl_load
10114
10115 /* Override any GCC internal prototype to avoid an error.
10116    Use char because int might match the return type of a GCC
10117    builtin and then its argument prototype would still apply.  */
10118 #ifdef __cplusplus
10119 extern "C"
10120 #endif
10121 char shl_load ();
10122 /* The GNU C library defines this for functions which it implements
10123     to always fail with ENOSYS.  Some functions are actually named
10124     something starting with __ and the normal name is an alias.  */
10125 #if defined __stub_shl_load || defined __stub___shl_load
10126 choke me
10127 #endif
10128
10129 int
10130 main ()
10131 {
10132 return shl_load ();
10133   ;
10134   return 0;
10135 }
10136 _ACEOF
10137 rm -f conftest.$ac_objext conftest$ac_exeext
10138 if { (ac_try="$ac_link"
10139 case "(($ac_try" in
10140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141   *) ac_try_echo=$ac_try;;
10142 esac
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144   (eval "$ac_link") 2>conftest.er1
10145   ac_status=$?
10146   grep -v '^ *+' conftest.er1 >conftest.err
10147   rm -f conftest.er1
10148   cat conftest.err >&5
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); } &&
10151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10152   { (case "(($ac_try" in
10153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154   *) ac_try_echo=$ac_try;;
10155 esac
10156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157   (eval "$ac_try") 2>&5
10158   ac_status=$?
10159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160   (exit $ac_status); }; } &&
10161          { ac_try='test -s conftest$ac_exeext'
10162   { (case "(($ac_try" in
10163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164   *) ac_try_echo=$ac_try;;
10165 esac
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167   (eval "$ac_try") 2>&5
10168   ac_status=$?
10169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170   (exit $ac_status); }; }; then
10171   ac_cv_func_shl_load=yes
10172 else
10173   echo "$as_me: failed program was:" >&5
10174 sed 's/^/| /' conftest.$ac_ext >&5
10175
10176         ac_cv_func_shl_load=no
10177 fi
10178
10179 rm -f core conftest.err conftest.$ac_objext \
10180       conftest$ac_exeext conftest.$ac_ext
10181 fi
10182 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10183 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10184 if test $ac_cv_func_shl_load = yes; then
10185
10186 cat >>confdefs.h <<\_ACEOF
10187 #define HAVE_SHL_LOAD 1
10188 _ACEOF
10189
10190 else
10191   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10192 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10193 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10194   echo $ECHO_N "(cached) $ECHO_C" >&6
10195 else
10196   ac_check_lib_save_LIBS=$LIBS
10197 LIBS="-ldld  $LIBS"
10198 cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h.  */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h.  */
10204
10205 /* Override any GCC internal prototype to avoid an error.
10206    Use char because int might match the return type of a GCC
10207    builtin and then its argument prototype would still apply.  */
10208 #ifdef __cplusplus
10209 extern "C"
10210 #endif
10211 char shl_load ();
10212 int
10213 main ()
10214 {
10215 return shl_load ();
10216   ;
10217   return 0;
10218 }
10219 _ACEOF
10220 rm -f conftest.$ac_objext conftest$ac_exeext
10221 if { (ac_try="$ac_link"
10222 case "(($ac_try" in
10223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224   *) ac_try_echo=$ac_try;;
10225 esac
10226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227   (eval "$ac_link") 2>conftest.er1
10228   ac_status=$?
10229   grep -v '^ *+' conftest.er1 >conftest.err
10230   rm -f conftest.er1
10231   cat conftest.err >&5
10232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233   (exit $ac_status); } &&
10234          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10235   { (case "(($ac_try" in
10236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237   *) ac_try_echo=$ac_try;;
10238 esac
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240   (eval "$ac_try") 2>&5
10241   ac_status=$?
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); }; } &&
10244          { ac_try='test -s conftest$ac_exeext'
10245   { (case "(($ac_try" in
10246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247   *) ac_try_echo=$ac_try;;
10248 esac
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250   (eval "$ac_try") 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; }; then
10254   ac_cv_lib_dld_shl_load=yes
10255 else
10256   echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10258
10259         ac_cv_lib_dld_shl_load=no
10260 fi
10261
10262 rm -f core conftest.err conftest.$ac_objext \
10263       conftest$ac_exeext conftest.$ac_ext
10264 LIBS=$ac_check_lib_save_LIBS
10265 fi
10266 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10267 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10268 if test $ac_cv_lib_dld_shl_load = yes; then
10269
10270 cat >>confdefs.h <<\_ACEOF
10271 #define HAVE_SHL_LOAD 1
10272 _ACEOF
10273
10274         LIBADD_DL="$LIBADD_DL -ldld"
10275 else
10276   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10277 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10278 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10279   echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281   ac_check_lib_save_LIBS=$LIBS
10282 LIBS="-ldl  $LIBS"
10283 cat >conftest.$ac_ext <<_ACEOF
10284 /* confdefs.h.  */
10285 _ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h.  */
10289
10290 /* Override any GCC internal prototype to avoid an error.
10291    Use char because int might match the return type of a GCC
10292    builtin and then its argument prototype would still apply.  */
10293 #ifdef __cplusplus
10294 extern "C"
10295 #endif
10296 char dlopen ();
10297 int
10298 main ()
10299 {
10300 return dlopen ();
10301   ;
10302   return 0;
10303 }
10304 _ACEOF
10305 rm -f conftest.$ac_objext conftest$ac_exeext
10306 if { (ac_try="$ac_link"
10307 case "(($ac_try" in
10308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309   *) ac_try_echo=$ac_try;;
10310 esac
10311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10312   (eval "$ac_link") 2>conftest.er1
10313   ac_status=$?
10314   grep -v '^ *+' conftest.er1 >conftest.err
10315   rm -f conftest.er1
10316   cat conftest.err >&5
10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); } &&
10319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10320   { (case "(($ac_try" in
10321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322   *) ac_try_echo=$ac_try;;
10323 esac
10324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325   (eval "$ac_try") 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); }; } &&
10329          { ac_try='test -s conftest$ac_exeext'
10330   { (case "(($ac_try" in
10331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332   *) ac_try_echo=$ac_try;;
10333 esac
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335   (eval "$ac_try") 2>&5
10336   ac_status=$?
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); }; }; then
10339   ac_cv_lib_dl_dlopen=yes
10340 else
10341   echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10343
10344         ac_cv_lib_dl_dlopen=no
10345 fi
10346
10347 rm -f core conftest.err conftest.$ac_objext \
10348       conftest$ac_exeext conftest.$ac_ext
10349 LIBS=$ac_check_lib_save_LIBS
10350 fi
10351 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10352 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10353 if test $ac_cv_lib_dl_dlopen = yes; then
10354
10355 cat >>confdefs.h <<\_ACEOF
10356 #define HAVE_LIBDL 1
10357 _ACEOF
10358
10359                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10360 else
10361   cat >conftest.$ac_ext <<_ACEOF
10362 /* confdefs.h.  */
10363 _ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h.  */
10367 #if HAVE_DLFCN_H
10368 #  include <dlfcn.h>
10369 #endif
10370
10371 int
10372 main ()
10373 {
10374 dlopen(0, 0);
10375   ;
10376   return 0;
10377 }
10378 _ACEOF
10379 rm -f conftest.$ac_objext conftest$ac_exeext
10380 if { (ac_try="$ac_link"
10381 case "(($ac_try" in
10382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10383   *) ac_try_echo=$ac_try;;
10384 esac
10385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10386   (eval "$ac_link") 2>conftest.er1
10387   ac_status=$?
10388   grep -v '^ *+' conftest.er1 >conftest.err
10389   rm -f conftest.er1
10390   cat conftest.err >&5
10391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); } &&
10393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10394   { (case "(($ac_try" in
10395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396   *) ac_try_echo=$ac_try;;
10397 esac
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399   (eval "$ac_try") 2>&5
10400   ac_status=$?
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); }; } &&
10403          { ac_try='test -s conftest$ac_exeext'
10404   { (case "(($ac_try" in
10405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406   *) ac_try_echo=$ac_try;;
10407 esac
10408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409   (eval "$ac_try") 2>&5
10410   ac_status=$?
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); }; }; then
10413
10414 cat >>confdefs.h <<\_ACEOF
10415 #define HAVE_LIBDL 1
10416 _ACEOF
10417  libltdl_cv_func_dlopen="yes"
10418 else
10419   echo "$as_me: failed program was:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10421
10422         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10423 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10424 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10425   echo $ECHO_N "(cached) $ECHO_C" >&6
10426 else
10427   ac_check_lib_save_LIBS=$LIBS
10428 LIBS="-lsvld  $LIBS"
10429 cat >conftest.$ac_ext <<_ACEOF
10430 /* confdefs.h.  */
10431 _ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h.  */
10435
10436 /* Override any GCC internal prototype to avoid an error.
10437    Use char because int might match the return type of a GCC
10438    builtin and then its argument prototype would still apply.  */
10439 #ifdef __cplusplus
10440 extern "C"
10441 #endif
10442 char dlopen ();
10443 int
10444 main ()
10445 {
10446 return dlopen ();
10447   ;
10448   return 0;
10449 }
10450 _ACEOF
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455   *) ac_try_echo=$ac_try;;
10456 esac
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458   (eval "$ac_link") 2>conftest.er1
10459   ac_status=$?
10460   grep -v '^ *+' conftest.er1 >conftest.err
10461   rm -f conftest.er1
10462   cat conftest.err >&5
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); } &&
10465          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10466   { (case "(($ac_try" in
10467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468   *) ac_try_echo=$ac_try;;
10469 esac
10470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471   (eval "$ac_try") 2>&5
10472   ac_status=$?
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); }; } &&
10475          { ac_try='test -s conftest$ac_exeext'
10476   { (case "(($ac_try" in
10477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478   *) ac_try_echo=$ac_try;;
10479 esac
10480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481   (eval "$ac_try") 2>&5
10482   ac_status=$?
10483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484   (exit $ac_status); }; }; then
10485   ac_cv_lib_svld_dlopen=yes
10486 else
10487   echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10489
10490         ac_cv_lib_svld_dlopen=no
10491 fi
10492
10493 rm -f core conftest.err conftest.$ac_objext \
10494       conftest$ac_exeext conftest.$ac_ext
10495 LIBS=$ac_check_lib_save_LIBS
10496 fi
10497 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10498 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10499 if test $ac_cv_lib_svld_dlopen = yes; then
10500
10501 cat >>confdefs.h <<\_ACEOF
10502 #define HAVE_LIBDL 1
10503 _ACEOF
10504
10505                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10506 else
10507   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10508 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10509 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10510   echo $ECHO_N "(cached) $ECHO_C" >&6
10511 else
10512   ac_check_lib_save_LIBS=$LIBS
10513 LIBS="-ldld  $LIBS"
10514 cat >conftest.$ac_ext <<_ACEOF
10515 /* confdefs.h.  */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h.  */
10520
10521 /* Override any GCC internal prototype to avoid an error.
10522    Use char because int might match the return type of a GCC
10523    builtin and then its argument prototype would still apply.  */
10524 #ifdef __cplusplus
10525 extern "C"
10526 #endif
10527 char dld_link ();
10528 int
10529 main ()
10530 {
10531 return dld_link ();
10532   ;
10533   return 0;
10534 }
10535 _ACEOF
10536 rm -f conftest.$ac_objext conftest$ac_exeext
10537 if { (ac_try="$ac_link"
10538 case "(($ac_try" in
10539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540   *) ac_try_echo=$ac_try;;
10541 esac
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543   (eval "$ac_link") 2>conftest.er1
10544   ac_status=$?
10545   grep -v '^ *+' conftest.er1 >conftest.err
10546   rm -f conftest.er1
10547   cat conftest.err >&5
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); } &&
10550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10551   { (case "(($ac_try" in
10552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553   *) ac_try_echo=$ac_try;;
10554 esac
10555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556   (eval "$ac_try") 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); }; } &&
10560          { ac_try='test -s conftest$ac_exeext'
10561   { (case "(($ac_try" in
10562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563   *) ac_try_echo=$ac_try;;
10564 esac
10565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566   (eval "$ac_try") 2>&5
10567   ac_status=$?
10568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569   (exit $ac_status); }; }; then
10570   ac_cv_lib_dld_dld_link=yes
10571 else
10572   echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10574
10575         ac_cv_lib_dld_dld_link=no
10576 fi
10577
10578 rm -f core conftest.err conftest.$ac_objext \
10579       conftest$ac_exeext conftest.$ac_ext
10580 LIBS=$ac_check_lib_save_LIBS
10581 fi
10582 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10583 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10584 if test $ac_cv_lib_dld_dld_link = yes; then
10585
10586 cat >>confdefs.h <<\_ACEOF
10587 #define HAVE_DLD 1
10588 _ACEOF
10589
10590                 LIBADD_DL="$LIBADD_DL -ldld"
10591 else
10592   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10593 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10594 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10595   echo $ECHO_N "(cached) $ECHO_C" >&6
10596 else
10597   cat >conftest.$ac_ext <<_ACEOF
10598 /* confdefs.h.  */
10599 _ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h.  */
10603 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10605 #define _dyld_func_lookup innocuous__dyld_func_lookup
10606
10607 /* System header to define __stub macros and hopefully few prototypes,
10608     which can conflict with char _dyld_func_lookup (); below.
10609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10610     <limits.h> exists even on freestanding compilers.  */
10611
10612 #ifdef __STDC__
10613 # include <limits.h>
10614 #else
10615 # include <assert.h>
10616 #endif
10617
10618 #undef _dyld_func_lookup
10619
10620 /* Override any GCC internal prototype to avoid an error.
10621    Use char because int might match the return type of a GCC
10622    builtin and then its argument prototype would still apply.  */
10623 #ifdef __cplusplus
10624 extern "C"
10625 #endif
10626 char _dyld_func_lookup ();
10627 /* The GNU C library defines this for functions which it implements
10628     to always fail with ENOSYS.  Some functions are actually named
10629     something starting with __ and the normal name is an alias.  */
10630 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10631 choke me
10632 #endif
10633
10634 int
10635 main ()
10636 {
10637 return _dyld_func_lookup ();
10638   ;
10639   return 0;
10640 }
10641 _ACEOF
10642 rm -f conftest.$ac_objext conftest$ac_exeext
10643 if { (ac_try="$ac_link"
10644 case "(($ac_try" in
10645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646   *) ac_try_echo=$ac_try;;
10647 esac
10648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649   (eval "$ac_link") 2>conftest.er1
10650   ac_status=$?
10651   grep -v '^ *+' conftest.er1 >conftest.err
10652   rm -f conftest.er1
10653   cat conftest.err >&5
10654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655   (exit $ac_status); } &&
10656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10657   { (case "(($ac_try" in
10658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659   *) ac_try_echo=$ac_try;;
10660 esac
10661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662   (eval "$ac_try") 2>&5
10663   ac_status=$?
10664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665   (exit $ac_status); }; } &&
10666          { ac_try='test -s conftest$ac_exeext'
10667   { (case "(($ac_try" in
10668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669   *) ac_try_echo=$ac_try;;
10670 esac
10671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10672   (eval "$ac_try") 2>&5
10673   ac_status=$?
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); }; }; then
10676   ac_cv_func__dyld_func_lookup=yes
10677 else
10678   echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10680
10681         ac_cv_func__dyld_func_lookup=no
10682 fi
10683
10684 rm -f core conftest.err conftest.$ac_objext \
10685       conftest$ac_exeext conftest.$ac_ext
10686 fi
10687 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10688 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10689 if test $ac_cv_func__dyld_func_lookup = yes; then
10690
10691 cat >>confdefs.h <<\_ACEOF
10692 #define HAVE_DYLD 1
10693 _ACEOF
10694
10695 fi
10696
10697
10698 fi
10699
10700
10701 fi
10702
10703
10704 fi
10705
10706 rm -f core conftest.err conftest.$ac_objext \
10707       conftest$ac_exeext conftest.$ac_ext
10708
10709 fi
10710
10711
10712 fi
10713
10714
10715 fi
10716
10717
10718 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10719 then
10720   lt_save_LIBS="$LIBS"
10721   LIBS="$LIBS $LIBADD_DL"
10722
10723 for ac_func in dlerror
10724 do
10725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10729   echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731   cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h.  */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h.  */
10737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10739 #define $ac_func innocuous_$ac_func
10740
10741 /* System header to define __stub macros and hopefully few prototypes,
10742     which can conflict with char $ac_func (); below.
10743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10744     <limits.h> exists even on freestanding compilers.  */
10745
10746 #ifdef __STDC__
10747 # include <limits.h>
10748 #else
10749 # include <assert.h>
10750 #endif
10751
10752 #undef $ac_func
10753
10754 /* Override any GCC internal prototype to avoid an error.
10755    Use char because int might match the return type of a GCC
10756    builtin and then its argument prototype would still apply.  */
10757 #ifdef __cplusplus
10758 extern "C"
10759 #endif
10760 char $ac_func ();
10761 /* The GNU C library defines this for functions which it implements
10762     to always fail with ENOSYS.  Some functions are actually named
10763     something starting with __ and the normal name is an alias.  */
10764 #if defined __stub_$ac_func || defined __stub___$ac_func
10765 choke me
10766 #endif
10767
10768 int
10769 main ()
10770 {
10771 return $ac_func ();
10772   ;
10773   return 0;
10774 }
10775 _ACEOF
10776 rm -f conftest.$ac_objext conftest$ac_exeext
10777 if { (ac_try="$ac_link"
10778 case "(($ac_try" in
10779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780   *) ac_try_echo=$ac_try;;
10781 esac
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783   (eval "$ac_link") 2>conftest.er1
10784   ac_status=$?
10785   grep -v '^ *+' conftest.er1 >conftest.err
10786   rm -f conftest.er1
10787   cat conftest.err >&5
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); } &&
10790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10791   { (case "(($ac_try" in
10792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793   *) ac_try_echo=$ac_try;;
10794 esac
10795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796   (eval "$ac_try") 2>&5
10797   ac_status=$?
10798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799   (exit $ac_status); }; } &&
10800          { ac_try='test -s conftest$ac_exeext'
10801   { (case "(($ac_try" in
10802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803   *) ac_try_echo=$ac_try;;
10804 esac
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806   (eval "$ac_try") 2>&5
10807   ac_status=$?
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); }; }; then
10810   eval "$as_ac_var=yes"
10811 else
10812   echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10814
10815         eval "$as_ac_var=no"
10816 fi
10817
10818 rm -f core conftest.err conftest.$ac_objext \
10819       conftest$ac_exeext conftest.$ac_ext
10820 fi
10821 ac_res=`eval echo '${'$as_ac_var'}'`
10822                { echo "$as_me:$LINENO: result: $ac_res" >&5
10823 echo "${ECHO_T}$ac_res" >&6; }
10824 if test `eval echo '${'$as_ac_var'}'` = yes; then
10825   cat >>confdefs.h <<_ACEOF
10826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10827 _ACEOF
10828
10829 fi
10830 done
10831
10832   LIBS="$lt_save_LIBS"
10833 fi
10834 ac_ext=c
10835 ac_cpp='$CPP $CPPFLAGS'
10836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10839
10840
10841
10842 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10843 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10844 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10845   echo $ECHO_N "(cached) $ECHO_C" >&6
10846 else
10847   ac_cv_sys_symbol_underscore=no
10848   cat > conftest.$ac_ext <<EOF
10849 void nm_test_func(){}
10850 int main(){nm_test_func;return 0;}
10851 EOF
10852   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10853   (eval $ac_compile) 2>&5
10854   ac_status=$?
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); }; then
10857     # Now try to grab the symbols.
10858     ac_nlist=conftest.nm
10859     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10860   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10861   ac_status=$?
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); } && test -s "$ac_nlist"; then
10864       # See whether the symbols have a leading underscore.
10865       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10866         ac_cv_sys_symbol_underscore=yes
10867       else
10868         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10869           :
10870         else
10871           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10872         fi
10873       fi
10874     else
10875       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10876     fi
10877   else
10878     echo "configure: failed program was:" >&5
10879     cat conftest.c >&5
10880   fi
10881   rm -rf conftest*
10882
10883 fi
10884 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10885 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10886
10887
10888 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10889   if test x"$libltdl_cv_func_dlopen" = xyes ||
10890      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10891         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10892 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10893 if test "${libltdl_cv_need_uscore+set}" = set; then
10894   echo $ECHO_N "(cached) $ECHO_C" >&6
10895 else
10896   libltdl_cv_need_uscore=unknown
10897           save_LIBS="$LIBS"
10898           LIBS="$LIBS $LIBADD_DL"
10899           if test "$cross_compiling" = yes; then :
10900   libltdl_cv_need_uscore=cross
10901 else
10902   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10903   lt_status=$lt_dlunknown
10904   cat > conftest.$ac_ext <<EOF
10905 #line 10905 "configure"
10906 #include "confdefs.h"
10907
10908 #if HAVE_DLFCN_H
10909 #include <dlfcn.h>
10910 #endif
10911
10912 #include <stdio.h>
10913
10914 #ifdef RTLD_GLOBAL
10915 #  define LT_DLGLOBAL           RTLD_GLOBAL
10916 #else
10917 #  ifdef DL_GLOBAL
10918 #    define LT_DLGLOBAL         DL_GLOBAL
10919 #  else
10920 #    define LT_DLGLOBAL         0
10921 #  endif
10922 #endif
10923
10924 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10925    find out it does not work in some platform. */
10926 #ifndef LT_DLLAZY_OR_NOW
10927 #  ifdef RTLD_LAZY
10928 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10929 #  else
10930 #    ifdef DL_LAZY
10931 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10932 #    else
10933 #      ifdef RTLD_NOW
10934 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10935 #      else
10936 #        ifdef DL_NOW
10937 #          define LT_DLLAZY_OR_NOW      DL_NOW
10938 #        else
10939 #          define LT_DLLAZY_OR_NOW      0
10940 #        endif
10941 #      endif
10942 #    endif
10943 #  endif
10944 #endif
10945
10946 #ifdef __cplusplus
10947 extern "C" void exit (int);
10948 #endif
10949
10950 void fnord() { int i=42;}
10951 int main ()
10952 {
10953   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10954   int status = $lt_dlunknown;
10955
10956   if (self)
10957     {
10958       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10959       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10960       /* dlclose (self); */
10961     }
10962   else
10963     puts (dlerror ());
10964
10965     exit (status);
10966 }
10967 EOF
10968   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969   (eval $ac_link) 2>&5
10970   ac_status=$?
10971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10973     (./conftest; exit; ) >&5 2>/dev/null
10974     lt_status=$?
10975     case x$lt_status in
10976       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10977       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10978       x$lt_dlunknown|x*)  ;;
10979     esac
10980   else :
10981     # compilation failed
10982
10983   fi
10984 fi
10985 rm -fr conftest*
10986
10987           LIBS="$save_LIBS"
10988
10989 fi
10990 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10991 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10992   fi
10993 fi
10994
10995 if test x"$libltdl_cv_need_uscore" = xyes; then
10996
10997 cat >>confdefs.h <<\_ACEOF
10998 #define NEED_USCORE 1
10999 _ACEOF
11000
11001 fi
11002
11003
11004 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11005 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11006 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11007   echo $ECHO_N "(cached) $ECHO_C" >&6
11008 else
11009   # PORTME does your system automatically load deplibs for dlopen?
11010   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11011   # For now, we just catch OSes we know something about -- in the
11012   # future, we'll try test this programmatically.
11013   libltdl_cv_sys_dlopen_deplibs=unknown
11014   case "$host_os" in
11015   aix3*|aix4.1.*|aix4.2.*)
11016     # Unknown whether this is true for these versions of AIX, but
11017     # we want this `case' here to explicitly catch those versions.
11018     libltdl_cv_sys_dlopen_deplibs=unknown
11019     ;;
11020   aix[45]*)
11021     libltdl_cv_sys_dlopen_deplibs=yes
11022     ;;
11023   darwin*)
11024     # Assuming the user has installed a libdl from somewhere, this is true
11025     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11026     libltdl_cv_sys_dlopen_deplibs=yes
11027     ;;
11028   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11029     # GNU and its variants, using gnu ld.so (Glibc)
11030     libltdl_cv_sys_dlopen_deplibs=yes
11031     ;;
11032   hpux10*|hpux11*)
11033     libltdl_cv_sys_dlopen_deplibs=yes
11034     ;;
11035   interix*)
11036     libltdl_cv_sys_dlopen_deplibs=yes
11037     ;;
11038   irix[12345]*|irix6.[01]*)
11039     # Catch all versions of IRIX before 6.2, and indicate that we don't
11040     # know how it worked for any of those versions.
11041     libltdl_cv_sys_dlopen_deplibs=unknown
11042     ;;
11043   irix*)
11044     # The case above catches anything before 6.2, and it's known that
11045     # at 6.2 and later dlopen does load deplibs.
11046     libltdl_cv_sys_dlopen_deplibs=yes
11047     ;;
11048   netbsd*)
11049     libltdl_cv_sys_dlopen_deplibs=yes
11050     ;;
11051   openbsd*)
11052     libltdl_cv_sys_dlopen_deplibs=yes
11053     ;;
11054   osf[1234]*)
11055     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11056     # it did *not* use an RPATH in a shared library to find objects the
11057     # library depends on, so we explictly say `no'.
11058     libltdl_cv_sys_dlopen_deplibs=no
11059     ;;
11060   osf5.0|osf5.0a|osf5.1)
11061     # dlopen *does* load deplibs and with the right loader patch applied
11062     # it even uses RPATH in a shared library to search for shared objects
11063     # that the library depends on, but there's no easy way to know if that
11064     # patch is installed.  Since this is the case, all we can really
11065     # say is unknown -- it depends on the patch being installed.  If
11066     # it is, this changes to `yes'.  Without it, it would be `no'.
11067     libltdl_cv_sys_dlopen_deplibs=unknown
11068     ;;
11069   osf*)
11070     # the two cases above should catch all versions of osf <= 5.1.  Read
11071     # the comments above for what we know about them.
11072     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11073     # is used to find them so we can finally say `yes'.
11074     libltdl_cv_sys_dlopen_deplibs=yes
11075     ;;
11076   solaris*)
11077     libltdl_cv_sys_dlopen_deplibs=yes
11078     ;;
11079   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11080     libltdl_cv_sys_dlopen_deplibs=yes
11081     ;;
11082   esac
11083
11084 fi
11085 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11086 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11087 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11088
11089 cat >>confdefs.h <<\_ACEOF
11090 #define LTDL_DLOPEN_DEPLIBS 1
11091 _ACEOF
11092
11093 fi
11094
11095
11096 for ac_header in argz.h
11097 do
11098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11103   echo $ECHO_N "(cached) $ECHO_C" >&6
11104 fi
11105 ac_res=`eval echo '${'$as_ac_Header'}'`
11106                { echo "$as_me:$LINENO: result: $ac_res" >&5
11107 echo "${ECHO_T}$ac_res" >&6; }
11108 else
11109   # Is the header compilable?
11110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11112 cat >conftest.$ac_ext <<_ACEOF
11113 /* confdefs.h.  */
11114 _ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h.  */
11118 $ac_includes_default
11119 #include <$ac_header>
11120 _ACEOF
11121 rm -f conftest.$ac_objext
11122 if { (ac_try="$ac_compile"
11123 case "(($ac_try" in
11124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125   *) ac_try_echo=$ac_try;;
11126 esac
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128   (eval "$ac_compile") 2>conftest.er1
11129   ac_status=$?
11130   grep -v '^ *+' conftest.er1 >conftest.err
11131   rm -f conftest.er1
11132   cat conftest.err >&5
11133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134   (exit $ac_status); } &&
11135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11136   { (case "(($ac_try" in
11137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138   *) ac_try_echo=$ac_try;;
11139 esac
11140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141   (eval "$ac_try") 2>&5
11142   ac_status=$?
11143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144   (exit $ac_status); }; } &&
11145          { ac_try='test -s conftest.$ac_objext'
11146   { (case "(($ac_try" in
11147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148   *) ac_try_echo=$ac_try;;
11149 esac
11150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151   (eval "$ac_try") 2>&5
11152   ac_status=$?
11153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154   (exit $ac_status); }; }; then
11155   ac_header_compiler=yes
11156 else
11157   echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11159
11160         ac_header_compiler=no
11161 fi
11162
11163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11165 echo "${ECHO_T}$ac_header_compiler" >&6; }
11166
11167 # Is the header present?
11168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11170 cat >conftest.$ac_ext <<_ACEOF
11171 /* confdefs.h.  */
11172 _ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h.  */
11176 #include <$ac_header>
11177 _ACEOF
11178 if { (ac_try="$ac_cpp conftest.$ac_ext"
11179 case "(($ac_try" in
11180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181   *) ac_try_echo=$ac_try;;
11182 esac
11183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11185   ac_status=$?
11186   grep -v '^ *+' conftest.er1 >conftest.err
11187   rm -f conftest.er1
11188   cat conftest.err >&5
11189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190   (exit $ac_status); } >/dev/null; then
11191   if test -s conftest.err; then
11192     ac_cpp_err=$ac_c_preproc_warn_flag
11193     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11194   else
11195     ac_cpp_err=
11196   fi
11197 else
11198   ac_cpp_err=yes
11199 fi
11200 if test -z "$ac_cpp_err"; then
11201   ac_header_preproc=yes
11202 else
11203   echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11205
11206   ac_header_preproc=no
11207 fi
11208
11209 rm -f conftest.err conftest.$ac_ext
11210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11211 echo "${ECHO_T}$ac_header_preproc" >&6; }
11212
11213 # So?  What about this header?
11214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11215   yes:no: )
11216     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11220     ac_header_preproc=yes
11221     ;;
11222   no:yes:* )
11223     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11225     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11226 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11227     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11229     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11230 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11233     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11235     ( cat <<\_ASBOX
11236 ## ----------------------------------- ##
11237 ## Report this to llvmbugs@cs.uiuc.edu ##
11238 ## ----------------------------------- ##
11239 _ASBOX
11240      ) | sed "s/^/$as_me: WARNING:     /" >&2
11241     ;;
11242 esac
11243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11246   echo $ECHO_N "(cached) $ECHO_C" >&6
11247 else
11248   eval "$as_ac_Header=\$ac_header_preproc"
11249 fi
11250 ac_res=`eval echo '${'$as_ac_Header'}'`
11251                { echo "$as_me:$LINENO: result: $ac_res" >&5
11252 echo "${ECHO_T}$ac_res" >&6; }
11253
11254 fi
11255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11256   cat >>confdefs.h <<_ACEOF
11257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11258 _ACEOF
11259
11260 fi
11261
11262 done
11263
11264
11265 { echo "$as_me:$LINENO: checking for error_t" >&5
11266 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11267 if test "${ac_cv_type_error_t+set}" = set; then
11268   echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270   cat >conftest.$ac_ext <<_ACEOF
11271 /* confdefs.h.  */
11272 _ACEOF
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h.  */
11276 #if HAVE_ARGZ_H
11277 #  include <argz.h>
11278 #endif
11279
11280 typedef error_t ac__type_new_;
11281 int
11282 main ()
11283 {
11284 if ((ac__type_new_ *) 0)
11285   return 0;
11286 if (sizeof (ac__type_new_))
11287   return 0;
11288   ;
11289   return 0;
11290 }
11291 _ACEOF
11292 rm -f conftest.$ac_objext
11293 if { (ac_try="$ac_compile"
11294 case "(($ac_try" in
11295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296   *) ac_try_echo=$ac_try;;
11297 esac
11298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11299   (eval "$ac_compile") 2>conftest.er1
11300   ac_status=$?
11301   grep -v '^ *+' conftest.er1 >conftest.err
11302   rm -f conftest.er1
11303   cat conftest.err >&5
11304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305   (exit $ac_status); } &&
11306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11307   { (case "(($ac_try" in
11308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309   *) ac_try_echo=$ac_try;;
11310 esac
11311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312   (eval "$ac_try") 2>&5
11313   ac_status=$?
11314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); }; } &&
11316          { ac_try='test -s conftest.$ac_objext'
11317   { (case "(($ac_try" in
11318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319   *) ac_try_echo=$ac_try;;
11320 esac
11321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322   (eval "$ac_try") 2>&5
11323   ac_status=$?
11324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325   (exit $ac_status); }; }; then
11326   ac_cv_type_error_t=yes
11327 else
11328   echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11330
11331         ac_cv_type_error_t=no
11332 fi
11333
11334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11335 fi
11336 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11337 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11338 if test $ac_cv_type_error_t = yes; then
11339
11340 cat >>confdefs.h <<_ACEOF
11341 #define HAVE_ERROR_T 1
11342 _ACEOF
11343
11344
11345 else
11346
11347 cat >>confdefs.h <<\_ACEOF
11348 #define error_t int
11349 _ACEOF
11350
11351 fi
11352
11353
11354
11355
11356
11357
11358
11359 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11360 do
11361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11362 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11364 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11365   echo $ECHO_N "(cached) $ECHO_C" >&6
11366 else
11367   cat >conftest.$ac_ext <<_ACEOF
11368 /* confdefs.h.  */
11369 _ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h.  */
11373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11374    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11375 #define $ac_func innocuous_$ac_func
11376
11377 /* System header to define __stub macros and hopefully few prototypes,
11378     which can conflict with char $ac_func (); below.
11379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11380     <limits.h> exists even on freestanding compilers.  */
11381
11382 #ifdef __STDC__
11383 # include <limits.h>
11384 #else
11385 # include <assert.h>
11386 #endif
11387
11388 #undef $ac_func
11389
11390 /* Override any GCC internal prototype to avoid an error.
11391    Use char because int might match the return type of a GCC
11392    builtin and then its argument prototype would still apply.  */
11393 #ifdef __cplusplus
11394 extern "C"
11395 #endif
11396 char $ac_func ();
11397 /* The GNU C library defines this for functions which it implements
11398     to always fail with ENOSYS.  Some functions are actually named
11399     something starting with __ and the normal name is an alias.  */
11400 #if defined __stub_$ac_func || defined __stub___$ac_func
11401 choke me
11402 #endif
11403
11404 int
11405 main ()
11406 {
11407 return $ac_func ();
11408   ;
11409   return 0;
11410 }
11411 _ACEOF
11412 rm -f conftest.$ac_objext conftest$ac_exeext
11413 if { (ac_try="$ac_link"
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_link") 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_exeext'
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   eval "$as_ac_var=yes"
11447 else
11448   echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11450
11451         eval "$as_ac_var=no"
11452 fi
11453
11454 rm -f core conftest.err conftest.$ac_objext \
11455       conftest$ac_exeext conftest.$ac_ext
11456 fi
11457 ac_res=`eval echo '${'$as_ac_var'}'`
11458                { echo "$as_me:$LINENO: result: $ac_res" >&5
11459 echo "${ECHO_T}$ac_res" >&6; }
11460 if test `eval echo '${'$as_ac_var'}'` = yes; then
11461   cat >>confdefs.h <<_ACEOF
11462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11463 _ACEOF
11464
11465 fi
11466 done
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11496                   stdio.h unistd.h
11497 do
11498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11503   echo $ECHO_N "(cached) $ECHO_C" >&6
11504 fi
11505 ac_res=`eval echo '${'$as_ac_Header'}'`
11506                { echo "$as_me:$LINENO: result: $ac_res" >&5
11507 echo "${ECHO_T}$ac_res" >&6; }
11508 else
11509   # Is the header compilable?
11510 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11512 cat >conftest.$ac_ext <<_ACEOF
11513 /* confdefs.h.  */
11514 _ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h.  */
11518 $ac_includes_default
11519 #include <$ac_header>
11520 _ACEOF
11521 rm -f conftest.$ac_objext
11522 if { (ac_try="$ac_compile"
11523 case "(($ac_try" in
11524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525   *) ac_try_echo=$ac_try;;
11526 esac
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528   (eval "$ac_compile") 2>conftest.er1
11529   ac_status=$?
11530   grep -v '^ *+' conftest.er1 >conftest.err
11531   rm -f conftest.er1
11532   cat conftest.err >&5
11533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); } &&
11535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11536   { (case "(($ac_try" in
11537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538   *) ac_try_echo=$ac_try;;
11539 esac
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541   (eval "$ac_try") 2>&5
11542   ac_status=$?
11543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544   (exit $ac_status); }; } &&
11545          { ac_try='test -s conftest.$ac_objext'
11546   { (case "(($ac_try" in
11547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548   *) ac_try_echo=$ac_try;;
11549 esac
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551   (eval "$ac_try") 2>&5
11552   ac_status=$?
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); }; }; then
11555   ac_header_compiler=yes
11556 else
11557   echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560         ac_header_compiler=no
11561 fi
11562
11563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11565 echo "${ECHO_T}$ac_header_compiler" >&6; }
11566
11567 # Is the header present?
11568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11570 cat >conftest.$ac_ext <<_ACEOF
11571 /* confdefs.h.  */
11572 _ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h.  */
11576 #include <$ac_header>
11577 _ACEOF
11578 if { (ac_try="$ac_cpp conftest.$ac_ext"
11579 case "(($ac_try" in
11580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581   *) ac_try_echo=$ac_try;;
11582 esac
11583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11585   ac_status=$?
11586   grep -v '^ *+' conftest.er1 >conftest.err
11587   rm -f conftest.er1
11588   cat conftest.err >&5
11589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590   (exit $ac_status); } >/dev/null; then
11591   if test -s conftest.err; then
11592     ac_cpp_err=$ac_c_preproc_warn_flag
11593     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11594   else
11595     ac_cpp_err=
11596   fi
11597 else
11598   ac_cpp_err=yes
11599 fi
11600 if test -z "$ac_cpp_err"; then
11601   ac_header_preproc=yes
11602 else
11603   echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11605
11606   ac_header_preproc=no
11607 fi
11608
11609 rm -f conftest.err conftest.$ac_ext
11610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11611 echo "${ECHO_T}$ac_header_preproc" >&6; }
11612
11613 # So?  What about this header?
11614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11615   yes:no: )
11616     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11618     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11620     ac_header_preproc=yes
11621     ;;
11622   no:yes:* )
11623     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11625     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11626 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11627     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11629     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11630 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11633     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11635     ( cat <<\_ASBOX
11636 ## ----------------------------------- ##
11637 ## Report this to llvmbugs@cs.uiuc.edu ##
11638 ## ----------------------------------- ##
11639 _ASBOX
11640      ) | sed "s/^/$as_me: WARNING:     /" >&2
11641     ;;
11642 esac
11643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11646   echo $ECHO_N "(cached) $ECHO_C" >&6
11647 else
11648   eval "$as_ac_Header=\$ac_header_preproc"
11649 fi
11650 ac_res=`eval echo '${'$as_ac_Header'}'`
11651                { echo "$as_me:$LINENO: result: $ac_res" >&5
11652 echo "${ECHO_T}$ac_res" >&6; }
11653
11654 fi
11655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11656   cat >>confdefs.h <<_ACEOF
11657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11658 _ACEOF
11659
11660 fi
11661
11662 done
11663
11664
11665
11666
11667
11668 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11669 do
11670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11672   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11675   echo $ECHO_N "(cached) $ECHO_C" >&6
11676 fi
11677 ac_res=`eval echo '${'$as_ac_Header'}'`
11678                { echo "$as_me:$LINENO: result: $ac_res" >&5
11679 echo "${ECHO_T}$ac_res" >&6; }
11680 else
11681   # Is the header compilable?
11682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11684 cat >conftest.$ac_ext <<_ACEOF
11685 /* confdefs.h.  */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h.  */
11690 $ac_includes_default
11691 #include <$ac_header>
11692 _ACEOF
11693 rm -f conftest.$ac_objext
11694 if { (ac_try="$ac_compile"
11695 case "(($ac_try" in
11696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697   *) ac_try_echo=$ac_try;;
11698 esac
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700   (eval "$ac_compile") 2>conftest.er1
11701   ac_status=$?
11702   grep -v '^ *+' conftest.er1 >conftest.err
11703   rm -f conftest.er1
11704   cat conftest.err >&5
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); } &&
11707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11708   { (case "(($ac_try" in
11709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710   *) ac_try_echo=$ac_try;;
11711 esac
11712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11713   (eval "$ac_try") 2>&5
11714   ac_status=$?
11715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716   (exit $ac_status); }; } &&
11717          { ac_try='test -s conftest.$ac_objext'
11718   { (case "(($ac_try" in
11719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720   *) ac_try_echo=$ac_try;;
11721 esac
11722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723   (eval "$ac_try") 2>&5
11724   ac_status=$?
11725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726   (exit $ac_status); }; }; then
11727   ac_header_compiler=yes
11728 else
11729   echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11731
11732         ac_header_compiler=no
11733 fi
11734
11735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11737 echo "${ECHO_T}$ac_header_compiler" >&6; }
11738
11739 # Is the header present?
11740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11742 cat >conftest.$ac_ext <<_ACEOF
11743 /* confdefs.h.  */
11744 _ACEOF
11745 cat confdefs.h >>conftest.$ac_ext
11746 cat >>conftest.$ac_ext <<_ACEOF
11747 /* end confdefs.h.  */
11748 #include <$ac_header>
11749 _ACEOF
11750 if { (ac_try="$ac_cpp conftest.$ac_ext"
11751 case "(($ac_try" in
11752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753   *) ac_try_echo=$ac_try;;
11754 esac
11755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11756   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11757   ac_status=$?
11758   grep -v '^ *+' conftest.er1 >conftest.err
11759   rm -f conftest.er1
11760   cat conftest.err >&5
11761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762   (exit $ac_status); } >/dev/null; then
11763   if test -s conftest.err; then
11764     ac_cpp_err=$ac_c_preproc_warn_flag
11765     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11766   else
11767     ac_cpp_err=
11768   fi
11769 else
11770   ac_cpp_err=yes
11771 fi
11772 if test -z "$ac_cpp_err"; then
11773   ac_header_preproc=yes
11774 else
11775   echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11777
11778   ac_header_preproc=no
11779 fi
11780
11781 rm -f conftest.err conftest.$ac_ext
11782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11783 echo "${ECHO_T}$ac_header_preproc" >&6; }
11784
11785 # So?  What about this header?
11786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11787   yes:no: )
11788     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11792     ac_header_preproc=yes
11793     ;;
11794   no:yes:* )
11795     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11797     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11798 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11799     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11801     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11802 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11805     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11807     ( cat <<\_ASBOX
11808 ## ----------------------------------- ##
11809 ## Report this to llvmbugs@cs.uiuc.edu ##
11810 ## ----------------------------------- ##
11811 _ASBOX
11812      ) | sed "s/^/$as_me: WARNING:     /" >&2
11813     ;;
11814 esac
11815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11818   echo $ECHO_N "(cached) $ECHO_C" >&6
11819 else
11820   eval "$as_ac_Header=\$ac_header_preproc"
11821 fi
11822 ac_res=`eval echo '${'$as_ac_Header'}'`
11823                { echo "$as_me:$LINENO: result: $ac_res" >&5
11824 echo "${ECHO_T}$ac_res" >&6; }
11825
11826 fi
11827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11828   cat >>confdefs.h <<_ACEOF
11829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11830 _ACEOF
11831
11832 fi
11833
11834 done
11835
11836
11837
11838 for ac_header in string.h strings.h
11839 do
11840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11842   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11845   echo $ECHO_N "(cached) $ECHO_C" >&6
11846 fi
11847 ac_res=`eval echo '${'$as_ac_Header'}'`
11848                { echo "$as_me:$LINENO: result: $ac_res" >&5
11849 echo "${ECHO_T}$ac_res" >&6; }
11850 else
11851   # Is the header compilable?
11852 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11854 cat >conftest.$ac_ext <<_ACEOF
11855 /* confdefs.h.  */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h.  */
11860 $ac_includes_default
11861 #include <$ac_header>
11862 _ACEOF
11863 rm -f conftest.$ac_objext
11864 if { (ac_try="$ac_compile"
11865 case "(($ac_try" in
11866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867   *) ac_try_echo=$ac_try;;
11868 esac
11869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870   (eval "$ac_compile") 2>conftest.er1
11871   ac_status=$?
11872   grep -v '^ *+' conftest.er1 >conftest.err
11873   rm -f conftest.er1
11874   cat conftest.err >&5
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); } &&
11877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11878   { (case "(($ac_try" in
11879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880   *) ac_try_echo=$ac_try;;
11881 esac
11882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883   (eval "$ac_try") 2>&5
11884   ac_status=$?
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); }; } &&
11887          { ac_try='test -s conftest.$ac_objext'
11888   { (case "(($ac_try" in
11889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890   *) ac_try_echo=$ac_try;;
11891 esac
11892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11893   (eval "$ac_try") 2>&5
11894   ac_status=$?
11895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896   (exit $ac_status); }; }; then
11897   ac_header_compiler=yes
11898 else
11899   echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11901
11902         ac_header_compiler=no
11903 fi
11904
11905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11907 echo "${ECHO_T}$ac_header_compiler" >&6; }
11908
11909 # Is the header present?
11910 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11912 cat >conftest.$ac_ext <<_ACEOF
11913 /* confdefs.h.  */
11914 _ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h.  */
11918 #include <$ac_header>
11919 _ACEOF
11920 if { (ac_try="$ac_cpp conftest.$ac_ext"
11921 case "(($ac_try" in
11922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923   *) ac_try_echo=$ac_try;;
11924 esac
11925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11927   ac_status=$?
11928   grep -v '^ *+' conftest.er1 >conftest.err
11929   rm -f conftest.er1
11930   cat conftest.err >&5
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); } >/dev/null; then
11933   if test -s conftest.err; then
11934     ac_cpp_err=$ac_c_preproc_warn_flag
11935     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11936   else
11937     ac_cpp_err=
11938   fi
11939 else
11940   ac_cpp_err=yes
11941 fi
11942 if test -z "$ac_cpp_err"; then
11943   ac_header_preproc=yes
11944 else
11945   echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.$ac_ext >&5
11947
11948   ac_header_preproc=no
11949 fi
11950
11951 rm -f conftest.err conftest.$ac_ext
11952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11953 echo "${ECHO_T}$ac_header_preproc" >&6; }
11954
11955 # So?  What about this header?
11956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11957   yes:no: )
11958     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11962     ac_header_preproc=yes
11963     ;;
11964   no:yes:* )
11965     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11967     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11968 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11969     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11971     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11972 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11973     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11975     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11977     ( cat <<\_ASBOX
11978 ## ----------------------------------- ##
11979 ## Report this to llvmbugs@cs.uiuc.edu ##
11980 ## ----------------------------------- ##
11981 _ASBOX
11982      ) | sed "s/^/$as_me: WARNING:     /" >&2
11983     ;;
11984 esac
11985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11988   echo $ECHO_N "(cached) $ECHO_C" >&6
11989 else
11990   eval "$as_ac_Header=\$ac_header_preproc"
11991 fi
11992 ac_res=`eval echo '${'$as_ac_Header'}'`
11993                { echo "$as_me:$LINENO: result: $ac_res" >&5
11994 echo "${ECHO_T}$ac_res" >&6; }
11995
11996 fi
11997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11998   cat >>confdefs.h <<_ACEOF
11999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12000 _ACEOF
12001  break
12002 fi
12003
12004 done
12005
12006
12007
12008
12009 for ac_func in strchr index
12010 do
12011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12012 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12015   echo $ECHO_N "(cached) $ECHO_C" >&6
12016 else
12017   cat >conftest.$ac_ext <<_ACEOF
12018 /* confdefs.h.  */
12019 _ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h.  */
12023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12025 #define $ac_func innocuous_$ac_func
12026
12027 /* System header to define __stub macros and hopefully few prototypes,
12028     which can conflict with char $ac_func (); below.
12029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12030     <limits.h> exists even on freestanding compilers.  */
12031
12032 #ifdef __STDC__
12033 # include <limits.h>
12034 #else
12035 # include <assert.h>
12036 #endif
12037
12038 #undef $ac_func
12039
12040 /* Override any GCC internal prototype to avoid an error.
12041    Use char because int might match the return type of a GCC
12042    builtin and then its argument prototype would still apply.  */
12043 #ifdef __cplusplus
12044 extern "C"
12045 #endif
12046 char $ac_func ();
12047 /* The GNU C library defines this for functions which it implements
12048     to always fail with ENOSYS.  Some functions are actually named
12049     something starting with __ and the normal name is an alias.  */
12050 #if defined __stub_$ac_func || defined __stub___$ac_func
12051 choke me
12052 #endif
12053
12054 int
12055 main ()
12056 {
12057 return $ac_func ();
12058   ;
12059   return 0;
12060 }
12061 _ACEOF
12062 rm -f conftest.$ac_objext conftest$ac_exeext
12063 if { (ac_try="$ac_link"
12064 case "(($ac_try" in
12065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066   *) ac_try_echo=$ac_try;;
12067 esac
12068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069   (eval "$ac_link") 2>conftest.er1
12070   ac_status=$?
12071   grep -v '^ *+' conftest.er1 >conftest.err
12072   rm -f conftest.er1
12073   cat conftest.err >&5
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); } &&
12076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12077   { (case "(($ac_try" in
12078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079   *) ac_try_echo=$ac_try;;
12080 esac
12081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082   (eval "$ac_try") 2>&5
12083   ac_status=$?
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); }; } &&
12086          { ac_try='test -s conftest$ac_exeext'
12087   { (case "(($ac_try" in
12088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089   *) ac_try_echo=$ac_try;;
12090 esac
12091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12092   (eval "$ac_try") 2>&5
12093   ac_status=$?
12094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095   (exit $ac_status); }; }; then
12096   eval "$as_ac_var=yes"
12097 else
12098   echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12100
12101         eval "$as_ac_var=no"
12102 fi
12103
12104 rm -f core conftest.err conftest.$ac_objext \
12105       conftest$ac_exeext conftest.$ac_ext
12106 fi
12107 ac_res=`eval echo '${'$as_ac_var'}'`
12108                { echo "$as_me:$LINENO: result: $ac_res" >&5
12109 echo "${ECHO_T}$ac_res" >&6; }
12110 if test `eval echo '${'$as_ac_var'}'` = yes; then
12111   cat >>confdefs.h <<_ACEOF
12112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12113 _ACEOF
12114  break
12115 fi
12116 done
12117
12118
12119
12120 for ac_func in strrchr rindex
12121 do
12122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12126   echo $ECHO_N "(cached) $ECHO_C" >&6
12127 else
12128   cat >conftest.$ac_ext <<_ACEOF
12129 /* confdefs.h.  */
12130 _ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h.  */
12134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12136 #define $ac_func innocuous_$ac_func
12137
12138 /* System header to define __stub macros and hopefully few prototypes,
12139     which can conflict with char $ac_func (); below.
12140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12141     <limits.h> exists even on freestanding compilers.  */
12142
12143 #ifdef __STDC__
12144 # include <limits.h>
12145 #else
12146 # include <assert.h>
12147 #endif
12148
12149 #undef $ac_func
12150
12151 /* Override any GCC internal prototype to avoid an error.
12152    Use char because int might match the return type of a GCC
12153    builtin and then its argument prototype would still apply.  */
12154 #ifdef __cplusplus
12155 extern "C"
12156 #endif
12157 char $ac_func ();
12158 /* The GNU C library defines this for functions which it implements
12159     to always fail with ENOSYS.  Some functions are actually named
12160     something starting with __ and the normal name is an alias.  */
12161 #if defined __stub_$ac_func || defined __stub___$ac_func
12162 choke me
12163 #endif
12164
12165 int
12166 main ()
12167 {
12168 return $ac_func ();
12169   ;
12170   return 0;
12171 }
12172 _ACEOF
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (ac_try="$ac_link"
12175 case "(($ac_try" in
12176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177   *) ac_try_echo=$ac_try;;
12178 esac
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180   (eval "$ac_link") 2>conftest.er1
12181   ac_status=$?
12182   grep -v '^ *+' conftest.er1 >conftest.err
12183   rm -f conftest.er1
12184   cat conftest.err >&5
12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186   (exit $ac_status); } &&
12187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12188   { (case "(($ac_try" in
12189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190   *) ac_try_echo=$ac_try;;
12191 esac
12192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193   (eval "$ac_try") 2>&5
12194   ac_status=$?
12195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196   (exit $ac_status); }; } &&
12197          { ac_try='test -s conftest$ac_exeext'
12198   { (case "(($ac_try" in
12199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200   *) ac_try_echo=$ac_try;;
12201 esac
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203   (eval "$ac_try") 2>&5
12204   ac_status=$?
12205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206   (exit $ac_status); }; }; then
12207   eval "$as_ac_var=yes"
12208 else
12209   echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12211
12212         eval "$as_ac_var=no"
12213 fi
12214
12215 rm -f core conftest.err conftest.$ac_objext \
12216       conftest$ac_exeext conftest.$ac_ext
12217 fi
12218 ac_res=`eval echo '${'$as_ac_var'}'`
12219                { echo "$as_me:$LINENO: result: $ac_res" >&5
12220 echo "${ECHO_T}$ac_res" >&6; }
12221 if test `eval echo '${'$as_ac_var'}'` = yes; then
12222   cat >>confdefs.h <<_ACEOF
12223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12224 _ACEOF
12225  break
12226 fi
12227 done
12228
12229
12230
12231 for ac_func in memcpy bcopy
12232 do
12233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12237   echo $ECHO_N "(cached) $ECHO_C" >&6
12238 else
12239   cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h.  */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h.  */
12245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12246    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12247 #define $ac_func innocuous_$ac_func
12248
12249 /* System header to define __stub macros and hopefully few prototypes,
12250     which can conflict with char $ac_func (); below.
12251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12252     <limits.h> exists even on freestanding compilers.  */
12253
12254 #ifdef __STDC__
12255 # include <limits.h>
12256 #else
12257 # include <assert.h>
12258 #endif
12259
12260 #undef $ac_func
12261
12262 /* Override any GCC internal prototype to avoid an error.
12263    Use char because int might match the return type of a GCC
12264    builtin and then its argument prototype would still apply.  */
12265 #ifdef __cplusplus
12266 extern "C"
12267 #endif
12268 char $ac_func ();
12269 /* The GNU C library defines this for functions which it implements
12270     to always fail with ENOSYS.  Some functions are actually named
12271     something starting with __ and the normal name is an alias.  */
12272 #if defined __stub_$ac_func || defined __stub___$ac_func
12273 choke me
12274 #endif
12275
12276 int
12277 main ()
12278 {
12279 return $ac_func ();
12280   ;
12281   return 0;
12282 }
12283 _ACEOF
12284 rm -f conftest.$ac_objext conftest$ac_exeext
12285 if { (ac_try="$ac_link"
12286 case "(($ac_try" in
12287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12288   *) ac_try_echo=$ac_try;;
12289 esac
12290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12291   (eval "$ac_link") 2>conftest.er1
12292   ac_status=$?
12293   grep -v '^ *+' conftest.er1 >conftest.err
12294   rm -f conftest.er1
12295   cat conftest.err >&5
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); } &&
12298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12299   { (case "(($ac_try" in
12300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301   *) ac_try_echo=$ac_try;;
12302 esac
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304   (eval "$ac_try") 2>&5
12305   ac_status=$?
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   (exit $ac_status); }; } &&
12308          { ac_try='test -s conftest$ac_exeext'
12309   { (case "(($ac_try" in
12310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311   *) ac_try_echo=$ac_try;;
12312 esac
12313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12314   (eval "$ac_try") 2>&5
12315   ac_status=$?
12316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317   (exit $ac_status); }; }; then
12318   eval "$as_ac_var=yes"
12319 else
12320   echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12322
12323         eval "$as_ac_var=no"
12324 fi
12325
12326 rm -f core conftest.err conftest.$ac_objext \
12327       conftest$ac_exeext conftest.$ac_ext
12328 fi
12329 ac_res=`eval echo '${'$as_ac_var'}'`
12330                { echo "$as_me:$LINENO: result: $ac_res" >&5
12331 echo "${ECHO_T}$ac_res" >&6; }
12332 if test `eval echo '${'$as_ac_var'}'` = yes; then
12333   cat >>confdefs.h <<_ACEOF
12334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12335 _ACEOF
12336  break
12337 fi
12338 done
12339
12340
12341
12342 for ac_func in memmove strcmp
12343 do
12344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12348   echo $ECHO_N "(cached) $ECHO_C" >&6
12349 else
12350   cat >conftest.$ac_ext <<_ACEOF
12351 /* confdefs.h.  */
12352 _ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h.  */
12356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12358 #define $ac_func innocuous_$ac_func
12359
12360 /* System header to define __stub macros and hopefully few prototypes,
12361     which can conflict with char $ac_func (); below.
12362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12363     <limits.h> exists even on freestanding compilers.  */
12364
12365 #ifdef __STDC__
12366 # include <limits.h>
12367 #else
12368 # include <assert.h>
12369 #endif
12370
12371 #undef $ac_func
12372
12373 /* Override any GCC internal prototype to avoid an error.
12374    Use char because int might match the return type of a GCC
12375    builtin and then its argument prototype would still apply.  */
12376 #ifdef __cplusplus
12377 extern "C"
12378 #endif
12379 char $ac_func ();
12380 /* The GNU C library defines this for functions which it implements
12381     to always fail with ENOSYS.  Some functions are actually named
12382     something starting with __ and the normal name is an alias.  */
12383 #if defined __stub_$ac_func || defined __stub___$ac_func
12384 choke me
12385 #endif
12386
12387 int
12388 main ()
12389 {
12390 return $ac_func ();
12391   ;
12392   return 0;
12393 }
12394 _ACEOF
12395 rm -f conftest.$ac_objext conftest$ac_exeext
12396 if { (ac_try="$ac_link"
12397 case "(($ac_try" in
12398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399   *) ac_try_echo=$ac_try;;
12400 esac
12401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402   (eval "$ac_link") 2>conftest.er1
12403   ac_status=$?
12404   grep -v '^ *+' conftest.er1 >conftest.err
12405   rm -f conftest.er1
12406   cat conftest.err >&5
12407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408   (exit $ac_status); } &&
12409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12410   { (case "(($ac_try" in
12411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412   *) ac_try_echo=$ac_try;;
12413 esac
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415   (eval "$ac_try") 2>&5
12416   ac_status=$?
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); }; } &&
12419          { ac_try='test -s conftest$ac_exeext'
12420   { (case "(($ac_try" in
12421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422   *) ac_try_echo=$ac_try;;
12423 esac
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425   (eval "$ac_try") 2>&5
12426   ac_status=$?
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); }; }; then
12429   eval "$as_ac_var=yes"
12430 else
12431   echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12433
12434         eval "$as_ac_var=no"
12435 fi
12436
12437 rm -f core conftest.err conftest.$ac_objext \
12438       conftest$ac_exeext conftest.$ac_ext
12439 fi
12440 ac_res=`eval echo '${'$as_ac_var'}'`
12441                { echo "$as_me:$LINENO: result: $ac_res" >&5
12442 echo "${ECHO_T}$ac_res" >&6; }
12443 if test `eval echo '${'$as_ac_var'}'` = yes; then
12444   cat >>confdefs.h <<_ACEOF
12445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12446 _ACEOF
12447
12448 fi
12449 done
12450
12451
12452
12453
12454 for ac_func in closedir opendir readdir
12455 do
12456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12460   echo $ECHO_N "(cached) $ECHO_C" >&6
12461 else
12462   cat >conftest.$ac_ext <<_ACEOF
12463 /* confdefs.h.  */
12464 _ACEOF
12465 cat confdefs.h >>conftest.$ac_ext
12466 cat >>conftest.$ac_ext <<_ACEOF
12467 /* end confdefs.h.  */
12468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12470 #define $ac_func innocuous_$ac_func
12471
12472 /* System header to define __stub macros and hopefully few prototypes,
12473     which can conflict with char $ac_func (); below.
12474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12475     <limits.h> exists even on freestanding compilers.  */
12476
12477 #ifdef __STDC__
12478 # include <limits.h>
12479 #else
12480 # include <assert.h>
12481 #endif
12482
12483 #undef $ac_func
12484
12485 /* Override any GCC internal prototype to avoid an error.
12486    Use char because int might match the return type of a GCC
12487    builtin and then its argument prototype would still apply.  */
12488 #ifdef __cplusplus
12489 extern "C"
12490 #endif
12491 char $ac_func ();
12492 /* The GNU C library defines this for functions which it implements
12493     to always fail with ENOSYS.  Some functions are actually named
12494     something starting with __ and the normal name is an alias.  */
12495 #if defined __stub_$ac_func || defined __stub___$ac_func
12496 choke me
12497 #endif
12498
12499 int
12500 main ()
12501 {
12502 return $ac_func ();
12503   ;
12504   return 0;
12505 }
12506 _ACEOF
12507 rm -f conftest.$ac_objext conftest$ac_exeext
12508 if { (ac_try="$ac_link"
12509 case "(($ac_try" in
12510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511   *) ac_try_echo=$ac_try;;
12512 esac
12513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514   (eval "$ac_link") 2>conftest.er1
12515   ac_status=$?
12516   grep -v '^ *+' conftest.er1 >conftest.err
12517   rm -f conftest.er1
12518   cat conftest.err >&5
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); } &&
12521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12522   { (case "(($ac_try" in
12523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12524   *) ac_try_echo=$ac_try;;
12525 esac
12526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12527   (eval "$ac_try") 2>&5
12528   ac_status=$?
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); }; } &&
12531          { ac_try='test -s conftest$ac_exeext'
12532   { (case "(($ac_try" in
12533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534   *) ac_try_echo=$ac_try;;
12535 esac
12536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537   (eval "$ac_try") 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); }; }; then
12541   eval "$as_ac_var=yes"
12542 else
12543   echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12545
12546         eval "$as_ac_var=no"
12547 fi
12548
12549 rm -f core conftest.err conftest.$ac_objext \
12550       conftest$ac_exeext conftest.$ac_ext
12551 fi
12552 ac_res=`eval echo '${'$as_ac_var'}'`
12553                { echo "$as_me:$LINENO: result: $ac_res" >&5
12554 echo "${ECHO_T}$ac_res" >&6; }
12555 if test `eval echo '${'$as_ac_var'}'` = yes; then
12556   cat >>confdefs.h <<_ACEOF
12557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12558 _ACEOF
12559
12560 fi
12561 done
12562
12563
12564 # Check whether --enable-shared was given.
12565 if test "${enable_shared+set}" = set; then
12566   enableval=$enable_shared; p=${PACKAGE-default}
12567     case $enableval in
12568     yes) enable_shared=yes ;;
12569     no) enable_shared=no ;;
12570     *)
12571       enable_shared=no
12572       # Look at the argument we got.  We use all the common list separators.
12573       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12574       for pkg in $enableval; do
12575         IFS="$lt_save_ifs"
12576         if test "X$pkg" = "X$p"; then
12577           enable_shared=yes
12578         fi
12579       done
12580       IFS="$lt_save_ifs"
12581       ;;
12582     esac
12583 else
12584   enable_shared=yes
12585 fi
12586
12587
12588 # Check whether --enable-static was given.
12589 if test "${enable_static+set}" = set; then
12590   enableval=$enable_static; p=${PACKAGE-default}
12591     case $enableval in
12592     yes) enable_static=yes ;;
12593     no) enable_static=no ;;
12594     *)
12595      enable_static=no
12596       # Look at the argument we got.  We use all the common list separators.
12597       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12598       for pkg in $enableval; do
12599         IFS="$lt_save_ifs"
12600         if test "X$pkg" = "X$p"; then
12601           enable_static=yes
12602         fi
12603       done
12604       IFS="$lt_save_ifs"
12605       ;;
12606     esac
12607 else
12608   enable_static=yes
12609 fi
12610
12611
12612 # Check whether --enable-fast-install was given.
12613 if test "${enable_fast_install+set}" = set; then
12614   enableval=$enable_fast_install; p=${PACKAGE-default}
12615     case $enableval in
12616     yes) enable_fast_install=yes ;;
12617     no) enable_fast_install=no ;;
12618     *)
12619       enable_fast_install=no
12620       # Look at the argument we got.  We use all the common list separators.
12621       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12622       for pkg in $enableval; do
12623         IFS="$lt_save_ifs"
12624         if test "X$pkg" = "X$p"; then
12625           enable_fast_install=yes
12626         fi
12627       done
12628       IFS="$lt_save_ifs"
12629       ;;
12630     esac
12631 else
12632   enable_fast_install=yes
12633 fi
12634
12635
12636 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12637 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12638 if test "${lt_cv_path_SED+set}" = set; then
12639   echo $ECHO_N "(cached) $ECHO_C" >&6
12640 else
12641   # Loop through the user's path and test for sed and gsed.
12642 # Then use that list of sed's as ones to test for truncation.
12643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12644 for as_dir in $PATH
12645 do
12646   IFS=$as_save_IFS
12647   test -z "$as_dir" && as_dir=.
12648   for lt_ac_prog in sed gsed; do
12649     for ac_exec_ext in '' $ac_executable_extensions; do
12650       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12651         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12652       fi
12653     done
12654   done
12655 done
12656 lt_ac_max=0
12657 lt_ac_count=0
12658 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12659 # along with /bin/sed that truncates output.
12660 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12661   test ! -f $lt_ac_sed && continue
12662   cat /dev/null > conftest.in
12663   lt_ac_count=0
12664   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12665   # Check for GNU sed and select it if it is found.
12666   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12667     lt_cv_path_SED=$lt_ac_sed
12668     break
12669   fi
12670   while true; do
12671     cat conftest.in conftest.in >conftest.tmp
12672     mv conftest.tmp conftest.in
12673     cp conftest.in conftest.nl
12674     echo >>conftest.nl
12675     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12676     cmp -s conftest.out conftest.nl || break
12677     # 10000 chars as input seems more than enough
12678     test $lt_ac_count -gt 10 && break
12679     lt_ac_count=`expr $lt_ac_count + 1`
12680     if test $lt_ac_count -gt $lt_ac_max; then
12681       lt_ac_max=$lt_ac_count
12682       lt_cv_path_SED=$lt_ac_sed
12683     fi
12684   done
12685 done
12686
12687 fi
12688
12689 SED=$lt_cv_path_SED
12690 { echo "$as_me:$LINENO: result: $SED" >&5
12691 echo "${ECHO_T}$SED" >&6; }
12692
12693
12694 # Check whether --with-gnu-ld was given.
12695 if test "${with_gnu_ld+set}" = set; then
12696   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12697 else
12698   with_gnu_ld=no
12699 fi
12700
12701 ac_prog=ld
12702 if test "$GCC" = yes; then
12703   # Check if gcc -print-prog-name=ld gives a path.
12704   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12705 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12706   case $host in
12707   *-*-mingw*)
12708     # gcc leaves a trailing carriage return which upsets mingw
12709     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12710   *)
12711     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12712   esac
12713   case $ac_prog in
12714     # Accept absolute paths.
12715     [\\/]* | ?:[\\/]*)
12716       re_direlt='/[^/][^/]*/\.\./'
12717       # Canonicalize the pathname of ld
12718       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12719       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12720         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12721       done
12722       test -z "$LD" && LD="$ac_prog"
12723       ;;
12724   "")
12725     # If it fails, then pretend we aren't using GCC.
12726     ac_prog=ld
12727     ;;
12728   *)
12729     # If it is relative, then search for the first ld in PATH.
12730     with_gnu_ld=unknown
12731     ;;
12732   esac
12733 elif test "$with_gnu_ld" = yes; then
12734   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12735 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12736 else
12737   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12738 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12739 fi
12740 if test "${lt_cv_path_LD+set}" = set; then
12741   echo $ECHO_N "(cached) $ECHO_C" >&6
12742 else
12743   if test -z "$LD"; then
12744   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12745   for ac_dir in $PATH; do
12746     IFS="$lt_save_ifs"
12747     test -z "$ac_dir" && ac_dir=.
12748     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12749       lt_cv_path_LD="$ac_dir/$ac_prog"
12750       # Check to see if the program is GNU ld.  I'd rather use --version,
12751       # but apparently some variants of GNU ld only accept -v.
12752       # Break only if it was the GNU/non-GNU ld that we prefer.
12753       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12754       *GNU* | *'with BFD'*)
12755         test "$with_gnu_ld" != no && break
12756         ;;
12757       *)
12758         test "$with_gnu_ld" != yes && break
12759         ;;
12760       esac
12761     fi
12762   done
12763   IFS="$lt_save_ifs"
12764 else
12765   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12766 fi
12767 fi
12768
12769 LD="$lt_cv_path_LD"
12770 if test -n "$LD"; then
12771   { echo "$as_me:$LINENO: result: $LD" >&5
12772 echo "${ECHO_T}$LD" >&6; }
12773 else
12774   { echo "$as_me:$LINENO: result: no" >&5
12775 echo "${ECHO_T}no" >&6; }
12776 fi
12777 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12778 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12779    { (exit 1); exit 1; }; }
12780 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12781 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12782 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12783   echo $ECHO_N "(cached) $ECHO_C" >&6
12784 else
12785   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12786 case `$LD -v 2>&1 </dev/null` in
12787 *GNU* | *'with BFD'*)
12788   lt_cv_prog_gnu_ld=yes
12789   ;;
12790 *)
12791   lt_cv_prog_gnu_ld=no
12792   ;;
12793 esac
12794 fi
12795 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12796 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12797 with_gnu_ld=$lt_cv_prog_gnu_ld
12798
12799
12800 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12801 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12802 if test "${lt_cv_ld_reload_flag+set}" = set; then
12803   echo $ECHO_N "(cached) $ECHO_C" >&6
12804 else
12805   lt_cv_ld_reload_flag='-r'
12806 fi
12807 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12808 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12809 reload_flag=$lt_cv_ld_reload_flag
12810 case $reload_flag in
12811 "" | " "*) ;;
12812 *) reload_flag=" $reload_flag" ;;
12813 esac
12814 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12815 case $host_os in
12816   darwin*)
12817     if test "$GCC" = yes; then
12818       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12819     else
12820       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12821     fi
12822     ;;
12823 esac
12824
12825 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12826 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12827 if test "${lt_cv_deplibs_check_method+set}" = set; then
12828   echo $ECHO_N "(cached) $ECHO_C" >&6
12829 else
12830   lt_cv_file_magic_cmd='$MAGIC_CMD'
12831 lt_cv_file_magic_test_file=
12832 lt_cv_deplibs_check_method='unknown'
12833 # Need to set the preceding variable on all platforms that support
12834 # interlibrary dependencies.
12835 # 'none' -- dependencies not supported.
12836 # `unknown' -- same as none, but documents that we really don't know.
12837 # 'pass_all' -- all dependencies passed with no checks.
12838 # 'test_compile' -- check by making test program.
12839 # 'file_magic [[regex]]' -- check by looking for files in library path
12840 # which responds to the $file_magic_cmd with a given extended regex.
12841 # If you have `file' or equivalent on your system and you're not sure
12842 # whether `pass_all' will *always* work, you probably want this one.
12843
12844 case $host_os in
12845 aix4* | aix5*)
12846   lt_cv_deplibs_check_method=pass_all
12847   ;;
12848
12849 beos*)
12850   lt_cv_deplibs_check_method=pass_all
12851   ;;
12852
12853 bsdi[45]*)
12854   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12855   lt_cv_file_magic_cmd='/usr/bin/file -L'
12856   lt_cv_file_magic_test_file=/shlib/libc.so
12857   ;;
12858
12859 cygwin*)
12860   # func_win32_libid is a shell function defined in ltmain.sh
12861   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12862   lt_cv_file_magic_cmd='func_win32_libid'
12863   ;;
12864
12865 mingw* | pw32*)
12866   # Base MSYS/MinGW do not provide the 'file' command needed by
12867   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12868   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12869   lt_cv_file_magic_cmd='$OBJDUMP -f'
12870   ;;
12871
12872 darwin* | rhapsody*)
12873   lt_cv_deplibs_check_method=pass_all
12874   ;;
12875
12876 freebsd* | kfreebsd*-gnu | dragonfly*)
12877   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12878     case $host_cpu in
12879     i*86 )
12880       # Not sure whether the presence of OpenBSD here was a mistake.
12881       # Let's accept both of them until this is cleared up.
12882       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12883       lt_cv_file_magic_cmd=/usr/bin/file
12884       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12885       ;;
12886     esac
12887   else
12888     lt_cv_deplibs_check_method=pass_all
12889   fi
12890   ;;
12891
12892 gnu*)
12893   lt_cv_deplibs_check_method=pass_all
12894   ;;
12895
12896 hpux10.20* | hpux11*)
12897   lt_cv_file_magic_cmd=/usr/bin/file
12898   case $host_cpu in
12899   ia64*)
12900     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12901     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12902     ;;
12903   hppa*64*)
12904     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]'
12905     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12906     ;;
12907   *)
12908     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12909     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12910     ;;
12911   esac
12912   ;;
12913
12914 interix3*)
12915   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12916   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12917   ;;
12918
12919 irix5* | irix6* | nonstopux*)
12920   case $LD in
12921   *-32|*"-32 ") libmagic=32-bit;;
12922   *-n32|*"-n32 ") libmagic=N32;;
12923   *-64|*"-64 ") libmagic=64-bit;;
12924   *) libmagic=never-match;;
12925   esac
12926   lt_cv_deplibs_check_method=pass_all
12927   ;;
12928
12929 # This must be Linux ELF.
12930 linux*)
12931   lt_cv_deplibs_check_method=pass_all
12932   ;;
12933
12934 netbsd*)
12935   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12936     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12937   else
12938     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12939   fi
12940   ;;
12941
12942 newos6*)
12943   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12944   lt_cv_file_magic_cmd=/usr/bin/file
12945   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12946   ;;
12947
12948 nto-qnx*)
12949   lt_cv_deplibs_check_method=unknown
12950   ;;
12951
12952 openbsd*)
12953   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12954     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12955   else
12956     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12957   fi
12958   ;;
12959
12960 osf3* | osf4* | osf5*)
12961   lt_cv_deplibs_check_method=pass_all
12962   ;;
12963
12964 solaris*)
12965   lt_cv_deplibs_check_method=pass_all
12966   ;;
12967
12968 sysv4 | sysv4.3*)
12969   case $host_vendor in
12970   motorola)
12971     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]'
12972     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12973     ;;
12974   ncr)
12975     lt_cv_deplibs_check_method=pass_all
12976     ;;
12977   sequent)
12978     lt_cv_file_magic_cmd='/bin/file'
12979     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12980     ;;
12981   sni)
12982     lt_cv_file_magic_cmd='/bin/file'
12983     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12984     lt_cv_file_magic_test_file=/lib/libc.so
12985     ;;
12986   siemens)
12987     lt_cv_deplibs_check_method=pass_all
12988     ;;
12989   pc)
12990     lt_cv_deplibs_check_method=pass_all
12991     ;;
12992   esac
12993   ;;
12994
12995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12996   lt_cv_deplibs_check_method=pass_all
12997   ;;
12998 esac
12999
13000 fi
13001 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13002 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13003 file_magic_cmd=$lt_cv_file_magic_cmd
13004 deplibs_check_method=$lt_cv_deplibs_check_method
13005 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13006
13007
13008
13009 # If no C compiler was specified, use CC.
13010 LTCC=${LTCC-"$CC"}
13011
13012 # If no C compiler flags were specified, use CFLAGS.
13013 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13014
13015 # Allow CC to be a program name with arguments.
13016 compiler=$CC
13017
13018 # Check whether --enable-libtool-lock was given.
13019 if test "${enable_libtool_lock+set}" = set; then
13020   enableval=$enable_libtool_lock;
13021 fi
13022
13023 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13024
13025 # Some flags need to be propagated to the compiler or linker for good
13026 # libtool support.
13027 case $host in
13028 ia64-*-hpux*)
13029   # Find out which ABI we are using.
13030   echo 'int i;' > conftest.$ac_ext
13031   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13032   (eval $ac_compile) 2>&5
13033   ac_status=$?
13034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035   (exit $ac_status); }; then
13036     case `/usr/bin/file conftest.$ac_objext` in
13037     *ELF-32*)
13038       HPUX_IA64_MODE="32"
13039       ;;
13040     *ELF-64*)
13041       HPUX_IA64_MODE="64"
13042       ;;
13043     esac
13044   fi
13045   rm -rf conftest*
13046   ;;
13047 *-*-irix6*)
13048   # Find out which ABI we are using.
13049   echo '#line 13049 "configure"' > conftest.$ac_ext
13050   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051   (eval $ac_compile) 2>&5
13052   ac_status=$?
13053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054   (exit $ac_status); }; then
13055    if test "$lt_cv_prog_gnu_ld" = yes; then
13056     case `/usr/bin/file conftest.$ac_objext` in
13057     *32-bit*)
13058       LD="${LD-ld} -melf32bsmip"
13059       ;;
13060     *N32*)
13061       LD="${LD-ld} -melf32bmipn32"
13062       ;;
13063     *64-bit*)
13064       LD="${LD-ld} -melf64bmip"
13065       ;;
13066     esac
13067    else
13068     case `/usr/bin/file conftest.$ac_objext` in
13069     *32-bit*)
13070       LD="${LD-ld} -32"
13071       ;;
13072     *N32*)
13073       LD="${LD-ld} -n32"
13074       ;;
13075     *64-bit*)
13076       LD="${LD-ld} -64"
13077       ;;
13078     esac
13079    fi
13080   fi
13081   rm -rf conftest*
13082   ;;
13083
13084 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13085   # Find out which ABI we are using.
13086   echo 'int i;' > conftest.$ac_ext
13087   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13088   (eval $ac_compile) 2>&5
13089   ac_status=$?
13090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091   (exit $ac_status); }; then
13092     case `/usr/bin/file conftest.o` in
13093     *32-bit*)
13094       case $host in
13095         x86_64-*linux*)
13096           LD="${LD-ld} -m elf_i386"
13097           ;;
13098         ppc64-*linux*|powerpc64-*linux*)
13099           LD="${LD-ld} -m elf32ppclinux"
13100           ;;
13101         s390x-*linux*)
13102           LD="${LD-ld} -m elf_s390"
13103           ;;
13104         sparc64-*linux*)
13105           LD="${LD-ld} -m elf32_sparc"
13106           ;;
13107       esac
13108       ;;
13109     *64-bit*)
13110       case $host in
13111         x86_64-*linux*)
13112           LD="${LD-ld} -m elf_x86_64"
13113           ;;
13114         ppc*-*linux*|powerpc*-*linux*)
13115           LD="${LD-ld} -m elf64ppc"
13116           ;;
13117         s390*-*linux*)
13118           LD="${LD-ld} -m elf64_s390"
13119           ;;
13120         sparc*-*linux*)
13121           LD="${LD-ld} -m elf64_sparc"
13122           ;;
13123       esac
13124       ;;
13125     esac
13126   fi
13127   rm -rf conftest*
13128   ;;
13129
13130 *-*-sco3.2v5*)
13131   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13132   SAVE_CFLAGS="$CFLAGS"
13133   CFLAGS="$CFLAGS -belf"
13134   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13135 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13136 if test "${lt_cv_cc_needs_belf+set}" = set; then
13137   echo $ECHO_N "(cached) $ECHO_C" >&6
13138 else
13139   ac_ext=c
13140 ac_cpp='$CPP $CPPFLAGS'
13141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13144
13145      cat >conftest.$ac_ext <<_ACEOF
13146 /* confdefs.h.  */
13147 _ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h.  */
13151
13152 int
13153 main ()
13154 {
13155
13156   ;
13157   return 0;
13158 }
13159 _ACEOF
13160 rm -f conftest.$ac_objext conftest$ac_exeext
13161 if { (ac_try="$ac_link"
13162 case "(($ac_try" in
13163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13164   *) ac_try_echo=$ac_try;;
13165 esac
13166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13167   (eval "$ac_link") 2>conftest.er1
13168   ac_status=$?
13169   grep -v '^ *+' conftest.er1 >conftest.err
13170   rm -f conftest.er1
13171   cat conftest.err >&5
13172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); } &&
13174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13175   { (case "(($ac_try" in
13176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177   *) ac_try_echo=$ac_try;;
13178 esac
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180   (eval "$ac_try") 2>&5
13181   ac_status=$?
13182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183   (exit $ac_status); }; } &&
13184          { ac_try='test -s conftest$ac_exeext'
13185   { (case "(($ac_try" in
13186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187   *) ac_try_echo=$ac_try;;
13188 esac
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190   (eval "$ac_try") 2>&5
13191   ac_status=$?
13192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193   (exit $ac_status); }; }; then
13194   lt_cv_cc_needs_belf=yes
13195 else
13196   echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13198
13199         lt_cv_cc_needs_belf=no
13200 fi
13201
13202 rm -f core conftest.err conftest.$ac_objext \
13203       conftest$ac_exeext conftest.$ac_ext
13204      ac_ext=c
13205 ac_cpp='$CPP $CPPFLAGS'
13206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13209
13210 fi
13211 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13212 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13213   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13214     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13215     CFLAGS="$SAVE_CFLAGS"
13216   fi
13217   ;;
13218 sparc*-*solaris*)
13219   # Find out which ABI we are using.
13220   echo 'int i;' > conftest.$ac_ext
13221   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13222   (eval $ac_compile) 2>&5
13223   ac_status=$?
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); }; then
13226     case `/usr/bin/file conftest.o` in
13227     *64-bit*)
13228       case $lt_cv_prog_gnu_ld in
13229       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13230       *)    LD="${LD-ld} -64" ;;
13231       esac
13232       ;;
13233     esac
13234   fi
13235   rm -rf conftest*
13236   ;;
13237
13238
13239 esac
13240
13241 need_locks="$enable_libtool_lock"
13242
13243
13244
13245
13246 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13247     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13248     (test "X$CXX" != "Xg++"))) ; then
13249   ac_ext=cpp
13250 ac_cpp='$CXXCPP $CPPFLAGS'
13251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13254 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13255 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13256 if test -z "$CXXCPP"; then
13257   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13258   echo $ECHO_N "(cached) $ECHO_C" >&6
13259 else
13260       # Double quotes because CXXCPP needs to be expanded
13261     for CXXCPP in "$CXX -E" "/lib/cpp"
13262     do
13263       ac_preproc_ok=false
13264 for ac_cxx_preproc_warn_flag in '' yes
13265 do
13266   # Use a header file that comes with gcc, so configuring glibc
13267   # with a fresh cross-compiler works.
13268   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13269   # <limits.h> exists even on freestanding compilers.
13270   # On the NeXT, cc -E runs the code through the compiler's parser,
13271   # not just through cpp. "Syntax error" is here to catch this case.
13272   cat >conftest.$ac_ext <<_ACEOF
13273 /* confdefs.h.  */
13274 _ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h.  */
13278 #ifdef __STDC__
13279 # include <limits.h>
13280 #else
13281 # include <assert.h>
13282 #endif
13283                      Syntax error
13284 _ACEOF
13285 if { (ac_try="$ac_cpp conftest.$ac_ext"
13286 case "(($ac_try" in
13287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288   *) ac_try_echo=$ac_try;;
13289 esac
13290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13291   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13292   ac_status=$?
13293   grep -v '^ *+' conftest.er1 >conftest.err
13294   rm -f conftest.er1
13295   cat conftest.err >&5
13296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297   (exit $ac_status); } >/dev/null; then
13298   if test -s conftest.err; then
13299     ac_cpp_err=$ac_cxx_preproc_warn_flag
13300     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13301   else
13302     ac_cpp_err=
13303   fi
13304 else
13305   ac_cpp_err=yes
13306 fi
13307 if test -z "$ac_cpp_err"; then
13308   :
13309 else
13310   echo "$as_me: failed program was:" >&5
13311 sed 's/^/| /' conftest.$ac_ext >&5
13312
13313   # Broken: fails on valid input.
13314 continue
13315 fi
13316
13317 rm -f conftest.err conftest.$ac_ext
13318
13319   # OK, works on sane cases.  Now check whether nonexistent headers
13320   # can be detected and how.
13321   cat >conftest.$ac_ext <<_ACEOF
13322 /* confdefs.h.  */
13323 _ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h.  */
13327 #include <ac_nonexistent.h>
13328 _ACEOF
13329 if { (ac_try="$ac_cpp conftest.$ac_ext"
13330 case "(($ac_try" in
13331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332   *) ac_try_echo=$ac_try;;
13333 esac
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13336   ac_status=$?
13337   grep -v '^ *+' conftest.er1 >conftest.err
13338   rm -f conftest.er1
13339   cat conftest.err >&5
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); } >/dev/null; then
13342   if test -s conftest.err; then
13343     ac_cpp_err=$ac_cxx_preproc_warn_flag
13344     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13345   else
13346     ac_cpp_err=
13347   fi
13348 else
13349   ac_cpp_err=yes
13350 fi
13351 if test -z "$ac_cpp_err"; then
13352   # Broken: success on invalid input.
13353 continue
13354 else
13355   echo "$as_me: failed program was:" >&5
13356 sed 's/^/| /' conftest.$ac_ext >&5
13357
13358   # Passes both tests.
13359 ac_preproc_ok=:
13360 break
13361 fi
13362
13363 rm -f conftest.err conftest.$ac_ext
13364
13365 done
13366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13367 rm -f conftest.err conftest.$ac_ext
13368 if $ac_preproc_ok; then
13369   break
13370 fi
13371
13372     done
13373     ac_cv_prog_CXXCPP=$CXXCPP
13374
13375 fi
13376   CXXCPP=$ac_cv_prog_CXXCPP
13377 else
13378   ac_cv_prog_CXXCPP=$CXXCPP
13379 fi
13380 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13381 echo "${ECHO_T}$CXXCPP" >&6; }
13382 ac_preproc_ok=false
13383 for ac_cxx_preproc_warn_flag in '' yes
13384 do
13385   # Use a header file that comes with gcc, so configuring glibc
13386   # with a fresh cross-compiler works.
13387   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13388   # <limits.h> exists even on freestanding compilers.
13389   # On the NeXT, cc -E runs the code through the compiler's parser,
13390   # not just through cpp. "Syntax error" is here to catch this case.
13391   cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h.  */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h.  */
13397 #ifdef __STDC__
13398 # include <limits.h>
13399 #else
13400 # include <assert.h>
13401 #endif
13402                      Syntax error
13403 _ACEOF
13404 if { (ac_try="$ac_cpp conftest.$ac_ext"
13405 case "(($ac_try" in
13406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407   *) ac_try_echo=$ac_try;;
13408 esac
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13411   ac_status=$?
13412   grep -v '^ *+' conftest.er1 >conftest.err
13413   rm -f conftest.er1
13414   cat conftest.err >&5
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); } >/dev/null; then
13417   if test -s conftest.err; then
13418     ac_cpp_err=$ac_cxx_preproc_warn_flag
13419     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13420   else
13421     ac_cpp_err=
13422   fi
13423 else
13424   ac_cpp_err=yes
13425 fi
13426 if test -z "$ac_cpp_err"; then
13427   :
13428 else
13429   echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13431
13432   # Broken: fails on valid input.
13433 continue
13434 fi
13435
13436 rm -f conftest.err conftest.$ac_ext
13437
13438   # OK, works on sane cases.  Now check whether nonexistent headers
13439   # can be detected and how.
13440   cat >conftest.$ac_ext <<_ACEOF
13441 /* confdefs.h.  */
13442 _ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h.  */
13446 #include <ac_nonexistent.h>
13447 _ACEOF
13448 if { (ac_try="$ac_cpp conftest.$ac_ext"
13449 case "(($ac_try" in
13450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451   *) ac_try_echo=$ac_try;;
13452 esac
13453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13455   ac_status=$?
13456   grep -v '^ *+' conftest.er1 >conftest.err
13457   rm -f conftest.er1
13458   cat conftest.err >&5
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); } >/dev/null; then
13461   if test -s conftest.err; then
13462     ac_cpp_err=$ac_cxx_preproc_warn_flag
13463     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13464   else
13465     ac_cpp_err=
13466   fi
13467 else
13468   ac_cpp_err=yes
13469 fi
13470 if test -z "$ac_cpp_err"; then
13471   # Broken: success on invalid input.
13472 continue
13473 else
13474   echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13476
13477   # Passes both tests.
13478 ac_preproc_ok=:
13479 break
13480 fi
13481
13482 rm -f conftest.err conftest.$ac_ext
13483
13484 done
13485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13486 rm -f conftest.err conftest.$ac_ext
13487 if $ac_preproc_ok; then
13488   :
13489 else
13490   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13491 See \`config.log' for more details." >&5
13492 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13493 See \`config.log' for more details." >&2;}
13494    { (exit 1); exit 1; }; }
13495 fi
13496
13497 ac_ext=cpp
13498 ac_cpp='$CXXCPP $CPPFLAGS'
13499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13502
13503 fi
13504
13505
13506 ac_ext=f
13507 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13508 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13509 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13510 if test -n "$ac_tool_prefix"; then
13511   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
13512   do
13513     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13517 if test "${ac_cv_prog_F77+set}" = set; then
13518   echo $ECHO_N "(cached) $ECHO_C" >&6
13519 else
13520   if test -n "$F77"; then
13521   ac_cv_prog_F77="$F77" # Let the user override the test.
13522 else
13523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13524 for as_dir in $PATH
13525 do
13526   IFS=$as_save_IFS
13527   test -z "$as_dir" && as_dir=.
13528   for ac_exec_ext in '' $ac_executable_extensions; do
13529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13530     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13532     break 2
13533   fi
13534 done
13535 done
13536 IFS=$as_save_IFS
13537
13538 fi
13539 fi
13540 F77=$ac_cv_prog_F77
13541 if test -n "$F77"; then
13542   { echo "$as_me:$LINENO: result: $F77" >&5
13543 echo "${ECHO_T}$F77" >&6; }
13544 else
13545   { echo "$as_me:$LINENO: result: no" >&5
13546 echo "${ECHO_T}no" >&6; }
13547 fi
13548
13549
13550     test -n "$F77" && break
13551   done
13552 fi
13553 if test -z "$F77"; then
13554   ac_ct_F77=$F77
13555   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
13556 do
13557   # Extract the first word of "$ac_prog", so it can be a program name with args.
13558 set dummy $ac_prog; ac_word=$2
13559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13561 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13562   echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564   if test -n "$ac_ct_F77"; then
13565   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13566 else
13567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13568 for as_dir in $PATH
13569 do
13570   IFS=$as_save_IFS
13571   test -z "$as_dir" && as_dir=.
13572   for ac_exec_ext in '' $ac_executable_extensions; do
13573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13574     ac_cv_prog_ac_ct_F77="$ac_prog"
13575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13576     break 2
13577   fi
13578 done
13579 done
13580 IFS=$as_save_IFS
13581
13582 fi
13583 fi
13584 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13585 if test -n "$ac_ct_F77"; then
13586   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13587 echo "${ECHO_T}$ac_ct_F77" >&6; }
13588 else
13589   { echo "$as_me:$LINENO: result: no" >&5
13590 echo "${ECHO_T}no" >&6; }
13591 fi
13592
13593
13594   test -n "$ac_ct_F77" && break
13595 done
13596
13597   if test "x$ac_ct_F77" = x; then
13598     F77=""
13599   else
13600     case $cross_compiling:$ac_tool_warned in
13601 yes:)
13602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13603 whose name does not start with the host triplet.  If you think this
13604 configuration is useful to you, please write to autoconf@gnu.org." >&5
13605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13606 whose name does not start with the host triplet.  If you think this
13607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13608 ac_tool_warned=yes ;;
13609 esac
13610     F77=$ac_ct_F77
13611   fi
13612 fi
13613
13614
13615 # Provide some information about the compiler.
13616 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13617 ac_compiler=`set X $ac_compile; echo $2`
13618 { (ac_try="$ac_compiler --version >&5"
13619 case "(($ac_try" in
13620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621   *) ac_try_echo=$ac_try;;
13622 esac
13623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624   (eval "$ac_compiler --version >&5") 2>&5
13625   ac_status=$?
13626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); }
13628 { (ac_try="$ac_compiler -v >&5"
13629 case "(($ac_try" in
13630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631   *) ac_try_echo=$ac_try;;
13632 esac
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634   (eval "$ac_compiler -v >&5") 2>&5
13635   ac_status=$?
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); }
13638 { (ac_try="$ac_compiler -V >&5"
13639 case "(($ac_try" in
13640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641   *) ac_try_echo=$ac_try;;
13642 esac
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644   (eval "$ac_compiler -V >&5") 2>&5
13645   ac_status=$?
13646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647   (exit $ac_status); }
13648 rm -f a.out
13649
13650 # If we don't use `.F' as extension, the preprocessor is not run on the
13651 # input file.  (Note that this only needs to work for GNU compilers.)
13652 ac_save_ext=$ac_ext
13653 ac_ext=F
13654 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13655 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13656 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13657   echo $ECHO_N "(cached) $ECHO_C" >&6
13658 else
13659   cat >conftest.$ac_ext <<_ACEOF
13660       program main
13661 #ifndef __GNUC__
13662        choke me
13663 #endif
13664
13665       end
13666 _ACEOF
13667 rm -f conftest.$ac_objext
13668 if { (ac_try="$ac_compile"
13669 case "(($ac_try" in
13670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671   *) ac_try_echo=$ac_try;;
13672 esac
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674   (eval "$ac_compile") 2>conftest.er1
13675   ac_status=$?
13676   grep -v '^ *+' conftest.er1 >conftest.err
13677   rm -f conftest.er1
13678   cat conftest.err >&5
13679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); } &&
13681          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13682   { (case "(($ac_try" in
13683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13684   *) ac_try_echo=$ac_try;;
13685 esac
13686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13687   (eval "$ac_try") 2>&5
13688   ac_status=$?
13689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690   (exit $ac_status); }; } &&
13691          { ac_try='test -s conftest.$ac_objext'
13692   { (case "(($ac_try" in
13693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694   *) ac_try_echo=$ac_try;;
13695 esac
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697   (eval "$ac_try") 2>&5
13698   ac_status=$?
13699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); }; }; then
13701   ac_compiler_gnu=yes
13702 else
13703   echo "$as_me: failed program was:" >&5
13704 sed 's/^/| /' conftest.$ac_ext >&5
13705
13706         ac_compiler_gnu=no
13707 fi
13708
13709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13711
13712 fi
13713 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13714 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13715 ac_ext=$ac_save_ext
13716 ac_test_FFLAGS=${FFLAGS+set}
13717 ac_save_FFLAGS=$FFLAGS
13718 FFLAGS=
13719 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13720 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13721 if test "${ac_cv_prog_f77_g+set}" = set; then
13722   echo $ECHO_N "(cached) $ECHO_C" >&6
13723 else
13724   FFLAGS=-g
13725 cat >conftest.$ac_ext <<_ACEOF
13726       program main
13727
13728       end
13729 _ACEOF
13730 rm -f conftest.$ac_objext
13731 if { (ac_try="$ac_compile"
13732 case "(($ac_try" in
13733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734   *) ac_try_echo=$ac_try;;
13735 esac
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737   (eval "$ac_compile") 2>conftest.er1
13738   ac_status=$?
13739   grep -v '^ *+' conftest.er1 >conftest.err
13740   rm -f conftest.er1
13741   cat conftest.err >&5
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); } &&
13744          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13745   { (case "(($ac_try" in
13746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747   *) ac_try_echo=$ac_try;;
13748 esac
13749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750   (eval "$ac_try") 2>&5
13751   ac_status=$?
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); }; } &&
13754          { ac_try='test -s conftest.$ac_objext'
13755   { (case "(($ac_try" in
13756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757   *) ac_try_echo=$ac_try;;
13758 esac
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760   (eval "$ac_try") 2>&5
13761   ac_status=$?
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); }; }; then
13764   ac_cv_prog_f77_g=yes
13765 else
13766   echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13768
13769         ac_cv_prog_f77_g=no
13770 fi
13771
13772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13773
13774 fi
13775 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13776 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13777 if test "$ac_test_FFLAGS" = set; then
13778   FFLAGS=$ac_save_FFLAGS
13779 elif test $ac_cv_prog_f77_g = yes; then
13780   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13781     FFLAGS="-g -O2"
13782   else
13783     FFLAGS="-g"
13784   fi
13785 else
13786   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13787     FFLAGS="-O2"
13788   else
13789     FFLAGS=
13790   fi
13791 fi
13792
13793 G77=`test $ac_compiler_gnu = yes && echo yes`
13794 ac_ext=c
13795 ac_cpp='$CPP $CPPFLAGS'
13796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13799
13800
13801
13802 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13803
13804 # find the maximum length of command line arguments
13805 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13806 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13807 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13808   echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810     i=0
13811   teststring="ABCD"
13812
13813   case $build_os in
13814   msdosdjgpp*)
13815     # On DJGPP, this test can blow up pretty badly due to problems in libc
13816     # (any single argument exceeding 2000 bytes causes a buffer overrun
13817     # during glob expansion).  Even if it were fixed, the result of this
13818     # check would be larger than it should be.
13819     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13820     ;;
13821
13822   gnu*)
13823     # Under GNU Hurd, this test is not required because there is
13824     # no limit to the length of command line arguments.
13825     # Libtool will interpret -1 as no limit whatsoever
13826     lt_cv_sys_max_cmd_len=-1;
13827     ;;
13828
13829   cygwin* | mingw*)
13830     # On Win9x/ME, this test blows up -- it succeeds, but takes
13831     # about 5 minutes as the teststring grows exponentially.
13832     # Worse, since 9x/ME are not pre-emptively multitasking,
13833     # you end up with a "frozen" computer, even though with patience
13834     # the test eventually succeeds (with a max line length of 256k).
13835     # Instead, let's just punt: use the minimum linelength reported by
13836     # all of the supported platforms: 8192 (on NT/2K/XP).
13837     lt_cv_sys_max_cmd_len=8192;
13838     ;;
13839
13840   amigaos*)
13841     # On AmigaOS with pdksh, this test takes hours, literally.
13842     # So we just punt and use a minimum line length of 8192.
13843     lt_cv_sys_max_cmd_len=8192;
13844     ;;
13845
13846   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13847     # This has been around since 386BSD, at least.  Likely further.
13848     if test -x /sbin/sysctl; then
13849       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13850     elif test -x /usr/sbin/sysctl; then
13851       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13852     else
13853       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13854     fi
13855     # And add a safety zone
13856     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13857     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13858     ;;
13859
13860   interix*)
13861     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13862     lt_cv_sys_max_cmd_len=196608
13863     ;;
13864
13865   osf*)
13866     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13867     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13868     # nice to cause kernel panics so lets avoid the loop below.
13869     # First set a reasonable default.
13870     lt_cv_sys_max_cmd_len=16384
13871     #
13872     if test -x /sbin/sysconfig; then
13873       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13874         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13875       esac
13876     fi
13877     ;;
13878   sco3.2v5*)
13879     lt_cv_sys_max_cmd_len=102400
13880     ;;
13881   sysv5* | sco5v6* | sysv4.2uw2*)
13882     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13883     if test -n "$kargmax"; then
13884       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13885     else
13886       lt_cv_sys_max_cmd_len=32768
13887     fi
13888     ;;
13889   *)
13890     # If test is not a shell built-in, we'll probably end up computing a
13891     # maximum length that is only half of the actual maximum length, but
13892     # we can't tell.
13893     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13894     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13895                = "XX$teststring") >/dev/null 2>&1 &&
13896             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13897             lt_cv_sys_max_cmd_len=$new_result &&
13898             test $i != 17 # 1/2 MB should be enough
13899     do
13900       i=`expr $i + 1`
13901       teststring=$teststring$teststring
13902     done
13903     teststring=
13904     # Add a significant safety factor because C++ compilers can tack on massive
13905     # amounts of additional arguments before passing them to the linker.
13906     # It appears as though 1/2 is a usable value.
13907     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13908     ;;
13909   esac
13910
13911 fi
13912
13913 if test -n $lt_cv_sys_max_cmd_len ; then
13914   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13915 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13916 else
13917   { echo "$as_me:$LINENO: result: none" >&5
13918 echo "${ECHO_T}none" >&6; }
13919 fi
13920
13921
13922
13923
13924 # Check for command to grab the raw symbol name followed by C symbol from nm.
13925 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13926 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13927 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13928   echo $ECHO_N "(cached) $ECHO_C" >&6
13929 else
13930
13931 # These are sane defaults that work on at least a few old systems.
13932 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13933
13934 # Character class describing NM global symbol codes.
13935 symcode='[BCDEGRST]'
13936
13937 # Regexp to match symbols that can be accessed directly from C.
13938 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13939
13940 # Transform an extracted symbol line into a proper C declaration
13941 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13942
13943 # Transform an extracted symbol line into symbol name and symbol address
13944 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'"
13945
13946 # Define system-specific variables.
13947 case $host_os in
13948 aix*)
13949   symcode='[BCDT]'
13950   ;;
13951 cygwin* | mingw* | pw32*)
13952   symcode='[ABCDGISTW]'
13953   ;;
13954 hpux*) # Its linker distinguishes data from code symbols
13955   if test "$host_cpu" = ia64; then
13956     symcode='[ABCDEGRST]'
13957   fi
13958   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13959   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'"
13960   ;;
13961 linux*)
13962   if test "$host_cpu" = ia64; then
13963     symcode='[ABCDGIRSTW]'
13964     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13965     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'"
13966   fi
13967   ;;
13968 irix* | nonstopux*)
13969   symcode='[BCDEGRST]'
13970   ;;
13971 osf*)
13972   symcode='[BCDEGQRST]'
13973   ;;
13974 solaris*)
13975   symcode='[BDRT]'
13976   ;;
13977 sco3.2v5*)
13978   symcode='[DT]'
13979   ;;
13980 sysv4.2uw2*)
13981   symcode='[DT]'
13982   ;;
13983 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13984   symcode='[ABDT]'
13985   ;;
13986 sysv4)
13987   symcode='[DFNSTU]'
13988   ;;
13989 esac
13990
13991 # Handle CRLF in mingw tool chain
13992 opt_cr=
13993 case $build_os in
13994 mingw*)
13995   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13996   ;;
13997 esac
13998
13999 # If we're using GNU nm, then use its standard symbol codes.
14000 case `$NM -V 2>&1` in
14001 *GNU* | *'with BFD'*)
14002   symcode='[ABCDGIRSTW]' ;;
14003 esac
14004
14005 # Try without a prefix undercore, then with it.
14006 for ac_symprfx in "" "_"; do
14007
14008   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14009   symxfrm="\\1 $ac_symprfx\\2 \\2"
14010
14011   # Write the raw and C identifiers.
14012   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14013
14014   # Check to see that the pipe works correctly.
14015   pipe_works=no
14016
14017   rm -f conftest*
14018   cat > conftest.$ac_ext <<EOF
14019 #ifdef __cplusplus
14020 extern "C" {
14021 #endif
14022 char nm_test_var;
14023 void nm_test_func(){}
14024 #ifdef __cplusplus
14025 }
14026 #endif
14027 int main(){nm_test_var='a';nm_test_func();return(0);}
14028 EOF
14029
14030   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14031   (eval $ac_compile) 2>&5
14032   ac_status=$?
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); }; then
14035     # Now try to grab the symbols.
14036     nlist=conftest.nm
14037     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14038   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14039   ac_status=$?
14040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041   (exit $ac_status); } && test -s "$nlist"; then
14042       # Try sorting and uniquifying the output.
14043       if sort "$nlist" | uniq > "$nlist"T; then
14044         mv -f "$nlist"T "$nlist"
14045       else
14046         rm -f "$nlist"T
14047       fi
14048
14049       # Make sure that we snagged all the symbols we need.
14050       if grep ' nm_test_var$' "$nlist" >/dev/null; then
14051         if grep ' nm_test_func$' "$nlist" >/dev/null; then
14052           cat <<EOF > conftest.$ac_ext
14053 #ifdef __cplusplus
14054 extern "C" {
14055 #endif
14056
14057 EOF
14058           # Now generate the symbol file.
14059           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14060
14061           cat <<EOF >> conftest.$ac_ext
14062 #if defined (__STDC__) && __STDC__
14063 # define lt_ptr_t void *
14064 #else
14065 # define lt_ptr_t char *
14066 # define const
14067 #endif
14068
14069 /* The mapping between symbol names and symbols. */
14070 const struct {
14071   const char *name;
14072   lt_ptr_t address;
14073 }
14074 lt_preloaded_symbols[] =
14075 {
14076 EOF
14077           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14078           cat <<\EOF >> conftest.$ac_ext
14079   {0, (lt_ptr_t) 0}
14080 };
14081
14082 #ifdef __cplusplus
14083 }
14084 #endif
14085 EOF
14086           # Now try linking the two files.
14087           mv conftest.$ac_objext conftstm.$ac_objext
14088           lt_save_LIBS="$LIBS"
14089           lt_save_CFLAGS="$CFLAGS"
14090           LIBS="conftstm.$ac_objext"
14091           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14092           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14093   (eval $ac_link) 2>&5
14094   ac_status=$?
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); } && test -s conftest${ac_exeext}; then
14097             pipe_works=yes
14098           fi
14099           LIBS="$lt_save_LIBS"
14100           CFLAGS="$lt_save_CFLAGS"
14101         else
14102           echo "cannot find nm_test_func in $nlist" >&5
14103         fi
14104       else
14105         echo "cannot find nm_test_var in $nlist" >&5
14106       fi
14107     else
14108       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14109     fi
14110   else
14111     echo "$progname: failed program was:" >&5
14112     cat conftest.$ac_ext >&5
14113   fi
14114   rm -f conftest* conftst*
14115
14116   # Do not use the global_symbol_pipe unless it works.
14117   if test "$pipe_works" = yes; then
14118     break
14119   else
14120     lt_cv_sys_global_symbol_pipe=
14121   fi
14122 done
14123
14124 fi
14125
14126 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14127   lt_cv_sys_global_symbol_to_cdecl=
14128 fi
14129 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14130   { echo "$as_me:$LINENO: result: failed" >&5
14131 echo "${ECHO_T}failed" >&6; }
14132 else
14133   { echo "$as_me:$LINENO: result: ok" >&5
14134 echo "${ECHO_T}ok" >&6; }
14135 fi
14136
14137 { echo "$as_me:$LINENO: checking for objdir" >&5
14138 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14139 if test "${lt_cv_objdir+set}" = set; then
14140   echo $ECHO_N "(cached) $ECHO_C" >&6
14141 else
14142   rm -f .libs 2>/dev/null
14143 mkdir .libs 2>/dev/null
14144 if test -d .libs; then
14145   lt_cv_objdir=.libs
14146 else
14147   # MS-DOS does not allow filenames that begin with a dot.
14148   lt_cv_objdir=_libs
14149 fi
14150 rmdir .libs 2>/dev/null
14151 fi
14152 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14153 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14154 objdir=$lt_cv_objdir
14155
14156
14157
14158
14159
14160 case $host_os in
14161 aix3*)
14162   # AIX sometimes has problems with the GCC collect2 program.  For some
14163   # reason, if we set the COLLECT_NAMES environment variable, the problems
14164   # vanish in a puff of smoke.
14165   if test "X${COLLECT_NAMES+set}" != Xset; then
14166     COLLECT_NAMES=
14167     export COLLECT_NAMES
14168   fi
14169   ;;
14170 esac
14171
14172 # Sed substitution that helps us do robust quoting.  It backslashifies
14173 # metacharacters that are still active within double-quoted strings.
14174 Xsed='sed -e 1s/^X//'
14175 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14176
14177 # Same as above, but do not quote variable references.
14178 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14179
14180 # Sed substitution to delay expansion of an escaped shell variable in a
14181 # double_quote_subst'ed string.
14182 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14183
14184 # Sed substitution to avoid accidental globbing in evaled expressions
14185 no_glob_subst='s/\*/\\\*/g'
14186
14187 # Constants:
14188 rm="rm -f"
14189
14190 # Global variables:
14191 default_ofile=mklib
14192 can_build_shared=yes
14193
14194 # All known linkers require a `.a' archive for static linking (except MSVC,
14195 # which needs '.lib').
14196 libext=a
14197 ltmain="$ac_aux_dir/ltmain.sh"
14198 ofile="$default_ofile"
14199 with_gnu_ld="$lt_cv_prog_gnu_ld"
14200
14201 if test -n "$ac_tool_prefix"; then
14202   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14203 set dummy ${ac_tool_prefix}ar; ac_word=$2
14204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14206 if test "${ac_cv_prog_AR+set}" = set; then
14207   echo $ECHO_N "(cached) $ECHO_C" >&6
14208 else
14209   if test -n "$AR"; then
14210   ac_cv_prog_AR="$AR" # Let the user override the test.
14211 else
14212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14213 for as_dir in $PATH
14214 do
14215   IFS=$as_save_IFS
14216   test -z "$as_dir" && as_dir=.
14217   for ac_exec_ext in '' $ac_executable_extensions; do
14218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14219     ac_cv_prog_AR="${ac_tool_prefix}ar"
14220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14221     break 2
14222   fi
14223 done
14224 done
14225 IFS=$as_save_IFS
14226
14227 fi
14228 fi
14229 AR=$ac_cv_prog_AR
14230 if test -n "$AR"; then
14231   { echo "$as_me:$LINENO: result: $AR" >&5
14232 echo "${ECHO_T}$AR" >&6; }
14233 else
14234   { echo "$as_me:$LINENO: result: no" >&5
14235 echo "${ECHO_T}no" >&6; }
14236 fi
14237
14238
14239 fi
14240 if test -z "$ac_cv_prog_AR"; then
14241   ac_ct_AR=$AR
14242   # Extract the first word of "ar", so it can be a program name with args.
14243 set dummy ar; ac_word=$2
14244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14246 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14247   echo $ECHO_N "(cached) $ECHO_C" >&6
14248 else
14249   if test -n "$ac_ct_AR"; then
14250   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14251 else
14252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253 for as_dir in $PATH
14254 do
14255   IFS=$as_save_IFS
14256   test -z "$as_dir" && as_dir=.
14257   for ac_exec_ext in '' $ac_executable_extensions; do
14258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14259     ac_cv_prog_ac_ct_AR="ar"
14260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14261     break 2
14262   fi
14263 done
14264 done
14265 IFS=$as_save_IFS
14266
14267 fi
14268 fi
14269 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14270 if test -n "$ac_ct_AR"; then
14271   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14272 echo "${ECHO_T}$ac_ct_AR" >&6; }
14273 else
14274   { echo "$as_me:$LINENO: result: no" >&5
14275 echo "${ECHO_T}no" >&6; }
14276 fi
14277
14278   if test "x$ac_ct_AR" = x; then
14279     AR="false"
14280   else
14281     case $cross_compiling:$ac_tool_warned in
14282 yes:)
14283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14284 whose name does not start with the host triplet.  If you think this
14285 configuration is useful to you, please write to autoconf@gnu.org." >&5
14286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14287 whose name does not start with the host triplet.  If you think this
14288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14289 ac_tool_warned=yes ;;
14290 esac
14291     AR=$ac_ct_AR
14292   fi
14293 else
14294   AR="$ac_cv_prog_AR"
14295 fi
14296
14297 if test -n "$ac_tool_prefix"; then
14298   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14299 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14302 if test "${ac_cv_prog_RANLIB+set}" = set; then
14303   echo $ECHO_N "(cached) $ECHO_C" >&6
14304 else
14305   if test -n "$RANLIB"; then
14306   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14307 else
14308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309 for as_dir in $PATH
14310 do
14311   IFS=$as_save_IFS
14312   test -z "$as_dir" && as_dir=.
14313   for ac_exec_ext in '' $ac_executable_extensions; do
14314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14315     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14317     break 2
14318   fi
14319 done
14320 done
14321 IFS=$as_save_IFS
14322
14323 fi
14324 fi
14325 RANLIB=$ac_cv_prog_RANLIB
14326 if test -n "$RANLIB"; then
14327   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14328 echo "${ECHO_T}$RANLIB" >&6; }
14329 else
14330   { echo "$as_me:$LINENO: result: no" >&5
14331 echo "${ECHO_T}no" >&6; }
14332 fi
14333
14334
14335 fi
14336 if test -z "$ac_cv_prog_RANLIB"; then
14337   ac_ct_RANLIB=$RANLIB
14338   # Extract the first word of "ranlib", so it can be a program name with args.
14339 set dummy ranlib; ac_word=$2
14340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14342 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14343   echo $ECHO_N "(cached) $ECHO_C" >&6
14344 else
14345   if test -n "$ac_ct_RANLIB"; then
14346   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14347 else
14348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349 for as_dir in $PATH
14350 do
14351   IFS=$as_save_IFS
14352   test -z "$as_dir" && as_dir=.
14353   for ac_exec_ext in '' $ac_executable_extensions; do
14354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14355     ac_cv_prog_ac_ct_RANLIB="ranlib"
14356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14357     break 2
14358   fi
14359 done
14360 done
14361 IFS=$as_save_IFS
14362
14363 fi
14364 fi
14365 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14366 if test -n "$ac_ct_RANLIB"; then
14367   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14368 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14369 else
14370   { echo "$as_me:$LINENO: result: no" >&5
14371 echo "${ECHO_T}no" >&6; }
14372 fi
14373
14374   if test "x$ac_ct_RANLIB" = x; then
14375     RANLIB=":"
14376   else
14377     case $cross_compiling:$ac_tool_warned in
14378 yes:)
14379 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14380 whose name does not start with the host triplet.  If you think this
14381 configuration is useful to you, please write to autoconf@gnu.org." >&5
14382 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14383 whose name does not start with the host triplet.  If you think this
14384 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14385 ac_tool_warned=yes ;;
14386 esac
14387     RANLIB=$ac_ct_RANLIB
14388   fi
14389 else
14390   RANLIB="$ac_cv_prog_RANLIB"
14391 fi
14392
14393 if test -n "$ac_tool_prefix"; then
14394   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14395 set dummy ${ac_tool_prefix}strip; ac_word=$2
14396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14398 if test "${ac_cv_prog_STRIP+set}" = set; then
14399   echo $ECHO_N "(cached) $ECHO_C" >&6
14400 else
14401   if test -n "$STRIP"; then
14402   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14403 else
14404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14405 for as_dir in $PATH
14406 do
14407   IFS=$as_save_IFS
14408   test -z "$as_dir" && as_dir=.
14409   for ac_exec_ext in '' $ac_executable_extensions; do
14410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14411     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14413     break 2
14414   fi
14415 done
14416 done
14417 IFS=$as_save_IFS
14418
14419 fi
14420 fi
14421 STRIP=$ac_cv_prog_STRIP
14422 if test -n "$STRIP"; then
14423   { echo "$as_me:$LINENO: result: $STRIP" >&5
14424 echo "${ECHO_T}$STRIP" >&6; }
14425 else
14426   { echo "$as_me:$LINENO: result: no" >&5
14427 echo "${ECHO_T}no" >&6; }
14428 fi
14429
14430
14431 fi
14432 if test -z "$ac_cv_prog_STRIP"; then
14433   ac_ct_STRIP=$STRIP
14434   # Extract the first word of "strip", so it can be a program name with args.
14435 set dummy strip; ac_word=$2
14436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14438 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14439   echo $ECHO_N "(cached) $ECHO_C" >&6
14440 else
14441   if test -n "$ac_ct_STRIP"; then
14442   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14443 else
14444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14445 for as_dir in $PATH
14446 do
14447   IFS=$as_save_IFS
14448   test -z "$as_dir" && as_dir=.
14449   for ac_exec_ext in '' $ac_executable_extensions; do
14450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14451     ac_cv_prog_ac_ct_STRIP="strip"
14452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14453     break 2
14454   fi
14455 done
14456 done
14457 IFS=$as_save_IFS
14458
14459 fi
14460 fi
14461 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14462 if test -n "$ac_ct_STRIP"; then
14463   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14464 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14465 else
14466   { echo "$as_me:$LINENO: result: no" >&5
14467 echo "${ECHO_T}no" >&6; }
14468 fi
14469
14470   if test "x$ac_ct_STRIP" = x; then
14471     STRIP=":"
14472   else
14473     case $cross_compiling:$ac_tool_warned in
14474 yes:)
14475 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14476 whose name does not start with the host triplet.  If you think this
14477 configuration is useful to you, please write to autoconf@gnu.org." >&5
14478 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14479 whose name does not start with the host triplet.  If you think this
14480 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14481 ac_tool_warned=yes ;;
14482 esac
14483     STRIP=$ac_ct_STRIP
14484   fi
14485 else
14486   STRIP="$ac_cv_prog_STRIP"
14487 fi
14488
14489
14490 old_CC="$CC"
14491 old_CFLAGS="$CFLAGS"
14492
14493 # Set sane defaults for various variables
14494 test -z "$AR" && AR=ar
14495 test -z "$AR_FLAGS" && AR_FLAGS=cru
14496 test -z "$AS" && AS=as
14497 test -z "$CC" && CC=cc
14498 test -z "$LTCC" && LTCC=$CC
14499 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14500 test -z "$DLLTOOL" && DLLTOOL=dlltool
14501 test -z "$LD" && LD=ld
14502 test -z "$LN_S" && LN_S="ln -s"
14503 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14504 test -z "$NM" && NM=nm
14505 test -z "$SED" && SED=sed
14506 test -z "$OBJDUMP" && OBJDUMP=objdump
14507 test -z "$RANLIB" && RANLIB=:
14508 test -z "$STRIP" && STRIP=:
14509 test -z "$ac_objext" && ac_objext=o
14510
14511 # Determine commands to create old-style static archives.
14512 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14513 old_postinstall_cmds='chmod 644 $oldlib'
14514 old_postuninstall_cmds=
14515
14516 if test -n "$RANLIB"; then
14517   case $host_os in
14518   openbsd*)
14519     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14520     ;;
14521   *)
14522     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14523     ;;
14524   esac
14525   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14526 fi
14527
14528 for cc_temp in $compiler""; do
14529   case $cc_temp in
14530     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14531     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14532     \-*) ;;
14533     *) break;;
14534   esac
14535 done
14536 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14537
14538
14539 # Only perform the check for file, if the check method requires it
14540 case $deplibs_check_method in
14541 file_magic*)
14542   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14543     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14544 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14545 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14546   echo $ECHO_N "(cached) $ECHO_C" >&6
14547 else
14548   case $MAGIC_CMD in
14549 [\\/*] |  ?:[\\/]*)
14550   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14551   ;;
14552 *)
14553   lt_save_MAGIC_CMD="$MAGIC_CMD"
14554   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14555   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14556   for ac_dir in $ac_dummy; do
14557     IFS="$lt_save_ifs"
14558     test -z "$ac_dir" && ac_dir=.
14559     if test -f $ac_dir/${ac_tool_prefix}file; then
14560       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14561       if test -n "$file_magic_test_file"; then
14562         case $deplibs_check_method in
14563         "file_magic "*)
14564           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14565           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14566           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14567             $EGREP "$file_magic_regex" > /dev/null; then
14568             :
14569           else
14570             cat <<EOF 1>&2
14571
14572 *** Warning: the command libtool uses to detect shared libraries,
14573 *** $file_magic_cmd, produces output that libtool cannot recognize.
14574 *** The result is that libtool may fail to recognize shared libraries
14575 *** as such.  This will affect the creation of libtool libraries that
14576 *** depend on shared libraries, but programs linked with such libtool
14577 *** libraries will work regardless of this problem.  Nevertheless, you
14578 *** may want to report the problem to your system manager and/or to
14579 *** bug-libtool@gnu.org
14580
14581 EOF
14582           fi ;;
14583         esac
14584       fi
14585       break
14586     fi
14587   done
14588   IFS="$lt_save_ifs"
14589   MAGIC_CMD="$lt_save_MAGIC_CMD"
14590   ;;
14591 esac
14592 fi
14593
14594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14595 if test -n "$MAGIC_CMD"; then
14596   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14597 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14598 else
14599   { echo "$as_me:$LINENO: result: no" >&5
14600 echo "${ECHO_T}no" >&6; }
14601 fi
14602
14603 if test -z "$lt_cv_path_MAGIC_CMD"; then
14604   if test -n "$ac_tool_prefix"; then
14605     { echo "$as_me:$LINENO: checking for file" >&5
14606 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14607 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14608   echo $ECHO_N "(cached) $ECHO_C" >&6
14609 else
14610   case $MAGIC_CMD in
14611 [\\/*] |  ?:[\\/]*)
14612   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14613   ;;
14614 *)
14615   lt_save_MAGIC_CMD="$MAGIC_CMD"
14616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14617   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14618   for ac_dir in $ac_dummy; do
14619     IFS="$lt_save_ifs"
14620     test -z "$ac_dir" && ac_dir=.
14621     if test -f $ac_dir/file; then
14622       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14623       if test -n "$file_magic_test_file"; then
14624         case $deplibs_check_method in
14625         "file_magic "*)
14626           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14627           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14628           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14629             $EGREP "$file_magic_regex" > /dev/null; then
14630             :
14631           else
14632             cat <<EOF 1>&2
14633
14634 *** Warning: the command libtool uses to detect shared libraries,
14635 *** $file_magic_cmd, produces output that libtool cannot recognize.
14636 *** The result is that libtool may fail to recognize shared libraries
14637 *** as such.  This will affect the creation of libtool libraries that
14638 *** depend on shared libraries, but programs linked with such libtool
14639 *** libraries will work regardless of this problem.  Nevertheless, you
14640 *** may want to report the problem to your system manager and/or to
14641 *** bug-libtool@gnu.org
14642
14643 EOF
14644           fi ;;
14645         esac
14646       fi
14647       break
14648     fi
14649   done
14650   IFS="$lt_save_ifs"
14651   MAGIC_CMD="$lt_save_MAGIC_CMD"
14652   ;;
14653 esac
14654 fi
14655
14656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14657 if test -n "$MAGIC_CMD"; then
14658   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14659 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14660 else
14661   { echo "$as_me:$LINENO: result: no" >&5
14662 echo "${ECHO_T}no" >&6; }
14663 fi
14664
14665   else
14666     MAGIC_CMD=:
14667   fi
14668 fi
14669
14670   fi
14671   ;;
14672 esac
14673
14674 enable_dlopen=yes
14675 enable_win32_dll=no
14676
14677 # Check whether --enable-libtool-lock was given.
14678 if test "${enable_libtool_lock+set}" = set; then
14679   enableval=$enable_libtool_lock;
14680 fi
14681
14682 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14683
14684
14685 # Check whether --with-pic was given.
14686 if test "${with_pic+set}" = set; then
14687   withval=$with_pic; pic_mode="$withval"
14688 else
14689   pic_mode=default
14690 fi
14691
14692 test -z "$pic_mode" && pic_mode=default
14693
14694 # Use C for the default configuration in the libtool script
14695 tagname=
14696 lt_save_CC="$CC"
14697 ac_ext=c
14698 ac_cpp='$CPP $CPPFLAGS'
14699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14702
14703
14704 # Source file extension for C test sources.
14705 ac_ext=c
14706
14707 # Object file extension for compiled C test sources.
14708 objext=o
14709 objext=$objext
14710
14711 # Code to be used in simple compile tests
14712 lt_simple_compile_test_code="int some_variable = 0;\n"
14713
14714 # Code to be used in simple link tests
14715 lt_simple_link_test_code='int main(){return(0);}\n'
14716
14717
14718 # If no C compiler was specified, use CC.
14719 LTCC=${LTCC-"$CC"}
14720
14721 # If no C compiler flags were specified, use CFLAGS.
14722 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14723
14724 # Allow CC to be a program name with arguments.
14725 compiler=$CC
14726
14727
14728 # save warnings/boilerplate of simple test code
14729 ac_outfile=conftest.$ac_objext
14730 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14731 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14732 _lt_compiler_boilerplate=`cat conftest.err`
14733 $rm conftest*
14734
14735 ac_outfile=conftest.$ac_objext
14736 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14737 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14738 _lt_linker_boilerplate=`cat conftest.err`
14739 $rm conftest*
14740
14741
14742
14743 lt_prog_compiler_no_builtin_flag=
14744
14745 if test "$GCC" = yes; then
14746   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14747
14748
14749 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14750 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14751 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14752   echo $ECHO_N "(cached) $ECHO_C" >&6
14753 else
14754   lt_cv_prog_compiler_rtti_exceptions=no
14755   ac_outfile=conftest.$ac_objext
14756    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14757    lt_compiler_flag="-fno-rtti -fno-exceptions"
14758    # Insert the option either (1) after the last *FLAGS variable, or
14759    # (2) before a word containing "conftest.", or (3) at the end.
14760    # Note that $ac_compile itself does not contain backslashes and begins
14761    # with a dollar sign (not a hyphen), so the echo should work correctly.
14762    # The option is referenced via a variable to avoid confusing sed.
14763    lt_compile=`echo "$ac_compile" | $SED \
14764    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14765    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14766    -e 's:$: $lt_compiler_flag:'`
14767    (eval echo "\"\$as_me:14767: $lt_compile\"" >&5)
14768    (eval "$lt_compile" 2>conftest.err)
14769    ac_status=$?
14770    cat conftest.err >&5
14771    echo "$as_me:14771: \$? = $ac_status" >&5
14772    if (exit $ac_status) && test -s "$ac_outfile"; then
14773      # The compiler can only warn and ignore the option if not recognized
14774      # So say no if there are warnings other than the usual output.
14775      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14776      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14777      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14778        lt_cv_prog_compiler_rtti_exceptions=yes
14779      fi
14780    fi
14781    $rm conftest*
14782
14783 fi
14784 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14785 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14786
14787 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14788     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14789 else
14790     :
14791 fi
14792
14793 fi
14794
14795 lt_prog_compiler_wl=
14796 lt_prog_compiler_pic=
14797 lt_prog_compiler_static=
14798
14799 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14800 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14801
14802   if test "$GCC" = yes; then
14803     lt_prog_compiler_wl='-Wl,'
14804     lt_prog_compiler_static='-static'
14805
14806     case $host_os in
14807       aix*)
14808       # All AIX code is PIC.
14809       if test "$host_cpu" = ia64; then
14810         # AIX 5 now supports IA64 processor
14811         lt_prog_compiler_static='-Bstatic'
14812       fi
14813       ;;
14814
14815     amigaos*)
14816       # FIXME: we need at least 68020 code to build shared libraries, but
14817       # adding the `-m68020' flag to GCC prevents building anything better,
14818       # like `-m68040'.
14819       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14820       ;;
14821
14822     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14823       # PIC is the default for these OSes.
14824       ;;
14825
14826     mingw* | pw32* | os2*)
14827       # This hack is so that the source file can tell whether it is being
14828       # built for inclusion in a dll (and should export symbols for example).
14829       lt_prog_compiler_pic='-DDLL_EXPORT'
14830       ;;
14831
14832     darwin* | rhapsody*)
14833       # PIC is the default on this platform
14834       # Common symbols not allowed in MH_DYLIB files
14835       lt_prog_compiler_pic='-fno-common'
14836       ;;
14837
14838     interix3*)
14839       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14840       # Instead, we relocate shared libraries at runtime.
14841       ;;
14842
14843     msdosdjgpp*)
14844       # Just because we use GCC doesn't mean we suddenly get shared libraries
14845       # on systems that don't support them.
14846       lt_prog_compiler_can_build_shared=no
14847       enable_shared=no
14848       ;;
14849
14850     sysv4*MP*)
14851       if test -d /usr/nec; then
14852         lt_prog_compiler_pic=-Kconform_pic
14853       fi
14854       ;;
14855
14856     hpux*)
14857       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14858       # not for PA HP-UX.
14859       case $host_cpu in
14860       hppa*64*|ia64*)
14861         # +Z the default
14862         ;;
14863       *)
14864         lt_prog_compiler_pic='-fPIC'
14865         ;;
14866       esac
14867       ;;
14868
14869     *)
14870       lt_prog_compiler_pic='-fPIC'
14871       ;;
14872     esac
14873   else
14874     # PORTME Check for flag to pass linker flags through the system compiler.
14875     case $host_os in
14876     aix*)
14877       lt_prog_compiler_wl='-Wl,'
14878       if test "$host_cpu" = ia64; then
14879         # AIX 5 now supports IA64 processor
14880         lt_prog_compiler_static='-Bstatic'
14881       else
14882         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14883       fi
14884       ;;
14885       darwin*)
14886         # PIC is the default on this platform
14887         # Common symbols not allowed in MH_DYLIB files
14888        case $cc_basename in
14889          xlc*)
14890          lt_prog_compiler_pic='-qnocommon'
14891          lt_prog_compiler_wl='-Wl,'
14892          ;;
14893        esac
14894        ;;
14895
14896     mingw* | pw32* | os2*)
14897       # This hack is so that the source file can tell whether it is being
14898       # built for inclusion in a dll (and should export symbols for example).
14899       lt_prog_compiler_pic='-DDLL_EXPORT'
14900       ;;
14901
14902     hpux9* | hpux10* | hpux11*)
14903       lt_prog_compiler_wl='-Wl,'
14904       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14905       # not for PA HP-UX.
14906       case $host_cpu in
14907       hppa*64*|ia64*)
14908         # +Z the default
14909         ;;
14910       *)
14911         lt_prog_compiler_pic='+Z'
14912         ;;
14913       esac
14914       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14915       lt_prog_compiler_static='${wl}-a ${wl}archive'
14916       ;;
14917
14918     irix5* | irix6* | nonstopux*)
14919       lt_prog_compiler_wl='-Wl,'
14920       # PIC (with -KPIC) is the default.
14921       lt_prog_compiler_static='-non_shared'
14922       ;;
14923
14924     newsos6)
14925       lt_prog_compiler_pic='-KPIC'
14926       lt_prog_compiler_static='-Bstatic'
14927       ;;
14928
14929     linux*)
14930       case $cc_basename in
14931       icc* | ecc*)
14932         lt_prog_compiler_wl='-Wl,'
14933         lt_prog_compiler_pic='-KPIC'
14934         lt_prog_compiler_static='-static'
14935         ;;
14936       pgcc* | pgf77* | pgf90* | pgf95*)
14937         # Portland Group compilers (*not* the Pentium gcc compiler,
14938         # which looks to be a dead project)
14939         lt_prog_compiler_wl='-Wl,'
14940         lt_prog_compiler_pic='-fpic'
14941         lt_prog_compiler_static='-Bstatic'
14942         ;;
14943       ccc*)
14944         lt_prog_compiler_wl='-Wl,'
14945         # All Alpha code is PIC.
14946         lt_prog_compiler_static='-non_shared'
14947         ;;
14948       esac
14949       ;;
14950
14951     osf3* | osf4* | osf5*)
14952       lt_prog_compiler_wl='-Wl,'
14953       # All OSF/1 code is PIC.
14954       lt_prog_compiler_static='-non_shared'
14955       ;;
14956
14957     solaris*)
14958       lt_prog_compiler_pic='-KPIC'
14959       lt_prog_compiler_static='-Bstatic'
14960       case $cc_basename in
14961       f77* | f90* | f95*)
14962         lt_prog_compiler_wl='-Qoption ld ';;
14963       *)
14964         lt_prog_compiler_wl='-Wl,';;
14965       esac
14966       ;;
14967
14968     sunos4*)
14969       lt_prog_compiler_wl='-Qoption ld '
14970       lt_prog_compiler_pic='-PIC'
14971       lt_prog_compiler_static='-Bstatic'
14972       ;;
14973
14974     sysv4 | sysv4.2uw2* | sysv4.3*)
14975       lt_prog_compiler_wl='-Wl,'
14976       lt_prog_compiler_pic='-KPIC'
14977       lt_prog_compiler_static='-Bstatic'
14978       ;;
14979
14980     sysv4*MP*)
14981       if test -d /usr/nec ;then
14982         lt_prog_compiler_pic='-Kconform_pic'
14983         lt_prog_compiler_static='-Bstatic'
14984       fi
14985       ;;
14986
14987     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14988       lt_prog_compiler_wl='-Wl,'
14989       lt_prog_compiler_pic='-KPIC'
14990       lt_prog_compiler_static='-Bstatic'
14991       ;;
14992
14993     unicos*)
14994       lt_prog_compiler_wl='-Wl,'
14995       lt_prog_compiler_can_build_shared=no
14996       ;;
14997
14998     uts4*)
14999       lt_prog_compiler_pic='-pic'
15000       lt_prog_compiler_static='-Bstatic'
15001       ;;
15002
15003     *)
15004       lt_prog_compiler_can_build_shared=no
15005       ;;
15006     esac
15007   fi
15008
15009 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15010 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15011
15012 #
15013 # Check to make sure the PIC flag actually works.
15014 #
15015 if test -n "$lt_prog_compiler_pic"; then
15016
15017 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15018 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15019 if test "${lt_prog_compiler_pic_works+set}" = set; then
15020   echo $ECHO_N "(cached) $ECHO_C" >&6
15021 else
15022   lt_prog_compiler_pic_works=no
15023   ac_outfile=conftest.$ac_objext
15024    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15025    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15026    # Insert the option either (1) after the last *FLAGS variable, or
15027    # (2) before a word containing "conftest.", or (3) at the end.
15028    # Note that $ac_compile itself does not contain backslashes and begins
15029    # with a dollar sign (not a hyphen), so the echo should work correctly.
15030    # The option is referenced via a variable to avoid confusing sed.
15031    lt_compile=`echo "$ac_compile" | $SED \
15032    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15033    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15034    -e 's:$: $lt_compiler_flag:'`
15035    (eval echo "\"\$as_me:15035: $lt_compile\"" >&5)
15036    (eval "$lt_compile" 2>conftest.err)
15037    ac_status=$?
15038    cat conftest.err >&5
15039    echo "$as_me:15039: \$? = $ac_status" >&5
15040    if (exit $ac_status) && test -s "$ac_outfile"; then
15041      # The compiler can only warn and ignore the option if not recognized
15042      # So say no if there are warnings other than the usual output.
15043      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15044      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15045      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15046        lt_prog_compiler_pic_works=yes
15047      fi
15048    fi
15049    $rm conftest*
15050
15051 fi
15052 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15053 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15054
15055 if test x"$lt_prog_compiler_pic_works" = xyes; then
15056     case $lt_prog_compiler_pic in
15057      "" | " "*) ;;
15058      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15059      esac
15060 else
15061     lt_prog_compiler_pic=
15062      lt_prog_compiler_can_build_shared=no
15063 fi
15064
15065 fi
15066 case $host_os in
15067   # For platforms which do not support PIC, -DPIC is meaningless:
15068   *djgpp*)
15069     lt_prog_compiler_pic=
15070     ;;
15071   *)
15072     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15073     ;;
15074 esac
15075
15076 #
15077 # Check to make sure the static flag actually works.
15078 #
15079 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15080 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15081 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15082 if test "${lt_prog_compiler_static_works+set}" = set; then
15083   echo $ECHO_N "(cached) $ECHO_C" >&6
15084 else
15085   lt_prog_compiler_static_works=no
15086    save_LDFLAGS="$LDFLAGS"
15087    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15088    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15089    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15090      # The linker can only warn and ignore the option if not recognized
15091      # So say no if there are warnings
15092      if test -s conftest.err; then
15093        # Append any errors to the config.log.
15094        cat conftest.err 1>&5
15095        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15096        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15097        if diff conftest.exp conftest.er2 >/dev/null; then
15098          lt_prog_compiler_static_works=yes
15099        fi
15100      else
15101        lt_prog_compiler_static_works=yes
15102      fi
15103    fi
15104    $rm conftest*
15105    LDFLAGS="$save_LDFLAGS"
15106
15107 fi
15108 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15109 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15110
15111 if test x"$lt_prog_compiler_static_works" = xyes; then
15112     :
15113 else
15114     lt_prog_compiler_static=
15115 fi
15116
15117
15118 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15119 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15120 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15121   echo $ECHO_N "(cached) $ECHO_C" >&6
15122 else
15123   lt_cv_prog_compiler_c_o=no
15124    $rm -r conftest 2>/dev/null
15125    mkdir conftest
15126    cd conftest
15127    mkdir out
15128    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15129
15130    lt_compiler_flag="-o out/conftest2.$ac_objext"
15131    # Insert the option either (1) after the last *FLAGS variable, or
15132    # (2) before a word containing "conftest.", or (3) at the end.
15133    # Note that $ac_compile itself does not contain backslashes and begins
15134    # with a dollar sign (not a hyphen), so the echo should work correctly.
15135    lt_compile=`echo "$ac_compile" | $SED \
15136    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15137    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15138    -e 's:$: $lt_compiler_flag:'`
15139    (eval echo "\"\$as_me:15139: $lt_compile\"" >&5)
15140    (eval "$lt_compile" 2>out/conftest.err)
15141    ac_status=$?
15142    cat out/conftest.err >&5
15143    echo "$as_me:15143: \$? = $ac_status" >&5
15144    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15145    then
15146      # The compiler can only warn and ignore the option if not recognized
15147      # So say no if there are warnings
15148      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15149      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15150      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15151        lt_cv_prog_compiler_c_o=yes
15152      fi
15153    fi
15154    chmod u+w . 2>&5
15155    $rm conftest*
15156    # SGI C++ compiler will create directory out/ii_files/ for
15157    # template instantiation
15158    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15159    $rm out/* && rmdir out
15160    cd ..
15161    rmdir conftest
15162    $rm conftest*
15163
15164 fi
15165 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15166 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15167
15168
15169 hard_links="nottested"
15170 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15171   # do not overwrite the value of need_locks provided by the user
15172   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15173 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15174   hard_links=yes
15175   $rm conftest*
15176   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15177   touch conftest.a
15178   ln conftest.a conftest.b 2>&5 || hard_links=no
15179   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15180   { echo "$as_me:$LINENO: result: $hard_links" >&5
15181 echo "${ECHO_T}$hard_links" >&6; }
15182   if test "$hard_links" = no; then
15183     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15184 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15185     need_locks=warn
15186   fi
15187 else
15188   need_locks=no
15189 fi
15190
15191 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15192 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15193
15194   runpath_var=
15195   allow_undefined_flag=
15196   enable_shared_with_static_runtimes=no
15197   archive_cmds=
15198   archive_expsym_cmds=
15199   old_archive_From_new_cmds=
15200   old_archive_from_expsyms_cmds=
15201   export_dynamic_flag_spec=
15202   whole_archive_flag_spec=
15203   thread_safe_flag_spec=
15204   hardcode_libdir_flag_spec=
15205   hardcode_libdir_flag_spec_ld=
15206   hardcode_libdir_separator=
15207   hardcode_direct=no
15208   hardcode_minus_L=no
15209   hardcode_shlibpath_var=unsupported
15210   link_all_deplibs=unknown
15211   hardcode_automatic=no
15212   module_cmds=
15213   module_expsym_cmds=
15214   always_export_symbols=no
15215   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15216   # include_expsyms should be a list of space-separated symbols to be *always*
15217   # included in the symbol list
15218   include_expsyms=
15219   # exclude_expsyms can be an extended regexp of symbols to exclude
15220   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15221   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15222   # as well as any symbol that contains `d'.
15223   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15224   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15225   # platforms (ab)use it in PIC code, but their linkers get confused if
15226   # the symbol is explicitly referenced.  Since portable code cannot
15227   # rely on this symbol name, it's probably fine to never include it in
15228   # preloaded symbol tables.
15229   extract_expsyms_cmds=
15230   # Just being paranoid about ensuring that cc_basename is set.
15231   for cc_temp in $compiler""; do
15232   case $cc_temp in
15233     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15234     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15235     \-*) ;;
15236     *) break;;
15237   esac
15238 done
15239 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15240
15241   case $host_os in
15242   cygwin* | mingw* | pw32*)
15243     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15244     # When not using gcc, we currently assume that we are using
15245     # Microsoft Visual C++.
15246     if test "$GCC" != yes; then
15247       with_gnu_ld=no
15248     fi
15249     ;;
15250   interix*)
15251     # we just hope/assume this is gcc and not c89 (= MSVC++)
15252     with_gnu_ld=yes
15253     ;;
15254   openbsd*)
15255     with_gnu_ld=no
15256     ;;
15257   esac
15258
15259   ld_shlibs=yes
15260   if test "$with_gnu_ld" = yes; then
15261     # If archive_cmds runs LD, not CC, wlarc should be empty
15262     wlarc='${wl}'
15263
15264     # Set some defaults for GNU ld with shared library support. These
15265     # are reset later if shared libraries are not supported. Putting them
15266     # here allows them to be overridden if necessary.
15267     runpath_var=LD_RUN_PATH
15268     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15269     export_dynamic_flag_spec='${wl}--export-dynamic'
15270     # ancient GNU ld didn't support --whole-archive et. al.
15271     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15272         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15273       else
15274         whole_archive_flag_spec=
15275     fi
15276     supports_anon_versioning=no
15277     case `$LD -v 2>/dev/null` in
15278       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15279       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15280       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15281       *\ 2.11.*) ;; # other 2.11 versions
15282       *) supports_anon_versioning=yes ;;
15283     esac
15284
15285     # See if GNU ld supports shared libraries.
15286     case $host_os in
15287     aix3* | aix4* | aix5*)
15288       # On AIX/PPC, the GNU linker is very broken
15289       if test "$host_cpu" != ia64; then
15290         ld_shlibs=no
15291         cat <<EOF 1>&2
15292
15293 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15294 *** to be unable to reliably create shared libraries on AIX.
15295 *** Therefore, libtool is disabling shared libraries support.  If you
15296 *** really care for shared libraries, you may want to modify your PATH
15297 *** so that a non-GNU linker is found, and then restart.
15298
15299 EOF
15300       fi
15301       ;;
15302
15303     amigaos*)
15304       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)'
15305       hardcode_libdir_flag_spec='-L$libdir'
15306       hardcode_minus_L=yes
15307
15308       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15309       # that the semantics of dynamic libraries on AmigaOS, at least up
15310       # to version 4, is to share data among multiple programs linked
15311       # with the same dynamic library.  Since this doesn't match the
15312       # behavior of shared libraries on other platforms, we can't use
15313       # them.
15314       ld_shlibs=no
15315       ;;
15316
15317     beos*)
15318       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15319         allow_undefined_flag=unsupported
15320         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15321         # support --undefined.  This deserves some investigation.  FIXME
15322         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15323       else
15324         ld_shlibs=no
15325       fi
15326       ;;
15327
15328     cygwin* | mingw* | pw32*)
15329       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15330       # as there is no search path for DLLs.
15331       hardcode_libdir_flag_spec='-L$libdir'
15332       allow_undefined_flag=unsupported
15333       always_export_symbols=no
15334       enable_shared_with_static_runtimes=yes
15335       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15336
15337       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15338         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15339         # If the export-symbols file already is a .def file (1st line
15340         # is EXPORTS), use it as is; otherwise, prepend...
15341         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15342           cp $export_symbols $output_objdir/$soname.def;
15343         else
15344           echo EXPORTS > $output_objdir/$soname.def;
15345           cat $export_symbols >> $output_objdir/$soname.def;
15346         fi~
15347         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15348       else
15349         ld_shlibs=no
15350       fi
15351       ;;
15352
15353     interix3*)
15354       hardcode_direct=no
15355       hardcode_shlibpath_var=no
15356       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15357       export_dynamic_flag_spec='${wl}-E'
15358       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15359       # Instead, shared libraries are loaded at an image base (0x10000000 by
15360       # default) and relocated if they conflict, which is a slow very memory
15361       # consuming and fragmenting process.  To avoid this, we pick a random,
15362       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15363       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15364       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15365       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'
15366       ;;
15367
15368     linux*)
15369       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15370         tmp_addflag=
15371         case $cc_basename,$host_cpu in
15372         pgcc*)                          # Portland Group C compiler
15373           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'
15374           tmp_addflag=' $pic_flag'
15375           ;;
15376         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15377           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'
15378           tmp_addflag=' $pic_flag -Mnomain' ;;
15379         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15380           tmp_addflag=' -i_dynamic' ;;
15381         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15382           tmp_addflag=' -i_dynamic -nofor_main' ;;
15383         ifc* | ifort*)                  # Intel Fortran compiler
15384           tmp_addflag=' -nofor_main' ;;
15385         esac
15386         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15387
15388         if test $supports_anon_versioning = yes; then
15389           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15390   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15391   $echo "local: *; };" >> $output_objdir/$libname.ver~
15392           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15393         fi
15394       else
15395         ld_shlibs=no
15396       fi
15397       ;;
15398
15399     netbsd*)
15400       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15401         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15402         wlarc=
15403       else
15404         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15405         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15406       fi
15407       ;;
15408
15409     solaris*)
15410       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15411         ld_shlibs=no
15412         cat <<EOF 1>&2
15413
15414 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15415 *** create shared libraries on Solaris systems.  Therefore, libtool
15416 *** is disabling shared libraries support.  We urge you to upgrade GNU
15417 *** binutils to release 2.9.1 or newer.  Another option is to modify
15418 *** your PATH or compiler configuration so that the native linker is
15419 *** used, and then restart.
15420
15421 EOF
15422       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15423         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15424         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15425       else
15426         ld_shlibs=no
15427       fi
15428       ;;
15429
15430     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15431       case `$LD -v 2>&1` in
15432         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15433         ld_shlibs=no
15434         cat <<_LT_EOF 1>&2
15435
15436 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15437 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15438 *** is disabling shared libraries support.  We urge you to upgrade GNU
15439 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15440 *** your PATH or compiler configuration so that the native linker is
15441 *** used, and then restart.
15442
15443 _LT_EOF
15444         ;;
15445         *)
15446           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15447             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15448             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15449             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15450           else
15451             ld_shlibs=no
15452           fi
15453         ;;
15454       esac
15455       ;;
15456
15457     sunos4*)
15458       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15459       wlarc=
15460       hardcode_direct=yes
15461       hardcode_shlibpath_var=no
15462       ;;
15463
15464     *)
15465       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15466         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15467         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15468       else
15469         ld_shlibs=no
15470       fi
15471       ;;
15472     esac
15473
15474     if test "$ld_shlibs" = no; then
15475       runpath_var=
15476       hardcode_libdir_flag_spec=
15477       export_dynamic_flag_spec=
15478       whole_archive_flag_spec=
15479     fi
15480   else
15481     # PORTME fill in a description of your system's linker (not GNU ld)
15482     case $host_os in
15483     aix3*)
15484       allow_undefined_flag=unsupported
15485       always_export_symbols=yes
15486       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'
15487       # Note: this linker hardcodes the directories in LIBPATH if there
15488       # are no directories specified by -L.
15489       hardcode_minus_L=yes
15490       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15491         # Neither direct hardcoding nor static linking is supported with a
15492         # broken collect2.
15493         hardcode_direct=unsupported
15494       fi
15495       ;;
15496
15497     aix4* | aix5*)
15498       if test "$host_cpu" = ia64; then
15499         # On IA64, the linker does run time linking by default, so we don't
15500         # have to do anything special.
15501         aix_use_runtimelinking=no
15502         exp_sym_flag='-Bexport'
15503         no_entry_flag=""
15504       else
15505         # If we're using GNU nm, then we don't want the "-C" option.
15506         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15507         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15508           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'
15509         else
15510           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'
15511         fi
15512         aix_use_runtimelinking=no
15513
15514         # Test if we are trying to use run time linking or normal
15515         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15516         # need to do runtime linking.
15517         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15518           for ld_flag in $LDFLAGS; do
15519           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15520             aix_use_runtimelinking=yes
15521             break
15522           fi
15523           done
15524           ;;
15525         esac
15526
15527         exp_sym_flag='-bexport'
15528         no_entry_flag='-bnoentry'
15529       fi
15530
15531       # When large executables or shared objects are built, AIX ld can
15532       # have problems creating the table of contents.  If linking a library
15533       # or program results in "error TOC overflow" add -mminimal-toc to
15534       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15535       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15536
15537       archive_cmds=''
15538       hardcode_direct=yes
15539       hardcode_libdir_separator=':'
15540       link_all_deplibs=yes
15541
15542       if test "$GCC" = yes; then
15543         case $host_os in aix4.[012]|aix4.[012].*)
15544         # We only want to do this on AIX 4.2 and lower, the check
15545         # below for broken collect2 doesn't work under 4.3+
15546           collect2name=`${CC} -print-prog-name=collect2`
15547           if test -f "$collect2name" && \
15548            strings "$collect2name" | grep resolve_lib_name >/dev/null
15549           then
15550           # We have reworked collect2
15551           hardcode_direct=yes
15552           else
15553           # We have old collect2
15554           hardcode_direct=unsupported
15555           # It fails to find uninstalled libraries when the uninstalled
15556           # path is not listed in the libpath.  Setting hardcode_minus_L
15557           # to unsupported forces relinking
15558           hardcode_minus_L=yes
15559           hardcode_libdir_flag_spec='-L$libdir'
15560           hardcode_libdir_separator=
15561           fi
15562           ;;
15563         esac
15564         shared_flag='-shared'
15565         if test "$aix_use_runtimelinking" = yes; then
15566           shared_flag="$shared_flag "'${wl}-G'
15567         fi
15568       else
15569         # not using gcc
15570         if test "$host_cpu" = ia64; then
15571         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15572         # chokes on -Wl,-G. The following line is correct:
15573           shared_flag='-G'
15574         else
15575           if test "$aix_use_runtimelinking" = yes; then
15576             shared_flag='${wl}-G'
15577           else
15578             shared_flag='${wl}-bM:SRE'
15579           fi
15580         fi
15581       fi
15582
15583       # It seems that -bexpall does not export symbols beginning with
15584       # underscore (_), so it is better to generate a list of symbols to export.
15585       always_export_symbols=yes
15586       if test "$aix_use_runtimelinking" = yes; then
15587         # Warning - without using the other runtime loading flags (-brtl),
15588         # -berok will link without error, but may produce a broken library.
15589         allow_undefined_flag='-berok'
15590        # Determine the default libpath from the value encoded in an empty executable.
15591        cat >conftest.$ac_ext <<_ACEOF
15592 /* confdefs.h.  */
15593 _ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h.  */
15597
15598 int
15599 main ()
15600 {
15601
15602   ;
15603   return 0;
15604 }
15605 _ACEOF
15606 rm -f conftest.$ac_objext conftest$ac_exeext
15607 if { (ac_try="$ac_link"
15608 case "(($ac_try" in
15609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610   *) ac_try_echo=$ac_try;;
15611 esac
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613   (eval "$ac_link") 2>conftest.er1
15614   ac_status=$?
15615   grep -v '^ *+' conftest.er1 >conftest.err
15616   rm -f conftest.er1
15617   cat conftest.err >&5
15618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619   (exit $ac_status); } &&
15620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15621   { (case "(($ac_try" in
15622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623   *) ac_try_echo=$ac_try;;
15624 esac
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626   (eval "$ac_try") 2>&5
15627   ac_status=$?
15628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629   (exit $ac_status); }; } &&
15630          { ac_try='test -s conftest$ac_exeext'
15631   { (case "(($ac_try" in
15632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633   *) ac_try_echo=$ac_try;;
15634 esac
15635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636   (eval "$ac_try") 2>&5
15637   ac_status=$?
15638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639   (exit $ac_status); }; }; then
15640
15641 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15642 }'`
15643 # Check for a 64-bit object if we didn't find anything.
15644 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; }
15645 }'`; fi
15646 else
15647   echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15649
15650
15651 fi
15652
15653 rm -f core conftest.err conftest.$ac_objext \
15654       conftest$ac_exeext conftest.$ac_ext
15655 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15656
15657        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15658         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"
15659        else
15660         if test "$host_cpu" = ia64; then
15661           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15662           allow_undefined_flag="-z nodefs"
15663           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"
15664         else
15665          # Determine the default libpath from the value encoded in an empty executable.
15666          cat >conftest.$ac_ext <<_ACEOF
15667 /* confdefs.h.  */
15668 _ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h.  */
15672
15673 int
15674 main ()
15675 {
15676
15677   ;
15678   return 0;
15679 }
15680 _ACEOF
15681 rm -f conftest.$ac_objext conftest$ac_exeext
15682 if { (ac_try="$ac_link"
15683 case "(($ac_try" in
15684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15685   *) ac_try_echo=$ac_try;;
15686 esac
15687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15688   (eval "$ac_link") 2>conftest.er1
15689   ac_status=$?
15690   grep -v '^ *+' conftest.er1 >conftest.err
15691   rm -f conftest.er1
15692   cat conftest.err >&5
15693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); } &&
15695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15696   { (case "(($ac_try" in
15697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698   *) ac_try_echo=$ac_try;;
15699 esac
15700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701   (eval "$ac_try") 2>&5
15702   ac_status=$?
15703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704   (exit $ac_status); }; } &&
15705          { ac_try='test -s conftest$ac_exeext'
15706   { (case "(($ac_try" in
15707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708   *) ac_try_echo=$ac_try;;
15709 esac
15710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711   (eval "$ac_try") 2>&5
15712   ac_status=$?
15713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714   (exit $ac_status); }; }; then
15715
15716 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15717 }'`
15718 # Check for a 64-bit object if we didn't find anything.
15719 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; }
15720 }'`; fi
15721 else
15722   echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15724
15725
15726 fi
15727
15728 rm -f core conftest.err conftest.$ac_objext \
15729       conftest$ac_exeext conftest.$ac_ext
15730 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15731
15732          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15733           # Warning - without using the other run time loading flags,
15734           # -berok will link without error, but may produce a broken library.
15735           no_undefined_flag=' ${wl}-bernotok'
15736           allow_undefined_flag=' ${wl}-berok'
15737           # Exported symbols can be pulled into shared objects from archives
15738           whole_archive_flag_spec='$convenience'
15739           archive_cmds_need_lc=yes
15740           # This is similar to how AIX traditionally builds its shared libraries.
15741           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'
15742         fi
15743       fi
15744       ;;
15745
15746     amigaos*)
15747       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)'
15748       hardcode_libdir_flag_spec='-L$libdir'
15749       hardcode_minus_L=yes
15750       # see comment about different semantics on the GNU ld section
15751       ld_shlibs=no
15752       ;;
15753
15754     bsdi[45]*)
15755       export_dynamic_flag_spec=-rdynamic
15756       ;;
15757
15758     cygwin* | mingw* | pw32*)
15759       # When not using gcc, we currently assume that we are using
15760       # Microsoft Visual C++.
15761       # hardcode_libdir_flag_spec is actually meaningless, as there is
15762       # no search path for DLLs.
15763       hardcode_libdir_flag_spec=' '
15764       allow_undefined_flag=unsupported
15765       # Tell ltmain to make .lib files, not .a files.
15766       libext=lib
15767       # Tell ltmain to make .dll files, not .so files.
15768       shrext_cmds=".dll"
15769       # FIXME: Setting linknames here is a bad hack.
15770       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15771       # The linker will automatically build a .lib file if we build a DLL.
15772       old_archive_From_new_cmds='true'
15773       # FIXME: Should let the user specify the lib program.
15774       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15775       fix_srcfile_path='`cygpath -w "$srcfile"`'
15776       enable_shared_with_static_runtimes=yes
15777       ;;
15778
15779     darwin* | rhapsody*)
15780       case $host_os in
15781         rhapsody* | darwin1.[012])
15782          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15783          ;;
15784        *) # Darwin 1.3 on
15785          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15786            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15787          else
15788            case ${MACOSX_DEPLOYMENT_TARGET} in
15789              10.[012])
15790                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15791                ;;
15792              10.*)
15793                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15794                ;;
15795            esac
15796          fi
15797          ;;
15798       esac
15799       archive_cmds_need_lc=no
15800       hardcode_direct=no
15801       hardcode_automatic=yes
15802       hardcode_shlibpath_var=unsupported
15803       whole_archive_flag_spec=''
15804       link_all_deplibs=yes
15805     if test "$GCC" = yes ; then
15806         output_verbose_link_cmd='echo'
15807         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15808       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15809       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15810       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}'
15811       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}'
15812     else
15813       case $cc_basename in
15814         xlc*)
15815          output_verbose_link_cmd='echo'
15816          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15817          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15818           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15819          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}'
15820           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}'
15821           ;;
15822        *)
15823          ld_shlibs=no
15824           ;;
15825       esac
15826     fi
15827       ;;
15828
15829     dgux*)
15830       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15831       hardcode_libdir_flag_spec='-L$libdir'
15832       hardcode_shlibpath_var=no
15833       ;;
15834
15835     freebsd1*)
15836       ld_shlibs=no
15837       ;;
15838
15839     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15840     # support.  Future versions do this automatically, but an explicit c++rt0.o
15841     # does not break anything, and helps significantly (at the cost of a little
15842     # extra space).
15843     freebsd2.2*)
15844       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15845       hardcode_libdir_flag_spec='-R$libdir'
15846       hardcode_direct=yes
15847       hardcode_shlibpath_var=no
15848       ;;
15849
15850     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15851     freebsd2*)
15852       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15853       hardcode_direct=yes
15854       hardcode_minus_L=yes
15855       hardcode_shlibpath_var=no
15856       ;;
15857
15858     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15859     freebsd* | kfreebsd*-gnu | dragonfly*)
15860       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15861       hardcode_libdir_flag_spec='-R$libdir'
15862       hardcode_direct=yes
15863       hardcode_shlibpath_var=no
15864       ;;
15865
15866     hpux9*)
15867       if test "$GCC" = yes; then
15868         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'
15869       else
15870         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'
15871       fi
15872       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15873       hardcode_libdir_separator=:
15874       hardcode_direct=yes
15875
15876       # hardcode_minus_L: Not really in the search PATH,
15877       # but as the default location of the library.
15878       hardcode_minus_L=yes
15879       export_dynamic_flag_spec='${wl}-E'
15880       ;;
15881
15882     hpux10*)
15883       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15884         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15885       else
15886         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15887       fi
15888       if test "$with_gnu_ld" = no; then
15889         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15890         hardcode_libdir_separator=:
15891
15892         hardcode_direct=yes
15893         export_dynamic_flag_spec='${wl}-E'
15894
15895         # hardcode_minus_L: Not really in the search PATH,
15896         # but as the default location of the library.
15897         hardcode_minus_L=yes
15898       fi
15899       ;;
15900
15901     hpux11*)
15902       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15903         case $host_cpu in
15904         hppa*64*)
15905           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15906           ;;
15907         ia64*)
15908           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15909           ;;
15910         *)
15911           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15912           ;;
15913         esac
15914       else
15915         case $host_cpu in
15916         hppa*64*)
15917           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15918           ;;
15919         ia64*)
15920           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15921           ;;
15922         *)
15923           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15924           ;;
15925         esac
15926       fi
15927       if test "$with_gnu_ld" = no; then
15928         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15929         hardcode_libdir_separator=:
15930
15931         case $host_cpu in
15932         hppa*64*|ia64*)
15933           hardcode_libdir_flag_spec_ld='+b $libdir'
15934           hardcode_direct=no
15935           hardcode_shlibpath_var=no
15936           ;;
15937         *)
15938           hardcode_direct=yes
15939           export_dynamic_flag_spec='${wl}-E'
15940
15941           # hardcode_minus_L: Not really in the search PATH,
15942           # but as the default location of the library.
15943           hardcode_minus_L=yes
15944           ;;
15945         esac
15946       fi
15947       ;;
15948
15949     irix5* | irix6* | nonstopux*)
15950       if test "$GCC" = yes; then
15951         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'
15952       else
15953         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'
15954         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15955       fi
15956       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15957       hardcode_libdir_separator=:
15958       link_all_deplibs=yes
15959       ;;
15960
15961     netbsd*)
15962       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15963         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15964       else
15965         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15966       fi
15967       hardcode_libdir_flag_spec='-R$libdir'
15968       hardcode_direct=yes
15969       hardcode_shlibpath_var=no
15970       ;;
15971
15972     newsos6)
15973       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15974       hardcode_direct=yes
15975       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15976       hardcode_libdir_separator=:
15977       hardcode_shlibpath_var=no
15978       ;;
15979
15980     openbsd*)
15981       hardcode_direct=yes
15982       hardcode_shlibpath_var=no
15983       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15984         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15985         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15986         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15987         export_dynamic_flag_spec='${wl}-E'
15988       else
15989        case $host_os in
15990          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15991            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15992            hardcode_libdir_flag_spec='-R$libdir'
15993            ;;
15994          *)
15995            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15996            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15997            ;;
15998        esac
15999       fi
16000       ;;
16001
16002     os2*)
16003       hardcode_libdir_flag_spec='-L$libdir'
16004       hardcode_minus_L=yes
16005       allow_undefined_flag=unsupported
16006       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'
16007       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16008       ;;
16009
16010     osf3*)
16011       if test "$GCC" = yes; then
16012         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16013         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'
16014       else
16015         allow_undefined_flag=' -expect_unresolved \*'
16016         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'
16017       fi
16018       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16019       hardcode_libdir_separator=:
16020       ;;
16021
16022     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16023       if test "$GCC" = yes; then
16024         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16025         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'
16026         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16027       else
16028         allow_undefined_flag=' -expect_unresolved \*'
16029         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'
16030         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16031         $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'
16032
16033         # Both c and cxx compiler support -rpath directly
16034         hardcode_libdir_flag_spec='-rpath $libdir'
16035       fi
16036       hardcode_libdir_separator=:
16037       ;;
16038
16039     solaris*)
16040       no_undefined_flag=' -z text'
16041       if test "$GCC" = yes; then
16042         wlarc='${wl}'
16043         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16044         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16045           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16046       else
16047         wlarc=''
16048         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16050         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16051       fi
16052       hardcode_libdir_flag_spec='-R$libdir'
16053       hardcode_shlibpath_var=no
16054       case $host_os in
16055       solaris2.[0-5] | solaris2.[0-5].*) ;;
16056       *)
16057         # The compiler driver will combine linker options so we
16058         # cannot just pass the convience library names through
16059         # without $wl, iff we do not link with $LD.
16060         # Luckily, gcc supports the same syntax we need for Sun Studio.
16061         # Supported since Solaris 2.6 (maybe 2.5.1?)
16062         case $wlarc in
16063         '')
16064           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16065         *)
16066           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' ;;
16067         esac ;;
16068       esac
16069       link_all_deplibs=yes
16070       ;;
16071
16072     sunos4*)
16073       if test "x$host_vendor" = xsequent; then
16074         # Use $CC to link under sequent, because it throws in some extra .o
16075         # files that make .init and .fini sections work.
16076         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16077       else
16078         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16079       fi
16080       hardcode_libdir_flag_spec='-L$libdir'
16081       hardcode_direct=yes
16082       hardcode_minus_L=yes
16083       hardcode_shlibpath_var=no
16084       ;;
16085
16086     sysv4)
16087       case $host_vendor in
16088         sni)
16089           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16090           hardcode_direct=yes # is this really true???
16091         ;;
16092         siemens)
16093           ## LD is ld it makes a PLAMLIB
16094           ## CC just makes a GrossModule.
16095           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16096           reload_cmds='$CC -r -o $output$reload_objs'
16097           hardcode_direct=no
16098         ;;
16099         motorola)
16100           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16101           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16102         ;;
16103       esac
16104       runpath_var='LD_RUN_PATH'
16105       hardcode_shlibpath_var=no
16106       ;;
16107
16108     sysv4.3*)
16109       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16110       hardcode_shlibpath_var=no
16111       export_dynamic_flag_spec='-Bexport'
16112       ;;
16113
16114     sysv4*MP*)
16115       if test -d /usr/nec; then
16116         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16117         hardcode_shlibpath_var=no
16118         runpath_var=LD_RUN_PATH
16119         hardcode_runpath_var=yes
16120         ld_shlibs=yes
16121       fi
16122       ;;
16123
16124     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16125       no_undefined_flag='${wl}-z,text'
16126       archive_cmds_need_lc=no
16127       hardcode_shlibpath_var=no
16128       runpath_var='LD_RUN_PATH'
16129
16130       if test "$GCC" = yes; then
16131         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16132         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16133       else
16134         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16135         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16136       fi
16137       ;;
16138
16139     sysv5* | sco3.2v5* | sco5v6*)
16140       # Note: We can NOT use -z defs as we might desire, because we do not
16141       # link with -lc, and that would cause any symbols used from libc to
16142       # always be unresolved, which means just about no library would
16143       # ever link correctly.  If we're not using GNU ld we use -z text
16144       # though, which does catch some bad symbols but isn't as heavy-handed
16145       # as -z defs.
16146       no_undefined_flag='${wl}-z,text'
16147       allow_undefined_flag='${wl}-z,nodefs'
16148       archive_cmds_need_lc=no
16149       hardcode_shlibpath_var=no
16150       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16151       hardcode_libdir_separator=':'
16152       link_all_deplibs=yes
16153       export_dynamic_flag_spec='${wl}-Bexport'
16154       runpath_var='LD_RUN_PATH'
16155
16156       if test "$GCC" = yes; then
16157         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16158         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16159       else
16160         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16161         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16162       fi
16163       ;;
16164
16165     uts4*)
16166       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16167       hardcode_libdir_flag_spec='-L$libdir'
16168       hardcode_shlibpath_var=no
16169       ;;
16170
16171     *)
16172       ld_shlibs=no
16173       ;;
16174     esac
16175   fi
16176
16177 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16178 echo "${ECHO_T}$ld_shlibs" >&6; }
16179 test "$ld_shlibs" = no && can_build_shared=no
16180
16181 #
16182 # Do we need to explicitly link libc?
16183 #
16184 case "x$archive_cmds_need_lc" in
16185 x|xyes)
16186   # Assume -lc should be added
16187   archive_cmds_need_lc=yes
16188
16189   if test "$enable_shared" = yes && test "$GCC" = yes; then
16190     case $archive_cmds in
16191     *'~'*)
16192       # FIXME: we may have to deal with multi-command sequences.
16193       ;;
16194     '$CC '*)
16195       # Test whether the compiler implicitly links with -lc since on some
16196       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16197       # to ld, don't add -lc before -lgcc.
16198       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16199 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16200       $rm conftest*
16201       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16202
16203       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16204   (eval $ac_compile) 2>&5
16205   ac_status=$?
16206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207   (exit $ac_status); } 2>conftest.err; then
16208         soname=conftest
16209         lib=conftest
16210         libobjs=conftest.$ac_objext
16211         deplibs=
16212         wl=$lt_prog_compiler_wl
16213         pic_flag=$lt_prog_compiler_pic
16214         compiler_flags=-v
16215         linker_flags=-v
16216         verstring=
16217         output_objdir=.
16218         libname=conftest
16219         lt_save_allow_undefined_flag=$allow_undefined_flag
16220         allow_undefined_flag=
16221         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16222   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16223   ac_status=$?
16224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225   (exit $ac_status); }
16226         then
16227           archive_cmds_need_lc=no
16228         else
16229           archive_cmds_need_lc=yes
16230         fi
16231         allow_undefined_flag=$lt_save_allow_undefined_flag
16232       else
16233         cat conftest.err 1>&5
16234       fi
16235       $rm conftest*
16236       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16237 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16238       ;;
16239     esac
16240   fi
16241   ;;
16242 esac
16243
16244 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16245 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16246 library_names_spec=
16247 libname_spec='lib$name'
16248 soname_spec=
16249 shrext_cmds=".so"
16250 postinstall_cmds=
16251 postuninstall_cmds=
16252 finish_cmds=
16253 finish_eval=
16254 shlibpath_var=
16255 shlibpath_overrides_runpath=unknown
16256 version_type=none
16257 dynamic_linker="$host_os ld.so"
16258 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16259 if test "$GCC" = yes; then
16260   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16261   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16262     # if the path contains ";" then we assume it to be the separator
16263     # otherwise default to the standard path separator (i.e. ":") - it is
16264     # assumed that no part of a normal pathname contains ";" but that should
16265     # okay in the real world where ";" in dirpaths is itself problematic.
16266     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16267   else
16268     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16269   fi
16270 else
16271   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16272 fi
16273 need_lib_prefix=unknown
16274 hardcode_into_libs=no
16275
16276 # when you set need_version to no, make sure it does not cause -set_version
16277 # flags to be left without arguments
16278 need_version=unknown
16279
16280 case $host_os in
16281 aix3*)
16282   version_type=linux
16283   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16284   shlibpath_var=LIBPATH
16285
16286   # AIX 3 has no versioning support, so we append a major version to the name.
16287   soname_spec='${libname}${release}${shared_ext}$major'
16288   ;;
16289
16290 aix4* | aix5*)
16291   version_type=linux
16292   need_lib_prefix=no
16293   need_version=no
16294   hardcode_into_libs=yes
16295   if test "$host_cpu" = ia64; then
16296     # AIX 5 supports IA64
16297     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16298     shlibpath_var=LD_LIBRARY_PATH
16299   else
16300     # With GCC up to 2.95.x, collect2 would create an import file
16301     # for dependence libraries.  The import file would start with
16302     # the line `#! .'.  This would cause the generated library to
16303     # depend on `.', always an invalid library.  This was fixed in
16304     # development snapshots of GCC prior to 3.0.
16305     case $host_os in
16306       aix4 | aix4.[01] | aix4.[01].*)
16307       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16308            echo ' yes '
16309            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16310         :
16311       else
16312         can_build_shared=no
16313       fi
16314       ;;
16315     esac
16316     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16317     # soname into executable. Probably we can add versioning support to
16318     # collect2, so additional links can be useful in future.
16319     if test "$aix_use_runtimelinking" = yes; then
16320       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16321       # instead of lib<name>.a to let people know that these are not
16322       # typical AIX shared libraries.
16323       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16324     else
16325       # We preserve .a as extension for shared libraries through AIX4.2
16326       # and later when we are not doing run time linking.
16327       library_names_spec='${libname}${release}.a $libname.a'
16328       soname_spec='${libname}${release}${shared_ext}$major'
16329     fi
16330     shlibpath_var=LIBPATH
16331   fi
16332   ;;
16333
16334 amigaos*)
16335   library_names_spec='$libname.ixlibrary $libname.a'
16336   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16337   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'
16338   ;;
16339
16340 beos*)
16341   library_names_spec='${libname}${shared_ext}'
16342   dynamic_linker="$host_os ld.so"
16343   shlibpath_var=LIBRARY_PATH
16344   ;;
16345
16346 bsdi[45]*)
16347   version_type=linux
16348   need_version=no
16349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16350   soname_spec='${libname}${release}${shared_ext}$major'
16351   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16352   shlibpath_var=LD_LIBRARY_PATH
16353   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16354   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16355   # the default ld.so.conf also contains /usr/contrib/lib and
16356   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16357   # libtool to hard-code these into programs
16358   ;;
16359
16360 cygwin* | mingw* | pw32*)
16361   version_type=windows
16362   shrext_cmds=".dll"
16363   need_version=no
16364   need_lib_prefix=no
16365
16366   case $GCC,$host_os in
16367   yes,cygwin* | yes,mingw* | yes,pw32*)
16368     library_names_spec='$libname.dll.a'
16369     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16370     postinstall_cmds='base_file=`basename \${file}`~
16371       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16372       dldir=$destdir/`dirname \$dlpath`~
16373       test -d \$dldir || mkdir -p \$dldir~
16374       $install_prog $dir/$dlname \$dldir/$dlname~
16375       chmod a+x \$dldir/$dlname'
16376     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16377       dlpath=$dir/\$dldll~
16378        $rm \$dlpath'
16379     shlibpath_overrides_runpath=yes
16380
16381     case $host_os in
16382     cygwin*)
16383       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16384       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16385       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16386       ;;
16387     mingw*)
16388       # MinGW DLLs use traditional 'lib' prefix
16389       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16390       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16391       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16392         # It is most probably a Windows format PATH printed by
16393         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16394         # path with ; separators, and with drive letters. We can handle the
16395         # drive letters (cygwin fileutils understands them), so leave them,
16396         # especially as we might pass files found there to a mingw objdump,
16397         # which wouldn't understand a cygwinified path. Ahh.
16398         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16399       else
16400         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16401       fi
16402       ;;
16403     pw32*)
16404       # pw32 DLLs use 'pw' prefix rather than 'lib'
16405       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16406       ;;
16407     esac
16408     ;;
16409
16410   *)
16411     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16412     ;;
16413   esac
16414   dynamic_linker='Win32 ld.exe'
16415   # FIXME: first we should search . and the directory the executable is in
16416   shlibpath_var=PATH
16417   ;;
16418
16419 darwin* | rhapsody*)
16420   dynamic_linker="$host_os dyld"
16421   version_type=darwin
16422   need_lib_prefix=no
16423   need_version=no
16424   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16425   soname_spec='${libname}${release}${major}$shared_ext'
16426   shlibpath_overrides_runpath=yes
16427   shlibpath_var=DYLD_LIBRARY_PATH
16428   shrext_cmds='.dylib'
16429   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16430   if test "$GCC" = yes; then
16431     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"`
16432   else
16433     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16434   fi
16435   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16436   ;;
16437
16438 dgux*)
16439   version_type=linux
16440   need_lib_prefix=no
16441   need_version=no
16442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16443   soname_spec='${libname}${release}${shared_ext}$major'
16444   shlibpath_var=LD_LIBRARY_PATH
16445   ;;
16446
16447 freebsd1*)
16448   dynamic_linker=no
16449   ;;
16450
16451 kfreebsd*-gnu)
16452   version_type=linux
16453   need_lib_prefix=no
16454   need_version=no
16455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16456   soname_spec='${libname}${release}${shared_ext}$major'
16457   shlibpath_var=LD_LIBRARY_PATH
16458   shlibpath_overrides_runpath=no
16459   hardcode_into_libs=yes
16460   dynamic_linker='GNU ld.so'
16461   ;;
16462
16463 freebsd* | dragonfly*)
16464   # DragonFly does not have aout.  When/if they implement a new
16465   # versioning mechanism, adjust this.
16466   if test -x /usr/bin/objformat; then
16467     objformat=`/usr/bin/objformat`
16468   else
16469     case $host_os in
16470     freebsd[123]*) objformat=aout ;;
16471     *) objformat=elf ;;
16472     esac
16473   fi
16474   version_type=freebsd-$objformat
16475   case $version_type in
16476     freebsd-elf*)
16477       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16478       need_version=no
16479       need_lib_prefix=no
16480       ;;
16481     freebsd-*)
16482       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16483       need_version=yes
16484       ;;
16485   esac
16486   shlibpath_var=LD_LIBRARY_PATH
16487   case $host_os in
16488   freebsd2*)
16489     shlibpath_overrides_runpath=yes
16490     ;;
16491   freebsd3.[01]* | freebsdelf3.[01]*)
16492     shlibpath_overrides_runpath=yes
16493     hardcode_into_libs=yes
16494     ;;
16495   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16496   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16497     shlibpath_overrides_runpath=no
16498     hardcode_into_libs=yes
16499     ;;
16500   freebsd*) # from 4.6 on
16501     shlibpath_overrides_runpath=yes
16502     hardcode_into_libs=yes
16503     ;;
16504   esac
16505   ;;
16506
16507 gnu*)
16508   version_type=linux
16509   need_lib_prefix=no
16510   need_version=no
16511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16512   soname_spec='${libname}${release}${shared_ext}$major'
16513   shlibpath_var=LD_LIBRARY_PATH
16514   hardcode_into_libs=yes
16515   ;;
16516
16517 hpux9* | hpux10* | hpux11*)
16518   # Give a soname corresponding to the major version so that dld.sl refuses to
16519   # link against other versions.
16520   version_type=sunos
16521   need_lib_prefix=no
16522   need_version=no
16523   case $host_cpu in
16524   ia64*)
16525     shrext_cmds='.so'
16526     hardcode_into_libs=yes
16527     dynamic_linker="$host_os dld.so"
16528     shlibpath_var=LD_LIBRARY_PATH
16529     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16530     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16531     soname_spec='${libname}${release}${shared_ext}$major'
16532     if test "X$HPUX_IA64_MODE" = X32; then
16533       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16534     else
16535       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16536     fi
16537     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16538     ;;
16539    hppa*64*)
16540      shrext_cmds='.sl'
16541      hardcode_into_libs=yes
16542      dynamic_linker="$host_os dld.sl"
16543      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16544      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16545      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16546      soname_spec='${libname}${release}${shared_ext}$major'
16547      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16548      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16549      ;;
16550    *)
16551     shrext_cmds='.sl'
16552     dynamic_linker="$host_os dld.sl"
16553     shlibpath_var=SHLIB_PATH
16554     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556     soname_spec='${libname}${release}${shared_ext}$major'
16557     ;;
16558   esac
16559   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16560   postinstall_cmds='chmod 555 $lib'
16561   ;;
16562
16563 interix3*)
16564   version_type=linux
16565   need_lib_prefix=no
16566   need_version=no
16567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16568   soname_spec='${libname}${release}${shared_ext}$major'
16569   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16570   shlibpath_var=LD_LIBRARY_PATH
16571   shlibpath_overrides_runpath=no
16572   hardcode_into_libs=yes
16573   ;;
16574
16575 irix5* | irix6* | nonstopux*)
16576   case $host_os in
16577     nonstopux*) version_type=nonstopux ;;
16578     *)
16579         if test "$lt_cv_prog_gnu_ld" = yes; then
16580                 version_type=linux
16581         else
16582                 version_type=irix
16583         fi ;;
16584   esac
16585   need_lib_prefix=no
16586   need_version=no
16587   soname_spec='${libname}${release}${shared_ext}$major'
16588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16589   case $host_os in
16590   irix5* | nonstopux*)
16591     libsuff= shlibsuff=
16592     ;;
16593   *)
16594     case $LD in # libtool.m4 will add one of these switches to LD
16595     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16596       libsuff= shlibsuff= libmagic=32-bit;;
16597     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16598       libsuff=32 shlibsuff=N32 libmagic=N32;;
16599     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16600       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16601     *) libsuff= shlibsuff= libmagic=never-match;;
16602     esac
16603     ;;
16604   esac
16605   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16606   shlibpath_overrides_runpath=no
16607   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16608   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16609   hardcode_into_libs=yes
16610   ;;
16611
16612 # No shared lib support for Linux oldld, aout, or coff.
16613 linux*oldld* | linux*aout* | linux*coff*)
16614   dynamic_linker=no
16615   ;;
16616
16617 # This must be Linux ELF.
16618 linux*)
16619   version_type=linux
16620   need_lib_prefix=no
16621   need_version=no
16622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623   soname_spec='${libname}${release}${shared_ext}$major'
16624   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16625   shlibpath_var=LD_LIBRARY_PATH
16626   shlibpath_overrides_runpath=no
16627   # This implies no fast_install, which is unacceptable.
16628   # Some rework will be needed to allow for fast_install
16629   # before this can be enabled.
16630   hardcode_into_libs=yes
16631
16632   # Append ld.so.conf contents to the search path
16633   if test -f /etc/ld.so.conf; then
16634     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' ' '`
16635     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16636   fi
16637
16638   # We used to test for /lib/ld.so.1 and disable shared libraries on
16639   # powerpc, because MkLinux only supported shared libraries with the
16640   # GNU dynamic linker.  Since this was broken with cross compilers,
16641   # most powerpc-linux boxes support dynamic linking these days and
16642   # people can always --disable-shared, the test was removed, and we
16643   # assume the GNU/Linux dynamic linker is in use.
16644   dynamic_linker='GNU/Linux ld.so'
16645   ;;
16646
16647 knetbsd*-gnu)
16648   version_type=linux
16649   need_lib_prefix=no
16650   need_version=no
16651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16652   soname_spec='${libname}${release}${shared_ext}$major'
16653   shlibpath_var=LD_LIBRARY_PATH
16654   shlibpath_overrides_runpath=no
16655   hardcode_into_libs=yes
16656   dynamic_linker='GNU ld.so'
16657   ;;
16658
16659 netbsd*)
16660   version_type=sunos
16661   need_lib_prefix=no
16662   need_version=no
16663   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16664     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16665     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16666     dynamic_linker='NetBSD (a.out) ld.so'
16667   else
16668     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16669     soname_spec='${libname}${release}${shared_ext}$major'
16670     dynamic_linker='NetBSD ld.elf_so'
16671   fi
16672   shlibpath_var=LD_LIBRARY_PATH
16673   shlibpath_overrides_runpath=yes
16674   hardcode_into_libs=yes
16675   ;;
16676
16677 newsos6)
16678   version_type=linux
16679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16680   shlibpath_var=LD_LIBRARY_PATH
16681   shlibpath_overrides_runpath=yes
16682   ;;
16683
16684 nto-qnx*)
16685   version_type=linux
16686   need_lib_prefix=no
16687   need_version=no
16688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16689   soname_spec='${libname}${release}${shared_ext}$major'
16690   shlibpath_var=LD_LIBRARY_PATH
16691   shlibpath_overrides_runpath=yes
16692   ;;
16693
16694 openbsd*)
16695   version_type=sunos
16696   sys_lib_dlsearch_path_spec="/usr/lib"
16697   need_lib_prefix=no
16698   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16699   case $host_os in
16700     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16701     *)                         need_version=no  ;;
16702   esac
16703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16704   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16705   shlibpath_var=LD_LIBRARY_PATH
16706   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16707     case $host_os in
16708       openbsd2.[89] | openbsd2.[89].*)
16709         shlibpath_overrides_runpath=no
16710         ;;
16711       *)
16712         shlibpath_overrides_runpath=yes
16713         ;;
16714       esac
16715   else
16716     shlibpath_overrides_runpath=yes
16717   fi
16718   ;;
16719
16720 os2*)
16721   libname_spec='$name'
16722   shrext_cmds=".dll"
16723   need_lib_prefix=no
16724   library_names_spec='$libname${shared_ext} $libname.a'
16725   dynamic_linker='OS/2 ld.exe'
16726   shlibpath_var=LIBPATH
16727   ;;
16728
16729 osf3* | osf4* | osf5*)
16730   version_type=osf
16731   need_lib_prefix=no
16732   need_version=no
16733   soname_spec='${libname}${release}${shared_ext}$major'
16734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16735   shlibpath_var=LD_LIBRARY_PATH
16736   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16737   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16738   ;;
16739
16740 solaris*)
16741   version_type=linux
16742   need_lib_prefix=no
16743   need_version=no
16744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16745   soname_spec='${libname}${release}${shared_ext}$major'
16746   shlibpath_var=LD_LIBRARY_PATH
16747   shlibpath_overrides_runpath=yes
16748   hardcode_into_libs=yes
16749   # ldd complains unless libraries are executable
16750   postinstall_cmds='chmod +x $lib'
16751   ;;
16752
16753 sunos4*)
16754   version_type=sunos
16755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16756   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16757   shlibpath_var=LD_LIBRARY_PATH
16758   shlibpath_overrides_runpath=yes
16759   if test "$with_gnu_ld" = yes; then
16760     need_lib_prefix=no
16761   fi
16762   need_version=yes
16763   ;;
16764
16765 sysv4 | sysv4.3*)
16766   version_type=linux
16767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16768   soname_spec='${libname}${release}${shared_ext}$major'
16769   shlibpath_var=LD_LIBRARY_PATH
16770   case $host_vendor in
16771     sni)
16772       shlibpath_overrides_runpath=no
16773       need_lib_prefix=no
16774       export_dynamic_flag_spec='${wl}-Blargedynsym'
16775       runpath_var=LD_RUN_PATH
16776       ;;
16777     siemens)
16778       need_lib_prefix=no
16779       ;;
16780     motorola)
16781       need_lib_prefix=no
16782       need_version=no
16783       shlibpath_overrides_runpath=no
16784       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16785       ;;
16786   esac
16787   ;;
16788
16789 sysv4*MP*)
16790   if test -d /usr/nec ;then
16791     version_type=linux
16792     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16793     soname_spec='$libname${shared_ext}.$major'
16794     shlibpath_var=LD_LIBRARY_PATH
16795   fi
16796   ;;
16797
16798 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16799   version_type=freebsd-elf
16800   need_lib_prefix=no
16801   need_version=no
16802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16803   soname_spec='${libname}${release}${shared_ext}$major'
16804   shlibpath_var=LD_LIBRARY_PATH
16805   hardcode_into_libs=yes
16806   if test "$with_gnu_ld" = yes; then
16807     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16808     shlibpath_overrides_runpath=no
16809   else
16810     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16811     shlibpath_overrides_runpath=yes
16812     case $host_os in
16813       sco3.2v5*)
16814         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16815         ;;
16816     esac
16817   fi
16818   sys_lib_dlsearch_path_spec='/usr/lib'
16819   ;;
16820
16821 uts4*)
16822   version_type=linux
16823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16824   soname_spec='${libname}${release}${shared_ext}$major'
16825   shlibpath_var=LD_LIBRARY_PATH
16826   ;;
16827
16828 *)
16829   dynamic_linker=no
16830   ;;
16831 esac
16832 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16833 echo "${ECHO_T}$dynamic_linker" >&6; }
16834 test "$dynamic_linker" = no && can_build_shared=no
16835
16836 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16837 if test "$GCC" = yes; then
16838   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16839 fi
16840
16841 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16842 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16843 hardcode_action=
16844 if test -n "$hardcode_libdir_flag_spec" || \
16845    test -n "$runpath_var" || \
16846    test "X$hardcode_automatic" = "Xyes" ; then
16847
16848   # We can hardcode non-existant directories.
16849   if test "$hardcode_direct" != no &&
16850      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16851      # have to relink, otherwise we might link with an installed library
16852      # when we should be linking with a yet-to-be-installed one
16853      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16854      test "$hardcode_minus_L" != no; then
16855     # Linking always hardcodes the temporary library directory.
16856     hardcode_action=relink
16857   else
16858     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16859     hardcode_action=immediate
16860   fi
16861 else
16862   # We cannot hardcode anything, or else we can only hardcode existing
16863   # directories.
16864   hardcode_action=unsupported
16865 fi
16866 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16867 echo "${ECHO_T}$hardcode_action" >&6; }
16868
16869 if test "$hardcode_action" = relink; then
16870   # Fast installation is not supported
16871   enable_fast_install=no
16872 elif test "$shlibpath_overrides_runpath" = yes ||
16873      test "$enable_shared" = no; then
16874   # Fast installation is not necessary
16875   enable_fast_install=needless
16876 fi
16877
16878 striplib=
16879 old_striplib=
16880 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16881 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16882 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16883   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16884   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16885   { echo "$as_me:$LINENO: result: yes" >&5
16886 echo "${ECHO_T}yes" >&6; }
16887 else
16888 # FIXME - insert some real tests, host_os isn't really good enough
16889   case $host_os in
16890    darwin*)
16891        if test -n "$STRIP" ; then
16892          striplib="$STRIP -x"
16893          { echo "$as_me:$LINENO: result: yes" >&5
16894 echo "${ECHO_T}yes" >&6; }
16895        else
16896   { echo "$as_me:$LINENO: result: no" >&5
16897 echo "${ECHO_T}no" >&6; }
16898 fi
16899        ;;
16900    *)
16901   { echo "$as_me:$LINENO: result: no" >&5
16902 echo "${ECHO_T}no" >&6; }
16903     ;;
16904   esac
16905 fi
16906
16907 if test "x$enable_dlopen" != xyes; then
16908   enable_dlopen=unknown
16909   enable_dlopen_self=unknown
16910   enable_dlopen_self_static=unknown
16911 else
16912   lt_cv_dlopen=no
16913   lt_cv_dlopen_libs=
16914
16915   case $host_os in
16916   beos*)
16917     lt_cv_dlopen="load_add_on"
16918     lt_cv_dlopen_libs=
16919     lt_cv_dlopen_self=yes
16920     ;;
16921
16922   mingw* | pw32*)
16923     lt_cv_dlopen="LoadLibrary"
16924     lt_cv_dlopen_libs=
16925    ;;
16926
16927   cygwin*)
16928     lt_cv_dlopen="dlopen"
16929     lt_cv_dlopen_libs=
16930    ;;
16931
16932   darwin*)
16933   # if libdl is installed we need to link against it
16934     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16935 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16936 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16937   echo $ECHO_N "(cached) $ECHO_C" >&6
16938 else
16939   ac_check_lib_save_LIBS=$LIBS
16940 LIBS="-ldl  $LIBS"
16941 cat >conftest.$ac_ext <<_ACEOF
16942 /* confdefs.h.  */
16943 _ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h.  */
16947
16948 /* Override any GCC internal prototype to avoid an error.
16949    Use char because int might match the return type of a GCC
16950    builtin and then its argument prototype would still apply.  */
16951 #ifdef __cplusplus
16952 extern "C"
16953 #endif
16954 char dlopen ();
16955 int
16956 main ()
16957 {
16958 return dlopen ();
16959   ;
16960   return 0;
16961 }
16962 _ACEOF
16963 rm -f conftest.$ac_objext conftest$ac_exeext
16964 if { (ac_try="$ac_link"
16965 case "(($ac_try" in
16966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16967   *) ac_try_echo=$ac_try;;
16968 esac
16969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970   (eval "$ac_link") 2>conftest.er1
16971   ac_status=$?
16972   grep -v '^ *+' conftest.er1 >conftest.err
16973   rm -f conftest.er1
16974   cat conftest.err >&5
16975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976   (exit $ac_status); } &&
16977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16978   { (case "(($ac_try" in
16979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980   *) ac_try_echo=$ac_try;;
16981 esac
16982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983   (eval "$ac_try") 2>&5
16984   ac_status=$?
16985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986   (exit $ac_status); }; } &&
16987          { ac_try='test -s conftest$ac_exeext'
16988   { (case "(($ac_try" in
16989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990   *) ac_try_echo=$ac_try;;
16991 esac
16992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993   (eval "$ac_try") 2>&5
16994   ac_status=$?
16995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996   (exit $ac_status); }; }; then
16997   ac_cv_lib_dl_dlopen=yes
16998 else
16999   echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17001
17002         ac_cv_lib_dl_dlopen=no
17003 fi
17004
17005 rm -f core conftest.err conftest.$ac_objext \
17006       conftest$ac_exeext conftest.$ac_ext
17007 LIBS=$ac_check_lib_save_LIBS
17008 fi
17009 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17010 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17011 if test $ac_cv_lib_dl_dlopen = yes; then
17012   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17013 else
17014
17015     lt_cv_dlopen="dyld"
17016     lt_cv_dlopen_libs=
17017     lt_cv_dlopen_self=yes
17018
17019 fi
17020
17021    ;;
17022
17023   *)
17024     { echo "$as_me:$LINENO: checking for shl_load" >&5
17025 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17026 if test "${ac_cv_func_shl_load+set}" = set; then
17027   echo $ECHO_N "(cached) $ECHO_C" >&6
17028 else
17029   cat >conftest.$ac_ext <<_ACEOF
17030 /* confdefs.h.  */
17031 _ACEOF
17032 cat confdefs.h >>conftest.$ac_ext
17033 cat >>conftest.$ac_ext <<_ACEOF
17034 /* end confdefs.h.  */
17035 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17037 #define shl_load innocuous_shl_load
17038
17039 /* System header to define __stub macros and hopefully few prototypes,
17040     which can conflict with char shl_load (); below.
17041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17042     <limits.h> exists even on freestanding compilers.  */
17043
17044 #ifdef __STDC__
17045 # include <limits.h>
17046 #else
17047 # include <assert.h>
17048 #endif
17049
17050 #undef shl_load
17051
17052 /* Override any GCC internal prototype to avoid an error.
17053    Use char because int might match the return type of a GCC
17054    builtin and then its argument prototype would still apply.  */
17055 #ifdef __cplusplus
17056 extern "C"
17057 #endif
17058 char shl_load ();
17059 /* The GNU C library defines this for functions which it implements
17060     to always fail with ENOSYS.  Some functions are actually named
17061     something starting with __ and the normal name is an alias.  */
17062 #if defined __stub_shl_load || defined __stub___shl_load
17063 choke me
17064 #endif
17065
17066 int
17067 main ()
17068 {
17069 return shl_load ();
17070   ;
17071   return 0;
17072 }
17073 _ACEOF
17074 rm -f conftest.$ac_objext conftest$ac_exeext
17075 if { (ac_try="$ac_link"
17076 case "(($ac_try" in
17077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078   *) ac_try_echo=$ac_try;;
17079 esac
17080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081   (eval "$ac_link") 2>conftest.er1
17082   ac_status=$?
17083   grep -v '^ *+' conftest.er1 >conftest.err
17084   rm -f conftest.er1
17085   cat conftest.err >&5
17086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087   (exit $ac_status); } &&
17088          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17089   { (case "(($ac_try" in
17090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091   *) ac_try_echo=$ac_try;;
17092 esac
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094   (eval "$ac_try") 2>&5
17095   ac_status=$?
17096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097   (exit $ac_status); }; } &&
17098          { ac_try='test -s conftest$ac_exeext'
17099   { (case "(($ac_try" in
17100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101   *) ac_try_echo=$ac_try;;
17102 esac
17103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104   (eval "$ac_try") 2>&5
17105   ac_status=$?
17106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107   (exit $ac_status); }; }; then
17108   ac_cv_func_shl_load=yes
17109 else
17110   echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17112
17113         ac_cv_func_shl_load=no
17114 fi
17115
17116 rm -f core conftest.err conftest.$ac_objext \
17117       conftest$ac_exeext conftest.$ac_ext
17118 fi
17119 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17120 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17121 if test $ac_cv_func_shl_load = yes; then
17122   lt_cv_dlopen="shl_load"
17123 else
17124   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17125 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17126 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17127   echo $ECHO_N "(cached) $ECHO_C" >&6
17128 else
17129   ac_check_lib_save_LIBS=$LIBS
17130 LIBS="-ldld  $LIBS"
17131 cat >conftest.$ac_ext <<_ACEOF
17132 /* confdefs.h.  */
17133 _ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h.  */
17137
17138 /* Override any GCC internal prototype to avoid an error.
17139    Use char because int might match the return type of a GCC
17140    builtin and then its argument prototype would still apply.  */
17141 #ifdef __cplusplus
17142 extern "C"
17143 #endif
17144 char shl_load ();
17145 int
17146 main ()
17147 {
17148 return shl_load ();
17149   ;
17150   return 0;
17151 }
17152 _ACEOF
17153 rm -f conftest.$ac_objext conftest$ac_exeext
17154 if { (ac_try="$ac_link"
17155 case "(($ac_try" in
17156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157   *) ac_try_echo=$ac_try;;
17158 esac
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160   (eval "$ac_link") 2>conftest.er1
17161   ac_status=$?
17162   grep -v '^ *+' conftest.er1 >conftest.err
17163   rm -f conftest.er1
17164   cat conftest.err >&5
17165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166   (exit $ac_status); } &&
17167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17168   { (case "(($ac_try" in
17169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170   *) ac_try_echo=$ac_try;;
17171 esac
17172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173   (eval "$ac_try") 2>&5
17174   ac_status=$?
17175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176   (exit $ac_status); }; } &&
17177          { ac_try='test -s conftest$ac_exeext'
17178   { (case "(($ac_try" in
17179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180   *) ac_try_echo=$ac_try;;
17181 esac
17182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183   (eval "$ac_try") 2>&5
17184   ac_status=$?
17185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186   (exit $ac_status); }; }; then
17187   ac_cv_lib_dld_shl_load=yes
17188 else
17189   echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17191
17192         ac_cv_lib_dld_shl_load=no
17193 fi
17194
17195 rm -f core conftest.err conftest.$ac_objext \
17196       conftest$ac_exeext conftest.$ac_ext
17197 LIBS=$ac_check_lib_save_LIBS
17198 fi
17199 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17200 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17201 if test $ac_cv_lib_dld_shl_load = yes; then
17202   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17203 else
17204   { echo "$as_me:$LINENO: checking for dlopen" >&5
17205 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17206 if test "${ac_cv_func_dlopen+set}" = set; then
17207   echo $ECHO_N "(cached) $ECHO_C" >&6
17208 else
17209   cat >conftest.$ac_ext <<_ACEOF
17210 /* confdefs.h.  */
17211 _ACEOF
17212 cat confdefs.h >>conftest.$ac_ext
17213 cat >>conftest.$ac_ext <<_ACEOF
17214 /* end confdefs.h.  */
17215 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17217 #define dlopen innocuous_dlopen
17218
17219 /* System header to define __stub macros and hopefully few prototypes,
17220     which can conflict with char dlopen (); below.
17221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17222     <limits.h> exists even on freestanding compilers.  */
17223
17224 #ifdef __STDC__
17225 # include <limits.h>
17226 #else
17227 # include <assert.h>
17228 #endif
17229
17230 #undef dlopen
17231
17232 /* Override any GCC internal prototype to avoid an error.
17233    Use char because int might match the return type of a GCC
17234    builtin and then its argument prototype would still apply.  */
17235 #ifdef __cplusplus
17236 extern "C"
17237 #endif
17238 char dlopen ();
17239 /* The GNU C library defines this for functions which it implements
17240     to always fail with ENOSYS.  Some functions are actually named
17241     something starting with __ and the normal name is an alias.  */
17242 #if defined __stub_dlopen || defined __stub___dlopen
17243 choke me
17244 #endif
17245
17246 int
17247 main ()
17248 {
17249 return dlopen ();
17250   ;
17251   return 0;
17252 }
17253 _ACEOF
17254 rm -f conftest.$ac_objext conftest$ac_exeext
17255 if { (ac_try="$ac_link"
17256 case "(($ac_try" in
17257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258   *) ac_try_echo=$ac_try;;
17259 esac
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261   (eval "$ac_link") 2>conftest.er1
17262   ac_status=$?
17263   grep -v '^ *+' conftest.er1 >conftest.err
17264   rm -f conftest.er1
17265   cat conftest.err >&5
17266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267   (exit $ac_status); } &&
17268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17269   { (case "(($ac_try" in
17270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271   *) ac_try_echo=$ac_try;;
17272 esac
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274   (eval "$ac_try") 2>&5
17275   ac_status=$?
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); }; } &&
17278          { ac_try='test -s conftest$ac_exeext'
17279   { (case "(($ac_try" in
17280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281   *) ac_try_echo=$ac_try;;
17282 esac
17283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284   (eval "$ac_try") 2>&5
17285   ac_status=$?
17286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287   (exit $ac_status); }; }; then
17288   ac_cv_func_dlopen=yes
17289 else
17290   echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17292
17293         ac_cv_func_dlopen=no
17294 fi
17295
17296 rm -f core conftest.err conftest.$ac_objext \
17297       conftest$ac_exeext conftest.$ac_ext
17298 fi
17299 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17300 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17301 if test $ac_cv_func_dlopen = yes; then
17302   lt_cv_dlopen="dlopen"
17303 else
17304   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17305 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17306 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17307   echo $ECHO_N "(cached) $ECHO_C" >&6
17308 else
17309   ac_check_lib_save_LIBS=$LIBS
17310 LIBS="-ldl  $LIBS"
17311 cat >conftest.$ac_ext <<_ACEOF
17312 /* confdefs.h.  */
17313 _ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h.  */
17317
17318 /* Override any GCC internal prototype to avoid an error.
17319    Use char because int might match the return type of a GCC
17320    builtin and then its argument prototype would still apply.  */
17321 #ifdef __cplusplus
17322 extern "C"
17323 #endif
17324 char dlopen ();
17325 int
17326 main ()
17327 {
17328 return dlopen ();
17329   ;
17330   return 0;
17331 }
17332 _ACEOF
17333 rm -f conftest.$ac_objext conftest$ac_exeext
17334 if { (ac_try="$ac_link"
17335 case "(($ac_try" in
17336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337   *) ac_try_echo=$ac_try;;
17338 esac
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340   (eval "$ac_link") 2>conftest.er1
17341   ac_status=$?
17342   grep -v '^ *+' conftest.er1 >conftest.err
17343   rm -f conftest.er1
17344   cat conftest.err >&5
17345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346   (exit $ac_status); } &&
17347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17348   { (case "(($ac_try" in
17349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350   *) ac_try_echo=$ac_try;;
17351 esac
17352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353   (eval "$ac_try") 2>&5
17354   ac_status=$?
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); }; } &&
17357          { ac_try='test -s conftest$ac_exeext'
17358   { (case "(($ac_try" in
17359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360   *) ac_try_echo=$ac_try;;
17361 esac
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363   (eval "$ac_try") 2>&5
17364   ac_status=$?
17365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366   (exit $ac_status); }; }; then
17367   ac_cv_lib_dl_dlopen=yes
17368 else
17369   echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17371
17372         ac_cv_lib_dl_dlopen=no
17373 fi
17374
17375 rm -f core conftest.err conftest.$ac_objext \
17376       conftest$ac_exeext conftest.$ac_ext
17377 LIBS=$ac_check_lib_save_LIBS
17378 fi
17379 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17380 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17381 if test $ac_cv_lib_dl_dlopen = yes; then
17382   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17383 else
17384   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17385 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17386 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17387   echo $ECHO_N "(cached) $ECHO_C" >&6
17388 else
17389   ac_check_lib_save_LIBS=$LIBS
17390 LIBS="-lsvld  $LIBS"
17391 cat >conftest.$ac_ext <<_ACEOF
17392 /* confdefs.h.  */
17393 _ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h.  */
17397
17398 /* Override any GCC internal prototype to avoid an error.
17399    Use char because int might match the return type of a GCC
17400    builtin and then its argument prototype would still apply.  */
17401 #ifdef __cplusplus
17402 extern "C"
17403 #endif
17404 char dlopen ();
17405 int
17406 main ()
17407 {
17408 return dlopen ();
17409   ;
17410   return 0;
17411 }
17412 _ACEOF
17413 rm -f conftest.$ac_objext conftest$ac_exeext
17414 if { (ac_try="$ac_link"
17415 case "(($ac_try" in
17416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417   *) ac_try_echo=$ac_try;;
17418 esac
17419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420   (eval "$ac_link") 2>conftest.er1
17421   ac_status=$?
17422   grep -v '^ *+' conftest.er1 >conftest.err
17423   rm -f conftest.er1
17424   cat conftest.err >&5
17425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426   (exit $ac_status); } &&
17427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17428   { (case "(($ac_try" in
17429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430   *) ac_try_echo=$ac_try;;
17431 esac
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433   (eval "$ac_try") 2>&5
17434   ac_status=$?
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); }; } &&
17437          { ac_try='test -s conftest$ac_exeext'
17438   { (case "(($ac_try" in
17439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440   *) ac_try_echo=$ac_try;;
17441 esac
17442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443   (eval "$ac_try") 2>&5
17444   ac_status=$?
17445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446   (exit $ac_status); }; }; then
17447   ac_cv_lib_svld_dlopen=yes
17448 else
17449   echo "$as_me: failed program was:" >&5
17450 sed 's/^/| /' conftest.$ac_ext >&5
17451
17452         ac_cv_lib_svld_dlopen=no
17453 fi
17454
17455 rm -f core conftest.err conftest.$ac_objext \
17456       conftest$ac_exeext conftest.$ac_ext
17457 LIBS=$ac_check_lib_save_LIBS
17458 fi
17459 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17460 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17461 if test $ac_cv_lib_svld_dlopen = yes; then
17462   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17463 else
17464   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17465 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17466 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17467   echo $ECHO_N "(cached) $ECHO_C" >&6
17468 else
17469   ac_check_lib_save_LIBS=$LIBS
17470 LIBS="-ldld  $LIBS"
17471 cat >conftest.$ac_ext <<_ACEOF
17472 /* confdefs.h.  */
17473 _ACEOF
17474 cat confdefs.h >>conftest.$ac_ext
17475 cat >>conftest.$ac_ext <<_ACEOF
17476 /* end confdefs.h.  */
17477
17478 /* Override any GCC internal prototype to avoid an error.
17479    Use char because int might match the return type of a GCC
17480    builtin and then its argument prototype would still apply.  */
17481 #ifdef __cplusplus
17482 extern "C"
17483 #endif
17484 char dld_link ();
17485 int
17486 main ()
17487 {
17488 return dld_link ();
17489   ;
17490   return 0;
17491 }
17492 _ACEOF
17493 rm -f conftest.$ac_objext conftest$ac_exeext
17494 if { (ac_try="$ac_link"
17495 case "(($ac_try" in
17496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497   *) ac_try_echo=$ac_try;;
17498 esac
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500   (eval "$ac_link") 2>conftest.er1
17501   ac_status=$?
17502   grep -v '^ *+' conftest.er1 >conftest.err
17503   rm -f conftest.er1
17504   cat conftest.err >&5
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); } &&
17507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17508   { (case "(($ac_try" in
17509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510   *) ac_try_echo=$ac_try;;
17511 esac
17512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513   (eval "$ac_try") 2>&5
17514   ac_status=$?
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); }; } &&
17517          { ac_try='test -s conftest$ac_exeext'
17518   { (case "(($ac_try" in
17519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520   *) ac_try_echo=$ac_try;;
17521 esac
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523   (eval "$ac_try") 2>&5
17524   ac_status=$?
17525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526   (exit $ac_status); }; }; then
17527   ac_cv_lib_dld_dld_link=yes
17528 else
17529   echo "$as_me: failed program was:" >&5
17530 sed 's/^/| /' conftest.$ac_ext >&5
17531
17532         ac_cv_lib_dld_dld_link=no
17533 fi
17534
17535 rm -f core conftest.err conftest.$ac_objext \
17536       conftest$ac_exeext conftest.$ac_ext
17537 LIBS=$ac_check_lib_save_LIBS
17538 fi
17539 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17540 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17541 if test $ac_cv_lib_dld_dld_link = yes; then
17542   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17543 fi
17544
17545
17546 fi
17547
17548
17549 fi
17550
17551
17552 fi
17553
17554
17555 fi
17556
17557
17558 fi
17559
17560     ;;
17561   esac
17562
17563   if test "x$lt_cv_dlopen" != xno; then
17564     enable_dlopen=yes
17565   else
17566     enable_dlopen=no
17567   fi
17568
17569   case $lt_cv_dlopen in
17570   dlopen)
17571     save_CPPFLAGS="$CPPFLAGS"
17572     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17573
17574     save_LDFLAGS="$LDFLAGS"
17575     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17576
17577     save_LIBS="$LIBS"
17578     LIBS="$lt_cv_dlopen_libs $LIBS"
17579
17580     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17581 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17582 if test "${lt_cv_dlopen_self+set}" = set; then
17583   echo $ECHO_N "(cached) $ECHO_C" >&6
17584 else
17585           if test "$cross_compiling" = yes; then :
17586   lt_cv_dlopen_self=cross
17587 else
17588   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17589   lt_status=$lt_dlunknown
17590   cat > conftest.$ac_ext <<EOF
17591 #line 17591 "configure"
17592 #include "confdefs.h"
17593
17594 #if HAVE_DLFCN_H
17595 #include <dlfcn.h>
17596 #endif
17597
17598 #include <stdio.h>
17599
17600 #ifdef RTLD_GLOBAL
17601 #  define LT_DLGLOBAL           RTLD_GLOBAL
17602 #else
17603 #  ifdef DL_GLOBAL
17604 #    define LT_DLGLOBAL         DL_GLOBAL
17605 #  else
17606 #    define LT_DLGLOBAL         0
17607 #  endif
17608 #endif
17609
17610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17611    find out it does not work in some platform. */
17612 #ifndef LT_DLLAZY_OR_NOW
17613 #  ifdef RTLD_LAZY
17614 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17615 #  else
17616 #    ifdef DL_LAZY
17617 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17618 #    else
17619 #      ifdef RTLD_NOW
17620 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17621 #      else
17622 #        ifdef DL_NOW
17623 #          define LT_DLLAZY_OR_NOW      DL_NOW
17624 #        else
17625 #          define LT_DLLAZY_OR_NOW      0
17626 #        endif
17627 #      endif
17628 #    endif
17629 #  endif
17630 #endif
17631
17632 #ifdef __cplusplus
17633 extern "C" void exit (int);
17634 #endif
17635
17636 void fnord() { int i=42;}
17637 int main ()
17638 {
17639   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17640   int status = $lt_dlunknown;
17641
17642   if (self)
17643     {
17644       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17645       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17646       /* dlclose (self); */
17647     }
17648   else
17649     puts (dlerror ());
17650
17651     exit (status);
17652 }
17653 EOF
17654   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17655   (eval $ac_link) 2>&5
17656   ac_status=$?
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17659     (./conftest; exit; ) >&5 2>/dev/null
17660     lt_status=$?
17661     case x$lt_status in
17662       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17663       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17664       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17665     esac
17666   else :
17667     # compilation failed
17668     lt_cv_dlopen_self=no
17669   fi
17670 fi
17671 rm -fr conftest*
17672
17673
17674 fi
17675 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17676 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17677
17678     if test "x$lt_cv_dlopen_self" = xyes; then
17679       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17680       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17681 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17682 if test "${lt_cv_dlopen_self_static+set}" = set; then
17683   echo $ECHO_N "(cached) $ECHO_C" >&6
17684 else
17685           if test "$cross_compiling" = yes; then :
17686   lt_cv_dlopen_self_static=cross
17687 else
17688   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17689   lt_status=$lt_dlunknown
17690   cat > conftest.$ac_ext <<EOF
17691 #line 17691 "configure"
17692 #include "confdefs.h"
17693
17694 #if HAVE_DLFCN_H
17695 #include <dlfcn.h>
17696 #endif
17697
17698 #include <stdio.h>
17699
17700 #ifdef RTLD_GLOBAL
17701 #  define LT_DLGLOBAL           RTLD_GLOBAL
17702 #else
17703 #  ifdef DL_GLOBAL
17704 #    define LT_DLGLOBAL         DL_GLOBAL
17705 #  else
17706 #    define LT_DLGLOBAL         0
17707 #  endif
17708 #endif
17709
17710 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17711    find out it does not work in some platform. */
17712 #ifndef LT_DLLAZY_OR_NOW
17713 #  ifdef RTLD_LAZY
17714 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17715 #  else
17716 #    ifdef DL_LAZY
17717 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17718 #    else
17719 #      ifdef RTLD_NOW
17720 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17721 #      else
17722 #        ifdef DL_NOW
17723 #          define LT_DLLAZY_OR_NOW      DL_NOW
17724 #        else
17725 #          define LT_DLLAZY_OR_NOW      0
17726 #        endif
17727 #      endif
17728 #    endif
17729 #  endif
17730 #endif
17731
17732 #ifdef __cplusplus
17733 extern "C" void exit (int);
17734 #endif
17735
17736 void fnord() { int i=42;}
17737 int main ()
17738 {
17739   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17740   int status = $lt_dlunknown;
17741
17742   if (self)
17743     {
17744       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17745       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17746       /* dlclose (self); */
17747     }
17748   else
17749     puts (dlerror ());
17750
17751     exit (status);
17752 }
17753 EOF
17754   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17755   (eval $ac_link) 2>&5
17756   ac_status=$?
17757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17759     (./conftest; exit; ) >&5 2>/dev/null
17760     lt_status=$?
17761     case x$lt_status in
17762       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17763       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17764       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17765     esac
17766   else :
17767     # compilation failed
17768     lt_cv_dlopen_self_static=no
17769   fi
17770 fi
17771 rm -fr conftest*
17772
17773
17774 fi
17775 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17776 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17777     fi
17778
17779     CPPFLAGS="$save_CPPFLAGS"
17780     LDFLAGS="$save_LDFLAGS"
17781     LIBS="$save_LIBS"
17782     ;;
17783   esac
17784
17785   case $lt_cv_dlopen_self in
17786   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17787   *) enable_dlopen_self=unknown ;;
17788   esac
17789
17790   case $lt_cv_dlopen_self_static in
17791   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17792   *) enable_dlopen_self_static=unknown ;;
17793   esac
17794 fi
17795
17796
17797 # Report which library types will actually be built
17798 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17799 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17800 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17801 echo "${ECHO_T}$can_build_shared" >&6; }
17802
17803 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17804 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17805 test "$can_build_shared" = "no" && enable_shared=no
17806
17807 # On AIX, shared libraries and static libraries use the same namespace, and
17808 # are all built from PIC.
17809 case $host_os in
17810 aix3*)
17811   test "$enable_shared" = yes && enable_static=no
17812   if test -n "$RANLIB"; then
17813     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17814     postinstall_cmds='$RANLIB $lib'
17815   fi
17816   ;;
17817
17818 aix4* | aix5*)
17819   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17820     test "$enable_shared" = yes && enable_static=no
17821   fi
17822     ;;
17823 esac
17824 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17825 echo "${ECHO_T}$enable_shared" >&6; }
17826
17827 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17828 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17829 # Make sure either enable_shared or enable_static is yes.
17830 test "$enable_shared" = yes || enable_static=yes
17831 { echo "$as_me:$LINENO: result: $enable_static" >&5
17832 echo "${ECHO_T}$enable_static" >&6; }
17833
17834 # The else clause should only fire when bootstrapping the
17835 # libtool distribution, otherwise you forgot to ship ltmain.sh
17836 # with your package, and you will get complaints that there are
17837 # no rules to generate ltmain.sh.
17838 if test -f "$ltmain"; then
17839   # See if we are running on zsh, and set the options which allow our commands through
17840   # without removal of \ escapes.
17841   if test -n "${ZSH_VERSION+set}" ; then
17842     setopt NO_GLOB_SUBST
17843   fi
17844   # Now quote all the things that may contain metacharacters while being
17845   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17846   # variables and quote the copies for generation of the libtool script.
17847   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17848     SED SHELL STRIP \
17849     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17850     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17851     deplibs_check_method reload_flag reload_cmds need_locks \
17852     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17853     lt_cv_sys_global_symbol_to_c_name_address \
17854     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17855     old_postinstall_cmds old_postuninstall_cmds \
17856     compiler \
17857     CC \
17858     LD \
17859     lt_prog_compiler_wl \
17860     lt_prog_compiler_pic \
17861     lt_prog_compiler_static \
17862     lt_prog_compiler_no_builtin_flag \
17863     export_dynamic_flag_spec \
17864     thread_safe_flag_spec \
17865     whole_archive_flag_spec \
17866     enable_shared_with_static_runtimes \
17867     old_archive_cmds \
17868     old_archive_from_new_cmds \
17869     predep_objects \
17870     postdep_objects \
17871     predeps \
17872     postdeps \
17873     compiler_lib_search_path \
17874     archive_cmds \
17875     archive_expsym_cmds \
17876     postinstall_cmds \
17877     postuninstall_cmds \
17878     old_archive_from_expsyms_cmds \
17879     allow_undefined_flag \
17880     no_undefined_flag \
17881     export_symbols_cmds \
17882     hardcode_libdir_flag_spec \
17883     hardcode_libdir_flag_spec_ld \
17884     hardcode_libdir_separator \
17885     hardcode_automatic \
17886     module_cmds \
17887     module_expsym_cmds \
17888     lt_cv_prog_compiler_c_o \
17889     exclude_expsyms \
17890     include_expsyms; do
17891
17892     case $var in
17893     old_archive_cmds | \
17894     old_archive_from_new_cmds | \
17895     archive_cmds | \
17896     archive_expsym_cmds | \
17897     module_cmds | \
17898     module_expsym_cmds | \
17899     old_archive_from_expsyms_cmds | \
17900     export_symbols_cmds | \
17901     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17902     postinstall_cmds | postuninstall_cmds | \
17903     old_postinstall_cmds | old_postuninstall_cmds | \
17904     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17905       # Double-quote double-evaled strings.
17906       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17907       ;;
17908     *)
17909       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17910       ;;
17911     esac
17912   done
17913
17914   case $lt_echo in
17915   *'\$0 --fallback-echo"')
17916     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17917     ;;
17918   esac
17919
17920 cfgfile="${ofile}T"
17921   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17922   $rm -f "$cfgfile"
17923   { echo "$as_me:$LINENO: creating $ofile" >&5
17924 echo "$as_me: creating $ofile" >&6;}
17925
17926   cat <<__EOF__ >> "$cfgfile"
17927 #! $SHELL
17928
17929 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17930 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17931 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17932 #
17933 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17934 # Free Software Foundation, Inc.
17935 #
17936 # This file is part of GNU Libtool:
17937 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17938 #
17939 # This program is free software; you can redistribute it and/or modify
17940 # it under the terms of the GNU General Public License as published by
17941 # the Free Software Foundation; either version 2 of the License, or
17942 # (at your option) any later version.
17943 #
17944 # This program is distributed in the hope that it will be useful, but
17945 # WITHOUT ANY WARRANTY; without even the implied warranty of
17946 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17947 # General Public License for more details.
17948 #
17949 # You should have received a copy of the GNU General Public License
17950 # along with this program; if not, write to the Free Software
17951 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17952 #
17953 # As a special exception to the GNU General Public License, if you
17954 # distribute this file as part of a program that contains a
17955 # configuration script generated by Autoconf, you may include it under
17956 # the same distribution terms that you use for the rest of that program.
17957
17958 # A sed program that does not truncate output.
17959 SED=$lt_SED
17960
17961 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17962 Xsed="$SED -e 1s/^X//"
17963
17964 # The HP-UX ksh and POSIX shell print the target directory to stdout
17965 # if CDPATH is set.
17966 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17967
17968 # The names of the tagged configurations supported by this script.
17969 available_tags=
17970
17971 # ### BEGIN LIBTOOL CONFIG
17972
17973 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17974
17975 # Shell to use when invoking shell scripts.
17976 SHELL=$lt_SHELL
17977
17978 # Whether or not to build shared libraries.
17979 build_libtool_libs=$enable_shared
17980
17981 # Whether or not to build static libraries.
17982 build_old_libs=$enable_static
17983
17984 # Whether or not to add -lc for building shared libraries.
17985 build_libtool_need_lc=$archive_cmds_need_lc
17986
17987 # Whether or not to disallow shared libs when runtime libs are static
17988 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17989
17990 # Whether or not to optimize for fast installation.
17991 fast_install=$enable_fast_install
17992
17993 # The host system.
17994 host_alias=$host_alias
17995 host=$host
17996 host_os=$host_os
17997
17998 # The build system.
17999 build_alias=$build_alias
18000 build=$build
18001 build_os=$build_os
18002
18003 # An echo program that does not interpret backslashes.
18004 echo=$lt_echo
18005
18006 # The archiver.
18007 AR=$lt_AR
18008 AR_FLAGS=$lt_AR_FLAGS
18009
18010 # A C compiler.
18011 LTCC=$lt_LTCC
18012
18013 # LTCC compiler flags.
18014 LTCFLAGS=$lt_LTCFLAGS
18015
18016 # A language-specific compiler.
18017 CC=$lt_compiler
18018
18019 # Is the compiler the GNU C compiler?
18020 with_gcc=$GCC
18021
18022 # An ERE matcher.
18023 EGREP=$lt_EGREP
18024
18025 # The linker used to build libraries.
18026 LD=$lt_LD
18027
18028 # Whether we need hard or soft links.
18029 LN_S=$lt_LN_S
18030
18031 # A BSD-compatible nm program.
18032 NM=$lt_NM
18033
18034 # A symbol stripping program
18035 STRIP=$lt_STRIP
18036
18037 # Used to examine libraries when file_magic_cmd begins "file"
18038 MAGIC_CMD=$MAGIC_CMD
18039
18040 # Used on cygwin: DLL creation program.
18041 DLLTOOL="$DLLTOOL"
18042
18043 # Used on cygwin: object dumper.
18044 OBJDUMP="$OBJDUMP"
18045
18046 # Used on cygwin: assembler.
18047 AS="$AS"
18048
18049 # The name of the directory that contains temporary libtool files.
18050 objdir=$objdir
18051
18052 # How to create reloadable object files.
18053 reload_flag=$lt_reload_flag
18054 reload_cmds=$lt_reload_cmds
18055
18056 # How to pass a linker flag through the compiler.
18057 wl=$lt_lt_prog_compiler_wl
18058
18059 # Object file suffix (normally "o").
18060 objext="$ac_objext"
18061
18062 # Old archive suffix (normally "a").
18063 libext="$libext"
18064
18065 # Shared library suffix (normally ".so").
18066 shrext_cmds='$shrext_cmds'
18067
18068 # Executable file suffix (normally "").
18069 exeext="$exeext"
18070
18071 # Additional compiler flags for building library objects.
18072 pic_flag=$lt_lt_prog_compiler_pic
18073 pic_mode=$pic_mode
18074
18075 # What is the maximum length of a command?
18076 max_cmd_len=$lt_cv_sys_max_cmd_len
18077
18078 # Does compiler simultaneously support -c and -o options?
18079 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18080
18081 # Must we lock files when doing compilation?
18082 need_locks=$lt_need_locks
18083
18084 # Do we need the lib prefix for modules?
18085 need_lib_prefix=$need_lib_prefix
18086
18087 # Do we need a version for libraries?
18088 need_version=$need_version
18089
18090 # Whether dlopen is supported.
18091 dlopen_support=$enable_dlopen
18092
18093 # Whether dlopen of programs is supported.
18094 dlopen_self=$enable_dlopen_self
18095
18096 # Whether dlopen of statically linked programs is supported.
18097 dlopen_self_static=$enable_dlopen_self_static
18098
18099 # Compiler flag to prevent dynamic linking.
18100 link_static_flag=$lt_lt_prog_compiler_static
18101
18102 # Compiler flag to turn off builtin functions.
18103 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18104
18105 # Compiler flag to allow reflexive dlopens.
18106 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18107
18108 # Compiler flag to generate shared objects directly from archives.
18109 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18110
18111 # Compiler flag to generate thread-safe objects.
18112 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18113
18114 # Library versioning type.
18115 version_type=$version_type
18116
18117 # Format of library name prefix.
18118 libname_spec=$lt_libname_spec
18119
18120 # List of archive names.  First name is the real one, the rest are links.
18121 # The last name is the one that the linker finds with -lNAME.
18122 library_names_spec=$lt_library_names_spec
18123
18124 # The coded name of the library, if different from the real name.
18125 soname_spec=$lt_soname_spec
18126
18127 # Commands used to build and install an old-style archive.
18128 RANLIB=$lt_RANLIB
18129 old_archive_cmds=$lt_old_archive_cmds
18130 old_postinstall_cmds=$lt_old_postinstall_cmds
18131 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18132
18133 # Create an old-style archive from a shared archive.
18134 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18135
18136 # Create a temporary old-style archive to link instead of a shared archive.
18137 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18138
18139 # Commands used to build and install a shared archive.
18140 archive_cmds=$lt_archive_cmds
18141 archive_expsym_cmds=$lt_archive_expsym_cmds
18142 postinstall_cmds=$lt_postinstall_cmds
18143 postuninstall_cmds=$lt_postuninstall_cmds
18144
18145 # Commands used to build a loadable module (assumed same as above if empty)
18146 module_cmds=$lt_module_cmds
18147 module_expsym_cmds=$lt_module_expsym_cmds
18148
18149 # Commands to strip libraries.
18150 old_striplib=$lt_old_striplib
18151 striplib=$lt_striplib
18152
18153 # Dependencies to place before the objects being linked to create a
18154 # shared library.
18155 predep_objects=$lt_predep_objects
18156
18157 # Dependencies to place after the objects being linked to create a
18158 # shared library.
18159 postdep_objects=$lt_postdep_objects
18160
18161 # Dependencies to place before the objects being linked to create a
18162 # shared library.
18163 predeps=$lt_predeps
18164
18165 # Dependencies to place after the objects being linked to create a
18166 # shared library.
18167 postdeps=$lt_postdeps
18168
18169 # The library search path used internally by the compiler when linking
18170 # a shared library.
18171 compiler_lib_search_path=$lt_compiler_lib_search_path
18172
18173 # Method to check whether dependent libraries are shared objects.
18174 deplibs_check_method=$lt_deplibs_check_method
18175
18176 # Command to use when deplibs_check_method == file_magic.
18177 file_magic_cmd=$lt_file_magic_cmd
18178
18179 # Flag that allows shared libraries with undefined symbols to be built.
18180 allow_undefined_flag=$lt_allow_undefined_flag
18181
18182 # Flag that forces no undefined symbols.
18183 no_undefined_flag=$lt_no_undefined_flag
18184
18185 # Commands used to finish a libtool library installation in a directory.
18186 finish_cmds=$lt_finish_cmds
18187
18188 # Same as above, but a single script fragment to be evaled but not shown.
18189 finish_eval=$lt_finish_eval
18190
18191 # Take the output of nm and produce a listing of raw symbols and C names.
18192 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18193
18194 # Transform the output of nm in a proper C declaration
18195 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18196
18197 # Transform the output of nm in a C name address pair
18198 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18199
18200 # This is the shared library runtime path variable.
18201 runpath_var=$runpath_var
18202
18203 # This is the shared library path variable.
18204 shlibpath_var=$shlibpath_var
18205
18206 # Is shlibpath searched before the hard-coded library search path?
18207 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18208
18209 # How to hardcode a shared library path into an executable.
18210 hardcode_action=$hardcode_action
18211
18212 # Whether we should hardcode library paths into libraries.
18213 hardcode_into_libs=$hardcode_into_libs
18214
18215 # Flag to hardcode \$libdir into a binary during linking.
18216 # This must work even if \$libdir does not exist.
18217 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18218
18219 # If ld is used when linking, flag to hardcode \$libdir into
18220 # a binary during linking. This must work even if \$libdir does
18221 # not exist.
18222 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18223
18224 # Whether we need a single -rpath flag with a separated argument.
18225 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18226
18227 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18228 # resulting binary.
18229 hardcode_direct=$hardcode_direct
18230
18231 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18232 # resulting binary.
18233 hardcode_minus_L=$hardcode_minus_L
18234
18235 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18236 # the resulting binary.
18237 hardcode_shlibpath_var=$hardcode_shlibpath_var
18238
18239 # Set to yes if building a shared library automatically hardcodes DIR into the library
18240 # and all subsequent libraries and executables linked against it.
18241 hardcode_automatic=$hardcode_automatic
18242
18243 # Variables whose values should be saved in libtool wrapper scripts and
18244 # restored at relink time.
18245 variables_saved_for_relink="$variables_saved_for_relink"
18246
18247 # Whether libtool must link a program against all its dependency libraries.
18248 link_all_deplibs=$link_all_deplibs
18249
18250 # Compile-time system search path for libraries
18251 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18252
18253 # Run-time system search path for libraries
18254 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18255
18256 # Fix the shell variable \$srcfile for the compiler.
18257 fix_srcfile_path="$fix_srcfile_path"
18258
18259 # Set to yes if exported symbols are required.
18260 always_export_symbols=$always_export_symbols
18261
18262 # The commands to list exported symbols.
18263 export_symbols_cmds=$lt_export_symbols_cmds
18264
18265 # The commands to extract the exported symbol list from a shared archive.
18266 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18267
18268 # Symbols that should not be listed in the preloaded symbols.
18269 exclude_expsyms=$lt_exclude_expsyms
18270
18271 # Symbols that must always be exported.
18272 include_expsyms=$lt_include_expsyms
18273
18274 # ### END LIBTOOL CONFIG
18275
18276 __EOF__
18277
18278
18279   case $host_os in
18280   aix3*)
18281     cat <<\EOF >> "$cfgfile"
18282
18283 # AIX sometimes has problems with the GCC collect2 program.  For some
18284 # reason, if we set the COLLECT_NAMES environment variable, the problems
18285 # vanish in a puff of smoke.
18286 if test "X${COLLECT_NAMES+set}" != Xset; then
18287   COLLECT_NAMES=
18288   export COLLECT_NAMES
18289 fi
18290 EOF
18291     ;;
18292   esac
18293
18294   # We use sed instead of cat because bash on DJGPP gets confused if
18295   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18296   # text mode, it properly converts lines to CR/LF.  This bash problem
18297   # is reportedly fixed, but why not run on old versions too?
18298   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18299
18300   mv -f "$cfgfile" "$ofile" || \
18301     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18302   chmod +x "$ofile"
18303
18304 else
18305   # If there is no Makefile yet, we rely on a make rule to execute
18306   # `config.status --recheck' to rerun these tests and create the
18307   # libtool script then.
18308   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18309   if test -f "$ltmain_in"; then
18310     test -f Makefile && make "$ltmain"
18311   fi
18312 fi
18313
18314
18315 ac_ext=c
18316 ac_cpp='$CPP $CPPFLAGS'
18317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18320
18321 CC="$lt_save_CC"
18322
18323
18324 # Check whether --with-tags was given.
18325 if test "${with_tags+set}" = set; then
18326   withval=$with_tags; tagnames="$withval"
18327 fi
18328
18329
18330 if test -f "$ltmain" && test -n "$tagnames"; then
18331   if test ! -f "${ofile}"; then
18332     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18333 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18334   fi
18335
18336   if test -z "$LTCC"; then
18337     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18338     if test -z "$LTCC"; then
18339       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18340 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18341     else
18342       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18343 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18344     fi
18345   fi
18346   if test -z "$LTCFLAGS"; then
18347     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18348   fi
18349
18350   # Extract list of available tagged configurations in $ofile.
18351   # Note that this assumes the entire list is on one line.
18352   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18353
18354   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18355   for tagname in $tagnames; do
18356     IFS="$lt_save_ifs"
18357     # Check whether tagname contains only valid characters
18358     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18359     "") ;;
18360     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18361 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18362    { (exit 1); exit 1; }; }
18363         ;;
18364     esac
18365
18366     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18367     then
18368       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18369 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18370    { (exit 1); exit 1; }; }
18371     fi
18372
18373     # Update the list of available tags.
18374     if test -n "$tagname"; then
18375       echo appending configuration tag \"$tagname\" to $ofile
18376
18377       case $tagname in
18378       CXX)
18379         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18380             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18381             (test "X$CXX" != "Xg++"))) ; then
18382           ac_ext=cpp
18383 ac_cpp='$CXXCPP $CPPFLAGS'
18384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18387
18388
18389
18390
18391 archive_cmds_need_lc_CXX=no
18392 allow_undefined_flag_CXX=
18393 always_export_symbols_CXX=no
18394 archive_expsym_cmds_CXX=
18395 export_dynamic_flag_spec_CXX=
18396 hardcode_direct_CXX=no
18397 hardcode_libdir_flag_spec_CXX=
18398 hardcode_libdir_flag_spec_ld_CXX=
18399 hardcode_libdir_separator_CXX=
18400 hardcode_minus_L_CXX=no
18401 hardcode_shlibpath_var_CXX=unsupported
18402 hardcode_automatic_CXX=no
18403 module_cmds_CXX=
18404 module_expsym_cmds_CXX=
18405 link_all_deplibs_CXX=unknown
18406 old_archive_cmds_CXX=$old_archive_cmds
18407 no_undefined_flag_CXX=
18408 whole_archive_flag_spec_CXX=
18409 enable_shared_with_static_runtimes_CXX=no
18410
18411 # Dependencies to place before and after the object being linked:
18412 predep_objects_CXX=
18413 postdep_objects_CXX=
18414 predeps_CXX=
18415 postdeps_CXX=
18416 compiler_lib_search_path_CXX=
18417
18418 # Source file extension for C++ test sources.
18419 ac_ext=cpp
18420
18421 # Object file extension for compiled C++ test sources.
18422 objext=o
18423 objext_CXX=$objext
18424
18425 # Code to be used in simple compile tests
18426 lt_simple_compile_test_code="int some_variable = 0;\n"
18427
18428 # Code to be used in simple link tests
18429 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18430
18431 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18432
18433 # If no C compiler was specified, use CC.
18434 LTCC=${LTCC-"$CC"}
18435
18436 # If no C compiler flags were specified, use CFLAGS.
18437 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18438
18439 # Allow CC to be a program name with arguments.
18440 compiler=$CC
18441
18442
18443 # save warnings/boilerplate of simple test code
18444 ac_outfile=conftest.$ac_objext
18445 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18446 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18447 _lt_compiler_boilerplate=`cat conftest.err`
18448 $rm conftest*
18449
18450 ac_outfile=conftest.$ac_objext
18451 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18452 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18453 _lt_linker_boilerplate=`cat conftest.err`
18454 $rm conftest*
18455
18456
18457 # Allow CC to be a program name with arguments.
18458 lt_save_CC=$CC
18459 lt_save_LD=$LD
18460 lt_save_GCC=$GCC
18461 GCC=$GXX
18462 lt_save_with_gnu_ld=$with_gnu_ld
18463 lt_save_path_LD=$lt_cv_path_LD
18464 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18465   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18466 else
18467   $as_unset lt_cv_prog_gnu_ld
18468 fi
18469 if test -n "${lt_cv_path_LDCXX+set}"; then
18470   lt_cv_path_LD=$lt_cv_path_LDCXX
18471 else
18472   $as_unset lt_cv_path_LD
18473 fi
18474 test -z "${LDCXX+set}" || LD=$LDCXX
18475 CC=${CXX-"c++"}
18476 compiler=$CC
18477 compiler_CXX=$CC
18478 for cc_temp in $compiler""; do
18479   case $cc_temp in
18480     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18481     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18482     \-*) ;;
18483     *) break;;
18484   esac
18485 done
18486 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18487
18488
18489 # We don't want -fno-exception wen compiling C++ code, so set the
18490 # no_builtin_flag separately
18491 if test "$GXX" = yes; then
18492   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18493 else
18494   lt_prog_compiler_no_builtin_flag_CXX=
18495 fi
18496
18497 if test "$GXX" = yes; then
18498   # Set up default GNU C++ configuration
18499
18500
18501 # Check whether --with-gnu-ld was given.
18502 if test "${with_gnu_ld+set}" = set; then
18503   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18504 else
18505   with_gnu_ld=no
18506 fi
18507
18508 ac_prog=ld
18509 if test "$GCC" = yes; then
18510   # Check if gcc -print-prog-name=ld gives a path.
18511   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18512 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18513   case $host in
18514   *-*-mingw*)
18515     # gcc leaves a trailing carriage return which upsets mingw
18516     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18517   *)
18518     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18519   esac
18520   case $ac_prog in
18521     # Accept absolute paths.
18522     [\\/]* | ?:[\\/]*)
18523       re_direlt='/[^/][^/]*/\.\./'
18524       # Canonicalize the pathname of ld
18525       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18526       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18527         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18528       done
18529       test -z "$LD" && LD="$ac_prog"
18530       ;;
18531   "")
18532     # If it fails, then pretend we aren't using GCC.
18533     ac_prog=ld
18534     ;;
18535   *)
18536     # If it is relative, then search for the first ld in PATH.
18537     with_gnu_ld=unknown
18538     ;;
18539   esac
18540 elif test "$with_gnu_ld" = yes; then
18541   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18542 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18543 else
18544   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18545 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18546 fi
18547 if test "${lt_cv_path_LD+set}" = set; then
18548   echo $ECHO_N "(cached) $ECHO_C" >&6
18549 else
18550   if test -z "$LD"; then
18551   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18552   for ac_dir in $PATH; do
18553     IFS="$lt_save_ifs"
18554     test -z "$ac_dir" && ac_dir=.
18555     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18556       lt_cv_path_LD="$ac_dir/$ac_prog"
18557       # Check to see if the program is GNU ld.  I'd rather use --version,
18558       # but apparently some variants of GNU ld only accept -v.
18559       # Break only if it was the GNU/non-GNU ld that we prefer.
18560       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18561       *GNU* | *'with BFD'*)
18562         test "$with_gnu_ld" != no && break
18563         ;;
18564       *)
18565         test "$with_gnu_ld" != yes && break
18566         ;;
18567       esac
18568     fi
18569   done
18570   IFS="$lt_save_ifs"
18571 else
18572   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18573 fi
18574 fi
18575
18576 LD="$lt_cv_path_LD"
18577 if test -n "$LD"; then
18578   { echo "$as_me:$LINENO: result: $LD" >&5
18579 echo "${ECHO_T}$LD" >&6; }
18580 else
18581   { echo "$as_me:$LINENO: result: no" >&5
18582 echo "${ECHO_T}no" >&6; }
18583 fi
18584 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18585 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18586    { (exit 1); exit 1; }; }
18587 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18588 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18589 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18590   echo $ECHO_N "(cached) $ECHO_C" >&6
18591 else
18592   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18593 case `$LD -v 2>&1 </dev/null` in
18594 *GNU* | *'with BFD'*)
18595   lt_cv_prog_gnu_ld=yes
18596   ;;
18597 *)
18598   lt_cv_prog_gnu_ld=no
18599   ;;
18600 esac
18601 fi
18602 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18603 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18604 with_gnu_ld=$lt_cv_prog_gnu_ld
18605
18606
18607
18608   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18609   # archiving commands below assume that GNU ld is being used.
18610   if test "$with_gnu_ld" = yes; then
18611     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18612     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'
18613
18614     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18615     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18616
18617     # If archive_cmds runs LD, not CC, wlarc should be empty
18618     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18619     #     investigate it a little bit more. (MM)
18620     wlarc='${wl}'
18621
18622     # ancient GNU ld didn't support --whole-archive et. al.
18623     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18624         grep 'no-whole-archive' > /dev/null; then
18625       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18626     else
18627       whole_archive_flag_spec_CXX=
18628     fi
18629   else
18630     with_gnu_ld=no
18631     wlarc=
18632
18633     # A generic and very simple default shared library creation
18634     # command for GNU C++ for the case where it uses the native
18635     # linker, instead of GNU ld.  If possible, this setting should
18636     # overridden to take advantage of the native linker features on
18637     # the platform it is being used on.
18638     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18639   fi
18640
18641   # Commands to make compiler produce verbose output that lists
18642   # what "hidden" libraries, object files and flags are used when
18643   # linking a shared library.
18644   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18645
18646 else
18647   GXX=no
18648   with_gnu_ld=no
18649   wlarc=
18650 fi
18651
18652 # PORTME: fill in a description of your system's C++ link characteristics
18653 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18654 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18655 ld_shlibs_CXX=yes
18656 case $host_os in
18657   aix3*)
18658     # FIXME: insert proper C++ library support
18659     ld_shlibs_CXX=no
18660     ;;
18661   aix4* | aix5*)
18662     if test "$host_cpu" = ia64; then
18663       # On IA64, the linker does run time linking by default, so we don't
18664       # have to do anything special.
18665       aix_use_runtimelinking=no
18666       exp_sym_flag='-Bexport'
18667       no_entry_flag=""
18668     else
18669       aix_use_runtimelinking=no
18670
18671       # Test if we are trying to use run time linking or normal
18672       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18673       # need to do runtime linking.
18674       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18675         for ld_flag in $LDFLAGS; do
18676           case $ld_flag in
18677           *-brtl*)
18678             aix_use_runtimelinking=yes
18679             break
18680             ;;
18681           esac
18682         done
18683         ;;
18684       esac
18685
18686       exp_sym_flag='-bexport'
18687       no_entry_flag='-bnoentry'
18688     fi
18689
18690     # When large executables or shared objects are built, AIX ld can
18691     # have problems creating the table of contents.  If linking a library
18692     # or program results in "error TOC overflow" add -mminimal-toc to
18693     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18694     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18695
18696     archive_cmds_CXX=''
18697     hardcode_direct_CXX=yes
18698     hardcode_libdir_separator_CXX=':'
18699     link_all_deplibs_CXX=yes
18700
18701     if test "$GXX" = yes; then
18702       case $host_os in aix4.[012]|aix4.[012].*)
18703       # We only want to do this on AIX 4.2 and lower, the check
18704       # below for broken collect2 doesn't work under 4.3+
18705         collect2name=`${CC} -print-prog-name=collect2`
18706         if test -f "$collect2name" && \
18707            strings "$collect2name" | grep resolve_lib_name >/dev/null
18708         then
18709           # We have reworked collect2
18710           hardcode_direct_CXX=yes
18711         else
18712           # We have old collect2
18713           hardcode_direct_CXX=unsupported
18714           # It fails to find uninstalled libraries when the uninstalled
18715           # path is not listed in the libpath.  Setting hardcode_minus_L
18716           # to unsupported forces relinking
18717           hardcode_minus_L_CXX=yes
18718           hardcode_libdir_flag_spec_CXX='-L$libdir'
18719           hardcode_libdir_separator_CXX=
18720         fi
18721         ;;
18722       esac
18723       shared_flag='-shared'
18724       if test "$aix_use_runtimelinking" = yes; then
18725         shared_flag="$shared_flag "'${wl}-G'
18726       fi
18727     else
18728       # not using gcc
18729       if test "$host_cpu" = ia64; then
18730         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18731         # chokes on -Wl,-G. The following line is correct:
18732         shared_flag='-G'
18733       else
18734         if test "$aix_use_runtimelinking" = yes; then
18735           shared_flag='${wl}-G'
18736         else
18737           shared_flag='${wl}-bM:SRE'
18738         fi
18739       fi
18740     fi
18741
18742     # It seems that -bexpall does not export symbols beginning with
18743     # underscore (_), so it is better to generate a list of symbols to export.
18744     always_export_symbols_CXX=yes
18745     if test "$aix_use_runtimelinking" = yes; then
18746       # Warning - without using the other runtime loading flags (-brtl),
18747       # -berok will link without error, but may produce a broken library.
18748       allow_undefined_flag_CXX='-berok'
18749       # Determine the default libpath from the value encoded in an empty executable.
18750       cat >conftest.$ac_ext <<_ACEOF
18751 /* confdefs.h.  */
18752 _ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h.  */
18756
18757 int
18758 main ()
18759 {
18760
18761   ;
18762   return 0;
18763 }
18764 _ACEOF
18765 rm -f conftest.$ac_objext conftest$ac_exeext
18766 if { (ac_try="$ac_link"
18767 case "(($ac_try" in
18768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18769   *) ac_try_echo=$ac_try;;
18770 esac
18771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18772   (eval "$ac_link") 2>conftest.er1
18773   ac_status=$?
18774   grep -v '^ *+' conftest.er1 >conftest.err
18775   rm -f conftest.er1
18776   cat conftest.err >&5
18777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778   (exit $ac_status); } &&
18779          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18780   { (case "(($ac_try" in
18781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782   *) ac_try_echo=$ac_try;;
18783 esac
18784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785   (eval "$ac_try") 2>&5
18786   ac_status=$?
18787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788   (exit $ac_status); }; } &&
18789          { ac_try='test -s conftest$ac_exeext'
18790   { (case "(($ac_try" in
18791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792   *) ac_try_echo=$ac_try;;
18793 esac
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795   (eval "$ac_try") 2>&5
18796   ac_status=$?
18797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798   (exit $ac_status); }; }; then
18799
18800 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18801 }'`
18802 # Check for a 64-bit object if we didn't find anything.
18803 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; }
18804 }'`; fi
18805 else
18806   echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18808
18809
18810 fi
18811
18812 rm -f core conftest.err conftest.$ac_objext \
18813       conftest$ac_exeext conftest.$ac_ext
18814 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18815
18816       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18817
18818       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"
18819      else
18820       if test "$host_cpu" = ia64; then
18821         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18822         allow_undefined_flag_CXX="-z nodefs"
18823         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"
18824       else
18825         # Determine the default libpath from the value encoded in an empty executable.
18826         cat >conftest.$ac_ext <<_ACEOF
18827 /* confdefs.h.  */
18828 _ACEOF
18829 cat confdefs.h >>conftest.$ac_ext
18830 cat >>conftest.$ac_ext <<_ACEOF
18831 /* end confdefs.h.  */
18832
18833 int
18834 main ()
18835 {
18836
18837   ;
18838   return 0;
18839 }
18840 _ACEOF
18841 rm -f conftest.$ac_objext conftest$ac_exeext
18842 if { (ac_try="$ac_link"
18843 case "(($ac_try" in
18844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845   *) ac_try_echo=$ac_try;;
18846 esac
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848   (eval "$ac_link") 2>conftest.er1
18849   ac_status=$?
18850   grep -v '^ *+' conftest.er1 >conftest.err
18851   rm -f conftest.er1
18852   cat conftest.err >&5
18853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854   (exit $ac_status); } &&
18855          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18856   { (case "(($ac_try" in
18857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858   *) ac_try_echo=$ac_try;;
18859 esac
18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861   (eval "$ac_try") 2>&5
18862   ac_status=$?
18863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864   (exit $ac_status); }; } &&
18865          { ac_try='test -s conftest$ac_exeext'
18866   { (case "(($ac_try" in
18867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868   *) ac_try_echo=$ac_try;;
18869 esac
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871   (eval "$ac_try") 2>&5
18872   ac_status=$?
18873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874   (exit $ac_status); }; }; then
18875
18876 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18877 }'`
18878 # Check for a 64-bit object if we didn't find anything.
18879 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; }
18880 }'`; fi
18881 else
18882   echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18884
18885
18886 fi
18887
18888 rm -f core conftest.err conftest.$ac_objext \
18889       conftest$ac_exeext conftest.$ac_ext
18890 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18891
18892         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18893         # Warning - without using the other run time loading flags,
18894         # -berok will link without error, but may produce a broken library.
18895         no_undefined_flag_CXX=' ${wl}-bernotok'
18896         allow_undefined_flag_CXX=' ${wl}-berok'
18897         # Exported symbols can be pulled into shared objects from archives
18898         whole_archive_flag_spec_CXX='$convenience'
18899         archive_cmds_need_lc_CXX=yes
18900         # This is similar to how AIX traditionally builds its shared libraries.
18901         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'
18902       fi
18903     fi
18904     ;;
18905
18906   beos*)
18907     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18908       allow_undefined_flag_CXX=unsupported
18909       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18910       # support --undefined.  This deserves some investigation.  FIXME
18911       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18912     else
18913       ld_shlibs_CXX=no
18914     fi
18915     ;;
18916
18917   chorus*)
18918     case $cc_basename in
18919       *)
18920         # FIXME: insert proper C++ library support
18921         ld_shlibs_CXX=no
18922         ;;
18923     esac
18924     ;;
18925
18926   cygwin* | mingw* | pw32*)
18927     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18928     # as there is no search path for DLLs.
18929     hardcode_libdir_flag_spec_CXX='-L$libdir'
18930     allow_undefined_flag_CXX=unsupported
18931     always_export_symbols_CXX=no
18932     enable_shared_with_static_runtimes_CXX=yes
18933
18934     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18935       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'
18936       # If the export-symbols file already is a .def file (1st line
18937       # is EXPORTS), use it as is; otherwise, prepend...
18938       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18939         cp $export_symbols $output_objdir/$soname.def;
18940       else
18941         echo EXPORTS > $output_objdir/$soname.def;
18942         cat $export_symbols >> $output_objdir/$soname.def;
18943       fi~
18944       $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'
18945     else
18946       ld_shlibs_CXX=no
18947     fi
18948   ;;
18949       darwin* | rhapsody*)
18950         case $host_os in
18951         rhapsody* | darwin1.[012])
18952          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18953          ;;
18954        *) # Darwin 1.3 on
18955          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18956            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18957          else
18958            case ${MACOSX_DEPLOYMENT_TARGET} in
18959              10.[012])
18960                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18961                ;;
18962              10.*)
18963                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18964                ;;
18965            esac
18966          fi
18967          ;;
18968         esac
18969       archive_cmds_need_lc_CXX=no
18970       hardcode_direct_CXX=no
18971       hardcode_automatic_CXX=yes
18972       hardcode_shlibpath_var_CXX=unsupported
18973       whole_archive_flag_spec_CXX=''
18974       link_all_deplibs_CXX=yes
18975
18976     if test "$GXX" = yes ; then
18977       lt_int_apple_cc_single_mod=no
18978       output_verbose_link_cmd='echo'
18979       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18980        lt_int_apple_cc_single_mod=yes
18981       fi
18982       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18983        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18984       else
18985           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'
18986         fi
18987         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18988         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18989           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18990             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}'
18991           else
18992             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}'
18993           fi
18994             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}'
18995       else
18996       case $cc_basename in
18997         xlc*)
18998          output_verbose_link_cmd='echo'
18999           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'
19000           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19001           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19002           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}'
19003           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}'
19004           ;;
19005        *)
19006          ld_shlibs_CXX=no
19007           ;;
19008       esac
19009       fi
19010         ;;
19011
19012   dgux*)
19013     case $cc_basename in
19014       ec++*)
19015         # FIXME: insert proper C++ library support
19016         ld_shlibs_CXX=no
19017         ;;
19018       ghcx*)
19019         # Green Hills C++ Compiler
19020         # FIXME: insert proper C++ library support
19021         ld_shlibs_CXX=no
19022         ;;
19023       *)
19024         # FIXME: insert proper C++ library support
19025         ld_shlibs_CXX=no
19026         ;;
19027     esac
19028     ;;
19029   freebsd[12]*)
19030     # C++ shared libraries reported to be fairly broken before switch to ELF
19031     ld_shlibs_CXX=no
19032     ;;
19033   freebsd-elf*)
19034     archive_cmds_need_lc_CXX=no
19035     ;;
19036   freebsd* | kfreebsd*-gnu | dragonfly*)
19037     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19038     # conventions
19039     ld_shlibs_CXX=yes
19040     ;;
19041   gnu*)
19042     ;;
19043   hpux9*)
19044     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19045     hardcode_libdir_separator_CXX=:
19046     export_dynamic_flag_spec_CXX='${wl}-E'
19047     hardcode_direct_CXX=yes
19048     hardcode_minus_L_CXX=yes # Not in the search PATH,
19049                                 # but as the default
19050                                 # location of the library.
19051
19052     case $cc_basename in
19053     CC*)
19054       # FIXME: insert proper C++ library support
19055       ld_shlibs_CXX=no
19056       ;;
19057     aCC*)
19058       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'
19059       # Commands to make compiler produce verbose output that lists
19060       # what "hidden" libraries, object files and flags are used when
19061       # linking a shared library.
19062       #
19063       # There doesn't appear to be a way to prevent this compiler from
19064       # explicitly linking system object files so we need to strip them
19065       # from the output so that they don't get included in the library
19066       # dependencies.
19067       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'
19068       ;;
19069     *)
19070       if test "$GXX" = yes; then
19071         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'
19072       else
19073         # FIXME: insert proper C++ library support
19074         ld_shlibs_CXX=no
19075       fi
19076       ;;
19077     esac
19078     ;;
19079   hpux10*|hpux11*)
19080     if test $with_gnu_ld = no; then
19081       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19082       hardcode_libdir_separator_CXX=:
19083
19084       case $host_cpu in
19085       hppa*64*|ia64*)
19086         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19087         ;;
19088       *)
19089         export_dynamic_flag_spec_CXX='${wl}-E'
19090         ;;
19091       esac
19092     fi
19093     case $host_cpu in
19094     hppa*64*|ia64*)
19095       hardcode_direct_CXX=no
19096       hardcode_shlibpath_var_CXX=no
19097       ;;
19098     *)
19099       hardcode_direct_CXX=yes
19100       hardcode_minus_L_CXX=yes # Not in the search PATH,
19101                                               # but as the default
19102                                               # location of the library.
19103       ;;
19104     esac
19105
19106     case $cc_basename in
19107       CC*)
19108         # FIXME: insert proper C++ library support
19109         ld_shlibs_CXX=no
19110         ;;
19111       aCC*)
19112         case $host_cpu in
19113         hppa*64*)
19114           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19115           ;;
19116         ia64*)
19117           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19118           ;;
19119         *)
19120           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19121           ;;
19122         esac
19123         # Commands to make compiler produce verbose output that lists
19124         # what "hidden" libraries, object files and flags are used when
19125         # linking a shared library.
19126         #
19127         # There doesn't appear to be a way to prevent this compiler from
19128         # explicitly linking system object files so we need to strip them
19129         # from the output so that they don't get included in the library
19130         # dependencies.
19131         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'
19132         ;;
19133       *)
19134         if test "$GXX" = yes; then
19135           if test $with_gnu_ld = no; then
19136             case $host_cpu in
19137             hppa*64*)
19138               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19139               ;;
19140             ia64*)
19141               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19142               ;;
19143             *)
19144               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'
19145               ;;
19146             esac
19147           fi
19148         else
19149           # FIXME: insert proper C++ library support
19150           ld_shlibs_CXX=no
19151         fi
19152         ;;
19153     esac
19154     ;;
19155   interix3*)
19156     hardcode_direct_CXX=no
19157     hardcode_shlibpath_var_CXX=no
19158     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19159     export_dynamic_flag_spec_CXX='${wl}-E'
19160     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19161     # Instead, shared libraries are loaded at an image base (0x10000000 by
19162     # default) and relocated if they conflict, which is a slow very memory
19163     # consuming and fragmenting process.  To avoid this, we pick a random,
19164     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19165     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19166     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'
19167     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'
19168     ;;
19169   irix5* | irix6*)
19170     case $cc_basename in
19171       CC*)
19172         # SGI C++
19173         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'
19174
19175         # Archives containing C++ object files must be created using
19176         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19177         # necessary to make sure instantiated templates are included
19178         # in the archive.
19179         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19180         ;;
19181       *)
19182         if test "$GXX" = yes; then
19183           if test "$with_gnu_ld" = no; then
19184             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'
19185           else
19186             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'
19187           fi
19188         fi
19189         link_all_deplibs_CXX=yes
19190         ;;
19191     esac
19192     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19193     hardcode_libdir_separator_CXX=:
19194     ;;
19195   linux*)
19196     case $cc_basename in
19197       KCC*)
19198         # Kuck and Associates, Inc. (KAI) C++ Compiler
19199
19200         # KCC will only create a shared library if the output file
19201         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19202         # to its proper name (with version) after linking.
19203         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'
19204         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'
19205         # Commands to make compiler produce verbose output that lists
19206         # what "hidden" libraries, object files and flags are used when
19207         # linking a shared library.
19208         #
19209         # There doesn't appear to be a way to prevent this compiler from
19210         # explicitly linking system object files so we need to strip them
19211         # from the output so that they don't get included in the library
19212         # dependencies.
19213         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'
19214
19215         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19216         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19217
19218         # Archives containing C++ object files must be created using
19219         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19220         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19221         ;;
19222       icpc*)
19223         # Intel C++
19224         with_gnu_ld=yes
19225         # version 8.0 and above of icpc choke on multiply defined symbols
19226         # if we add $predep_objects and $postdep_objects, however 7.1 and
19227         # earlier do not add the objects themselves.
19228         case `$CC -V 2>&1` in
19229         *"Version 7."*)
19230           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19231           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'
19232           ;;
19233         *)  # Version 8.0 or newer
19234           tmp_idyn=
19235           case $host_cpu in
19236             ia64*) tmp_idyn=' -i_dynamic';;
19237           esac
19238           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19239           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'
19240           ;;
19241         esac
19242         archive_cmds_need_lc_CXX=no
19243         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19244         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19245         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19246         ;;
19247       pgCC*)
19248         # Portland Group C++ compiler
19249         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19250         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'
19251
19252         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19253         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19254         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'
19255         ;;
19256       cxx*)
19257         # Compaq C++
19258         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19259         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'
19260
19261         runpath_var=LD_RUN_PATH
19262         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19263         hardcode_libdir_separator_CXX=:
19264
19265         # Commands to make compiler produce verbose output that lists
19266         # what "hidden" libraries, object files and flags are used when
19267         # linking a shared library.
19268         #
19269         # There doesn't appear to be a way to prevent this compiler from
19270         # explicitly linking system object files so we need to strip them
19271         # from the output so that they don't get included in the library
19272         # dependencies.
19273         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'
19274         ;;
19275     esac
19276     ;;
19277   lynxos*)
19278     # FIXME: insert proper C++ library support
19279     ld_shlibs_CXX=no
19280     ;;
19281   m88k*)
19282     # FIXME: insert proper C++ library support
19283     ld_shlibs_CXX=no
19284     ;;
19285   mvs*)
19286     case $cc_basename in
19287       cxx*)
19288         # FIXME: insert proper C++ library support
19289         ld_shlibs_CXX=no
19290         ;;
19291       *)
19292         # FIXME: insert proper C++ library support
19293         ld_shlibs_CXX=no
19294         ;;
19295     esac
19296     ;;
19297   netbsd*)
19298     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19299       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19300       wlarc=
19301       hardcode_libdir_flag_spec_CXX='-R$libdir'
19302       hardcode_direct_CXX=yes
19303       hardcode_shlibpath_var_CXX=no
19304     fi
19305     # Workaround some broken pre-1.5 toolchains
19306     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19307     ;;
19308   openbsd2*)
19309     # C++ shared libraries are fairly broken
19310     ld_shlibs_CXX=no
19311     ;;
19312   openbsd*)
19313     hardcode_direct_CXX=yes
19314     hardcode_shlibpath_var_CXX=no
19315     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19316     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19317     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19318       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19319       export_dynamic_flag_spec_CXX='${wl}-E'
19320       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19321     fi
19322     output_verbose_link_cmd='echo'
19323     ;;
19324   osf3*)
19325     case $cc_basename in
19326       KCC*)
19327         # Kuck and Associates, Inc. (KAI) C++ Compiler
19328
19329         # KCC will only create a shared library if the output file
19330         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19331         # to its proper name (with version) after linking.
19332         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'
19333
19334         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19335         hardcode_libdir_separator_CXX=:
19336
19337         # Archives containing C++ object files must be created using
19338         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19339         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19340
19341         ;;
19342       RCC*)
19343         # Rational C++ 2.4.1
19344         # FIXME: insert proper C++ library support
19345         ld_shlibs_CXX=no
19346         ;;
19347       cxx*)
19348         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19349         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'
19350
19351         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19352         hardcode_libdir_separator_CXX=:
19353
19354         # Commands to make compiler produce verbose output that lists
19355         # what "hidden" libraries, object files and flags are used when
19356         # linking a shared library.
19357         #
19358         # There doesn't appear to be a way to prevent this compiler from
19359         # explicitly linking system object files so we need to strip them
19360         # from the output so that they don't get included in the library
19361         # dependencies.
19362         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'
19363         ;;
19364       *)
19365         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19366           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19367           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'
19368
19369           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19370           hardcode_libdir_separator_CXX=:
19371
19372           # Commands to make compiler produce verbose output that lists
19373           # what "hidden" libraries, object files and flags are used when
19374           # linking a shared library.
19375           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19376
19377         else
19378           # FIXME: insert proper C++ library support
19379           ld_shlibs_CXX=no
19380         fi
19381         ;;
19382     esac
19383     ;;
19384   osf4* | osf5*)
19385     case $cc_basename in
19386       KCC*)
19387         # Kuck and Associates, Inc. (KAI) C++ Compiler
19388
19389         # KCC will only create a shared library if the output file
19390         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19391         # to its proper name (with version) after linking.
19392         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'
19393
19394         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19395         hardcode_libdir_separator_CXX=:
19396
19397         # Archives containing C++ object files must be created using
19398         # the KAI C++ compiler.
19399         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19400         ;;
19401       RCC*)
19402         # Rational C++ 2.4.1
19403         # FIXME: insert proper C++ library support
19404         ld_shlibs_CXX=no
19405         ;;
19406       cxx*)
19407         allow_undefined_flag_CXX=' -expect_unresolved \*'
19408         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'
19409         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19410           echo "-hidden">> $lib.exp~
19411           $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~
19412           $rm $lib.exp'
19413
19414         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19415         hardcode_libdir_separator_CXX=:
19416
19417         # Commands to make compiler produce verbose output that lists
19418         # what "hidden" libraries, object files and flags are used when
19419         # linking a shared library.
19420         #
19421         # There doesn't appear to be a way to prevent this compiler from
19422         # explicitly linking system object files so we need to strip them
19423         # from the output so that they don't get included in the library
19424         # dependencies.
19425         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'
19426         ;;
19427       *)
19428         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19429           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19430          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'
19431
19432           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19433           hardcode_libdir_separator_CXX=:
19434
19435           # Commands to make compiler produce verbose output that lists
19436           # what "hidden" libraries, object files and flags are used when
19437           # linking a shared library.
19438           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19439
19440         else
19441           # FIXME: insert proper C++ library support
19442           ld_shlibs_CXX=no
19443         fi
19444         ;;
19445     esac
19446     ;;
19447   psos*)
19448     # FIXME: insert proper C++ library support
19449     ld_shlibs_CXX=no
19450     ;;
19451   sunos4*)
19452     case $cc_basename in
19453       CC*)
19454         # Sun C++ 4.x
19455         # FIXME: insert proper C++ library support
19456         ld_shlibs_CXX=no
19457         ;;
19458       lcc*)
19459         # Lucid
19460         # FIXME: insert proper C++ library support
19461         ld_shlibs_CXX=no
19462         ;;
19463       *)
19464         # FIXME: insert proper C++ library support
19465         ld_shlibs_CXX=no
19466         ;;
19467     esac
19468     ;;
19469   solaris*)
19470     case $cc_basename in
19471       CC*)
19472         # Sun C++ 4.2, 5.x and Centerline C++
19473         archive_cmds_need_lc_CXX=yes
19474         no_undefined_flag_CXX=' -zdefs'
19475         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19476         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19477         $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'
19478
19479         hardcode_libdir_flag_spec_CXX='-R$libdir'
19480         hardcode_shlibpath_var_CXX=no
19481         case $host_os in
19482           solaris2.[0-5] | solaris2.[0-5].*) ;;
19483           *)
19484             # The C++ compiler is used as linker so we must use $wl
19485             # flag to pass the commands to the underlying system
19486             # linker. We must also pass each convience library through
19487             # to the system linker between allextract/defaultextract.
19488             # The C++ compiler will combine linker options so we
19489             # cannot just pass the convience library names through
19490             # without $wl.
19491             # Supported since Solaris 2.6 (maybe 2.5.1?)
19492             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'
19493             ;;
19494         esac
19495         link_all_deplibs_CXX=yes
19496
19497         output_verbose_link_cmd='echo'
19498
19499         # Archives containing C++ object files must be created using
19500         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19501         # necessary to make sure instantiated templates are included
19502         # in the archive.
19503         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19504         ;;
19505       gcx*)
19506         # Green Hills C++ Compiler
19507         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19508
19509         # The C++ compiler must be used to create the archive.
19510         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19511         ;;
19512       *)
19513         # GNU C++ compiler with Solaris linker
19514         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19515           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19516           if $CC --version | grep -v '^2\.7' > /dev/null; then
19517             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19518             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19519                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19520
19521             # Commands to make compiler produce verbose output that lists
19522             # what "hidden" libraries, object files and flags are used when
19523             # linking a shared library.
19524             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19525           else
19526             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19527             # platform.
19528             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19529             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19530                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19531
19532             # Commands to make compiler produce verbose output that lists
19533             # what "hidden" libraries, object files and flags are used when
19534             # linking a shared library.
19535             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19536           fi
19537
19538           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19539         fi
19540         ;;
19541     esac
19542     ;;
19543   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19544     no_undefined_flag_CXX='${wl}-z,text'
19545     archive_cmds_need_lc_CXX=no
19546     hardcode_shlibpath_var_CXX=no
19547     runpath_var='LD_RUN_PATH'
19548
19549     case $cc_basename in
19550       CC*)
19551         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19552         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19553         ;;
19554       *)
19555         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19556         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19557         ;;
19558     esac
19559     ;;
19560   sysv5* | sco3.2v5* | sco5v6*)
19561     # Note: We can NOT use -z defs as we might desire, because we do not
19562     # link with -lc, and that would cause any symbols used from libc to
19563     # always be unresolved, which means just about no library would
19564     # ever link correctly.  If we're not using GNU ld we use -z text
19565     # though, which does catch some bad symbols but isn't as heavy-handed
19566     # as -z defs.
19567     # For security reasons, it is highly recommended that you always
19568     # use absolute paths for naming shared libraries, and exclude the
19569     # DT_RUNPATH tag from executables and libraries.  But doing so
19570     # requires that you compile everything twice, which is a pain.
19571     # So that behaviour is only enabled if SCOABSPATH is set to a
19572     # non-empty value in the environment.  Most likely only useful for
19573     # creating official distributions of packages.
19574     # This is a hack until libtool officially supports absolute path
19575     # names for shared libraries.
19576     no_undefined_flag_CXX='${wl}-z,text'
19577     allow_undefined_flag_CXX='${wl}-z,nodefs'
19578     archive_cmds_need_lc_CXX=no
19579     hardcode_shlibpath_var_CXX=no
19580     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19581     hardcode_libdir_separator_CXX=':'
19582     link_all_deplibs_CXX=yes
19583     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19584     runpath_var='LD_RUN_PATH'
19585
19586     case $cc_basename in
19587       CC*)
19588         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19589         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19590         ;;
19591       *)
19592         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19593         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19594         ;;
19595     esac
19596     ;;
19597   tandem*)
19598     case $cc_basename in
19599       NCC*)
19600         # NonStop-UX NCC 3.20
19601         # FIXME: insert proper C++ library support
19602         ld_shlibs_CXX=no
19603         ;;
19604       *)
19605         # FIXME: insert proper C++ library support
19606         ld_shlibs_CXX=no
19607         ;;
19608     esac
19609     ;;
19610   vxworks*)
19611     # FIXME: insert proper C++ library support
19612     ld_shlibs_CXX=no
19613     ;;
19614   *)
19615     # FIXME: insert proper C++ library support
19616     ld_shlibs_CXX=no
19617     ;;
19618 esac
19619 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19620 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19621 test "$ld_shlibs_CXX" = no && can_build_shared=no
19622
19623 GCC_CXX="$GXX"
19624 LD_CXX="$LD"
19625
19626
19627 cat > conftest.$ac_ext <<EOF
19628 class Foo
19629 {
19630 public:
19631   Foo (void) { a = 0; }
19632 private:
19633   int a;
19634 };
19635 EOF
19636
19637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19638   (eval $ac_compile) 2>&5
19639   ac_status=$?
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); }; then
19642   # Parse the compiler output and extract the necessary
19643   # objects, libraries and library flags.
19644
19645   # Sentinel used to keep track of whether or not we are before
19646   # the conftest object file.
19647   pre_test_object_deps_done=no
19648
19649   # The `*' in the case matches for architectures that use `case' in
19650   # $output_verbose_cmd can trigger glob expansion during the loop
19651   # eval without this substitution.
19652   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19653
19654   for p in `eval $output_verbose_link_cmd`; do
19655     case $p in
19656
19657     -L* | -R* | -l*)
19658        # Some compilers place space between "-{L,R}" and the path.
19659        # Remove the space.
19660        if test $p = "-L" \
19661           || test $p = "-R"; then
19662          prev=$p
19663          continue
19664        else
19665          prev=
19666        fi
19667
19668        if test "$pre_test_object_deps_done" = no; then
19669          case $p in
19670          -L* | -R*)
19671            # Internal compiler library paths should come after those
19672            # provided the user.  The postdeps already come after the
19673            # user supplied libs so there is no need to process them.
19674            if test -z "$compiler_lib_search_path_CXX"; then
19675              compiler_lib_search_path_CXX="${prev}${p}"
19676            else
19677              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19678            fi
19679            ;;
19680          # The "-l" case would never come before the object being
19681          # linked, so don't bother handling this case.
19682          esac
19683        else
19684          if test -z "$postdeps_CXX"; then
19685            postdeps_CXX="${prev}${p}"
19686          else
19687            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19688          fi
19689        fi
19690        ;;
19691
19692     *.$objext)
19693        # This assumes that the test object file only shows up
19694        # once in the compiler output.
19695        if test "$p" = "conftest.$objext"; then
19696          pre_test_object_deps_done=yes
19697          continue
19698        fi
19699
19700        if test "$pre_test_object_deps_done" = no; then
19701          if test -z "$predep_objects_CXX"; then
19702            predep_objects_CXX="$p"
19703          else
19704            predep_objects_CXX="$predep_objects_CXX $p"
19705          fi
19706        else
19707          if test -z "$postdep_objects_CXX"; then
19708            postdep_objects_CXX="$p"
19709          else
19710            postdep_objects_CXX="$postdep_objects_CXX $p"
19711          fi
19712        fi
19713        ;;
19714
19715     *) ;; # Ignore the rest.
19716
19717     esac
19718   done
19719
19720   # Clean up.
19721   rm -f a.out a.exe
19722 else
19723   echo "libtool.m4: error: problem compiling CXX test program"
19724 fi
19725
19726 $rm -f confest.$objext
19727
19728 # PORTME: override above test on systems where it is broken
19729 case $host_os in
19730 interix3*)
19731   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19732   # hack all around it, let's just trust "g++" to DTRT.
19733   predep_objects_CXX=
19734   postdep_objects_CXX=
19735   postdeps_CXX=
19736   ;;
19737
19738 solaris*)
19739   case $cc_basename in
19740   CC*)
19741     # Adding this requires a known-good setup of shared libraries for
19742     # Sun compiler versions before 5.6, else PIC objects from an old
19743     # archive will be linked into the output, leading to subtle bugs.
19744     postdeps_CXX='-lCstd -lCrun'
19745     ;;
19746   esac
19747   ;;
19748 esac
19749
19750
19751 case " $postdeps_CXX " in
19752 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19753 esac
19754
19755 lt_prog_compiler_wl_CXX=
19756 lt_prog_compiler_pic_CXX=
19757 lt_prog_compiler_static_CXX=
19758
19759 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19760 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19761
19762   # C++ specific cases for pic, static, wl, etc.
19763   if test "$GXX" = yes; then
19764     lt_prog_compiler_wl_CXX='-Wl,'
19765     lt_prog_compiler_static_CXX='-static'
19766
19767     case $host_os in
19768     aix*)
19769       # All AIX code is PIC.
19770       if test "$host_cpu" = ia64; then
19771         # AIX 5 now supports IA64 processor
19772         lt_prog_compiler_static_CXX='-Bstatic'
19773       fi
19774       ;;
19775     amigaos*)
19776       # FIXME: we need at least 68020 code to build shared libraries, but
19777       # adding the `-m68020' flag to GCC prevents building anything better,
19778       # like `-m68040'.
19779       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19780       ;;
19781     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19782       # PIC is the default for these OSes.
19783       ;;
19784     mingw* | os2* | pw32*)
19785       # This hack is so that the source file can tell whether it is being
19786       # built for inclusion in a dll (and should export symbols for example).
19787       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19788       ;;
19789     darwin* | rhapsody*)
19790       # PIC is the default on this platform
19791       # Common symbols not allowed in MH_DYLIB files
19792       lt_prog_compiler_pic_CXX='-fno-common'
19793       ;;
19794     *djgpp*)
19795       # DJGPP does not support shared libraries at all
19796       lt_prog_compiler_pic_CXX=
19797       ;;
19798     interix3*)
19799       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19800       # Instead, we relocate shared libraries at runtime.
19801       ;;
19802     sysv4*MP*)
19803       if test -d /usr/nec; then
19804         lt_prog_compiler_pic_CXX=-Kconform_pic
19805       fi
19806       ;;
19807     hpux*)
19808       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19809       # not for PA HP-UX.
19810       case $host_cpu in
19811       hppa*64*|ia64*)
19812         ;;
19813       *)
19814         lt_prog_compiler_pic_CXX='-fPIC'
19815         ;;
19816       esac
19817       ;;
19818     *)
19819       lt_prog_compiler_pic_CXX='-fPIC'
19820       ;;
19821     esac
19822   else
19823     case $host_os in
19824       aix4* | aix5*)
19825         # All AIX code is PIC.
19826         if test "$host_cpu" = ia64; then
19827           # AIX 5 now supports IA64 processor
19828           lt_prog_compiler_static_CXX='-Bstatic'
19829         else
19830           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19831         fi
19832         ;;
19833       chorus*)
19834         case $cc_basename in
19835         cxch68*)
19836           # Green Hills C++ Compiler
19837           # _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"
19838           ;;
19839         esac
19840         ;;
19841        darwin*)
19842          # PIC is the default on this platform
19843          # Common symbols not allowed in MH_DYLIB files
19844          case $cc_basename in
19845            xlc*)
19846            lt_prog_compiler_pic_CXX='-qnocommon'
19847            lt_prog_compiler_wl_CXX='-Wl,'
19848            ;;
19849          esac
19850        ;;
19851       dgux*)
19852         case $cc_basename in
19853           ec++*)
19854             lt_prog_compiler_pic_CXX='-KPIC'
19855             ;;
19856           ghcx*)
19857             # Green Hills C++ Compiler
19858             lt_prog_compiler_pic_CXX='-pic'
19859             ;;
19860           *)
19861             ;;
19862         esac
19863         ;;
19864       freebsd* | kfreebsd*-gnu | dragonfly*)
19865         # FreeBSD uses GNU C++
19866         ;;
19867       hpux9* | hpux10* | hpux11*)
19868         case $cc_basename in
19869           CC*)
19870             lt_prog_compiler_wl_CXX='-Wl,'
19871             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19872             if test "$host_cpu" != ia64; then
19873               lt_prog_compiler_pic_CXX='+Z'
19874             fi
19875             ;;
19876           aCC*)
19877             lt_prog_compiler_wl_CXX='-Wl,'
19878             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19879             case $host_cpu in
19880             hppa*64*|ia64*)
19881               # +Z the default
19882               ;;
19883             *)
19884               lt_prog_compiler_pic_CXX='+Z'
19885               ;;
19886             esac
19887             ;;
19888           *)
19889             ;;
19890         esac
19891         ;;
19892       interix*)
19893         # This is c89, which is MS Visual C++ (no shared libs)
19894         # Anyone wants to do a port?
19895         ;;
19896       irix5* | irix6* | nonstopux*)
19897         case $cc_basename in
19898           CC*)
19899             lt_prog_compiler_wl_CXX='-Wl,'
19900             lt_prog_compiler_static_CXX='-non_shared'
19901             # CC pic flag -KPIC is the default.
19902             ;;
19903           *)
19904             ;;
19905         esac
19906         ;;
19907       linux*)
19908         case $cc_basename in
19909           KCC*)
19910             # KAI C++ Compiler
19911             lt_prog_compiler_wl_CXX='--backend -Wl,'
19912             lt_prog_compiler_pic_CXX='-fPIC'
19913             ;;
19914           icpc* | ecpc*)
19915             # Intel C++
19916             lt_prog_compiler_wl_CXX='-Wl,'
19917             lt_prog_compiler_pic_CXX='-KPIC'
19918             lt_prog_compiler_static_CXX='-static'
19919             ;;
19920           pgCC*)
19921             # Portland Group C++ compiler.
19922             lt_prog_compiler_wl_CXX='-Wl,'
19923             lt_prog_compiler_pic_CXX='-fpic'
19924             lt_prog_compiler_static_CXX='-Bstatic'
19925             ;;
19926           cxx*)
19927             # Compaq C++
19928             # Make sure the PIC flag is empty.  It appears that all Alpha
19929             # Linux and Compaq Tru64 Unix objects are PIC.
19930             lt_prog_compiler_pic_CXX=
19931             lt_prog_compiler_static_CXX='-non_shared'
19932             ;;
19933           *)
19934             ;;
19935         esac
19936         ;;
19937       lynxos*)
19938         ;;
19939       m88k*)
19940         ;;
19941       mvs*)
19942         case $cc_basename in
19943           cxx*)
19944             lt_prog_compiler_pic_CXX='-W c,exportall'
19945             ;;
19946           *)
19947             ;;
19948         esac
19949         ;;
19950       netbsd*)
19951         ;;
19952       osf3* | osf4* | osf5*)
19953         case $cc_basename in
19954           KCC*)
19955             lt_prog_compiler_wl_CXX='--backend -Wl,'
19956             ;;
19957           RCC*)
19958             # Rational C++ 2.4.1
19959             lt_prog_compiler_pic_CXX='-pic'
19960             ;;
19961           cxx*)
19962             # Digital/Compaq C++
19963             lt_prog_compiler_wl_CXX='-Wl,'
19964             # Make sure the PIC flag is empty.  It appears that all Alpha
19965             # Linux and Compaq Tru64 Unix objects are PIC.
19966             lt_prog_compiler_pic_CXX=
19967             lt_prog_compiler_static_CXX='-non_shared'
19968             ;;
19969           *)
19970             ;;
19971         esac
19972         ;;
19973       psos*)
19974         ;;
19975       solaris*)
19976         case $cc_basename in
19977           CC*)
19978             # Sun C++ 4.2, 5.x and Centerline C++
19979             lt_prog_compiler_pic_CXX='-KPIC'
19980             lt_prog_compiler_static_CXX='-Bstatic'
19981             lt_prog_compiler_wl_CXX='-Qoption ld '
19982             ;;
19983           gcx*)
19984             # Green Hills C++ Compiler
19985             lt_prog_compiler_pic_CXX='-PIC'
19986             ;;
19987           *)
19988             ;;
19989         esac
19990         ;;
19991       sunos4*)
19992         case $cc_basename in
19993           CC*)
19994             # Sun C++ 4.x
19995             lt_prog_compiler_pic_CXX='-pic'
19996             lt_prog_compiler_static_CXX='-Bstatic'
19997             ;;
19998           lcc*)
19999             # Lucid
20000             lt_prog_compiler_pic_CXX='-pic'
20001             ;;
20002           *)
20003             ;;
20004         esac
20005         ;;
20006       tandem*)
20007         case $cc_basename in
20008           NCC*)
20009             # NonStop-UX NCC 3.20
20010             lt_prog_compiler_pic_CXX='-KPIC'
20011             ;;
20012           *)
20013             ;;
20014         esac
20015         ;;
20016       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20017         case $cc_basename in
20018           CC*)
20019             lt_prog_compiler_wl_CXX='-Wl,'
20020             lt_prog_compiler_pic_CXX='-KPIC'
20021             lt_prog_compiler_static_CXX='-Bstatic'
20022             ;;
20023         esac
20024         ;;
20025       vxworks*)
20026         ;;
20027       *)
20028         lt_prog_compiler_can_build_shared_CXX=no
20029         ;;
20030     esac
20031   fi
20032
20033 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20034 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20035
20036 #
20037 # Check to make sure the PIC flag actually works.
20038 #
20039 if test -n "$lt_prog_compiler_pic_CXX"; then
20040
20041 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20042 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20043 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20044   echo $ECHO_N "(cached) $ECHO_C" >&6
20045 else
20046   lt_prog_compiler_pic_works_CXX=no
20047   ac_outfile=conftest.$ac_objext
20048    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20049    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20050    # Insert the option either (1) after the last *FLAGS variable, or
20051    # (2) before a word containing "conftest.", or (3) at the end.
20052    # Note that $ac_compile itself does not contain backslashes and begins
20053    # with a dollar sign (not a hyphen), so the echo should work correctly.
20054    # The option is referenced via a variable to avoid confusing sed.
20055    lt_compile=`echo "$ac_compile" | $SED \
20056    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20057    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20058    -e 's:$: $lt_compiler_flag:'`
20059    (eval echo "\"\$as_me:20059: $lt_compile\"" >&5)
20060    (eval "$lt_compile" 2>conftest.err)
20061    ac_status=$?
20062    cat conftest.err >&5
20063    echo "$as_me:20063: \$? = $ac_status" >&5
20064    if (exit $ac_status) && test -s "$ac_outfile"; then
20065      # The compiler can only warn and ignore the option if not recognized
20066      # So say no if there are warnings other than the usual output.
20067      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20068      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20069      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20070        lt_prog_compiler_pic_works_CXX=yes
20071      fi
20072    fi
20073    $rm conftest*
20074
20075 fi
20076 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20077 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20078
20079 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20080     case $lt_prog_compiler_pic_CXX in
20081      "" | " "*) ;;
20082      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20083      esac
20084 else
20085     lt_prog_compiler_pic_CXX=
20086      lt_prog_compiler_can_build_shared_CXX=no
20087 fi
20088
20089 fi
20090 case $host_os in
20091   # For platforms which do not support PIC, -DPIC is meaningless:
20092   *djgpp*)
20093     lt_prog_compiler_pic_CXX=
20094     ;;
20095   *)
20096     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20097     ;;
20098 esac
20099
20100 #
20101 # Check to make sure the static flag actually works.
20102 #
20103 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20104 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20105 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20106 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20107   echo $ECHO_N "(cached) $ECHO_C" >&6
20108 else
20109   lt_prog_compiler_static_works_CXX=no
20110    save_LDFLAGS="$LDFLAGS"
20111    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20112    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20113    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20114      # The linker can only warn and ignore the option if not recognized
20115      # So say no if there are warnings
20116      if test -s conftest.err; then
20117        # Append any errors to the config.log.
20118        cat conftest.err 1>&5
20119        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20120        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20121        if diff conftest.exp conftest.er2 >/dev/null; then
20122          lt_prog_compiler_static_works_CXX=yes
20123        fi
20124      else
20125        lt_prog_compiler_static_works_CXX=yes
20126      fi
20127    fi
20128    $rm conftest*
20129    LDFLAGS="$save_LDFLAGS"
20130
20131 fi
20132 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20133 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20134
20135 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20136     :
20137 else
20138     lt_prog_compiler_static_CXX=
20139 fi
20140
20141
20142 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20143 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20144 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20145   echo $ECHO_N "(cached) $ECHO_C" >&6
20146 else
20147   lt_cv_prog_compiler_c_o_CXX=no
20148    $rm -r conftest 2>/dev/null
20149    mkdir conftest
20150    cd conftest
20151    mkdir out
20152    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20153
20154    lt_compiler_flag="-o out/conftest2.$ac_objext"
20155    # Insert the option either (1) after the last *FLAGS variable, or
20156    # (2) before a word containing "conftest.", or (3) at the end.
20157    # Note that $ac_compile itself does not contain backslashes and begins
20158    # with a dollar sign (not a hyphen), so the echo should work correctly.
20159    lt_compile=`echo "$ac_compile" | $SED \
20160    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20161    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20162    -e 's:$: $lt_compiler_flag:'`
20163    (eval echo "\"\$as_me:20163: $lt_compile\"" >&5)
20164    (eval "$lt_compile" 2>out/conftest.err)
20165    ac_status=$?
20166    cat out/conftest.err >&5
20167    echo "$as_me:20167: \$? = $ac_status" >&5
20168    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20169    then
20170      # The compiler can only warn and ignore the option if not recognized
20171      # So say no if there are warnings
20172      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20173      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20174      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20175        lt_cv_prog_compiler_c_o_CXX=yes
20176      fi
20177    fi
20178    chmod u+w . 2>&5
20179    $rm conftest*
20180    # SGI C++ compiler will create directory out/ii_files/ for
20181    # template instantiation
20182    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20183    $rm out/* && rmdir out
20184    cd ..
20185    rmdir conftest
20186    $rm conftest*
20187
20188 fi
20189 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20190 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20191
20192
20193 hard_links="nottested"
20194 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20195   # do not overwrite the value of need_locks provided by the user
20196   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20197 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20198   hard_links=yes
20199   $rm conftest*
20200   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20201   touch conftest.a
20202   ln conftest.a conftest.b 2>&5 || hard_links=no
20203   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20204   { echo "$as_me:$LINENO: result: $hard_links" >&5
20205 echo "${ECHO_T}$hard_links" >&6; }
20206   if test "$hard_links" = no; then
20207     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20208 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20209     need_locks=warn
20210   fi
20211 else
20212   need_locks=no
20213 fi
20214
20215 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20216 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20217
20218   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20219   case $host_os in
20220   aix4* | aix5*)
20221     # If we're using GNU nm, then we don't want the "-C" option.
20222     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20223     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20224       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'
20225     else
20226       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'
20227     fi
20228     ;;
20229   pw32*)
20230     export_symbols_cmds_CXX="$ltdll_cmds"
20231   ;;
20232   cygwin* | mingw*)
20233     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'
20234   ;;
20235   *)
20236     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20237   ;;
20238   esac
20239
20240 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20241 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20242 test "$ld_shlibs_CXX" = no && can_build_shared=no
20243
20244 #
20245 # Do we need to explicitly link libc?
20246 #
20247 case "x$archive_cmds_need_lc_CXX" in
20248 x|xyes)
20249   # Assume -lc should be added
20250   archive_cmds_need_lc_CXX=yes
20251
20252   if test "$enable_shared" = yes && test "$GCC" = yes; then
20253     case $archive_cmds_CXX in
20254     *'~'*)
20255       # FIXME: we may have to deal with multi-command sequences.
20256       ;;
20257     '$CC '*)
20258       # Test whether the compiler implicitly links with -lc since on some
20259       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20260       # to ld, don't add -lc before -lgcc.
20261       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20262 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20263       $rm conftest*
20264       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20265
20266       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20267   (eval $ac_compile) 2>&5
20268   ac_status=$?
20269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270   (exit $ac_status); } 2>conftest.err; then
20271         soname=conftest
20272         lib=conftest
20273         libobjs=conftest.$ac_objext
20274         deplibs=
20275         wl=$lt_prog_compiler_wl_CXX
20276         pic_flag=$lt_prog_compiler_pic_CXX
20277         compiler_flags=-v
20278         linker_flags=-v
20279         verstring=
20280         output_objdir=.
20281         libname=conftest
20282         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20283         allow_undefined_flag_CXX=
20284         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20285   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20286   ac_status=$?
20287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288   (exit $ac_status); }
20289         then
20290           archive_cmds_need_lc_CXX=no
20291         else
20292           archive_cmds_need_lc_CXX=yes
20293         fi
20294         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20295       else
20296         cat conftest.err 1>&5
20297       fi
20298       $rm conftest*
20299       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20300 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20301       ;;
20302     esac
20303   fi
20304   ;;
20305 esac
20306
20307 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20308 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20309 library_names_spec=
20310 libname_spec='lib$name'
20311 soname_spec=
20312 shrext_cmds=".so"
20313 postinstall_cmds=
20314 postuninstall_cmds=
20315 finish_cmds=
20316 finish_eval=
20317 shlibpath_var=
20318 shlibpath_overrides_runpath=unknown
20319 version_type=none
20320 dynamic_linker="$host_os ld.so"
20321 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20322 if test "$GCC" = yes; then
20323   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20324   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20325     # if the path contains ";" then we assume it to be the separator
20326     # otherwise default to the standard path separator (i.e. ":") - it is
20327     # assumed that no part of a normal pathname contains ";" but that should
20328     # okay in the real world where ";" in dirpaths is itself problematic.
20329     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20330   else
20331     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20332   fi
20333 else
20334   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20335 fi
20336 need_lib_prefix=unknown
20337 hardcode_into_libs=no
20338
20339 # when you set need_version to no, make sure it does not cause -set_version
20340 # flags to be left without arguments
20341 need_version=unknown
20342
20343 case $host_os in
20344 aix3*)
20345   version_type=linux
20346   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20347   shlibpath_var=LIBPATH
20348
20349   # AIX 3 has no versioning support, so we append a major version to the name.
20350   soname_spec='${libname}${release}${shared_ext}$major'
20351   ;;
20352
20353 aix4* | aix5*)
20354   version_type=linux
20355   need_lib_prefix=no
20356   need_version=no
20357   hardcode_into_libs=yes
20358   if test "$host_cpu" = ia64; then
20359     # AIX 5 supports IA64
20360     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20361     shlibpath_var=LD_LIBRARY_PATH
20362   else
20363     # With GCC up to 2.95.x, collect2 would create an import file
20364     # for dependence libraries.  The import file would start with
20365     # the line `#! .'.  This would cause the generated library to
20366     # depend on `.', always an invalid library.  This was fixed in
20367     # development snapshots of GCC prior to 3.0.
20368     case $host_os in
20369       aix4 | aix4.[01] | aix4.[01].*)
20370       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20371            echo ' yes '
20372            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20373         :
20374       else
20375         can_build_shared=no
20376       fi
20377       ;;
20378     esac
20379     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20380     # soname into executable. Probably we can add versioning support to
20381     # collect2, so additional links can be useful in future.
20382     if test "$aix_use_runtimelinking" = yes; then
20383       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20384       # instead of lib<name>.a to let people know that these are not
20385       # typical AIX shared libraries.
20386       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20387     else
20388       # We preserve .a as extension for shared libraries through AIX4.2
20389       # and later when we are not doing run time linking.
20390       library_names_spec='${libname}${release}.a $libname.a'
20391       soname_spec='${libname}${release}${shared_ext}$major'
20392     fi
20393     shlibpath_var=LIBPATH
20394   fi
20395   ;;
20396
20397 amigaos*)
20398   library_names_spec='$libname.ixlibrary $libname.a'
20399   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20400   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'
20401   ;;
20402
20403 beos*)
20404   library_names_spec='${libname}${shared_ext}'
20405   dynamic_linker="$host_os ld.so"
20406   shlibpath_var=LIBRARY_PATH
20407   ;;
20408
20409 bsdi[45]*)
20410   version_type=linux
20411   need_version=no
20412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20413   soname_spec='${libname}${release}${shared_ext}$major'
20414   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20415   shlibpath_var=LD_LIBRARY_PATH
20416   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20417   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20418   # the default ld.so.conf also contains /usr/contrib/lib and
20419   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20420   # libtool to hard-code these into programs
20421   ;;
20422
20423 cygwin* | mingw* | pw32*)
20424   version_type=windows
20425   shrext_cmds=".dll"
20426   need_version=no
20427   need_lib_prefix=no
20428
20429   case $GCC,$host_os in
20430   yes,cygwin* | yes,mingw* | yes,pw32*)
20431     library_names_spec='$libname.dll.a'
20432     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20433     postinstall_cmds='base_file=`basename \${file}`~
20434       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20435       dldir=$destdir/`dirname \$dlpath`~
20436       test -d \$dldir || mkdir -p \$dldir~
20437       $install_prog $dir/$dlname \$dldir/$dlname~
20438       chmod a+x \$dldir/$dlname'
20439     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20440       dlpath=$dir/\$dldll~
20441        $rm \$dlpath'
20442     shlibpath_overrides_runpath=yes
20443
20444     case $host_os in
20445     cygwin*)
20446       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20447       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20448       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20449       ;;
20450     mingw*)
20451       # MinGW DLLs use traditional 'lib' prefix
20452       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20453       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20454       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20455         # It is most probably a Windows format PATH printed by
20456         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20457         # path with ; separators, and with drive letters. We can handle the
20458         # drive letters (cygwin fileutils understands them), so leave them,
20459         # especially as we might pass files found there to a mingw objdump,
20460         # which wouldn't understand a cygwinified path. Ahh.
20461         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20462       else
20463         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20464       fi
20465       ;;
20466     pw32*)
20467       # pw32 DLLs use 'pw' prefix rather than 'lib'
20468       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20469       ;;
20470     esac
20471     ;;
20472
20473   *)
20474     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20475     ;;
20476   esac
20477   dynamic_linker='Win32 ld.exe'
20478   # FIXME: first we should search . and the directory the executable is in
20479   shlibpath_var=PATH
20480   ;;
20481
20482 darwin* | rhapsody*)
20483   dynamic_linker="$host_os dyld"
20484   version_type=darwin
20485   need_lib_prefix=no
20486   need_version=no
20487   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20488   soname_spec='${libname}${release}${major}$shared_ext'
20489   shlibpath_overrides_runpath=yes
20490   shlibpath_var=DYLD_LIBRARY_PATH
20491   shrext_cmds='.dylib'
20492   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20493   if test "$GCC" = yes; then
20494     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"`
20495   else
20496     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20497   fi
20498   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20499   ;;
20500
20501 dgux*)
20502   version_type=linux
20503   need_lib_prefix=no
20504   need_version=no
20505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20506   soname_spec='${libname}${release}${shared_ext}$major'
20507   shlibpath_var=LD_LIBRARY_PATH
20508   ;;
20509
20510 freebsd1*)
20511   dynamic_linker=no
20512   ;;
20513
20514 kfreebsd*-gnu)
20515   version_type=linux
20516   need_lib_prefix=no
20517   need_version=no
20518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20519   soname_spec='${libname}${release}${shared_ext}$major'
20520   shlibpath_var=LD_LIBRARY_PATH
20521   shlibpath_overrides_runpath=no
20522   hardcode_into_libs=yes
20523   dynamic_linker='GNU ld.so'
20524   ;;
20525
20526 freebsd* | dragonfly*)
20527   # DragonFly does not have aout.  When/if they implement a new
20528   # versioning mechanism, adjust this.
20529   if test -x /usr/bin/objformat; then
20530     objformat=`/usr/bin/objformat`
20531   else
20532     case $host_os in
20533     freebsd[123]*) objformat=aout ;;
20534     *) objformat=elf ;;
20535     esac
20536   fi
20537   version_type=freebsd-$objformat
20538   case $version_type in
20539     freebsd-elf*)
20540       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20541       need_version=no
20542       need_lib_prefix=no
20543       ;;
20544     freebsd-*)
20545       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20546       need_version=yes
20547       ;;
20548   esac
20549   shlibpath_var=LD_LIBRARY_PATH
20550   case $host_os in
20551   freebsd2*)
20552     shlibpath_overrides_runpath=yes
20553     ;;
20554   freebsd3.[01]* | freebsdelf3.[01]*)
20555     shlibpath_overrides_runpath=yes
20556     hardcode_into_libs=yes
20557     ;;
20558   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20559   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20560     shlibpath_overrides_runpath=no
20561     hardcode_into_libs=yes
20562     ;;
20563   freebsd*) # from 4.6 on
20564     shlibpath_overrides_runpath=yes
20565     hardcode_into_libs=yes
20566     ;;
20567   esac
20568   ;;
20569
20570 gnu*)
20571   version_type=linux
20572   need_lib_prefix=no
20573   need_version=no
20574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20575   soname_spec='${libname}${release}${shared_ext}$major'
20576   shlibpath_var=LD_LIBRARY_PATH
20577   hardcode_into_libs=yes
20578   ;;
20579
20580 hpux9* | hpux10* | hpux11*)
20581   # Give a soname corresponding to the major version so that dld.sl refuses to
20582   # link against other versions.
20583   version_type=sunos
20584   need_lib_prefix=no
20585   need_version=no
20586   case $host_cpu in
20587   ia64*)
20588     shrext_cmds='.so'
20589     hardcode_into_libs=yes
20590     dynamic_linker="$host_os dld.so"
20591     shlibpath_var=LD_LIBRARY_PATH
20592     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20593     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20594     soname_spec='${libname}${release}${shared_ext}$major'
20595     if test "X$HPUX_IA64_MODE" = X32; then
20596       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20597     else
20598       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20599     fi
20600     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20601     ;;
20602    hppa*64*)
20603      shrext_cmds='.sl'
20604      hardcode_into_libs=yes
20605      dynamic_linker="$host_os dld.sl"
20606      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20607      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20608      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20609      soname_spec='${libname}${release}${shared_ext}$major'
20610      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20611      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20612      ;;
20613    *)
20614     shrext_cmds='.sl'
20615     dynamic_linker="$host_os dld.sl"
20616     shlibpath_var=SHLIB_PATH
20617     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20619     soname_spec='${libname}${release}${shared_ext}$major'
20620     ;;
20621   esac
20622   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20623   postinstall_cmds='chmod 555 $lib'
20624   ;;
20625
20626 interix3*)
20627   version_type=linux
20628   need_lib_prefix=no
20629   need_version=no
20630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20631   soname_spec='${libname}${release}${shared_ext}$major'
20632   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20633   shlibpath_var=LD_LIBRARY_PATH
20634   shlibpath_overrides_runpath=no
20635   hardcode_into_libs=yes
20636   ;;
20637
20638 irix5* | irix6* | nonstopux*)
20639   case $host_os in
20640     nonstopux*) version_type=nonstopux ;;
20641     *)
20642         if test "$lt_cv_prog_gnu_ld" = yes; then
20643                 version_type=linux
20644         else
20645                 version_type=irix
20646         fi ;;
20647   esac
20648   need_lib_prefix=no
20649   need_version=no
20650   soname_spec='${libname}${release}${shared_ext}$major'
20651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20652   case $host_os in
20653   irix5* | nonstopux*)
20654     libsuff= shlibsuff=
20655     ;;
20656   *)
20657     case $LD in # libtool.m4 will add one of these switches to LD
20658     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20659       libsuff= shlibsuff= libmagic=32-bit;;
20660     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20661       libsuff=32 shlibsuff=N32 libmagic=N32;;
20662     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20663       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20664     *) libsuff= shlibsuff= libmagic=never-match;;
20665     esac
20666     ;;
20667   esac
20668   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20669   shlibpath_overrides_runpath=no
20670   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20671   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20672   hardcode_into_libs=yes
20673   ;;
20674
20675 # No shared lib support for Linux oldld, aout, or coff.
20676 linux*oldld* | linux*aout* | linux*coff*)
20677   dynamic_linker=no
20678   ;;
20679
20680 # This must be Linux ELF.
20681 linux*)
20682   version_type=linux
20683   need_lib_prefix=no
20684   need_version=no
20685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20686   soname_spec='${libname}${release}${shared_ext}$major'
20687   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20688   shlibpath_var=LD_LIBRARY_PATH
20689   shlibpath_overrides_runpath=no
20690   # This implies no fast_install, which is unacceptable.
20691   # Some rework will be needed to allow for fast_install
20692   # before this can be enabled.
20693   hardcode_into_libs=yes
20694
20695   # Append ld.so.conf contents to the search path
20696   if test -f /etc/ld.so.conf; then
20697     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' ' '`
20698     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20699   fi
20700
20701   # We used to test for /lib/ld.so.1 and disable shared libraries on
20702   # powerpc, because MkLinux only supported shared libraries with the
20703   # GNU dynamic linker.  Since this was broken with cross compilers,
20704   # most powerpc-linux boxes support dynamic linking these days and
20705   # people can always --disable-shared, the test was removed, and we
20706   # assume the GNU/Linux dynamic linker is in use.
20707   dynamic_linker='GNU/Linux ld.so'
20708   ;;
20709
20710 knetbsd*-gnu)
20711   version_type=linux
20712   need_lib_prefix=no
20713   need_version=no
20714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20715   soname_spec='${libname}${release}${shared_ext}$major'
20716   shlibpath_var=LD_LIBRARY_PATH
20717   shlibpath_overrides_runpath=no
20718   hardcode_into_libs=yes
20719   dynamic_linker='GNU ld.so'
20720   ;;
20721
20722 netbsd*)
20723   version_type=sunos
20724   need_lib_prefix=no
20725   need_version=no
20726   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20727     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20728     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20729     dynamic_linker='NetBSD (a.out) ld.so'
20730   else
20731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20732     soname_spec='${libname}${release}${shared_ext}$major'
20733     dynamic_linker='NetBSD ld.elf_so'
20734   fi
20735   shlibpath_var=LD_LIBRARY_PATH
20736   shlibpath_overrides_runpath=yes
20737   hardcode_into_libs=yes
20738   ;;
20739
20740 newsos6)
20741   version_type=linux
20742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20743   shlibpath_var=LD_LIBRARY_PATH
20744   shlibpath_overrides_runpath=yes
20745   ;;
20746
20747 nto-qnx*)
20748   version_type=linux
20749   need_lib_prefix=no
20750   need_version=no
20751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20752   soname_spec='${libname}${release}${shared_ext}$major'
20753   shlibpath_var=LD_LIBRARY_PATH
20754   shlibpath_overrides_runpath=yes
20755   ;;
20756
20757 openbsd*)
20758   version_type=sunos
20759   sys_lib_dlsearch_path_spec="/usr/lib"
20760   need_lib_prefix=no
20761   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20762   case $host_os in
20763     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20764     *)                         need_version=no  ;;
20765   esac
20766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20767   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20768   shlibpath_var=LD_LIBRARY_PATH
20769   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20770     case $host_os in
20771       openbsd2.[89] | openbsd2.[89].*)
20772         shlibpath_overrides_runpath=no
20773         ;;
20774       *)
20775         shlibpath_overrides_runpath=yes
20776         ;;
20777       esac
20778   else
20779     shlibpath_overrides_runpath=yes
20780   fi
20781   ;;
20782
20783 os2*)
20784   libname_spec='$name'
20785   shrext_cmds=".dll"
20786   need_lib_prefix=no
20787   library_names_spec='$libname${shared_ext} $libname.a'
20788   dynamic_linker='OS/2 ld.exe'
20789   shlibpath_var=LIBPATH
20790   ;;
20791
20792 osf3* | osf4* | osf5*)
20793   version_type=osf
20794   need_lib_prefix=no
20795   need_version=no
20796   soname_spec='${libname}${release}${shared_ext}$major'
20797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20798   shlibpath_var=LD_LIBRARY_PATH
20799   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20800   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20801   ;;
20802
20803 solaris*)
20804   version_type=linux
20805   need_lib_prefix=no
20806   need_version=no
20807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20808   soname_spec='${libname}${release}${shared_ext}$major'
20809   shlibpath_var=LD_LIBRARY_PATH
20810   shlibpath_overrides_runpath=yes
20811   hardcode_into_libs=yes
20812   # ldd complains unless libraries are executable
20813   postinstall_cmds='chmod +x $lib'
20814   ;;
20815
20816 sunos4*)
20817   version_type=sunos
20818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20819   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20820   shlibpath_var=LD_LIBRARY_PATH
20821   shlibpath_overrides_runpath=yes
20822   if test "$with_gnu_ld" = yes; then
20823     need_lib_prefix=no
20824   fi
20825   need_version=yes
20826   ;;
20827
20828 sysv4 | sysv4.3*)
20829   version_type=linux
20830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20831   soname_spec='${libname}${release}${shared_ext}$major'
20832   shlibpath_var=LD_LIBRARY_PATH
20833   case $host_vendor in
20834     sni)
20835       shlibpath_overrides_runpath=no
20836       need_lib_prefix=no
20837       export_dynamic_flag_spec='${wl}-Blargedynsym'
20838       runpath_var=LD_RUN_PATH
20839       ;;
20840     siemens)
20841       need_lib_prefix=no
20842       ;;
20843     motorola)
20844       need_lib_prefix=no
20845       need_version=no
20846       shlibpath_overrides_runpath=no
20847       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20848       ;;
20849   esac
20850   ;;
20851
20852 sysv4*MP*)
20853   if test -d /usr/nec ;then
20854     version_type=linux
20855     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20856     soname_spec='$libname${shared_ext}.$major'
20857     shlibpath_var=LD_LIBRARY_PATH
20858   fi
20859   ;;
20860
20861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20862   version_type=freebsd-elf
20863   need_lib_prefix=no
20864   need_version=no
20865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20866   soname_spec='${libname}${release}${shared_ext}$major'
20867   shlibpath_var=LD_LIBRARY_PATH
20868   hardcode_into_libs=yes
20869   if test "$with_gnu_ld" = yes; then
20870     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20871     shlibpath_overrides_runpath=no
20872   else
20873     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20874     shlibpath_overrides_runpath=yes
20875     case $host_os in
20876       sco3.2v5*)
20877         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20878         ;;
20879     esac
20880   fi
20881   sys_lib_dlsearch_path_spec='/usr/lib'
20882   ;;
20883
20884 uts4*)
20885   version_type=linux
20886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20887   soname_spec='${libname}${release}${shared_ext}$major'
20888   shlibpath_var=LD_LIBRARY_PATH
20889   ;;
20890
20891 *)
20892   dynamic_linker=no
20893   ;;
20894 esac
20895 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20896 echo "${ECHO_T}$dynamic_linker" >&6; }
20897 test "$dynamic_linker" = no && can_build_shared=no
20898
20899 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20900 if test "$GCC" = yes; then
20901   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20902 fi
20903
20904 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20905 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20906 hardcode_action_CXX=
20907 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20908    test -n "$runpath_var_CXX" || \
20909    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20910
20911   # We can hardcode non-existant directories.
20912   if test "$hardcode_direct_CXX" != no &&
20913      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20914      # have to relink, otherwise we might link with an installed library
20915      # when we should be linking with a yet-to-be-installed one
20916      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20917      test "$hardcode_minus_L_CXX" != no; then
20918     # Linking always hardcodes the temporary library directory.
20919     hardcode_action_CXX=relink
20920   else
20921     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20922     hardcode_action_CXX=immediate
20923   fi
20924 else
20925   # We cannot hardcode anything, or else we can only hardcode existing
20926   # directories.
20927   hardcode_action_CXX=unsupported
20928 fi
20929 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20930 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20931
20932 if test "$hardcode_action_CXX" = relink; then
20933   # Fast installation is not supported
20934   enable_fast_install=no
20935 elif test "$shlibpath_overrides_runpath" = yes ||
20936      test "$enable_shared" = no; then
20937   # Fast installation is not necessary
20938   enable_fast_install=needless
20939 fi
20940
20941
20942 # The else clause should only fire when bootstrapping the
20943 # libtool distribution, otherwise you forgot to ship ltmain.sh
20944 # with your package, and you will get complaints that there are
20945 # no rules to generate ltmain.sh.
20946 if test -f "$ltmain"; then
20947   # See if we are running on zsh, and set the options which allow our commands through
20948   # without removal of \ escapes.
20949   if test -n "${ZSH_VERSION+set}" ; then
20950     setopt NO_GLOB_SUBST
20951   fi
20952   # Now quote all the things that may contain metacharacters while being
20953   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20954   # variables and quote the copies for generation of the libtool script.
20955   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20956     SED SHELL STRIP \
20957     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20958     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20959     deplibs_check_method reload_flag reload_cmds need_locks \
20960     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20961     lt_cv_sys_global_symbol_to_c_name_address \
20962     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20963     old_postinstall_cmds old_postuninstall_cmds \
20964     compiler_CXX \
20965     CC_CXX \
20966     LD_CXX \
20967     lt_prog_compiler_wl_CXX \
20968     lt_prog_compiler_pic_CXX \
20969     lt_prog_compiler_static_CXX \
20970     lt_prog_compiler_no_builtin_flag_CXX \
20971     export_dynamic_flag_spec_CXX \
20972     thread_safe_flag_spec_CXX \
20973     whole_archive_flag_spec_CXX \
20974     enable_shared_with_static_runtimes_CXX \
20975     old_archive_cmds_CXX \
20976     old_archive_from_new_cmds_CXX \
20977     predep_objects_CXX \
20978     postdep_objects_CXX \
20979     predeps_CXX \
20980     postdeps_CXX \
20981     compiler_lib_search_path_CXX \
20982     archive_cmds_CXX \
20983     archive_expsym_cmds_CXX \
20984     postinstall_cmds_CXX \
20985     postuninstall_cmds_CXX \
20986     old_archive_from_expsyms_cmds_CXX \
20987     allow_undefined_flag_CXX \
20988     no_undefined_flag_CXX \
20989     export_symbols_cmds_CXX \
20990     hardcode_libdir_flag_spec_CXX \
20991     hardcode_libdir_flag_spec_ld_CXX \
20992     hardcode_libdir_separator_CXX \
20993     hardcode_automatic_CXX \
20994     module_cmds_CXX \
20995     module_expsym_cmds_CXX \
20996     lt_cv_prog_compiler_c_o_CXX \
20997     exclude_expsyms_CXX \
20998     include_expsyms_CXX; do
20999
21000     case $var in
21001     old_archive_cmds_CXX | \
21002     old_archive_from_new_cmds_CXX | \
21003     archive_cmds_CXX | \
21004     archive_expsym_cmds_CXX | \
21005     module_cmds_CXX | \
21006     module_expsym_cmds_CXX | \
21007     old_archive_from_expsyms_cmds_CXX | \
21008     export_symbols_cmds_CXX | \
21009     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21010     postinstall_cmds | postuninstall_cmds | \
21011     old_postinstall_cmds | old_postuninstall_cmds | \
21012     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21013       # Double-quote double-evaled strings.
21014       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21015       ;;
21016     *)
21017       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21018       ;;
21019     esac
21020   done
21021
21022   case $lt_echo in
21023   *'\$0 --fallback-echo"')
21024     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21025     ;;
21026   esac
21027
21028 cfgfile="$ofile"
21029
21030   cat <<__EOF__ >> "$cfgfile"
21031 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21032
21033 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21034
21035 # Shell to use when invoking shell scripts.
21036 SHELL=$lt_SHELL
21037
21038 # Whether or not to build shared libraries.
21039 build_libtool_libs=$enable_shared
21040
21041 # Whether or not to build static libraries.
21042 build_old_libs=$enable_static
21043
21044 # Whether or not to add -lc for building shared libraries.
21045 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21046
21047 # Whether or not to disallow shared libs when runtime libs are static
21048 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21049
21050 # Whether or not to optimize for fast installation.
21051 fast_install=$enable_fast_install
21052
21053 # The host system.
21054 host_alias=$host_alias
21055 host=$host
21056 host_os=$host_os
21057
21058 # The build system.
21059 build_alias=$build_alias
21060 build=$build
21061 build_os=$build_os
21062
21063 # An echo program that does not interpret backslashes.
21064 echo=$lt_echo
21065
21066 # The archiver.
21067 AR=$lt_AR
21068 AR_FLAGS=$lt_AR_FLAGS
21069
21070 # A C compiler.
21071 LTCC=$lt_LTCC
21072
21073 # LTCC compiler flags.
21074 LTCFLAGS=$lt_LTCFLAGS
21075
21076 # A language-specific compiler.
21077 CC=$lt_compiler_CXX
21078
21079 # Is the compiler the GNU C compiler?
21080 with_gcc=$GCC_CXX
21081
21082 # An ERE matcher.
21083 EGREP=$lt_EGREP
21084
21085 # The linker used to build libraries.
21086 LD=$lt_LD_CXX
21087
21088 # Whether we need hard or soft links.
21089 LN_S=$lt_LN_S
21090
21091 # A BSD-compatible nm program.
21092 NM=$lt_NM
21093
21094 # A symbol stripping program
21095 STRIP=$lt_STRIP
21096
21097 # Used to examine libraries when file_magic_cmd begins "file"
21098 MAGIC_CMD=$MAGIC_CMD
21099
21100 # Used on cygwin: DLL creation program.
21101 DLLTOOL="$DLLTOOL"
21102
21103 # Used on cygwin: object dumper.
21104 OBJDUMP="$OBJDUMP"
21105
21106 # Used on cygwin: assembler.
21107 AS="$AS"
21108
21109 # The name of the directory that contains temporary libtool files.
21110 objdir=$objdir
21111
21112 # How to create reloadable object files.
21113 reload_flag=$lt_reload_flag
21114 reload_cmds=$lt_reload_cmds
21115
21116 # How to pass a linker flag through the compiler.
21117 wl=$lt_lt_prog_compiler_wl_CXX
21118
21119 # Object file suffix (normally "o").
21120 objext="$ac_objext"
21121
21122 # Old archive suffix (normally "a").
21123 libext="$libext"
21124
21125 # Shared library suffix (normally ".so").
21126 shrext_cmds='$shrext_cmds'
21127
21128 # Executable file suffix (normally "").
21129 exeext="$exeext"
21130
21131 # Additional compiler flags for building library objects.
21132 pic_flag=$lt_lt_prog_compiler_pic_CXX
21133 pic_mode=$pic_mode
21134
21135 # What is the maximum length of a command?
21136 max_cmd_len=$lt_cv_sys_max_cmd_len
21137
21138 # Does compiler simultaneously support -c and -o options?
21139 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21140
21141 # Must we lock files when doing compilation?
21142 need_locks=$lt_need_locks
21143
21144 # Do we need the lib prefix for modules?
21145 need_lib_prefix=$need_lib_prefix
21146
21147 # Do we need a version for libraries?
21148 need_version=$need_version
21149
21150 # Whether dlopen is supported.
21151 dlopen_support=$enable_dlopen
21152
21153 # Whether dlopen of programs is supported.
21154 dlopen_self=$enable_dlopen_self
21155
21156 # Whether dlopen of statically linked programs is supported.
21157 dlopen_self_static=$enable_dlopen_self_static
21158
21159 # Compiler flag to prevent dynamic linking.
21160 link_static_flag=$lt_lt_prog_compiler_static_CXX
21161
21162 # Compiler flag to turn off builtin functions.
21163 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21164
21165 # Compiler flag to allow reflexive dlopens.
21166 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21167
21168 # Compiler flag to generate shared objects directly from archives.
21169 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21170
21171 # Compiler flag to generate thread-safe objects.
21172 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21173
21174 # Library versioning type.
21175 version_type=$version_type
21176
21177 # Format of library name prefix.
21178 libname_spec=$lt_libname_spec
21179
21180 # List of archive names.  First name is the real one, the rest are links.
21181 # The last name is the one that the linker finds with -lNAME.
21182 library_names_spec=$lt_library_names_spec
21183
21184 # The coded name of the library, if different from the real name.
21185 soname_spec=$lt_soname_spec
21186
21187 # Commands used to build and install an old-style archive.
21188 RANLIB=$lt_RANLIB
21189 old_archive_cmds=$lt_old_archive_cmds_CXX
21190 old_postinstall_cmds=$lt_old_postinstall_cmds
21191 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21192
21193 # Create an old-style archive from a shared archive.
21194 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21195
21196 # Create a temporary old-style archive to link instead of a shared archive.
21197 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21198
21199 # Commands used to build and install a shared archive.
21200 archive_cmds=$lt_archive_cmds_CXX
21201 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21202 postinstall_cmds=$lt_postinstall_cmds
21203 postuninstall_cmds=$lt_postuninstall_cmds
21204
21205 # Commands used to build a loadable module (assumed same as above if empty)
21206 module_cmds=$lt_module_cmds_CXX
21207 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21208
21209 # Commands to strip libraries.
21210 old_striplib=$lt_old_striplib
21211 striplib=$lt_striplib
21212
21213 # Dependencies to place before the objects being linked to create a
21214 # shared library.
21215 predep_objects=$lt_predep_objects_CXX
21216
21217 # Dependencies to place after the objects being linked to create a
21218 # shared library.
21219 postdep_objects=$lt_postdep_objects_CXX
21220
21221 # Dependencies to place before the objects being linked to create a
21222 # shared library.
21223 predeps=$lt_predeps_CXX
21224
21225 # Dependencies to place after the objects being linked to create a
21226 # shared library.
21227 postdeps=$lt_postdeps_CXX
21228
21229 # The library search path used internally by the compiler when linking
21230 # a shared library.
21231 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21232
21233 # Method to check whether dependent libraries are shared objects.
21234 deplibs_check_method=$lt_deplibs_check_method
21235
21236 # Command to use when deplibs_check_method == file_magic.
21237 file_magic_cmd=$lt_file_magic_cmd
21238
21239 # Flag that allows shared libraries with undefined symbols to be built.
21240 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21241
21242 # Flag that forces no undefined symbols.
21243 no_undefined_flag=$lt_no_undefined_flag_CXX
21244
21245 # Commands used to finish a libtool library installation in a directory.
21246 finish_cmds=$lt_finish_cmds
21247
21248 # Same as above, but a single script fragment to be evaled but not shown.
21249 finish_eval=$lt_finish_eval
21250
21251 # Take the output of nm and produce a listing of raw symbols and C names.
21252 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21253
21254 # Transform the output of nm in a proper C declaration
21255 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21256
21257 # Transform the output of nm in a C name address pair
21258 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21259
21260 # This is the shared library runtime path variable.
21261 runpath_var=$runpath_var
21262
21263 # This is the shared library path variable.
21264 shlibpath_var=$shlibpath_var
21265
21266 # Is shlibpath searched before the hard-coded library search path?
21267 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21268
21269 # How to hardcode a shared library path into an executable.
21270 hardcode_action=$hardcode_action_CXX
21271
21272 # Whether we should hardcode library paths into libraries.
21273 hardcode_into_libs=$hardcode_into_libs
21274
21275 # Flag to hardcode \$libdir into a binary during linking.
21276 # This must work even if \$libdir does not exist.
21277 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21278
21279 # If ld is used when linking, flag to hardcode \$libdir into
21280 # a binary during linking. This must work even if \$libdir does
21281 # not exist.
21282 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21283
21284 # Whether we need a single -rpath flag with a separated argument.
21285 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21286
21287 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21288 # resulting binary.
21289 hardcode_direct=$hardcode_direct_CXX
21290
21291 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21292 # resulting binary.
21293 hardcode_minus_L=$hardcode_minus_L_CXX
21294
21295 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21296 # the resulting binary.
21297 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21298
21299 # Set to yes if building a shared library automatically hardcodes DIR into the library
21300 # and all subsequent libraries and executables linked against it.
21301 hardcode_automatic=$hardcode_automatic_CXX
21302
21303 # Variables whose values should be saved in libtool wrapper scripts and
21304 # restored at relink time.
21305 variables_saved_for_relink="$variables_saved_for_relink"
21306
21307 # Whether libtool must link a program against all its dependency libraries.
21308 link_all_deplibs=$link_all_deplibs_CXX
21309
21310 # Compile-time system search path for libraries
21311 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21312
21313 # Run-time system search path for libraries
21314 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21315
21316 # Fix the shell variable \$srcfile for the compiler.
21317 fix_srcfile_path="$fix_srcfile_path_CXX"
21318
21319 # Set to yes if exported symbols are required.
21320 always_export_symbols=$always_export_symbols_CXX
21321
21322 # The commands to list exported symbols.
21323 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21324
21325 # The commands to extract the exported symbol list from a shared archive.
21326 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21327
21328 # Symbols that should not be listed in the preloaded symbols.
21329 exclude_expsyms=$lt_exclude_expsyms_CXX
21330
21331 # Symbols that must always be exported.
21332 include_expsyms=$lt_include_expsyms_CXX
21333
21334 # ### END LIBTOOL TAG CONFIG: $tagname
21335
21336 __EOF__
21337
21338
21339 else
21340   # If there is no Makefile yet, we rely on a make rule to execute
21341   # `config.status --recheck' to rerun these tests and create the
21342   # libtool script then.
21343   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21344   if test -f "$ltmain_in"; then
21345     test -f Makefile && make "$ltmain"
21346   fi
21347 fi
21348
21349
21350 ac_ext=c
21351 ac_cpp='$CPP $CPPFLAGS'
21352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21355
21356 CC=$lt_save_CC
21357 LDCXX=$LD
21358 LD=$lt_save_LD
21359 GCC=$lt_save_GCC
21360 with_gnu_ldcxx=$with_gnu_ld
21361 with_gnu_ld=$lt_save_with_gnu_ld
21362 lt_cv_path_LDCXX=$lt_cv_path_LD
21363 lt_cv_path_LD=$lt_save_path_LD
21364 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21365 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21366
21367         else
21368           tagname=""
21369         fi
21370         ;;
21371
21372       F77)
21373         if test -n "$F77" && test "X$F77" != "Xno"; then
21374
21375 ac_ext=f
21376 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21377 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21378 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21379
21380
21381 archive_cmds_need_lc_F77=no
21382 allow_undefined_flag_F77=
21383 always_export_symbols_F77=no
21384 archive_expsym_cmds_F77=
21385 export_dynamic_flag_spec_F77=
21386 hardcode_direct_F77=no
21387 hardcode_libdir_flag_spec_F77=
21388 hardcode_libdir_flag_spec_ld_F77=
21389 hardcode_libdir_separator_F77=
21390 hardcode_minus_L_F77=no
21391 hardcode_automatic_F77=no
21392 module_cmds_F77=
21393 module_expsym_cmds_F77=
21394 link_all_deplibs_F77=unknown
21395 old_archive_cmds_F77=$old_archive_cmds
21396 no_undefined_flag_F77=
21397 whole_archive_flag_spec_F77=
21398 enable_shared_with_static_runtimes_F77=no
21399
21400 # Source file extension for f77 test sources.
21401 ac_ext=f
21402
21403 # Object file extension for compiled f77 test sources.
21404 objext=o
21405 objext_F77=$objext
21406
21407 # Code to be used in simple compile tests
21408 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21409
21410 # Code to be used in simple link tests
21411 lt_simple_link_test_code="      program t\n      end\n"
21412
21413 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21414
21415 # If no C compiler was specified, use CC.
21416 LTCC=${LTCC-"$CC"}
21417
21418 # If no C compiler flags were specified, use CFLAGS.
21419 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21420
21421 # Allow CC to be a program name with arguments.
21422 compiler=$CC
21423
21424
21425 # save warnings/boilerplate of simple test code
21426 ac_outfile=conftest.$ac_objext
21427 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21428 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21429 _lt_compiler_boilerplate=`cat conftest.err`
21430 $rm conftest*
21431
21432 ac_outfile=conftest.$ac_objext
21433 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21434 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21435 _lt_linker_boilerplate=`cat conftest.err`
21436 $rm conftest*
21437
21438
21439 # Allow CC to be a program name with arguments.
21440 lt_save_CC="$CC"
21441 CC=${F77-"f77"}
21442 compiler=$CC
21443 compiler_F77=$CC
21444 for cc_temp in $compiler""; do
21445   case $cc_temp in
21446     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21447     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21448     \-*) ;;
21449     *) break;;
21450   esac
21451 done
21452 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21453
21454
21455 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21456 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21457 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21458 echo "${ECHO_T}$can_build_shared" >&6; }
21459
21460 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21461 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21462 test "$can_build_shared" = "no" && enable_shared=no
21463
21464 # On AIX, shared libraries and static libraries use the same namespace, and
21465 # are all built from PIC.
21466 case $host_os in
21467 aix3*)
21468   test "$enable_shared" = yes && enable_static=no
21469   if test -n "$RANLIB"; then
21470     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21471     postinstall_cmds='$RANLIB $lib'
21472   fi
21473   ;;
21474 aix4* | aix5*)
21475   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21476     test "$enable_shared" = yes && enable_static=no
21477   fi
21478   ;;
21479 esac
21480 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21481 echo "${ECHO_T}$enable_shared" >&6; }
21482
21483 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21484 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21485 # Make sure either enable_shared or enable_static is yes.
21486 test "$enable_shared" = yes || enable_static=yes
21487 { echo "$as_me:$LINENO: result: $enable_static" >&5
21488 echo "${ECHO_T}$enable_static" >&6; }
21489
21490 GCC_F77="$G77"
21491 LD_F77="$LD"
21492
21493 lt_prog_compiler_wl_F77=
21494 lt_prog_compiler_pic_F77=
21495 lt_prog_compiler_static_F77=
21496
21497 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21498 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21499
21500   if test "$GCC" = yes; then
21501     lt_prog_compiler_wl_F77='-Wl,'
21502     lt_prog_compiler_static_F77='-static'
21503
21504     case $host_os in
21505       aix*)
21506       # All AIX code is PIC.
21507       if test "$host_cpu" = ia64; then
21508         # AIX 5 now supports IA64 processor
21509         lt_prog_compiler_static_F77='-Bstatic'
21510       fi
21511       ;;
21512
21513     amigaos*)
21514       # FIXME: we need at least 68020 code to build shared libraries, but
21515       # adding the `-m68020' flag to GCC prevents building anything better,
21516       # like `-m68040'.
21517       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21518       ;;
21519
21520     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21521       # PIC is the default for these OSes.
21522       ;;
21523
21524     mingw* | pw32* | os2*)
21525       # This hack is so that the source file can tell whether it is being
21526       # built for inclusion in a dll (and should export symbols for example).
21527       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21528       ;;
21529
21530     darwin* | rhapsody*)
21531       # PIC is the default on this platform
21532       # Common symbols not allowed in MH_DYLIB files
21533       lt_prog_compiler_pic_F77='-fno-common'
21534       ;;
21535
21536     interix3*)
21537       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21538       # Instead, we relocate shared libraries at runtime.
21539       ;;
21540
21541     msdosdjgpp*)
21542       # Just because we use GCC doesn't mean we suddenly get shared libraries
21543       # on systems that don't support them.
21544       lt_prog_compiler_can_build_shared_F77=no
21545       enable_shared=no
21546       ;;
21547
21548     sysv4*MP*)
21549       if test -d /usr/nec; then
21550         lt_prog_compiler_pic_F77=-Kconform_pic
21551       fi
21552       ;;
21553
21554     hpux*)
21555       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21556       # not for PA HP-UX.
21557       case $host_cpu in
21558       hppa*64*|ia64*)
21559         # +Z the default
21560         ;;
21561       *)
21562         lt_prog_compiler_pic_F77='-fPIC'
21563         ;;
21564       esac
21565       ;;
21566
21567     *)
21568       lt_prog_compiler_pic_F77='-fPIC'
21569       ;;
21570     esac
21571   else
21572     # PORTME Check for flag to pass linker flags through the system compiler.
21573     case $host_os in
21574     aix*)
21575       lt_prog_compiler_wl_F77='-Wl,'
21576       if test "$host_cpu" = ia64; then
21577         # AIX 5 now supports IA64 processor
21578         lt_prog_compiler_static_F77='-Bstatic'
21579       else
21580         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21581       fi
21582       ;;
21583       darwin*)
21584         # PIC is the default on this platform
21585         # Common symbols not allowed in MH_DYLIB files
21586        case $cc_basename in
21587          xlc*)
21588          lt_prog_compiler_pic_F77='-qnocommon'
21589          lt_prog_compiler_wl_F77='-Wl,'
21590          ;;
21591        esac
21592        ;;
21593
21594     mingw* | pw32* | os2*)
21595       # This hack is so that the source file can tell whether it is being
21596       # built for inclusion in a dll (and should export symbols for example).
21597       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21598       ;;
21599
21600     hpux9* | hpux10* | hpux11*)
21601       lt_prog_compiler_wl_F77='-Wl,'
21602       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21603       # not for PA HP-UX.
21604       case $host_cpu in
21605       hppa*64*|ia64*)
21606         # +Z the default
21607         ;;
21608       *)
21609         lt_prog_compiler_pic_F77='+Z'
21610         ;;
21611       esac
21612       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21613       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21614       ;;
21615
21616     irix5* | irix6* | nonstopux*)
21617       lt_prog_compiler_wl_F77='-Wl,'
21618       # PIC (with -KPIC) is the default.
21619       lt_prog_compiler_static_F77='-non_shared'
21620       ;;
21621
21622     newsos6)
21623       lt_prog_compiler_pic_F77='-KPIC'
21624       lt_prog_compiler_static_F77='-Bstatic'
21625       ;;
21626
21627     linux*)
21628       case $cc_basename in
21629       icc* | ecc*)
21630         lt_prog_compiler_wl_F77='-Wl,'
21631         lt_prog_compiler_pic_F77='-KPIC'
21632         lt_prog_compiler_static_F77='-static'
21633         ;;
21634       pgcc* | pgf77* | pgf90* | pgf95*)
21635         # Portland Group compilers (*not* the Pentium gcc compiler,
21636         # which looks to be a dead project)
21637         lt_prog_compiler_wl_F77='-Wl,'
21638         lt_prog_compiler_pic_F77='-fpic'
21639         lt_prog_compiler_static_F77='-Bstatic'
21640         ;;
21641       ccc*)
21642         lt_prog_compiler_wl_F77='-Wl,'
21643         # All Alpha code is PIC.
21644         lt_prog_compiler_static_F77='-non_shared'
21645         ;;
21646       esac
21647       ;;
21648
21649     osf3* | osf4* | osf5*)
21650       lt_prog_compiler_wl_F77='-Wl,'
21651       # All OSF/1 code is PIC.
21652       lt_prog_compiler_static_F77='-non_shared'
21653       ;;
21654
21655     solaris*)
21656       lt_prog_compiler_pic_F77='-KPIC'
21657       lt_prog_compiler_static_F77='-Bstatic'
21658       case $cc_basename in
21659       f77* | f90* | f95*)
21660         lt_prog_compiler_wl_F77='-Qoption ld ';;
21661       *)
21662         lt_prog_compiler_wl_F77='-Wl,';;
21663       esac
21664       ;;
21665
21666     sunos4*)
21667       lt_prog_compiler_wl_F77='-Qoption ld '
21668       lt_prog_compiler_pic_F77='-PIC'
21669       lt_prog_compiler_static_F77='-Bstatic'
21670       ;;
21671
21672     sysv4 | sysv4.2uw2* | sysv4.3*)
21673       lt_prog_compiler_wl_F77='-Wl,'
21674       lt_prog_compiler_pic_F77='-KPIC'
21675       lt_prog_compiler_static_F77='-Bstatic'
21676       ;;
21677
21678     sysv4*MP*)
21679       if test -d /usr/nec ;then
21680         lt_prog_compiler_pic_F77='-Kconform_pic'
21681         lt_prog_compiler_static_F77='-Bstatic'
21682       fi
21683       ;;
21684
21685     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21686       lt_prog_compiler_wl_F77='-Wl,'
21687       lt_prog_compiler_pic_F77='-KPIC'
21688       lt_prog_compiler_static_F77='-Bstatic'
21689       ;;
21690
21691     unicos*)
21692       lt_prog_compiler_wl_F77='-Wl,'
21693       lt_prog_compiler_can_build_shared_F77=no
21694       ;;
21695
21696     uts4*)
21697       lt_prog_compiler_pic_F77='-pic'
21698       lt_prog_compiler_static_F77='-Bstatic'
21699       ;;
21700
21701     *)
21702       lt_prog_compiler_can_build_shared_F77=no
21703       ;;
21704     esac
21705   fi
21706
21707 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21708 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21709
21710 #
21711 # Check to make sure the PIC flag actually works.
21712 #
21713 if test -n "$lt_prog_compiler_pic_F77"; then
21714
21715 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21716 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21717 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21718   echo $ECHO_N "(cached) $ECHO_C" >&6
21719 else
21720   lt_prog_compiler_pic_works_F77=no
21721   ac_outfile=conftest.$ac_objext
21722    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21723    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21724    # Insert the option either (1) after the last *FLAGS variable, or
21725    # (2) before a word containing "conftest.", or (3) at the end.
21726    # Note that $ac_compile itself does not contain backslashes and begins
21727    # with a dollar sign (not a hyphen), so the echo should work correctly.
21728    # The option is referenced via a variable to avoid confusing sed.
21729    lt_compile=`echo "$ac_compile" | $SED \
21730    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21731    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21732    -e 's:$: $lt_compiler_flag:'`
21733    (eval echo "\"\$as_me:21733: $lt_compile\"" >&5)
21734    (eval "$lt_compile" 2>conftest.err)
21735    ac_status=$?
21736    cat conftest.err >&5
21737    echo "$as_me:21737: \$? = $ac_status" >&5
21738    if (exit $ac_status) && test -s "$ac_outfile"; then
21739      # The compiler can only warn and ignore the option if not recognized
21740      # So say no if there are warnings other than the usual output.
21741      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21742      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21743      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21744        lt_prog_compiler_pic_works_F77=yes
21745      fi
21746    fi
21747    $rm conftest*
21748
21749 fi
21750 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21751 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21752
21753 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21754     case $lt_prog_compiler_pic_F77 in
21755      "" | " "*) ;;
21756      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21757      esac
21758 else
21759     lt_prog_compiler_pic_F77=
21760      lt_prog_compiler_can_build_shared_F77=no
21761 fi
21762
21763 fi
21764 case $host_os in
21765   # For platforms which do not support PIC, -DPIC is meaningless:
21766   *djgpp*)
21767     lt_prog_compiler_pic_F77=
21768     ;;
21769   *)
21770     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21771     ;;
21772 esac
21773
21774 #
21775 # Check to make sure the static flag actually works.
21776 #
21777 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21778 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21779 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21780 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21781   echo $ECHO_N "(cached) $ECHO_C" >&6
21782 else
21783   lt_prog_compiler_static_works_F77=no
21784    save_LDFLAGS="$LDFLAGS"
21785    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21786    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21787    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21788      # The linker can only warn and ignore the option if not recognized
21789      # So say no if there are warnings
21790      if test -s conftest.err; then
21791        # Append any errors to the config.log.
21792        cat conftest.err 1>&5
21793        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21794        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21795        if diff conftest.exp conftest.er2 >/dev/null; then
21796          lt_prog_compiler_static_works_F77=yes
21797        fi
21798      else
21799        lt_prog_compiler_static_works_F77=yes
21800      fi
21801    fi
21802    $rm conftest*
21803    LDFLAGS="$save_LDFLAGS"
21804
21805 fi
21806 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21807 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21808
21809 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21810     :
21811 else
21812     lt_prog_compiler_static_F77=
21813 fi
21814
21815
21816 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21817 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21818 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21819   echo $ECHO_N "(cached) $ECHO_C" >&6
21820 else
21821   lt_cv_prog_compiler_c_o_F77=no
21822    $rm -r conftest 2>/dev/null
21823    mkdir conftest
21824    cd conftest
21825    mkdir out
21826    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21827
21828    lt_compiler_flag="-o out/conftest2.$ac_objext"
21829    # Insert the option either (1) after the last *FLAGS variable, or
21830    # (2) before a word containing "conftest.", or (3) at the end.
21831    # Note that $ac_compile itself does not contain backslashes and begins
21832    # with a dollar sign (not a hyphen), so the echo should work correctly.
21833    lt_compile=`echo "$ac_compile" | $SED \
21834    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21835    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21836    -e 's:$: $lt_compiler_flag:'`
21837    (eval echo "\"\$as_me:21837: $lt_compile\"" >&5)
21838    (eval "$lt_compile" 2>out/conftest.err)
21839    ac_status=$?
21840    cat out/conftest.err >&5
21841    echo "$as_me:21841: \$? = $ac_status" >&5
21842    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21843    then
21844      # The compiler can only warn and ignore the option if not recognized
21845      # So say no if there are warnings
21846      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21847      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21848      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21849        lt_cv_prog_compiler_c_o_F77=yes
21850      fi
21851    fi
21852    chmod u+w . 2>&5
21853    $rm conftest*
21854    # SGI C++ compiler will create directory out/ii_files/ for
21855    # template instantiation
21856    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21857    $rm out/* && rmdir out
21858    cd ..
21859    rmdir conftest
21860    $rm conftest*
21861
21862 fi
21863 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21864 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21865
21866
21867 hard_links="nottested"
21868 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21869   # do not overwrite the value of need_locks provided by the user
21870   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21871 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21872   hard_links=yes
21873   $rm conftest*
21874   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21875   touch conftest.a
21876   ln conftest.a conftest.b 2>&5 || hard_links=no
21877   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21878   { echo "$as_me:$LINENO: result: $hard_links" >&5
21879 echo "${ECHO_T}$hard_links" >&6; }
21880   if test "$hard_links" = no; then
21881     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21882 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21883     need_locks=warn
21884   fi
21885 else
21886   need_locks=no
21887 fi
21888
21889 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21890 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21891
21892   runpath_var=
21893   allow_undefined_flag_F77=
21894   enable_shared_with_static_runtimes_F77=no
21895   archive_cmds_F77=
21896   archive_expsym_cmds_F77=
21897   old_archive_From_new_cmds_F77=
21898   old_archive_from_expsyms_cmds_F77=
21899   export_dynamic_flag_spec_F77=
21900   whole_archive_flag_spec_F77=
21901   thread_safe_flag_spec_F77=
21902   hardcode_libdir_flag_spec_F77=
21903   hardcode_libdir_flag_spec_ld_F77=
21904   hardcode_libdir_separator_F77=
21905   hardcode_direct_F77=no
21906   hardcode_minus_L_F77=no
21907   hardcode_shlibpath_var_F77=unsupported
21908   link_all_deplibs_F77=unknown
21909   hardcode_automatic_F77=no
21910   module_cmds_F77=
21911   module_expsym_cmds_F77=
21912   always_export_symbols_F77=no
21913   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21914   # include_expsyms should be a list of space-separated symbols to be *always*
21915   # included in the symbol list
21916   include_expsyms_F77=
21917   # exclude_expsyms can be an extended regexp of symbols to exclude
21918   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21919   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21920   # as well as any symbol that contains `d'.
21921   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21922   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21923   # platforms (ab)use it in PIC code, but their linkers get confused if
21924   # the symbol is explicitly referenced.  Since portable code cannot
21925   # rely on this symbol name, it's probably fine to never include it in
21926   # preloaded symbol tables.
21927   extract_expsyms_cmds=
21928   # Just being paranoid about ensuring that cc_basename is set.
21929   for cc_temp in $compiler""; do
21930   case $cc_temp in
21931     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21932     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21933     \-*) ;;
21934     *) break;;
21935   esac
21936 done
21937 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21938
21939   case $host_os in
21940   cygwin* | mingw* | pw32*)
21941     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21942     # When not using gcc, we currently assume that we are using
21943     # Microsoft Visual C++.
21944     if test "$GCC" != yes; then
21945       with_gnu_ld=no
21946     fi
21947     ;;
21948   interix*)
21949     # we just hope/assume this is gcc and not c89 (= MSVC++)
21950     with_gnu_ld=yes
21951     ;;
21952   openbsd*)
21953     with_gnu_ld=no
21954     ;;
21955   esac
21956
21957   ld_shlibs_F77=yes
21958   if test "$with_gnu_ld" = yes; then
21959     # If archive_cmds runs LD, not CC, wlarc should be empty
21960     wlarc='${wl}'
21961
21962     # Set some defaults for GNU ld with shared library support. These
21963     # are reset later if shared libraries are not supported. Putting them
21964     # here allows them to be overridden if necessary.
21965     runpath_var=LD_RUN_PATH
21966     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21967     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21968     # ancient GNU ld didn't support --whole-archive et. al.
21969     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21970         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21971       else
21972         whole_archive_flag_spec_F77=
21973     fi
21974     supports_anon_versioning=no
21975     case `$LD -v 2>/dev/null` in
21976       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21977       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21978       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21979       *\ 2.11.*) ;; # other 2.11 versions
21980       *) supports_anon_versioning=yes ;;
21981     esac
21982
21983     # See if GNU ld supports shared libraries.
21984     case $host_os in
21985     aix3* | aix4* | aix5*)
21986       # On AIX/PPC, the GNU linker is very broken
21987       if test "$host_cpu" != ia64; then
21988         ld_shlibs_F77=no
21989         cat <<EOF 1>&2
21990
21991 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21992 *** to be unable to reliably create shared libraries on AIX.
21993 *** Therefore, libtool is disabling shared libraries support.  If you
21994 *** really care for shared libraries, you may want to modify your PATH
21995 *** so that a non-GNU linker is found, and then restart.
21996
21997 EOF
21998       fi
21999       ;;
22000
22001     amigaos*)
22002       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)'
22003       hardcode_libdir_flag_spec_F77='-L$libdir'
22004       hardcode_minus_L_F77=yes
22005
22006       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22007       # that the semantics of dynamic libraries on AmigaOS, at least up
22008       # to version 4, is to share data among multiple programs linked
22009       # with the same dynamic library.  Since this doesn't match the
22010       # behavior of shared libraries on other platforms, we can't use
22011       # them.
22012       ld_shlibs_F77=no
22013       ;;
22014
22015     beos*)
22016       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22017         allow_undefined_flag_F77=unsupported
22018         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22019         # support --undefined.  This deserves some investigation.  FIXME
22020         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22021       else
22022         ld_shlibs_F77=no
22023       fi
22024       ;;
22025
22026     cygwin* | mingw* | pw32*)
22027       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22028       # as there is no search path for DLLs.
22029       hardcode_libdir_flag_spec_F77='-L$libdir'
22030       allow_undefined_flag_F77=unsupported
22031       always_export_symbols_F77=no
22032       enable_shared_with_static_runtimes_F77=yes
22033       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22034
22035       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22036         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22037         # If the export-symbols file already is a .def file (1st line
22038         # is EXPORTS), use it as is; otherwise, prepend...
22039         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22040           cp $export_symbols $output_objdir/$soname.def;
22041         else
22042           echo EXPORTS > $output_objdir/$soname.def;
22043           cat $export_symbols >> $output_objdir/$soname.def;
22044         fi~
22045         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22046       else
22047         ld_shlibs_F77=no
22048       fi
22049       ;;
22050
22051     interix3*)
22052       hardcode_direct_F77=no
22053       hardcode_shlibpath_var_F77=no
22054       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22055       export_dynamic_flag_spec_F77='${wl}-E'
22056       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22057       # Instead, shared libraries are loaded at an image base (0x10000000 by
22058       # default) and relocated if they conflict, which is a slow very memory
22059       # consuming and fragmenting process.  To avoid this, we pick a random,
22060       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22061       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22062       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'
22063       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'
22064       ;;
22065
22066     linux*)
22067       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22068         tmp_addflag=
22069         case $cc_basename,$host_cpu in
22070         pgcc*)                          # Portland Group C compiler
22071           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'
22072           tmp_addflag=' $pic_flag'
22073           ;;
22074         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22075           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'
22076           tmp_addflag=' $pic_flag -Mnomain' ;;
22077         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22078           tmp_addflag=' -i_dynamic' ;;
22079         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22080           tmp_addflag=' -i_dynamic -nofor_main' ;;
22081         ifc* | ifort*)                  # Intel Fortran compiler
22082           tmp_addflag=' -nofor_main' ;;
22083         esac
22084         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22085
22086         if test $supports_anon_versioning = yes; then
22087           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22088   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22089   $echo "local: *; };" >> $output_objdir/$libname.ver~
22090           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22091         fi
22092       else
22093         ld_shlibs_F77=no
22094       fi
22095       ;;
22096
22097     netbsd*)
22098       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22099         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22100         wlarc=
22101       else
22102         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22103         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22104       fi
22105       ;;
22106
22107     solaris*)
22108       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22109         ld_shlibs_F77=no
22110         cat <<EOF 1>&2
22111
22112 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22113 *** create shared libraries on Solaris systems.  Therefore, libtool
22114 *** is disabling shared libraries support.  We urge you to upgrade GNU
22115 *** binutils to release 2.9.1 or newer.  Another option is to modify
22116 *** your PATH or compiler configuration so that the native linker is
22117 *** used, and then restart.
22118
22119 EOF
22120       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22121         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22122         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22123       else
22124         ld_shlibs_F77=no
22125       fi
22126       ;;
22127
22128     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22129       case `$LD -v 2>&1` in
22130         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22131         ld_shlibs_F77=no
22132         cat <<_LT_EOF 1>&2
22133
22134 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22135 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22136 *** is disabling shared libraries support.  We urge you to upgrade GNU
22137 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22138 *** your PATH or compiler configuration so that the native linker is
22139 *** used, and then restart.
22140
22141 _LT_EOF
22142         ;;
22143         *)
22144           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22145             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22146             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22147             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22148           else
22149             ld_shlibs_F77=no
22150           fi
22151         ;;
22152       esac
22153       ;;
22154
22155     sunos4*)
22156       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22157       wlarc=
22158       hardcode_direct_F77=yes
22159       hardcode_shlibpath_var_F77=no
22160       ;;
22161
22162     *)
22163       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22164         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22165         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22166       else
22167         ld_shlibs_F77=no
22168       fi
22169       ;;
22170     esac
22171
22172     if test "$ld_shlibs_F77" = no; then
22173       runpath_var=
22174       hardcode_libdir_flag_spec_F77=
22175       export_dynamic_flag_spec_F77=
22176       whole_archive_flag_spec_F77=
22177     fi
22178   else
22179     # PORTME fill in a description of your system's linker (not GNU ld)
22180     case $host_os in
22181     aix3*)
22182       allow_undefined_flag_F77=unsupported
22183       always_export_symbols_F77=yes
22184       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'
22185       # Note: this linker hardcodes the directories in LIBPATH if there
22186       # are no directories specified by -L.
22187       hardcode_minus_L_F77=yes
22188       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22189         # Neither direct hardcoding nor static linking is supported with a
22190         # broken collect2.
22191         hardcode_direct_F77=unsupported
22192       fi
22193       ;;
22194
22195     aix4* | aix5*)
22196       if test "$host_cpu" = ia64; then
22197         # On IA64, the linker does run time linking by default, so we don't
22198         # have to do anything special.
22199         aix_use_runtimelinking=no
22200         exp_sym_flag='-Bexport'
22201         no_entry_flag=""
22202       else
22203         # If we're using GNU nm, then we don't want the "-C" option.
22204         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22205         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22206           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'
22207         else
22208           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'
22209         fi
22210         aix_use_runtimelinking=no
22211
22212         # Test if we are trying to use run time linking or normal
22213         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22214         # need to do runtime linking.
22215         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22216           for ld_flag in $LDFLAGS; do
22217           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22218             aix_use_runtimelinking=yes
22219             break
22220           fi
22221           done
22222           ;;
22223         esac
22224
22225         exp_sym_flag='-bexport'
22226         no_entry_flag='-bnoentry'
22227       fi
22228
22229       # When large executables or shared objects are built, AIX ld can
22230       # have problems creating the table of contents.  If linking a library
22231       # or program results in "error TOC overflow" add -mminimal-toc to
22232       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22233       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22234
22235       archive_cmds_F77=''
22236       hardcode_direct_F77=yes
22237       hardcode_libdir_separator_F77=':'
22238       link_all_deplibs_F77=yes
22239
22240       if test "$GCC" = yes; then
22241         case $host_os in aix4.[012]|aix4.[012].*)
22242         # We only want to do this on AIX 4.2 and lower, the check
22243         # below for broken collect2 doesn't work under 4.3+
22244           collect2name=`${CC} -print-prog-name=collect2`
22245           if test -f "$collect2name" && \
22246            strings "$collect2name" | grep resolve_lib_name >/dev/null
22247           then
22248           # We have reworked collect2
22249           hardcode_direct_F77=yes
22250           else
22251           # We have old collect2
22252           hardcode_direct_F77=unsupported
22253           # It fails to find uninstalled libraries when the uninstalled
22254           # path is not listed in the libpath.  Setting hardcode_minus_L
22255           # to unsupported forces relinking
22256           hardcode_minus_L_F77=yes
22257           hardcode_libdir_flag_spec_F77='-L$libdir'
22258           hardcode_libdir_separator_F77=
22259           fi
22260           ;;
22261         esac
22262         shared_flag='-shared'
22263         if test "$aix_use_runtimelinking" = yes; then
22264           shared_flag="$shared_flag "'${wl}-G'
22265         fi
22266       else
22267         # not using gcc
22268         if test "$host_cpu" = ia64; then
22269         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22270         # chokes on -Wl,-G. The following line is correct:
22271           shared_flag='-G'
22272         else
22273           if test "$aix_use_runtimelinking" = yes; then
22274             shared_flag='${wl}-G'
22275           else
22276             shared_flag='${wl}-bM:SRE'
22277           fi
22278         fi
22279       fi
22280
22281       # It seems that -bexpall does not export symbols beginning with
22282       # underscore (_), so it is better to generate a list of symbols to export.
22283       always_export_symbols_F77=yes
22284       if test "$aix_use_runtimelinking" = yes; then
22285         # Warning - without using the other runtime loading flags (-brtl),
22286         # -berok will link without error, but may produce a broken library.
22287         allow_undefined_flag_F77='-berok'
22288        # Determine the default libpath from the value encoded in an empty executable.
22289        cat >conftest.$ac_ext <<_ACEOF
22290       program main
22291
22292       end
22293 _ACEOF
22294 rm -f conftest.$ac_objext conftest$ac_exeext
22295 if { (ac_try="$ac_link"
22296 case "(($ac_try" in
22297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298   *) ac_try_echo=$ac_try;;
22299 esac
22300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22301   (eval "$ac_link") 2>conftest.er1
22302   ac_status=$?
22303   grep -v '^ *+' conftest.er1 >conftest.err
22304   rm -f conftest.er1
22305   cat conftest.err >&5
22306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307   (exit $ac_status); } &&
22308          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22309   { (case "(($ac_try" in
22310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311   *) ac_try_echo=$ac_try;;
22312 esac
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314   (eval "$ac_try") 2>&5
22315   ac_status=$?
22316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317   (exit $ac_status); }; } &&
22318          { ac_try='test -s conftest$ac_exeext'
22319   { (case "(($ac_try" in
22320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22321   *) ac_try_echo=$ac_try;;
22322 esac
22323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22324   (eval "$ac_try") 2>&5
22325   ac_status=$?
22326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327   (exit $ac_status); }; }; then
22328
22329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22330 }'`
22331 # Check for a 64-bit object if we didn't find anything.
22332 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; }
22333 }'`; fi
22334 else
22335   echo "$as_me: failed program was:" >&5
22336 sed 's/^/| /' conftest.$ac_ext >&5
22337
22338
22339 fi
22340
22341 rm -f core conftest.err conftest.$ac_objext \
22342       conftest$ac_exeext conftest.$ac_ext
22343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22344
22345        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22346         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"
22347        else
22348         if test "$host_cpu" = ia64; then
22349           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22350           allow_undefined_flag_F77="-z nodefs"
22351           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"
22352         else
22353          # Determine the default libpath from the value encoded in an empty executable.
22354          cat >conftest.$ac_ext <<_ACEOF
22355       program main
22356
22357       end
22358 _ACEOF
22359 rm -f conftest.$ac_objext conftest$ac_exeext
22360 if { (ac_try="$ac_link"
22361 case "(($ac_try" in
22362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22363   *) ac_try_echo=$ac_try;;
22364 esac
22365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22366   (eval "$ac_link") 2>conftest.er1
22367   ac_status=$?
22368   grep -v '^ *+' conftest.er1 >conftest.err
22369   rm -f conftest.er1
22370   cat conftest.err >&5
22371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372   (exit $ac_status); } &&
22373          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22374   { (case "(($ac_try" in
22375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22376   *) ac_try_echo=$ac_try;;
22377 esac
22378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22379   (eval "$ac_try") 2>&5
22380   ac_status=$?
22381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382   (exit $ac_status); }; } &&
22383          { ac_try='test -s conftest$ac_exeext'
22384   { (case "(($ac_try" in
22385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22386   *) ac_try_echo=$ac_try;;
22387 esac
22388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389   (eval "$ac_try") 2>&5
22390   ac_status=$?
22391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392   (exit $ac_status); }; }; then
22393
22394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22395 }'`
22396 # Check for a 64-bit object if we didn't find anything.
22397 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; }
22398 }'`; fi
22399 else
22400   echo "$as_me: failed program was:" >&5
22401 sed 's/^/| /' conftest.$ac_ext >&5
22402
22403
22404 fi
22405
22406 rm -f core conftest.err conftest.$ac_objext \
22407       conftest$ac_exeext conftest.$ac_ext
22408 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22409
22410          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22411           # Warning - without using the other run time loading flags,
22412           # -berok will link without error, but may produce a broken library.
22413           no_undefined_flag_F77=' ${wl}-bernotok'
22414           allow_undefined_flag_F77=' ${wl}-berok'
22415           # Exported symbols can be pulled into shared objects from archives
22416           whole_archive_flag_spec_F77='$convenience'
22417           archive_cmds_need_lc_F77=yes
22418           # This is similar to how AIX traditionally builds its shared libraries.
22419           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'
22420         fi
22421       fi
22422       ;;
22423
22424     amigaos*)
22425       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)'
22426       hardcode_libdir_flag_spec_F77='-L$libdir'
22427       hardcode_minus_L_F77=yes
22428       # see comment about different semantics on the GNU ld section
22429       ld_shlibs_F77=no
22430       ;;
22431
22432     bsdi[45]*)
22433       export_dynamic_flag_spec_F77=-rdynamic
22434       ;;
22435
22436     cygwin* | mingw* | pw32*)
22437       # When not using gcc, we currently assume that we are using
22438       # Microsoft Visual C++.
22439       # hardcode_libdir_flag_spec is actually meaningless, as there is
22440       # no search path for DLLs.
22441       hardcode_libdir_flag_spec_F77=' '
22442       allow_undefined_flag_F77=unsupported
22443       # Tell ltmain to make .lib files, not .a files.
22444       libext=lib
22445       # Tell ltmain to make .dll files, not .so files.
22446       shrext_cmds=".dll"
22447       # FIXME: Setting linknames here is a bad hack.
22448       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22449       # The linker will automatically build a .lib file if we build a DLL.
22450       old_archive_From_new_cmds_F77='true'
22451       # FIXME: Should let the user specify the lib program.
22452       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22453       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22454       enable_shared_with_static_runtimes_F77=yes
22455       ;;
22456
22457     darwin* | rhapsody*)
22458       case $host_os in
22459         rhapsody* | darwin1.[012])
22460          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22461          ;;
22462        *) # Darwin 1.3 on
22463          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22464            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22465          else
22466            case ${MACOSX_DEPLOYMENT_TARGET} in
22467              10.[012])
22468                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22469                ;;
22470              10.*)
22471                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22472                ;;
22473            esac
22474          fi
22475          ;;
22476       esac
22477       archive_cmds_need_lc_F77=no
22478       hardcode_direct_F77=no
22479       hardcode_automatic_F77=yes
22480       hardcode_shlibpath_var_F77=unsupported
22481       whole_archive_flag_spec_F77=''
22482       link_all_deplibs_F77=yes
22483     if test "$GCC" = yes ; then
22484         output_verbose_link_cmd='echo'
22485         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22486       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22487       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22488       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}'
22489       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}'
22490     else
22491       case $cc_basename in
22492         xlc*)
22493          output_verbose_link_cmd='echo'
22494          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22495          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22496           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22497          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}'
22498           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}'
22499           ;;
22500        *)
22501          ld_shlibs_F77=no
22502           ;;
22503       esac
22504     fi
22505       ;;
22506
22507     dgux*)
22508       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22509       hardcode_libdir_flag_spec_F77='-L$libdir'
22510       hardcode_shlibpath_var_F77=no
22511       ;;
22512
22513     freebsd1*)
22514       ld_shlibs_F77=no
22515       ;;
22516
22517     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22518     # support.  Future versions do this automatically, but an explicit c++rt0.o
22519     # does not break anything, and helps significantly (at the cost of a little
22520     # extra space).
22521     freebsd2.2*)
22522       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22523       hardcode_libdir_flag_spec_F77='-R$libdir'
22524       hardcode_direct_F77=yes
22525       hardcode_shlibpath_var_F77=no
22526       ;;
22527
22528     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22529     freebsd2*)
22530       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22531       hardcode_direct_F77=yes
22532       hardcode_minus_L_F77=yes
22533       hardcode_shlibpath_var_F77=no
22534       ;;
22535
22536     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22537     freebsd* | kfreebsd*-gnu | dragonfly*)
22538       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22539       hardcode_libdir_flag_spec_F77='-R$libdir'
22540       hardcode_direct_F77=yes
22541       hardcode_shlibpath_var_F77=no
22542       ;;
22543
22544     hpux9*)
22545       if test "$GCC" = yes; then
22546         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'
22547       else
22548         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'
22549       fi
22550       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22551       hardcode_libdir_separator_F77=:
22552       hardcode_direct_F77=yes
22553
22554       # hardcode_minus_L: Not really in the search PATH,
22555       # but as the default location of the library.
22556       hardcode_minus_L_F77=yes
22557       export_dynamic_flag_spec_F77='${wl}-E'
22558       ;;
22559
22560     hpux10*)
22561       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22562         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22563       else
22564         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22565       fi
22566       if test "$with_gnu_ld" = no; then
22567         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22568         hardcode_libdir_separator_F77=:
22569
22570         hardcode_direct_F77=yes
22571         export_dynamic_flag_spec_F77='${wl}-E'
22572
22573         # hardcode_minus_L: Not really in the search PATH,
22574         # but as the default location of the library.
22575         hardcode_minus_L_F77=yes
22576       fi
22577       ;;
22578
22579     hpux11*)
22580       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22581         case $host_cpu in
22582         hppa*64*)
22583           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22584           ;;
22585         ia64*)
22586           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22587           ;;
22588         *)
22589           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22590           ;;
22591         esac
22592       else
22593         case $host_cpu in
22594         hppa*64*)
22595           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22596           ;;
22597         ia64*)
22598           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22599           ;;
22600         *)
22601           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22602           ;;
22603         esac
22604       fi
22605       if test "$with_gnu_ld" = no; then
22606         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22607         hardcode_libdir_separator_F77=:
22608
22609         case $host_cpu in
22610         hppa*64*|ia64*)
22611           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22612           hardcode_direct_F77=no
22613           hardcode_shlibpath_var_F77=no
22614           ;;
22615         *)
22616           hardcode_direct_F77=yes
22617           export_dynamic_flag_spec_F77='${wl}-E'
22618
22619           # hardcode_minus_L: Not really in the search PATH,
22620           # but as the default location of the library.
22621           hardcode_minus_L_F77=yes
22622           ;;
22623         esac
22624       fi
22625       ;;
22626
22627     irix5* | irix6* | nonstopux*)
22628       if test "$GCC" = yes; then
22629         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'
22630       else
22631         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'
22632         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22633       fi
22634       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22635       hardcode_libdir_separator_F77=:
22636       link_all_deplibs_F77=yes
22637       ;;
22638
22639     netbsd*)
22640       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22641         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22642       else
22643         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22644       fi
22645       hardcode_libdir_flag_spec_F77='-R$libdir'
22646       hardcode_direct_F77=yes
22647       hardcode_shlibpath_var_F77=no
22648       ;;
22649
22650     newsos6)
22651       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22652       hardcode_direct_F77=yes
22653       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22654       hardcode_libdir_separator_F77=:
22655       hardcode_shlibpath_var_F77=no
22656       ;;
22657
22658     openbsd*)
22659       hardcode_direct_F77=yes
22660       hardcode_shlibpath_var_F77=no
22661       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22662         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22663         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22664         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22665         export_dynamic_flag_spec_F77='${wl}-E'
22666       else
22667        case $host_os in
22668          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22669            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22670            hardcode_libdir_flag_spec_F77='-R$libdir'
22671            ;;
22672          *)
22673            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22674            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22675            ;;
22676        esac
22677       fi
22678       ;;
22679
22680     os2*)
22681       hardcode_libdir_flag_spec_F77='-L$libdir'
22682       hardcode_minus_L_F77=yes
22683       allow_undefined_flag_F77=unsupported
22684       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'
22685       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22686       ;;
22687
22688     osf3*)
22689       if test "$GCC" = yes; then
22690         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22691         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'
22692       else
22693         allow_undefined_flag_F77=' -expect_unresolved \*'
22694         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'
22695       fi
22696       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22697       hardcode_libdir_separator_F77=:
22698       ;;
22699
22700     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22701       if test "$GCC" = yes; then
22702         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22703         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'
22704         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22705       else
22706         allow_undefined_flag_F77=' -expect_unresolved \*'
22707         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'
22708         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~
22709         $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'
22710
22711         # Both c and cxx compiler support -rpath directly
22712         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22713       fi
22714       hardcode_libdir_separator_F77=:
22715       ;;
22716
22717     solaris*)
22718       no_undefined_flag_F77=' -z text'
22719       if test "$GCC" = yes; then
22720         wlarc='${wl}'
22721         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22722         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22723           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22724       else
22725         wlarc=''
22726         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22727         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22728         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22729       fi
22730       hardcode_libdir_flag_spec_F77='-R$libdir'
22731       hardcode_shlibpath_var_F77=no
22732       case $host_os in
22733       solaris2.[0-5] | solaris2.[0-5].*) ;;
22734       *)
22735         # The compiler driver will combine linker options so we
22736         # cannot just pass the convience library names through
22737         # without $wl, iff we do not link with $LD.
22738         # Luckily, gcc supports the same syntax we need for Sun Studio.
22739         # Supported since Solaris 2.6 (maybe 2.5.1?)
22740         case $wlarc in
22741         '')
22742           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22743         *)
22744           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' ;;
22745         esac ;;
22746       esac
22747       link_all_deplibs_F77=yes
22748       ;;
22749
22750     sunos4*)
22751       if test "x$host_vendor" = xsequent; then
22752         # Use $CC to link under sequent, because it throws in some extra .o
22753         # files that make .init and .fini sections work.
22754         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22755       else
22756         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22757       fi
22758       hardcode_libdir_flag_spec_F77='-L$libdir'
22759       hardcode_direct_F77=yes
22760       hardcode_minus_L_F77=yes
22761       hardcode_shlibpath_var_F77=no
22762       ;;
22763
22764     sysv4)
22765       case $host_vendor in
22766         sni)
22767           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22768           hardcode_direct_F77=yes # is this really true???
22769         ;;
22770         siemens)
22771           ## LD is ld it makes a PLAMLIB
22772           ## CC just makes a GrossModule.
22773           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22774           reload_cmds_F77='$CC -r -o $output$reload_objs'
22775           hardcode_direct_F77=no
22776         ;;
22777         motorola)
22778           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22779           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22780         ;;
22781       esac
22782       runpath_var='LD_RUN_PATH'
22783       hardcode_shlibpath_var_F77=no
22784       ;;
22785
22786     sysv4.3*)
22787       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22788       hardcode_shlibpath_var_F77=no
22789       export_dynamic_flag_spec_F77='-Bexport'
22790       ;;
22791
22792     sysv4*MP*)
22793       if test -d /usr/nec; then
22794         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22795         hardcode_shlibpath_var_F77=no
22796         runpath_var=LD_RUN_PATH
22797         hardcode_runpath_var=yes
22798         ld_shlibs_F77=yes
22799       fi
22800       ;;
22801
22802     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22803       no_undefined_flag_F77='${wl}-z,text'
22804       archive_cmds_need_lc_F77=no
22805       hardcode_shlibpath_var_F77=no
22806       runpath_var='LD_RUN_PATH'
22807
22808       if test "$GCC" = yes; then
22809         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22810         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22811       else
22812         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22813         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22814       fi
22815       ;;
22816
22817     sysv5* | sco3.2v5* | sco5v6*)
22818       # Note: We can NOT use -z defs as we might desire, because we do not
22819       # link with -lc, and that would cause any symbols used from libc to
22820       # always be unresolved, which means just about no library would
22821       # ever link correctly.  If we're not using GNU ld we use -z text
22822       # though, which does catch some bad symbols but isn't as heavy-handed
22823       # as -z defs.
22824       no_undefined_flag_F77='${wl}-z,text'
22825       allow_undefined_flag_F77='${wl}-z,nodefs'
22826       archive_cmds_need_lc_F77=no
22827       hardcode_shlibpath_var_F77=no
22828       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22829       hardcode_libdir_separator_F77=':'
22830       link_all_deplibs_F77=yes
22831       export_dynamic_flag_spec_F77='${wl}-Bexport'
22832       runpath_var='LD_RUN_PATH'
22833
22834       if test "$GCC" = yes; then
22835         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22836         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22837       else
22838         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22839         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22840       fi
22841       ;;
22842
22843     uts4*)
22844       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22845       hardcode_libdir_flag_spec_F77='-L$libdir'
22846       hardcode_shlibpath_var_F77=no
22847       ;;
22848
22849     *)
22850       ld_shlibs_F77=no
22851       ;;
22852     esac
22853   fi
22854
22855 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22856 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22857 test "$ld_shlibs_F77" = no && can_build_shared=no
22858
22859 #
22860 # Do we need to explicitly link libc?
22861 #
22862 case "x$archive_cmds_need_lc_F77" in
22863 x|xyes)
22864   # Assume -lc should be added
22865   archive_cmds_need_lc_F77=yes
22866
22867   if test "$enable_shared" = yes && test "$GCC" = yes; then
22868     case $archive_cmds_F77 in
22869     *'~'*)
22870       # FIXME: we may have to deal with multi-command sequences.
22871       ;;
22872     '$CC '*)
22873       # Test whether the compiler implicitly links with -lc since on some
22874       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22875       # to ld, don't add -lc before -lgcc.
22876       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22877 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22878       $rm conftest*
22879       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22880
22881       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22882   (eval $ac_compile) 2>&5
22883   ac_status=$?
22884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885   (exit $ac_status); } 2>conftest.err; then
22886         soname=conftest
22887         lib=conftest
22888         libobjs=conftest.$ac_objext
22889         deplibs=
22890         wl=$lt_prog_compiler_wl_F77
22891         pic_flag=$lt_prog_compiler_pic_F77
22892         compiler_flags=-v
22893         linker_flags=-v
22894         verstring=
22895         output_objdir=.
22896         libname=conftest
22897         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22898         allow_undefined_flag_F77=
22899         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22900   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22901   ac_status=$?
22902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903   (exit $ac_status); }
22904         then
22905           archive_cmds_need_lc_F77=no
22906         else
22907           archive_cmds_need_lc_F77=yes
22908         fi
22909         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22910       else
22911         cat conftest.err 1>&5
22912       fi
22913       $rm conftest*
22914       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22915 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22916       ;;
22917     esac
22918   fi
22919   ;;
22920 esac
22921
22922 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22923 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22924 library_names_spec=
22925 libname_spec='lib$name'
22926 soname_spec=
22927 shrext_cmds=".so"
22928 postinstall_cmds=
22929 postuninstall_cmds=
22930 finish_cmds=
22931 finish_eval=
22932 shlibpath_var=
22933 shlibpath_overrides_runpath=unknown
22934 version_type=none
22935 dynamic_linker="$host_os ld.so"
22936 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22937 if test "$GCC" = yes; then
22938   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22939   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22940     # if the path contains ";" then we assume it to be the separator
22941     # otherwise default to the standard path separator (i.e. ":") - it is
22942     # assumed that no part of a normal pathname contains ";" but that should
22943     # okay in the real world where ";" in dirpaths is itself problematic.
22944     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22945   else
22946     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22947   fi
22948 else
22949   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22950 fi
22951 need_lib_prefix=unknown
22952 hardcode_into_libs=no
22953
22954 # when you set need_version to no, make sure it does not cause -set_version
22955 # flags to be left without arguments
22956 need_version=unknown
22957
22958 case $host_os in
22959 aix3*)
22960   version_type=linux
22961   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22962   shlibpath_var=LIBPATH
22963
22964   # AIX 3 has no versioning support, so we append a major version to the name.
22965   soname_spec='${libname}${release}${shared_ext}$major'
22966   ;;
22967
22968 aix4* | aix5*)
22969   version_type=linux
22970   need_lib_prefix=no
22971   need_version=no
22972   hardcode_into_libs=yes
22973   if test "$host_cpu" = ia64; then
22974     # AIX 5 supports IA64
22975     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22976     shlibpath_var=LD_LIBRARY_PATH
22977   else
22978     # With GCC up to 2.95.x, collect2 would create an import file
22979     # for dependence libraries.  The import file would start with
22980     # the line `#! .'.  This would cause the generated library to
22981     # depend on `.', always an invalid library.  This was fixed in
22982     # development snapshots of GCC prior to 3.0.
22983     case $host_os in
22984       aix4 | aix4.[01] | aix4.[01].*)
22985       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22986            echo ' yes '
22987            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22988         :
22989       else
22990         can_build_shared=no
22991       fi
22992       ;;
22993     esac
22994     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22995     # soname into executable. Probably we can add versioning support to
22996     # collect2, so additional links can be useful in future.
22997     if test "$aix_use_runtimelinking" = yes; then
22998       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22999       # instead of lib<name>.a to let people know that these are not
23000       # typical AIX shared libraries.
23001       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23002     else
23003       # We preserve .a as extension for shared libraries through AIX4.2
23004       # and later when we are not doing run time linking.
23005       library_names_spec='${libname}${release}.a $libname.a'
23006       soname_spec='${libname}${release}${shared_ext}$major'
23007     fi
23008     shlibpath_var=LIBPATH
23009   fi
23010   ;;
23011
23012 amigaos*)
23013   library_names_spec='$libname.ixlibrary $libname.a'
23014   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23015   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'
23016   ;;
23017
23018 beos*)
23019   library_names_spec='${libname}${shared_ext}'
23020   dynamic_linker="$host_os ld.so"
23021   shlibpath_var=LIBRARY_PATH
23022   ;;
23023
23024 bsdi[45]*)
23025   version_type=linux
23026   need_version=no
23027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23028   soname_spec='${libname}${release}${shared_ext}$major'
23029   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23030   shlibpath_var=LD_LIBRARY_PATH
23031   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23032   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23033   # the default ld.so.conf also contains /usr/contrib/lib and
23034   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23035   # libtool to hard-code these into programs
23036   ;;
23037
23038 cygwin* | mingw* | pw32*)
23039   version_type=windows
23040   shrext_cmds=".dll"
23041   need_version=no
23042   need_lib_prefix=no
23043
23044   case $GCC,$host_os in
23045   yes,cygwin* | yes,mingw* | yes,pw32*)
23046     library_names_spec='$libname.dll.a'
23047     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23048     postinstall_cmds='base_file=`basename \${file}`~
23049       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23050       dldir=$destdir/`dirname \$dlpath`~
23051       test -d \$dldir || mkdir -p \$dldir~
23052       $install_prog $dir/$dlname \$dldir/$dlname~
23053       chmod a+x \$dldir/$dlname'
23054     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23055       dlpath=$dir/\$dldll~
23056        $rm \$dlpath'
23057     shlibpath_overrides_runpath=yes
23058
23059     case $host_os in
23060     cygwin*)
23061       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23062       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23063       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23064       ;;
23065     mingw*)
23066       # MinGW DLLs use traditional 'lib' prefix
23067       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23068       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23069       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23070         # It is most probably a Windows format PATH printed by
23071         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23072         # path with ; separators, and with drive letters. We can handle the
23073         # drive letters (cygwin fileutils understands them), so leave them,
23074         # especially as we might pass files found there to a mingw objdump,
23075         # which wouldn't understand a cygwinified path. Ahh.
23076         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23077       else
23078         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23079       fi
23080       ;;
23081     pw32*)
23082       # pw32 DLLs use 'pw' prefix rather than 'lib'
23083       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23084       ;;
23085     esac
23086     ;;
23087
23088   *)
23089     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23090     ;;
23091   esac
23092   dynamic_linker='Win32 ld.exe'
23093   # FIXME: first we should search . and the directory the executable is in
23094   shlibpath_var=PATH
23095   ;;
23096
23097 darwin* | rhapsody*)
23098   dynamic_linker="$host_os dyld"
23099   version_type=darwin
23100   need_lib_prefix=no
23101   need_version=no
23102   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23103   soname_spec='${libname}${release}${major}$shared_ext'
23104   shlibpath_overrides_runpath=yes
23105   shlibpath_var=DYLD_LIBRARY_PATH
23106   shrext_cmds='.dylib'
23107   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23108   if test "$GCC" = yes; then
23109     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"`
23110   else
23111     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23112   fi
23113   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23114   ;;
23115
23116 dgux*)
23117   version_type=linux
23118   need_lib_prefix=no
23119   need_version=no
23120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23121   soname_spec='${libname}${release}${shared_ext}$major'
23122   shlibpath_var=LD_LIBRARY_PATH
23123   ;;
23124
23125 freebsd1*)
23126   dynamic_linker=no
23127   ;;
23128
23129 kfreebsd*-gnu)
23130   version_type=linux
23131   need_lib_prefix=no
23132   need_version=no
23133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23134   soname_spec='${libname}${release}${shared_ext}$major'
23135   shlibpath_var=LD_LIBRARY_PATH
23136   shlibpath_overrides_runpath=no
23137   hardcode_into_libs=yes
23138   dynamic_linker='GNU ld.so'
23139   ;;
23140
23141 freebsd* | dragonfly*)
23142   # DragonFly does not have aout.  When/if they implement a new
23143   # versioning mechanism, adjust this.
23144   if test -x /usr/bin/objformat; then
23145     objformat=`/usr/bin/objformat`
23146   else
23147     case $host_os in
23148     freebsd[123]*) objformat=aout ;;
23149     *) objformat=elf ;;
23150     esac
23151   fi
23152   version_type=freebsd-$objformat
23153   case $version_type in
23154     freebsd-elf*)
23155       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23156       need_version=no
23157       need_lib_prefix=no
23158       ;;
23159     freebsd-*)
23160       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23161       need_version=yes
23162       ;;
23163   esac
23164   shlibpath_var=LD_LIBRARY_PATH
23165   case $host_os in
23166   freebsd2*)
23167     shlibpath_overrides_runpath=yes
23168     ;;
23169   freebsd3.[01]* | freebsdelf3.[01]*)
23170     shlibpath_overrides_runpath=yes
23171     hardcode_into_libs=yes
23172     ;;
23173   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23174   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23175     shlibpath_overrides_runpath=no
23176     hardcode_into_libs=yes
23177     ;;
23178   freebsd*) # from 4.6 on
23179     shlibpath_overrides_runpath=yes
23180     hardcode_into_libs=yes
23181     ;;
23182   esac
23183   ;;
23184
23185 gnu*)
23186   version_type=linux
23187   need_lib_prefix=no
23188   need_version=no
23189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23190   soname_spec='${libname}${release}${shared_ext}$major'
23191   shlibpath_var=LD_LIBRARY_PATH
23192   hardcode_into_libs=yes
23193   ;;
23194
23195 hpux9* | hpux10* | hpux11*)
23196   # Give a soname corresponding to the major version so that dld.sl refuses to
23197   # link against other versions.
23198   version_type=sunos
23199   need_lib_prefix=no
23200   need_version=no
23201   case $host_cpu in
23202   ia64*)
23203     shrext_cmds='.so'
23204     hardcode_into_libs=yes
23205     dynamic_linker="$host_os dld.so"
23206     shlibpath_var=LD_LIBRARY_PATH
23207     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23208     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23209     soname_spec='${libname}${release}${shared_ext}$major'
23210     if test "X$HPUX_IA64_MODE" = X32; then
23211       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23212     else
23213       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23214     fi
23215     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23216     ;;
23217    hppa*64*)
23218      shrext_cmds='.sl'
23219      hardcode_into_libs=yes
23220      dynamic_linker="$host_os dld.sl"
23221      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23222      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23223      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23224      soname_spec='${libname}${release}${shared_ext}$major'
23225      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23226      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23227      ;;
23228    *)
23229     shrext_cmds='.sl'
23230     dynamic_linker="$host_os dld.sl"
23231     shlibpath_var=SHLIB_PATH
23232     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23233     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23234     soname_spec='${libname}${release}${shared_ext}$major'
23235     ;;
23236   esac
23237   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23238   postinstall_cmds='chmod 555 $lib'
23239   ;;
23240
23241 interix3*)
23242   version_type=linux
23243   need_lib_prefix=no
23244   need_version=no
23245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23246   soname_spec='${libname}${release}${shared_ext}$major'
23247   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23248   shlibpath_var=LD_LIBRARY_PATH
23249   shlibpath_overrides_runpath=no
23250   hardcode_into_libs=yes
23251   ;;
23252
23253 irix5* | irix6* | nonstopux*)
23254   case $host_os in
23255     nonstopux*) version_type=nonstopux ;;
23256     *)
23257         if test "$lt_cv_prog_gnu_ld" = yes; then
23258                 version_type=linux
23259         else
23260                 version_type=irix
23261         fi ;;
23262   esac
23263   need_lib_prefix=no
23264   need_version=no
23265   soname_spec='${libname}${release}${shared_ext}$major'
23266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23267   case $host_os in
23268   irix5* | nonstopux*)
23269     libsuff= shlibsuff=
23270     ;;
23271   *)
23272     case $LD in # libtool.m4 will add one of these switches to LD
23273     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23274       libsuff= shlibsuff= libmagic=32-bit;;
23275     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23276       libsuff=32 shlibsuff=N32 libmagic=N32;;
23277     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23278       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23279     *) libsuff= shlibsuff= libmagic=never-match;;
23280     esac
23281     ;;
23282   esac
23283   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23284   shlibpath_overrides_runpath=no
23285   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23286   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23287   hardcode_into_libs=yes
23288   ;;
23289
23290 # No shared lib support for Linux oldld, aout, or coff.
23291 linux*oldld* | linux*aout* | linux*coff*)
23292   dynamic_linker=no
23293   ;;
23294
23295 # This must be Linux ELF.
23296 linux*)
23297   version_type=linux
23298   need_lib_prefix=no
23299   need_version=no
23300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23301   soname_spec='${libname}${release}${shared_ext}$major'
23302   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23303   shlibpath_var=LD_LIBRARY_PATH
23304   shlibpath_overrides_runpath=no
23305   # This implies no fast_install, which is unacceptable.
23306   # Some rework will be needed to allow for fast_install
23307   # before this can be enabled.
23308   hardcode_into_libs=yes
23309
23310   # Append ld.so.conf contents to the search path
23311   if test -f /etc/ld.so.conf; then
23312     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' ' '`
23313     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23314   fi
23315
23316   # We used to test for /lib/ld.so.1 and disable shared libraries on
23317   # powerpc, because MkLinux only supported shared libraries with the
23318   # GNU dynamic linker.  Since this was broken with cross compilers,
23319   # most powerpc-linux boxes support dynamic linking these days and
23320   # people can always --disable-shared, the test was removed, and we
23321   # assume the GNU/Linux dynamic linker is in use.
23322   dynamic_linker='GNU/Linux ld.so'
23323   ;;
23324
23325 knetbsd*-gnu)
23326   version_type=linux
23327   need_lib_prefix=no
23328   need_version=no
23329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23330   soname_spec='${libname}${release}${shared_ext}$major'
23331   shlibpath_var=LD_LIBRARY_PATH
23332   shlibpath_overrides_runpath=no
23333   hardcode_into_libs=yes
23334   dynamic_linker='GNU ld.so'
23335   ;;
23336
23337 netbsd*)
23338   version_type=sunos
23339   need_lib_prefix=no
23340   need_version=no
23341   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23342     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23343     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23344     dynamic_linker='NetBSD (a.out) ld.so'
23345   else
23346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23347     soname_spec='${libname}${release}${shared_ext}$major'
23348     dynamic_linker='NetBSD ld.elf_so'
23349   fi
23350   shlibpath_var=LD_LIBRARY_PATH
23351   shlibpath_overrides_runpath=yes
23352   hardcode_into_libs=yes
23353   ;;
23354
23355 newsos6)
23356   version_type=linux
23357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23358   shlibpath_var=LD_LIBRARY_PATH
23359   shlibpath_overrides_runpath=yes
23360   ;;
23361
23362 nto-qnx*)
23363   version_type=linux
23364   need_lib_prefix=no
23365   need_version=no
23366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23367   soname_spec='${libname}${release}${shared_ext}$major'
23368   shlibpath_var=LD_LIBRARY_PATH
23369   shlibpath_overrides_runpath=yes
23370   ;;
23371
23372 openbsd*)
23373   version_type=sunos
23374   sys_lib_dlsearch_path_spec="/usr/lib"
23375   need_lib_prefix=no
23376   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23377   case $host_os in
23378     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23379     *)                         need_version=no  ;;
23380   esac
23381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23382   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23383   shlibpath_var=LD_LIBRARY_PATH
23384   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23385     case $host_os in
23386       openbsd2.[89] | openbsd2.[89].*)
23387         shlibpath_overrides_runpath=no
23388         ;;
23389       *)
23390         shlibpath_overrides_runpath=yes
23391         ;;
23392       esac
23393   else
23394     shlibpath_overrides_runpath=yes
23395   fi
23396   ;;
23397
23398 os2*)
23399   libname_spec='$name'
23400   shrext_cmds=".dll"
23401   need_lib_prefix=no
23402   library_names_spec='$libname${shared_ext} $libname.a'
23403   dynamic_linker='OS/2 ld.exe'
23404   shlibpath_var=LIBPATH
23405   ;;
23406
23407 osf3* | osf4* | osf5*)
23408   version_type=osf
23409   need_lib_prefix=no
23410   need_version=no
23411   soname_spec='${libname}${release}${shared_ext}$major'
23412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23413   shlibpath_var=LD_LIBRARY_PATH
23414   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23415   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23416   ;;
23417
23418 solaris*)
23419   version_type=linux
23420   need_lib_prefix=no
23421   need_version=no
23422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23423   soname_spec='${libname}${release}${shared_ext}$major'
23424   shlibpath_var=LD_LIBRARY_PATH
23425   shlibpath_overrides_runpath=yes
23426   hardcode_into_libs=yes
23427   # ldd complains unless libraries are executable
23428   postinstall_cmds='chmod +x $lib'
23429   ;;
23430
23431 sunos4*)
23432   version_type=sunos
23433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23434   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23435   shlibpath_var=LD_LIBRARY_PATH
23436   shlibpath_overrides_runpath=yes
23437   if test "$with_gnu_ld" = yes; then
23438     need_lib_prefix=no
23439   fi
23440   need_version=yes
23441   ;;
23442
23443 sysv4 | sysv4.3*)
23444   version_type=linux
23445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23446   soname_spec='${libname}${release}${shared_ext}$major'
23447   shlibpath_var=LD_LIBRARY_PATH
23448   case $host_vendor in
23449     sni)
23450       shlibpath_overrides_runpath=no
23451       need_lib_prefix=no
23452       export_dynamic_flag_spec='${wl}-Blargedynsym'
23453       runpath_var=LD_RUN_PATH
23454       ;;
23455     siemens)
23456       need_lib_prefix=no
23457       ;;
23458     motorola)
23459       need_lib_prefix=no
23460       need_version=no
23461       shlibpath_overrides_runpath=no
23462       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23463       ;;
23464   esac
23465   ;;
23466
23467 sysv4*MP*)
23468   if test -d /usr/nec ;then
23469     version_type=linux
23470     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23471     soname_spec='$libname${shared_ext}.$major'
23472     shlibpath_var=LD_LIBRARY_PATH
23473   fi
23474   ;;
23475
23476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23477   version_type=freebsd-elf
23478   need_lib_prefix=no
23479   need_version=no
23480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23481   soname_spec='${libname}${release}${shared_ext}$major'
23482   shlibpath_var=LD_LIBRARY_PATH
23483   hardcode_into_libs=yes
23484   if test "$with_gnu_ld" = yes; then
23485     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23486     shlibpath_overrides_runpath=no
23487   else
23488     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23489     shlibpath_overrides_runpath=yes
23490     case $host_os in
23491       sco3.2v5*)
23492         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23493         ;;
23494     esac
23495   fi
23496   sys_lib_dlsearch_path_spec='/usr/lib'
23497   ;;
23498
23499 uts4*)
23500   version_type=linux
23501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23502   soname_spec='${libname}${release}${shared_ext}$major'
23503   shlibpath_var=LD_LIBRARY_PATH
23504   ;;
23505
23506 *)
23507   dynamic_linker=no
23508   ;;
23509 esac
23510 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23511 echo "${ECHO_T}$dynamic_linker" >&6; }
23512 test "$dynamic_linker" = no && can_build_shared=no
23513
23514 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23515 if test "$GCC" = yes; then
23516   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23517 fi
23518
23519 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23520 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23521 hardcode_action_F77=
23522 if test -n "$hardcode_libdir_flag_spec_F77" || \
23523    test -n "$runpath_var_F77" || \
23524    test "X$hardcode_automatic_F77" = "Xyes" ; then
23525
23526   # We can hardcode non-existant directories.
23527   if test "$hardcode_direct_F77" != no &&
23528      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23529      # have to relink, otherwise we might link with an installed library
23530      # when we should be linking with a yet-to-be-installed one
23531      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23532      test "$hardcode_minus_L_F77" != no; then
23533     # Linking always hardcodes the temporary library directory.
23534     hardcode_action_F77=relink
23535   else
23536     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23537     hardcode_action_F77=immediate
23538   fi
23539 else
23540   # We cannot hardcode anything, or else we can only hardcode existing
23541   # directories.
23542   hardcode_action_F77=unsupported
23543 fi
23544 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23545 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23546
23547 if test "$hardcode_action_F77" = relink; then
23548   # Fast installation is not supported
23549   enable_fast_install=no
23550 elif test "$shlibpath_overrides_runpath" = yes ||
23551      test "$enable_shared" = no; then
23552   # Fast installation is not necessary
23553   enable_fast_install=needless
23554 fi
23555
23556
23557 # The else clause should only fire when bootstrapping the
23558 # libtool distribution, otherwise you forgot to ship ltmain.sh
23559 # with your package, and you will get complaints that there are
23560 # no rules to generate ltmain.sh.
23561 if test -f "$ltmain"; then
23562   # See if we are running on zsh, and set the options which allow our commands through
23563   # without removal of \ escapes.
23564   if test -n "${ZSH_VERSION+set}" ; then
23565     setopt NO_GLOB_SUBST
23566   fi
23567   # Now quote all the things that may contain metacharacters while being
23568   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23569   # variables and quote the copies for generation of the libtool script.
23570   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23571     SED SHELL STRIP \
23572     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23573     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23574     deplibs_check_method reload_flag reload_cmds need_locks \
23575     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23576     lt_cv_sys_global_symbol_to_c_name_address \
23577     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23578     old_postinstall_cmds old_postuninstall_cmds \
23579     compiler_F77 \
23580     CC_F77 \
23581     LD_F77 \
23582     lt_prog_compiler_wl_F77 \
23583     lt_prog_compiler_pic_F77 \
23584     lt_prog_compiler_static_F77 \
23585     lt_prog_compiler_no_builtin_flag_F77 \
23586     export_dynamic_flag_spec_F77 \
23587     thread_safe_flag_spec_F77 \
23588     whole_archive_flag_spec_F77 \
23589     enable_shared_with_static_runtimes_F77 \
23590     old_archive_cmds_F77 \
23591     old_archive_from_new_cmds_F77 \
23592     predep_objects_F77 \
23593     postdep_objects_F77 \
23594     predeps_F77 \
23595     postdeps_F77 \
23596     compiler_lib_search_path_F77 \
23597     archive_cmds_F77 \
23598     archive_expsym_cmds_F77 \
23599     postinstall_cmds_F77 \
23600     postuninstall_cmds_F77 \
23601     old_archive_from_expsyms_cmds_F77 \
23602     allow_undefined_flag_F77 \
23603     no_undefined_flag_F77 \
23604     export_symbols_cmds_F77 \
23605     hardcode_libdir_flag_spec_F77 \
23606     hardcode_libdir_flag_spec_ld_F77 \
23607     hardcode_libdir_separator_F77 \
23608     hardcode_automatic_F77 \
23609     module_cmds_F77 \
23610     module_expsym_cmds_F77 \
23611     lt_cv_prog_compiler_c_o_F77 \
23612     exclude_expsyms_F77 \
23613     include_expsyms_F77; do
23614
23615     case $var in
23616     old_archive_cmds_F77 | \
23617     old_archive_from_new_cmds_F77 | \
23618     archive_cmds_F77 | \
23619     archive_expsym_cmds_F77 | \
23620     module_cmds_F77 | \
23621     module_expsym_cmds_F77 | \
23622     old_archive_from_expsyms_cmds_F77 | \
23623     export_symbols_cmds_F77 | \
23624     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23625     postinstall_cmds | postuninstall_cmds | \
23626     old_postinstall_cmds | old_postuninstall_cmds | \
23627     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23628       # Double-quote double-evaled strings.
23629       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23630       ;;
23631     *)
23632       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23633       ;;
23634     esac
23635   done
23636
23637   case $lt_echo in
23638   *'\$0 --fallback-echo"')
23639     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23640     ;;
23641   esac
23642
23643 cfgfile="$ofile"
23644
23645   cat <<__EOF__ >> "$cfgfile"
23646 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23647
23648 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23649
23650 # Shell to use when invoking shell scripts.
23651 SHELL=$lt_SHELL
23652
23653 # Whether or not to build shared libraries.
23654 build_libtool_libs=$enable_shared
23655
23656 # Whether or not to build static libraries.
23657 build_old_libs=$enable_static
23658
23659 # Whether or not to add -lc for building shared libraries.
23660 build_libtool_need_lc=$archive_cmds_need_lc_F77
23661
23662 # Whether or not to disallow shared libs when runtime libs are static
23663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23664
23665 # Whether or not to optimize for fast installation.
23666 fast_install=$enable_fast_install
23667
23668 # The host system.
23669 host_alias=$host_alias
23670 host=$host
23671 host_os=$host_os
23672
23673 # The build system.
23674 build_alias=$build_alias
23675 build=$build
23676 build_os=$build_os
23677
23678 # An echo program that does not interpret backslashes.
23679 echo=$lt_echo
23680
23681 # The archiver.
23682 AR=$lt_AR
23683 AR_FLAGS=$lt_AR_FLAGS
23684
23685 # A C compiler.
23686 LTCC=$lt_LTCC
23687
23688 # LTCC compiler flags.
23689 LTCFLAGS=$lt_LTCFLAGS
23690
23691 # A language-specific compiler.
23692 CC=$lt_compiler_F77
23693
23694 # Is the compiler the GNU C compiler?
23695 with_gcc=$GCC_F77
23696
23697 # An ERE matcher.
23698 EGREP=$lt_EGREP
23699
23700 # The linker used to build libraries.
23701 LD=$lt_LD_F77
23702
23703 # Whether we need hard or soft links.
23704 LN_S=$lt_LN_S
23705
23706 # A BSD-compatible nm program.
23707 NM=$lt_NM
23708
23709 # A symbol stripping program
23710 STRIP=$lt_STRIP
23711
23712 # Used to examine libraries when file_magic_cmd begins "file"
23713 MAGIC_CMD=$MAGIC_CMD
23714
23715 # Used on cygwin: DLL creation program.
23716 DLLTOOL="$DLLTOOL"
23717
23718 # Used on cygwin: object dumper.
23719 OBJDUMP="$OBJDUMP"
23720
23721 # Used on cygwin: assembler.
23722 AS="$AS"
23723
23724 # The name of the directory that contains temporary libtool files.
23725 objdir=$objdir
23726
23727 # How to create reloadable object files.
23728 reload_flag=$lt_reload_flag
23729 reload_cmds=$lt_reload_cmds
23730
23731 # How to pass a linker flag through the compiler.
23732 wl=$lt_lt_prog_compiler_wl_F77
23733
23734 # Object file suffix (normally "o").
23735 objext="$ac_objext"
23736
23737 # Old archive suffix (normally "a").
23738 libext="$libext"
23739
23740 # Shared library suffix (normally ".so").
23741 shrext_cmds='$shrext_cmds'
23742
23743 # Executable file suffix (normally "").
23744 exeext="$exeext"
23745
23746 # Additional compiler flags for building library objects.
23747 pic_flag=$lt_lt_prog_compiler_pic_F77
23748 pic_mode=$pic_mode
23749
23750 # What is the maximum length of a command?
23751 max_cmd_len=$lt_cv_sys_max_cmd_len
23752
23753 # Does compiler simultaneously support -c and -o options?
23754 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23755
23756 # Must we lock files when doing compilation?
23757 need_locks=$lt_need_locks
23758
23759 # Do we need the lib prefix for modules?
23760 need_lib_prefix=$need_lib_prefix
23761
23762 # Do we need a version for libraries?
23763 need_version=$need_version
23764
23765 # Whether dlopen is supported.
23766 dlopen_support=$enable_dlopen
23767
23768 # Whether dlopen of programs is supported.
23769 dlopen_self=$enable_dlopen_self
23770
23771 # Whether dlopen of statically linked programs is supported.
23772 dlopen_self_static=$enable_dlopen_self_static
23773
23774 # Compiler flag to prevent dynamic linking.
23775 link_static_flag=$lt_lt_prog_compiler_static_F77
23776
23777 # Compiler flag to turn off builtin functions.
23778 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23779
23780 # Compiler flag to allow reflexive dlopens.
23781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23782
23783 # Compiler flag to generate shared objects directly from archives.
23784 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23785
23786 # Compiler flag to generate thread-safe objects.
23787 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23788
23789 # Library versioning type.
23790 version_type=$version_type
23791
23792 # Format of library name prefix.
23793 libname_spec=$lt_libname_spec
23794
23795 # List of archive names.  First name is the real one, the rest are links.
23796 # The last name is the one that the linker finds with -lNAME.
23797 library_names_spec=$lt_library_names_spec
23798
23799 # The coded name of the library, if different from the real name.
23800 soname_spec=$lt_soname_spec
23801
23802 # Commands used to build and install an old-style archive.
23803 RANLIB=$lt_RANLIB
23804 old_archive_cmds=$lt_old_archive_cmds_F77
23805 old_postinstall_cmds=$lt_old_postinstall_cmds
23806 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23807
23808 # Create an old-style archive from a shared archive.
23809 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23810
23811 # Create a temporary old-style archive to link instead of a shared archive.
23812 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23813
23814 # Commands used to build and install a shared archive.
23815 archive_cmds=$lt_archive_cmds_F77
23816 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23817 postinstall_cmds=$lt_postinstall_cmds
23818 postuninstall_cmds=$lt_postuninstall_cmds
23819
23820 # Commands used to build a loadable module (assumed same as above if empty)
23821 module_cmds=$lt_module_cmds_F77
23822 module_expsym_cmds=$lt_module_expsym_cmds_F77
23823
23824 # Commands to strip libraries.
23825 old_striplib=$lt_old_striplib
23826 striplib=$lt_striplib
23827
23828 # Dependencies to place before the objects being linked to create a
23829 # shared library.
23830 predep_objects=$lt_predep_objects_F77
23831
23832 # Dependencies to place after the objects being linked to create a
23833 # shared library.
23834 postdep_objects=$lt_postdep_objects_F77
23835
23836 # Dependencies to place before the objects being linked to create a
23837 # shared library.
23838 predeps=$lt_predeps_F77
23839
23840 # Dependencies to place after the objects being linked to create a
23841 # shared library.
23842 postdeps=$lt_postdeps_F77
23843
23844 # The library search path used internally by the compiler when linking
23845 # a shared library.
23846 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23847
23848 # Method to check whether dependent libraries are shared objects.
23849 deplibs_check_method=$lt_deplibs_check_method
23850
23851 # Command to use when deplibs_check_method == file_magic.
23852 file_magic_cmd=$lt_file_magic_cmd
23853
23854 # Flag that allows shared libraries with undefined symbols to be built.
23855 allow_undefined_flag=$lt_allow_undefined_flag_F77
23856
23857 # Flag that forces no undefined symbols.
23858 no_undefined_flag=$lt_no_undefined_flag_F77
23859
23860 # Commands used to finish a libtool library installation in a directory.
23861 finish_cmds=$lt_finish_cmds
23862
23863 # Same as above, but a single script fragment to be evaled but not shown.
23864 finish_eval=$lt_finish_eval
23865
23866 # Take the output of nm and produce a listing of raw symbols and C names.
23867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23868
23869 # Transform the output of nm in a proper C declaration
23870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23871
23872 # Transform the output of nm in a C name address pair
23873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23874
23875 # This is the shared library runtime path variable.
23876 runpath_var=$runpath_var
23877
23878 # This is the shared library path variable.
23879 shlibpath_var=$shlibpath_var
23880
23881 # Is shlibpath searched before the hard-coded library search path?
23882 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23883
23884 # How to hardcode a shared library path into an executable.
23885 hardcode_action=$hardcode_action_F77
23886
23887 # Whether we should hardcode library paths into libraries.
23888 hardcode_into_libs=$hardcode_into_libs
23889
23890 # Flag to hardcode \$libdir into a binary during linking.
23891 # This must work even if \$libdir does not exist.
23892 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23893
23894 # If ld is used when linking, flag to hardcode \$libdir into
23895 # a binary during linking. This must work even if \$libdir does
23896 # not exist.
23897 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23898
23899 # Whether we need a single -rpath flag with a separated argument.
23900 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23901
23902 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23903 # resulting binary.
23904 hardcode_direct=$hardcode_direct_F77
23905
23906 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23907 # resulting binary.
23908 hardcode_minus_L=$hardcode_minus_L_F77
23909
23910 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23911 # the resulting binary.
23912 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23913
23914 # Set to yes if building a shared library automatically hardcodes DIR into the library
23915 # and all subsequent libraries and executables linked against it.
23916 hardcode_automatic=$hardcode_automatic_F77
23917
23918 # Variables whose values should be saved in libtool wrapper scripts and
23919 # restored at relink time.
23920 variables_saved_for_relink="$variables_saved_for_relink"
23921
23922 # Whether libtool must link a program against all its dependency libraries.
23923 link_all_deplibs=$link_all_deplibs_F77
23924
23925 # Compile-time system search path for libraries
23926 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23927
23928 # Run-time system search path for libraries
23929 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23930
23931 # Fix the shell variable \$srcfile for the compiler.
23932 fix_srcfile_path="$fix_srcfile_path_F77"
23933
23934 # Set to yes if exported symbols are required.
23935 always_export_symbols=$always_export_symbols_F77
23936
23937 # The commands to list exported symbols.
23938 export_symbols_cmds=$lt_export_symbols_cmds_F77
23939
23940 # The commands to extract the exported symbol list from a shared archive.
23941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23942
23943 # Symbols that should not be listed in the preloaded symbols.
23944 exclude_expsyms=$lt_exclude_expsyms_F77
23945
23946 # Symbols that must always be exported.
23947 include_expsyms=$lt_include_expsyms_F77
23948
23949 # ### END LIBTOOL TAG CONFIG: $tagname
23950
23951 __EOF__
23952
23953
23954 else
23955   # If there is no Makefile yet, we rely on a make rule to execute
23956   # `config.status --recheck' to rerun these tests and create the
23957   # libtool script then.
23958   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23959   if test -f "$ltmain_in"; then
23960     test -f Makefile && make "$ltmain"
23961   fi
23962 fi
23963
23964
23965 ac_ext=c
23966 ac_cpp='$CPP $CPPFLAGS'
23967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23970
23971 CC="$lt_save_CC"
23972
23973         else
23974           tagname=""
23975         fi
23976         ;;
23977
23978       GCJ)
23979         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23980           ac_ext=c
23981 ac_cpp='$CPP $CPPFLAGS'
23982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23985
23986
23987 # Source file extension for Java test sources.
23988 ac_ext=java
23989
23990 # Object file extension for compiled Java test sources.
23991 objext=o
23992 objext_GCJ=$objext
23993
23994 # Code to be used in simple compile tests
23995 lt_simple_compile_test_code="class foo {}\n"
23996
23997 # Code to be used in simple link tests
23998 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23999
24000 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24001
24002 # If no C compiler was specified, use CC.
24003 LTCC=${LTCC-"$CC"}
24004
24005 # If no C compiler flags were specified, use CFLAGS.
24006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24007
24008 # Allow CC to be a program name with arguments.
24009 compiler=$CC
24010
24011
24012 # save warnings/boilerplate of simple test code
24013 ac_outfile=conftest.$ac_objext
24014 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24015 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24016 _lt_compiler_boilerplate=`cat conftest.err`
24017 $rm conftest*
24018
24019 ac_outfile=conftest.$ac_objext
24020 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24021 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24022 _lt_linker_boilerplate=`cat conftest.err`
24023 $rm conftest*
24024
24025
24026 # Allow CC to be a program name with arguments.
24027 lt_save_CC="$CC"
24028 CC=${GCJ-"gcj"}
24029 compiler=$CC
24030 compiler_GCJ=$CC
24031 for cc_temp in $compiler""; do
24032   case $cc_temp in
24033     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24034     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24035     \-*) ;;
24036     *) break;;
24037   esac
24038 done
24039 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24040
24041
24042 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24043 archive_cmds_need_lc_GCJ=no
24044
24045 old_archive_cmds_GCJ=$old_archive_cmds
24046
24047
24048 lt_prog_compiler_no_builtin_flag_GCJ=
24049
24050 if test "$GCC" = yes; then
24051   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24052
24053
24054 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24055 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24056 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24057   echo $ECHO_N "(cached) $ECHO_C" >&6
24058 else
24059   lt_cv_prog_compiler_rtti_exceptions=no
24060   ac_outfile=conftest.$ac_objext
24061    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24062    lt_compiler_flag="-fno-rtti -fno-exceptions"
24063    # Insert the option either (1) after the last *FLAGS variable, or
24064    # (2) before a word containing "conftest.", or (3) at the end.
24065    # Note that $ac_compile itself does not contain backslashes and begins
24066    # with a dollar sign (not a hyphen), so the echo should work correctly.
24067    # The option is referenced via a variable to avoid confusing sed.
24068    lt_compile=`echo "$ac_compile" | $SED \
24069    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24070    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24071    -e 's:$: $lt_compiler_flag:'`
24072    (eval echo "\"\$as_me:24072: $lt_compile\"" >&5)
24073    (eval "$lt_compile" 2>conftest.err)
24074    ac_status=$?
24075    cat conftest.err >&5
24076    echo "$as_me:24076: \$? = $ac_status" >&5
24077    if (exit $ac_status) && test -s "$ac_outfile"; then
24078      # The compiler can only warn and ignore the option if not recognized
24079      # So say no if there are warnings other than the usual output.
24080      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24081      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24082      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24083        lt_cv_prog_compiler_rtti_exceptions=yes
24084      fi
24085    fi
24086    $rm conftest*
24087
24088 fi
24089 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24090 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24091
24092 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24093     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24094 else
24095     :
24096 fi
24097
24098 fi
24099
24100 lt_prog_compiler_wl_GCJ=
24101 lt_prog_compiler_pic_GCJ=
24102 lt_prog_compiler_static_GCJ=
24103
24104 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24105 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24106
24107   if test "$GCC" = yes; then
24108     lt_prog_compiler_wl_GCJ='-Wl,'
24109     lt_prog_compiler_static_GCJ='-static'
24110
24111     case $host_os in
24112       aix*)
24113       # All AIX code is PIC.
24114       if test "$host_cpu" = ia64; then
24115         # AIX 5 now supports IA64 processor
24116         lt_prog_compiler_static_GCJ='-Bstatic'
24117       fi
24118       ;;
24119
24120     amigaos*)
24121       # FIXME: we need at least 68020 code to build shared libraries, but
24122       # adding the `-m68020' flag to GCC prevents building anything better,
24123       # like `-m68040'.
24124       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24125       ;;
24126
24127     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24128       # PIC is the default for these OSes.
24129       ;;
24130
24131     mingw* | pw32* | os2*)
24132       # This hack is so that the source file can tell whether it is being
24133       # built for inclusion in a dll (and should export symbols for example).
24134       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24135       ;;
24136
24137     darwin* | rhapsody*)
24138       # PIC is the default on this platform
24139       # Common symbols not allowed in MH_DYLIB files
24140       lt_prog_compiler_pic_GCJ='-fno-common'
24141       ;;
24142
24143     interix3*)
24144       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24145       # Instead, we relocate shared libraries at runtime.
24146       ;;
24147
24148     msdosdjgpp*)
24149       # Just because we use GCC doesn't mean we suddenly get shared libraries
24150       # on systems that don't support them.
24151       lt_prog_compiler_can_build_shared_GCJ=no
24152       enable_shared=no
24153       ;;
24154
24155     sysv4*MP*)
24156       if test -d /usr/nec; then
24157         lt_prog_compiler_pic_GCJ=-Kconform_pic
24158       fi
24159       ;;
24160
24161     hpux*)
24162       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24163       # not for PA HP-UX.
24164       case $host_cpu in
24165       hppa*64*|ia64*)
24166         # +Z the default
24167         ;;
24168       *)
24169         lt_prog_compiler_pic_GCJ='-fPIC'
24170         ;;
24171       esac
24172       ;;
24173
24174     *)
24175       lt_prog_compiler_pic_GCJ='-fPIC'
24176       ;;
24177     esac
24178   else
24179     # PORTME Check for flag to pass linker flags through the system compiler.
24180     case $host_os in
24181     aix*)
24182       lt_prog_compiler_wl_GCJ='-Wl,'
24183       if test "$host_cpu" = ia64; then
24184         # AIX 5 now supports IA64 processor
24185         lt_prog_compiler_static_GCJ='-Bstatic'
24186       else
24187         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24188       fi
24189       ;;
24190       darwin*)
24191         # PIC is the default on this platform
24192         # Common symbols not allowed in MH_DYLIB files
24193        case $cc_basename in
24194          xlc*)
24195          lt_prog_compiler_pic_GCJ='-qnocommon'
24196          lt_prog_compiler_wl_GCJ='-Wl,'
24197          ;;
24198        esac
24199        ;;
24200
24201     mingw* | pw32* | os2*)
24202       # This hack is so that the source file can tell whether it is being
24203       # built for inclusion in a dll (and should export symbols for example).
24204       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24205       ;;
24206
24207     hpux9* | hpux10* | hpux11*)
24208       lt_prog_compiler_wl_GCJ='-Wl,'
24209       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24210       # not for PA HP-UX.
24211       case $host_cpu in
24212       hppa*64*|ia64*)
24213         # +Z the default
24214         ;;
24215       *)
24216         lt_prog_compiler_pic_GCJ='+Z'
24217         ;;
24218       esac
24219       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24220       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24221       ;;
24222
24223     irix5* | irix6* | nonstopux*)
24224       lt_prog_compiler_wl_GCJ='-Wl,'
24225       # PIC (with -KPIC) is the default.
24226       lt_prog_compiler_static_GCJ='-non_shared'
24227       ;;
24228
24229     newsos6)
24230       lt_prog_compiler_pic_GCJ='-KPIC'
24231       lt_prog_compiler_static_GCJ='-Bstatic'
24232       ;;
24233
24234     linux*)
24235       case $cc_basename in
24236       icc* | ecc*)
24237         lt_prog_compiler_wl_GCJ='-Wl,'
24238         lt_prog_compiler_pic_GCJ='-KPIC'
24239         lt_prog_compiler_static_GCJ='-static'
24240         ;;
24241       pgcc* | pgf77* | pgf90* | pgf95*)
24242         # Portland Group compilers (*not* the Pentium gcc compiler,
24243         # which looks to be a dead project)
24244         lt_prog_compiler_wl_GCJ='-Wl,'
24245         lt_prog_compiler_pic_GCJ='-fpic'
24246         lt_prog_compiler_static_GCJ='-Bstatic'
24247         ;;
24248       ccc*)
24249         lt_prog_compiler_wl_GCJ='-Wl,'
24250         # All Alpha code is PIC.
24251         lt_prog_compiler_static_GCJ='-non_shared'
24252         ;;
24253       esac
24254       ;;
24255
24256     osf3* | osf4* | osf5*)
24257       lt_prog_compiler_wl_GCJ='-Wl,'
24258       # All OSF/1 code is PIC.
24259       lt_prog_compiler_static_GCJ='-non_shared'
24260       ;;
24261
24262     solaris*)
24263       lt_prog_compiler_pic_GCJ='-KPIC'
24264       lt_prog_compiler_static_GCJ='-Bstatic'
24265       case $cc_basename in
24266       f77* | f90* | f95*)
24267         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24268       *)
24269         lt_prog_compiler_wl_GCJ='-Wl,';;
24270       esac
24271       ;;
24272
24273     sunos4*)
24274       lt_prog_compiler_wl_GCJ='-Qoption ld '
24275       lt_prog_compiler_pic_GCJ='-PIC'
24276       lt_prog_compiler_static_GCJ='-Bstatic'
24277       ;;
24278
24279     sysv4 | sysv4.2uw2* | sysv4.3*)
24280       lt_prog_compiler_wl_GCJ='-Wl,'
24281       lt_prog_compiler_pic_GCJ='-KPIC'
24282       lt_prog_compiler_static_GCJ='-Bstatic'
24283       ;;
24284
24285     sysv4*MP*)
24286       if test -d /usr/nec ;then
24287         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24288         lt_prog_compiler_static_GCJ='-Bstatic'
24289       fi
24290       ;;
24291
24292     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24293       lt_prog_compiler_wl_GCJ='-Wl,'
24294       lt_prog_compiler_pic_GCJ='-KPIC'
24295       lt_prog_compiler_static_GCJ='-Bstatic'
24296       ;;
24297
24298     unicos*)
24299       lt_prog_compiler_wl_GCJ='-Wl,'
24300       lt_prog_compiler_can_build_shared_GCJ=no
24301       ;;
24302
24303     uts4*)
24304       lt_prog_compiler_pic_GCJ='-pic'
24305       lt_prog_compiler_static_GCJ='-Bstatic'
24306       ;;
24307
24308     *)
24309       lt_prog_compiler_can_build_shared_GCJ=no
24310       ;;
24311     esac
24312   fi
24313
24314 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24315 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24316
24317 #
24318 # Check to make sure the PIC flag actually works.
24319 #
24320 if test -n "$lt_prog_compiler_pic_GCJ"; then
24321
24322 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24323 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24324 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24325   echo $ECHO_N "(cached) $ECHO_C" >&6
24326 else
24327   lt_prog_compiler_pic_works_GCJ=no
24328   ac_outfile=conftest.$ac_objext
24329    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24330    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24331    # Insert the option either (1) after the last *FLAGS variable, or
24332    # (2) before a word containing "conftest.", or (3) at the end.
24333    # Note that $ac_compile itself does not contain backslashes and begins
24334    # with a dollar sign (not a hyphen), so the echo should work correctly.
24335    # The option is referenced via a variable to avoid confusing sed.
24336    lt_compile=`echo "$ac_compile" | $SED \
24337    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24338    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24339    -e 's:$: $lt_compiler_flag:'`
24340    (eval echo "\"\$as_me:24340: $lt_compile\"" >&5)
24341    (eval "$lt_compile" 2>conftest.err)
24342    ac_status=$?
24343    cat conftest.err >&5
24344    echo "$as_me:24344: \$? = $ac_status" >&5
24345    if (exit $ac_status) && test -s "$ac_outfile"; then
24346      # The compiler can only warn and ignore the option if not recognized
24347      # So say no if there are warnings other than the usual output.
24348      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24349      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24350      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24351        lt_prog_compiler_pic_works_GCJ=yes
24352      fi
24353    fi
24354    $rm conftest*
24355
24356 fi
24357 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24358 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24359
24360 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24361     case $lt_prog_compiler_pic_GCJ in
24362      "" | " "*) ;;
24363      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24364      esac
24365 else
24366     lt_prog_compiler_pic_GCJ=
24367      lt_prog_compiler_can_build_shared_GCJ=no
24368 fi
24369
24370 fi
24371 case $host_os in
24372   # For platforms which do not support PIC, -DPIC is meaningless:
24373   *djgpp*)
24374     lt_prog_compiler_pic_GCJ=
24375     ;;
24376   *)
24377     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24378     ;;
24379 esac
24380
24381 #
24382 # Check to make sure the static flag actually works.
24383 #
24384 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24385 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24386 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24387 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24388   echo $ECHO_N "(cached) $ECHO_C" >&6
24389 else
24390   lt_prog_compiler_static_works_GCJ=no
24391    save_LDFLAGS="$LDFLAGS"
24392    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24393    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24394    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24395      # The linker can only warn and ignore the option if not recognized
24396      # So say no if there are warnings
24397      if test -s conftest.err; then
24398        # Append any errors to the config.log.
24399        cat conftest.err 1>&5
24400        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24401        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24402        if diff conftest.exp conftest.er2 >/dev/null; then
24403          lt_prog_compiler_static_works_GCJ=yes
24404        fi
24405      else
24406        lt_prog_compiler_static_works_GCJ=yes
24407      fi
24408    fi
24409    $rm conftest*
24410    LDFLAGS="$save_LDFLAGS"
24411
24412 fi
24413 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24414 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24415
24416 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24417     :
24418 else
24419     lt_prog_compiler_static_GCJ=
24420 fi
24421
24422
24423 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24424 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24425 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24426   echo $ECHO_N "(cached) $ECHO_C" >&6
24427 else
24428   lt_cv_prog_compiler_c_o_GCJ=no
24429    $rm -r conftest 2>/dev/null
24430    mkdir conftest
24431    cd conftest
24432    mkdir out
24433    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24434
24435    lt_compiler_flag="-o out/conftest2.$ac_objext"
24436    # Insert the option either (1) after the last *FLAGS variable, or
24437    # (2) before a word containing "conftest.", or (3) at the end.
24438    # Note that $ac_compile itself does not contain backslashes and begins
24439    # with a dollar sign (not a hyphen), so the echo should work correctly.
24440    lt_compile=`echo "$ac_compile" | $SED \
24441    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24442    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24443    -e 's:$: $lt_compiler_flag:'`
24444    (eval echo "\"\$as_me:24444: $lt_compile\"" >&5)
24445    (eval "$lt_compile" 2>out/conftest.err)
24446    ac_status=$?
24447    cat out/conftest.err >&5
24448    echo "$as_me:24448: \$? = $ac_status" >&5
24449    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24450    then
24451      # The compiler can only warn and ignore the option if not recognized
24452      # So say no if there are warnings
24453      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24454      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24455      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24456        lt_cv_prog_compiler_c_o_GCJ=yes
24457      fi
24458    fi
24459    chmod u+w . 2>&5
24460    $rm conftest*
24461    # SGI C++ compiler will create directory out/ii_files/ for
24462    # template instantiation
24463    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24464    $rm out/* && rmdir out
24465    cd ..
24466    rmdir conftest
24467    $rm conftest*
24468
24469 fi
24470 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24471 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24472
24473
24474 hard_links="nottested"
24475 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24476   # do not overwrite the value of need_locks provided by the user
24477   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24478 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24479   hard_links=yes
24480   $rm conftest*
24481   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24482   touch conftest.a
24483   ln conftest.a conftest.b 2>&5 || hard_links=no
24484   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24485   { echo "$as_me:$LINENO: result: $hard_links" >&5
24486 echo "${ECHO_T}$hard_links" >&6; }
24487   if test "$hard_links" = no; then
24488     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24489 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24490     need_locks=warn
24491   fi
24492 else
24493   need_locks=no
24494 fi
24495
24496 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24497 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24498
24499   runpath_var=
24500   allow_undefined_flag_GCJ=
24501   enable_shared_with_static_runtimes_GCJ=no
24502   archive_cmds_GCJ=
24503   archive_expsym_cmds_GCJ=
24504   old_archive_From_new_cmds_GCJ=
24505   old_archive_from_expsyms_cmds_GCJ=
24506   export_dynamic_flag_spec_GCJ=
24507   whole_archive_flag_spec_GCJ=
24508   thread_safe_flag_spec_GCJ=
24509   hardcode_libdir_flag_spec_GCJ=
24510   hardcode_libdir_flag_spec_ld_GCJ=
24511   hardcode_libdir_separator_GCJ=
24512   hardcode_direct_GCJ=no
24513   hardcode_minus_L_GCJ=no
24514   hardcode_shlibpath_var_GCJ=unsupported
24515   link_all_deplibs_GCJ=unknown
24516   hardcode_automatic_GCJ=no
24517   module_cmds_GCJ=
24518   module_expsym_cmds_GCJ=
24519   always_export_symbols_GCJ=no
24520   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24521   # include_expsyms should be a list of space-separated symbols to be *always*
24522   # included in the symbol list
24523   include_expsyms_GCJ=
24524   # exclude_expsyms can be an extended regexp of symbols to exclude
24525   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24526   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24527   # as well as any symbol that contains `d'.
24528   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24529   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24530   # platforms (ab)use it in PIC code, but their linkers get confused if
24531   # the symbol is explicitly referenced.  Since portable code cannot
24532   # rely on this symbol name, it's probably fine to never include it in
24533   # preloaded symbol tables.
24534   extract_expsyms_cmds=
24535   # Just being paranoid about ensuring that cc_basename is set.
24536   for cc_temp in $compiler""; do
24537   case $cc_temp in
24538     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24539     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24540     \-*) ;;
24541     *) break;;
24542   esac
24543 done
24544 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24545
24546   case $host_os in
24547   cygwin* | mingw* | pw32*)
24548     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24549     # When not using gcc, we currently assume that we are using
24550     # Microsoft Visual C++.
24551     if test "$GCC" != yes; then
24552       with_gnu_ld=no
24553     fi
24554     ;;
24555   interix*)
24556     # we just hope/assume this is gcc and not c89 (= MSVC++)
24557     with_gnu_ld=yes
24558     ;;
24559   openbsd*)
24560     with_gnu_ld=no
24561     ;;
24562   esac
24563
24564   ld_shlibs_GCJ=yes
24565   if test "$with_gnu_ld" = yes; then
24566     # If archive_cmds runs LD, not CC, wlarc should be empty
24567     wlarc='${wl}'
24568
24569     # Set some defaults for GNU ld with shared library support. These
24570     # are reset later if shared libraries are not supported. Putting them
24571     # here allows them to be overridden if necessary.
24572     runpath_var=LD_RUN_PATH
24573     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24574     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24575     # ancient GNU ld didn't support --whole-archive et. al.
24576     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24577         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24578       else
24579         whole_archive_flag_spec_GCJ=
24580     fi
24581     supports_anon_versioning=no
24582     case `$LD -v 2>/dev/null` in
24583       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24584       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24585       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24586       *\ 2.11.*) ;; # other 2.11 versions
24587       *) supports_anon_versioning=yes ;;
24588     esac
24589
24590     # See if GNU ld supports shared libraries.
24591     case $host_os in
24592     aix3* | aix4* | aix5*)
24593       # On AIX/PPC, the GNU linker is very broken
24594       if test "$host_cpu" != ia64; then
24595         ld_shlibs_GCJ=no
24596         cat <<EOF 1>&2
24597
24598 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24599 *** to be unable to reliably create shared libraries on AIX.
24600 *** Therefore, libtool is disabling shared libraries support.  If you
24601 *** really care for shared libraries, you may want to modify your PATH
24602 *** so that a non-GNU linker is found, and then restart.
24603
24604 EOF
24605       fi
24606       ;;
24607
24608     amigaos*)
24609       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)'
24610       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24611       hardcode_minus_L_GCJ=yes
24612
24613       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24614       # that the semantics of dynamic libraries on AmigaOS, at least up
24615       # to version 4, is to share data among multiple programs linked
24616       # with the same dynamic library.  Since this doesn't match the
24617       # behavior of shared libraries on other platforms, we can't use
24618       # them.
24619       ld_shlibs_GCJ=no
24620       ;;
24621
24622     beos*)
24623       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24624         allow_undefined_flag_GCJ=unsupported
24625         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24626         # support --undefined.  This deserves some investigation.  FIXME
24627         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24628       else
24629         ld_shlibs_GCJ=no
24630       fi
24631       ;;
24632
24633     cygwin* | mingw* | pw32*)
24634       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24635       # as there is no search path for DLLs.
24636       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24637       allow_undefined_flag_GCJ=unsupported
24638       always_export_symbols_GCJ=no
24639       enable_shared_with_static_runtimes_GCJ=yes
24640       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24641
24642       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24643         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24644         # If the export-symbols file already is a .def file (1st line
24645         # is EXPORTS), use it as is; otherwise, prepend...
24646         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24647           cp $export_symbols $output_objdir/$soname.def;
24648         else
24649           echo EXPORTS > $output_objdir/$soname.def;
24650           cat $export_symbols >> $output_objdir/$soname.def;
24651         fi~
24652         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24653       else
24654         ld_shlibs_GCJ=no
24655       fi
24656       ;;
24657
24658     interix3*)
24659       hardcode_direct_GCJ=no
24660       hardcode_shlibpath_var_GCJ=no
24661       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24662       export_dynamic_flag_spec_GCJ='${wl}-E'
24663       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24664       # Instead, shared libraries are loaded at an image base (0x10000000 by
24665       # default) and relocated if they conflict, which is a slow very memory
24666       # consuming and fragmenting process.  To avoid this, we pick a random,
24667       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24668       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24669       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'
24670       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'
24671       ;;
24672
24673     linux*)
24674       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24675         tmp_addflag=
24676         case $cc_basename,$host_cpu in
24677         pgcc*)                          # Portland Group C compiler
24678           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'
24679           tmp_addflag=' $pic_flag'
24680           ;;
24681         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24682           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'
24683           tmp_addflag=' $pic_flag -Mnomain' ;;
24684         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24685           tmp_addflag=' -i_dynamic' ;;
24686         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24687           tmp_addflag=' -i_dynamic -nofor_main' ;;
24688         ifc* | ifort*)                  # Intel Fortran compiler
24689           tmp_addflag=' -nofor_main' ;;
24690         esac
24691         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24692
24693         if test $supports_anon_versioning = yes; then
24694           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24695   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24696   $echo "local: *; };" >> $output_objdir/$libname.ver~
24697           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24698         fi
24699       else
24700         ld_shlibs_GCJ=no
24701       fi
24702       ;;
24703
24704     netbsd*)
24705       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24706         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24707         wlarc=
24708       else
24709         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24710         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24711       fi
24712       ;;
24713
24714     solaris*)
24715       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24716         ld_shlibs_GCJ=no
24717         cat <<EOF 1>&2
24718
24719 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24720 *** create shared libraries on Solaris systems.  Therefore, libtool
24721 *** is disabling shared libraries support.  We urge you to upgrade GNU
24722 *** binutils to release 2.9.1 or newer.  Another option is to modify
24723 *** your PATH or compiler configuration so that the native linker is
24724 *** used, and then restart.
24725
24726 EOF
24727       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24728         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24729         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24730       else
24731         ld_shlibs_GCJ=no
24732       fi
24733       ;;
24734
24735     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24736       case `$LD -v 2>&1` in
24737         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24738         ld_shlibs_GCJ=no
24739         cat <<_LT_EOF 1>&2
24740
24741 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24742 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24743 *** is disabling shared libraries support.  We urge you to upgrade GNU
24744 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24745 *** your PATH or compiler configuration so that the native linker is
24746 *** used, and then restart.
24747
24748 _LT_EOF
24749         ;;
24750         *)
24751           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24752             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24753             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24754             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24755           else
24756             ld_shlibs_GCJ=no
24757           fi
24758         ;;
24759       esac
24760       ;;
24761
24762     sunos4*)
24763       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24764       wlarc=
24765       hardcode_direct_GCJ=yes
24766       hardcode_shlibpath_var_GCJ=no
24767       ;;
24768
24769     *)
24770       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24771         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24772         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24773       else
24774         ld_shlibs_GCJ=no
24775       fi
24776       ;;
24777     esac
24778
24779     if test "$ld_shlibs_GCJ" = no; then
24780       runpath_var=
24781       hardcode_libdir_flag_spec_GCJ=
24782       export_dynamic_flag_spec_GCJ=
24783       whole_archive_flag_spec_GCJ=
24784     fi
24785   else
24786     # PORTME fill in a description of your system's linker (not GNU ld)
24787     case $host_os in
24788     aix3*)
24789       allow_undefined_flag_GCJ=unsupported
24790       always_export_symbols_GCJ=yes
24791       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'
24792       # Note: this linker hardcodes the directories in LIBPATH if there
24793       # are no directories specified by -L.
24794       hardcode_minus_L_GCJ=yes
24795       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24796         # Neither direct hardcoding nor static linking is supported with a
24797         # broken collect2.
24798         hardcode_direct_GCJ=unsupported
24799       fi
24800       ;;
24801
24802     aix4* | aix5*)
24803       if test "$host_cpu" = ia64; then
24804         # On IA64, the linker does run time linking by default, so we don't
24805         # have to do anything special.
24806         aix_use_runtimelinking=no
24807         exp_sym_flag='-Bexport'
24808         no_entry_flag=""
24809       else
24810         # If we're using GNU nm, then we don't want the "-C" option.
24811         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24812         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24813           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'
24814         else
24815           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'
24816         fi
24817         aix_use_runtimelinking=no
24818
24819         # Test if we are trying to use run time linking or normal
24820         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24821         # need to do runtime linking.
24822         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24823           for ld_flag in $LDFLAGS; do
24824           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24825             aix_use_runtimelinking=yes
24826             break
24827           fi
24828           done
24829           ;;
24830         esac
24831
24832         exp_sym_flag='-bexport'
24833         no_entry_flag='-bnoentry'
24834       fi
24835
24836       # When large executables or shared objects are built, AIX ld can
24837       # have problems creating the table of contents.  If linking a library
24838       # or program results in "error TOC overflow" add -mminimal-toc to
24839       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24840       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24841
24842       archive_cmds_GCJ=''
24843       hardcode_direct_GCJ=yes
24844       hardcode_libdir_separator_GCJ=':'
24845       link_all_deplibs_GCJ=yes
24846
24847       if test "$GCC" = yes; then
24848         case $host_os in aix4.[012]|aix4.[012].*)
24849         # We only want to do this on AIX 4.2 and lower, the check
24850         # below for broken collect2 doesn't work under 4.3+
24851           collect2name=`${CC} -print-prog-name=collect2`
24852           if test -f "$collect2name" && \
24853            strings "$collect2name" | grep resolve_lib_name >/dev/null
24854           then
24855           # We have reworked collect2
24856           hardcode_direct_GCJ=yes
24857           else
24858           # We have old collect2
24859           hardcode_direct_GCJ=unsupported
24860           # It fails to find uninstalled libraries when the uninstalled
24861           # path is not listed in the libpath.  Setting hardcode_minus_L
24862           # to unsupported forces relinking
24863           hardcode_minus_L_GCJ=yes
24864           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24865           hardcode_libdir_separator_GCJ=
24866           fi
24867           ;;
24868         esac
24869         shared_flag='-shared'
24870         if test "$aix_use_runtimelinking" = yes; then
24871           shared_flag="$shared_flag "'${wl}-G'
24872         fi
24873       else
24874         # not using gcc
24875         if test "$host_cpu" = ia64; then
24876         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24877         # chokes on -Wl,-G. The following line is correct:
24878           shared_flag='-G'
24879         else
24880           if test "$aix_use_runtimelinking" = yes; then
24881             shared_flag='${wl}-G'
24882           else
24883             shared_flag='${wl}-bM:SRE'
24884           fi
24885         fi
24886       fi
24887
24888       # It seems that -bexpall does not export symbols beginning with
24889       # underscore (_), so it is better to generate a list of symbols to export.
24890       always_export_symbols_GCJ=yes
24891       if test "$aix_use_runtimelinking" = yes; then
24892         # Warning - without using the other runtime loading flags (-brtl),
24893         # -berok will link without error, but may produce a broken library.
24894         allow_undefined_flag_GCJ='-berok'
24895        # Determine the default libpath from the value encoded in an empty executable.
24896        cat >conftest.$ac_ext <<_ACEOF
24897 /* confdefs.h.  */
24898 _ACEOF
24899 cat confdefs.h >>conftest.$ac_ext
24900 cat >>conftest.$ac_ext <<_ACEOF
24901 /* end confdefs.h.  */
24902
24903 int
24904 main ()
24905 {
24906
24907   ;
24908   return 0;
24909 }
24910 _ACEOF
24911 rm -f conftest.$ac_objext conftest$ac_exeext
24912 if { (ac_try="$ac_link"
24913 case "(($ac_try" in
24914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915   *) ac_try_echo=$ac_try;;
24916 esac
24917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24918   (eval "$ac_link") 2>conftest.er1
24919   ac_status=$?
24920   grep -v '^ *+' conftest.er1 >conftest.err
24921   rm -f conftest.er1
24922   cat conftest.err >&5
24923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924   (exit $ac_status); } &&
24925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24926   { (case "(($ac_try" in
24927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928   *) ac_try_echo=$ac_try;;
24929 esac
24930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931   (eval "$ac_try") 2>&5
24932   ac_status=$?
24933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934   (exit $ac_status); }; } &&
24935          { ac_try='test -s conftest$ac_exeext'
24936   { (case "(($ac_try" in
24937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938   *) ac_try_echo=$ac_try;;
24939 esac
24940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941   (eval "$ac_try") 2>&5
24942   ac_status=$?
24943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944   (exit $ac_status); }; }; then
24945
24946 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24947 }'`
24948 # Check for a 64-bit object if we didn't find anything.
24949 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; }
24950 }'`; fi
24951 else
24952   echo "$as_me: failed program was:" >&5
24953 sed 's/^/| /' conftest.$ac_ext >&5
24954
24955
24956 fi
24957
24958 rm -f core conftest.err conftest.$ac_objext \
24959       conftest$ac_exeext conftest.$ac_ext
24960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24961
24962        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24963         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"
24964        else
24965         if test "$host_cpu" = ia64; then
24966           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24967           allow_undefined_flag_GCJ="-z nodefs"
24968           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"
24969         else
24970          # Determine the default libpath from the value encoded in an empty executable.
24971          cat >conftest.$ac_ext <<_ACEOF
24972 /* confdefs.h.  */
24973 _ACEOF
24974 cat confdefs.h >>conftest.$ac_ext
24975 cat >>conftest.$ac_ext <<_ACEOF
24976 /* end confdefs.h.  */
24977
24978 int
24979 main ()
24980 {
24981
24982   ;
24983   return 0;
24984 }
24985 _ACEOF
24986 rm -f conftest.$ac_objext conftest$ac_exeext
24987 if { (ac_try="$ac_link"
24988 case "(($ac_try" in
24989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24990   *) ac_try_echo=$ac_try;;
24991 esac
24992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24993   (eval "$ac_link") 2>conftest.er1
24994   ac_status=$?
24995   grep -v '^ *+' conftest.er1 >conftest.err
24996   rm -f conftest.er1
24997   cat conftest.err >&5
24998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999   (exit $ac_status); } &&
25000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25001   { (case "(($ac_try" in
25002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003   *) ac_try_echo=$ac_try;;
25004 esac
25005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25006   (eval "$ac_try") 2>&5
25007   ac_status=$?
25008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009   (exit $ac_status); }; } &&
25010          { ac_try='test -s conftest$ac_exeext'
25011   { (case "(($ac_try" in
25012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25013   *) ac_try_echo=$ac_try;;
25014 esac
25015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25016   (eval "$ac_try") 2>&5
25017   ac_status=$?
25018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019   (exit $ac_status); }; }; then
25020
25021 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25022 }'`
25023 # Check for a 64-bit object if we didn't find anything.
25024 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; }
25025 }'`; fi
25026 else
25027   echo "$as_me: failed program was:" >&5
25028 sed 's/^/| /' conftest.$ac_ext >&5
25029
25030
25031 fi
25032
25033 rm -f core conftest.err conftest.$ac_objext \
25034       conftest$ac_exeext conftest.$ac_ext
25035 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25036
25037          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25038           # Warning - without using the other run time loading flags,
25039           # -berok will link without error, but may produce a broken library.
25040           no_undefined_flag_GCJ=' ${wl}-bernotok'
25041           allow_undefined_flag_GCJ=' ${wl}-berok'
25042           # Exported symbols can be pulled into shared objects from archives
25043           whole_archive_flag_spec_GCJ='$convenience'
25044           archive_cmds_need_lc_GCJ=yes
25045           # This is similar to how AIX traditionally builds its shared libraries.
25046           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'
25047         fi
25048       fi
25049       ;;
25050
25051     amigaos*)
25052       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)'
25053       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25054       hardcode_minus_L_GCJ=yes
25055       # see comment about different semantics on the GNU ld section
25056       ld_shlibs_GCJ=no
25057       ;;
25058
25059     bsdi[45]*)
25060       export_dynamic_flag_spec_GCJ=-rdynamic
25061       ;;
25062
25063     cygwin* | mingw* | pw32*)
25064       # When not using gcc, we currently assume that we are using
25065       # Microsoft Visual C++.
25066       # hardcode_libdir_flag_spec is actually meaningless, as there is
25067       # no search path for DLLs.
25068       hardcode_libdir_flag_spec_GCJ=' '
25069       allow_undefined_flag_GCJ=unsupported
25070       # Tell ltmain to make .lib files, not .a files.
25071       libext=lib
25072       # Tell ltmain to make .dll files, not .so files.
25073       shrext_cmds=".dll"
25074       # FIXME: Setting linknames here is a bad hack.
25075       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25076       # The linker will automatically build a .lib file if we build a DLL.
25077       old_archive_From_new_cmds_GCJ='true'
25078       # FIXME: Should let the user specify the lib program.
25079       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25080       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25081       enable_shared_with_static_runtimes_GCJ=yes
25082       ;;
25083
25084     darwin* | rhapsody*)
25085       case $host_os in
25086         rhapsody* | darwin1.[012])
25087          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25088          ;;
25089        *) # Darwin 1.3 on
25090          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25091            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25092          else
25093            case ${MACOSX_DEPLOYMENT_TARGET} in
25094              10.[012])
25095                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25096                ;;
25097              10.*)
25098                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25099                ;;
25100            esac
25101          fi
25102          ;;
25103       esac
25104       archive_cmds_need_lc_GCJ=no
25105       hardcode_direct_GCJ=no
25106       hardcode_automatic_GCJ=yes
25107       hardcode_shlibpath_var_GCJ=unsupported
25108       whole_archive_flag_spec_GCJ=''
25109       link_all_deplibs_GCJ=yes
25110     if test "$GCC" = yes ; then
25111         output_verbose_link_cmd='echo'
25112         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25113       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25114       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25115       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}'
25116       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}'
25117     else
25118       case $cc_basename in
25119         xlc*)
25120          output_verbose_link_cmd='echo'
25121          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25122          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25123           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25124          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}'
25125           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}'
25126           ;;
25127        *)
25128          ld_shlibs_GCJ=no
25129           ;;
25130       esac
25131     fi
25132       ;;
25133
25134     dgux*)
25135       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25136       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25137       hardcode_shlibpath_var_GCJ=no
25138       ;;
25139
25140     freebsd1*)
25141       ld_shlibs_GCJ=no
25142       ;;
25143
25144     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25145     # support.  Future versions do this automatically, but an explicit c++rt0.o
25146     # does not break anything, and helps significantly (at the cost of a little
25147     # extra space).
25148     freebsd2.2*)
25149       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25150       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25151       hardcode_direct_GCJ=yes
25152       hardcode_shlibpath_var_GCJ=no
25153       ;;
25154
25155     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25156     freebsd2*)
25157       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25158       hardcode_direct_GCJ=yes
25159       hardcode_minus_L_GCJ=yes
25160       hardcode_shlibpath_var_GCJ=no
25161       ;;
25162
25163     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25164     freebsd* | kfreebsd*-gnu | dragonfly*)
25165       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25166       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25167       hardcode_direct_GCJ=yes
25168       hardcode_shlibpath_var_GCJ=no
25169       ;;
25170
25171     hpux9*)
25172       if test "$GCC" = yes; then
25173         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'
25174       else
25175         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'
25176       fi
25177       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25178       hardcode_libdir_separator_GCJ=:
25179       hardcode_direct_GCJ=yes
25180
25181       # hardcode_minus_L: Not really in the search PATH,
25182       # but as the default location of the library.
25183       hardcode_minus_L_GCJ=yes
25184       export_dynamic_flag_spec_GCJ='${wl}-E'
25185       ;;
25186
25187     hpux10*)
25188       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25189         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25190       else
25191         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25192       fi
25193       if test "$with_gnu_ld" = no; then
25194         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25195         hardcode_libdir_separator_GCJ=:
25196
25197         hardcode_direct_GCJ=yes
25198         export_dynamic_flag_spec_GCJ='${wl}-E'
25199
25200         # hardcode_minus_L: Not really in the search PATH,
25201         # but as the default location of the library.
25202         hardcode_minus_L_GCJ=yes
25203       fi
25204       ;;
25205
25206     hpux11*)
25207       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25208         case $host_cpu in
25209         hppa*64*)
25210           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25211           ;;
25212         ia64*)
25213           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25214           ;;
25215         *)
25216           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25217           ;;
25218         esac
25219       else
25220         case $host_cpu in
25221         hppa*64*)
25222           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25223           ;;
25224         ia64*)
25225           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25226           ;;
25227         *)
25228           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25229           ;;
25230         esac
25231       fi
25232       if test "$with_gnu_ld" = no; then
25233         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25234         hardcode_libdir_separator_GCJ=:
25235
25236         case $host_cpu in
25237         hppa*64*|ia64*)
25238           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25239           hardcode_direct_GCJ=no
25240           hardcode_shlibpath_var_GCJ=no
25241           ;;
25242         *)
25243           hardcode_direct_GCJ=yes
25244           export_dynamic_flag_spec_GCJ='${wl}-E'
25245
25246           # hardcode_minus_L: Not really in the search PATH,
25247           # but as the default location of the library.
25248           hardcode_minus_L_GCJ=yes
25249           ;;
25250         esac
25251       fi
25252       ;;
25253
25254     irix5* | irix6* | nonstopux*)
25255       if test "$GCC" = yes; then
25256         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'
25257       else
25258         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'
25259         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25260       fi
25261       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25262       hardcode_libdir_separator_GCJ=:
25263       link_all_deplibs_GCJ=yes
25264       ;;
25265
25266     netbsd*)
25267       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25268         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25269       else
25270         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25271       fi
25272       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25273       hardcode_direct_GCJ=yes
25274       hardcode_shlibpath_var_GCJ=no
25275       ;;
25276
25277     newsos6)
25278       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25279       hardcode_direct_GCJ=yes
25280       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25281       hardcode_libdir_separator_GCJ=:
25282       hardcode_shlibpath_var_GCJ=no
25283       ;;
25284
25285     openbsd*)
25286       hardcode_direct_GCJ=yes
25287       hardcode_shlibpath_var_GCJ=no
25288       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25289         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25290         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25291         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25292         export_dynamic_flag_spec_GCJ='${wl}-E'
25293       else
25294        case $host_os in
25295          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25296            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25297            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25298            ;;
25299          *)
25300            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25301            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25302            ;;
25303        esac
25304       fi
25305       ;;
25306
25307     os2*)
25308       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25309       hardcode_minus_L_GCJ=yes
25310       allow_undefined_flag_GCJ=unsupported
25311       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'
25312       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25313       ;;
25314
25315     osf3*)
25316       if test "$GCC" = yes; then
25317         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25318         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'
25319       else
25320         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25321         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'
25322       fi
25323       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25324       hardcode_libdir_separator_GCJ=:
25325       ;;
25326
25327     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25328       if test "$GCC" = yes; then
25329         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25330         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'
25331         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25332       else
25333         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25334         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'
25335         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~
25336         $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'
25337
25338         # Both c and cxx compiler support -rpath directly
25339         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25340       fi
25341       hardcode_libdir_separator_GCJ=:
25342       ;;
25343
25344     solaris*)
25345       no_undefined_flag_GCJ=' -z text'
25346       if test "$GCC" = yes; then
25347         wlarc='${wl}'
25348         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25349         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25350           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25351       else
25352         wlarc=''
25353         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25354         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25355         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25356       fi
25357       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25358       hardcode_shlibpath_var_GCJ=no
25359       case $host_os in
25360       solaris2.[0-5] | solaris2.[0-5].*) ;;
25361       *)
25362         # The compiler driver will combine linker options so we
25363         # cannot just pass the convience library names through
25364         # without $wl, iff we do not link with $LD.
25365         # Luckily, gcc supports the same syntax we need for Sun Studio.
25366         # Supported since Solaris 2.6 (maybe 2.5.1?)
25367         case $wlarc in
25368         '')
25369           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25370         *)
25371           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' ;;
25372         esac ;;
25373       esac
25374       link_all_deplibs_GCJ=yes
25375       ;;
25376
25377     sunos4*)
25378       if test "x$host_vendor" = xsequent; then
25379         # Use $CC to link under sequent, because it throws in some extra .o
25380         # files that make .init and .fini sections work.
25381         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25382       else
25383         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25384       fi
25385       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25386       hardcode_direct_GCJ=yes
25387       hardcode_minus_L_GCJ=yes
25388       hardcode_shlibpath_var_GCJ=no
25389       ;;
25390
25391     sysv4)
25392       case $host_vendor in
25393         sni)
25394           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25395           hardcode_direct_GCJ=yes # is this really true???
25396         ;;
25397         siemens)
25398           ## LD is ld it makes a PLAMLIB
25399           ## CC just makes a GrossModule.
25400           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25401           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25402           hardcode_direct_GCJ=no
25403         ;;
25404         motorola)
25405           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25406           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25407         ;;
25408       esac
25409       runpath_var='LD_RUN_PATH'
25410       hardcode_shlibpath_var_GCJ=no
25411       ;;
25412
25413     sysv4.3*)
25414       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25415       hardcode_shlibpath_var_GCJ=no
25416       export_dynamic_flag_spec_GCJ='-Bexport'
25417       ;;
25418
25419     sysv4*MP*)
25420       if test -d /usr/nec; then
25421         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25422         hardcode_shlibpath_var_GCJ=no
25423         runpath_var=LD_RUN_PATH
25424         hardcode_runpath_var=yes
25425         ld_shlibs_GCJ=yes
25426       fi
25427       ;;
25428
25429     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25430       no_undefined_flag_GCJ='${wl}-z,text'
25431       archive_cmds_need_lc_GCJ=no
25432       hardcode_shlibpath_var_GCJ=no
25433       runpath_var='LD_RUN_PATH'
25434
25435       if test "$GCC" = yes; then
25436         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25437         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25438       else
25439         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25440         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25441       fi
25442       ;;
25443
25444     sysv5* | sco3.2v5* | sco5v6*)
25445       # Note: We can NOT use -z defs as we might desire, because we do not
25446       # link with -lc, and that would cause any symbols used from libc to
25447       # always be unresolved, which means just about no library would
25448       # ever link correctly.  If we're not using GNU ld we use -z text
25449       # though, which does catch some bad symbols but isn't as heavy-handed
25450       # as -z defs.
25451       no_undefined_flag_GCJ='${wl}-z,text'
25452       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25453       archive_cmds_need_lc_GCJ=no
25454       hardcode_shlibpath_var_GCJ=no
25455       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25456       hardcode_libdir_separator_GCJ=':'
25457       link_all_deplibs_GCJ=yes
25458       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25459       runpath_var='LD_RUN_PATH'
25460
25461       if test "$GCC" = yes; then
25462         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25463         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25464       else
25465         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25466         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25467       fi
25468       ;;
25469
25470     uts4*)
25471       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25472       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25473       hardcode_shlibpath_var_GCJ=no
25474       ;;
25475
25476     *)
25477       ld_shlibs_GCJ=no
25478       ;;
25479     esac
25480   fi
25481
25482 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25483 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25484 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25485
25486 #
25487 # Do we need to explicitly link libc?
25488 #
25489 case "x$archive_cmds_need_lc_GCJ" in
25490 x|xyes)
25491   # Assume -lc should be added
25492   archive_cmds_need_lc_GCJ=yes
25493
25494   if test "$enable_shared" = yes && test "$GCC" = yes; then
25495     case $archive_cmds_GCJ in
25496     *'~'*)
25497       # FIXME: we may have to deal with multi-command sequences.
25498       ;;
25499     '$CC '*)
25500       # Test whether the compiler implicitly links with -lc since on some
25501       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25502       # to ld, don't add -lc before -lgcc.
25503       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25504 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25505       $rm conftest*
25506       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25507
25508       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25509   (eval $ac_compile) 2>&5
25510   ac_status=$?
25511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512   (exit $ac_status); } 2>conftest.err; then
25513         soname=conftest
25514         lib=conftest
25515         libobjs=conftest.$ac_objext
25516         deplibs=
25517         wl=$lt_prog_compiler_wl_GCJ
25518         pic_flag=$lt_prog_compiler_pic_GCJ
25519         compiler_flags=-v
25520         linker_flags=-v
25521         verstring=
25522         output_objdir=.
25523         libname=conftest
25524         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25525         allow_undefined_flag_GCJ=
25526         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25527   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25528   ac_status=$?
25529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530   (exit $ac_status); }
25531         then
25532           archive_cmds_need_lc_GCJ=no
25533         else
25534           archive_cmds_need_lc_GCJ=yes
25535         fi
25536         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25537       else
25538         cat conftest.err 1>&5
25539       fi
25540       $rm conftest*
25541       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25542 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25543       ;;
25544     esac
25545   fi
25546   ;;
25547 esac
25548
25549 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25550 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25551 library_names_spec=
25552 libname_spec='lib$name'
25553 soname_spec=
25554 shrext_cmds=".so"
25555 postinstall_cmds=
25556 postuninstall_cmds=
25557 finish_cmds=
25558 finish_eval=
25559 shlibpath_var=
25560 shlibpath_overrides_runpath=unknown
25561 version_type=none
25562 dynamic_linker="$host_os ld.so"
25563 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25564 if test "$GCC" = yes; then
25565   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25566   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25567     # if the path contains ";" then we assume it to be the separator
25568     # otherwise default to the standard path separator (i.e. ":") - it is
25569     # assumed that no part of a normal pathname contains ";" but that should
25570     # okay in the real world where ";" in dirpaths is itself problematic.
25571     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25572   else
25573     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25574   fi
25575 else
25576   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25577 fi
25578 need_lib_prefix=unknown
25579 hardcode_into_libs=no
25580
25581 # when you set need_version to no, make sure it does not cause -set_version
25582 # flags to be left without arguments
25583 need_version=unknown
25584
25585 case $host_os in
25586 aix3*)
25587   version_type=linux
25588   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25589   shlibpath_var=LIBPATH
25590
25591   # AIX 3 has no versioning support, so we append a major version to the name.
25592   soname_spec='${libname}${release}${shared_ext}$major'
25593   ;;
25594
25595 aix4* | aix5*)
25596   version_type=linux
25597   need_lib_prefix=no
25598   need_version=no
25599   hardcode_into_libs=yes
25600   if test "$host_cpu" = ia64; then
25601     # AIX 5 supports IA64
25602     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25603     shlibpath_var=LD_LIBRARY_PATH
25604   else
25605     # With GCC up to 2.95.x, collect2 would create an import file
25606     # for dependence libraries.  The import file would start with
25607     # the line `#! .'.  This would cause the generated library to
25608     # depend on `.', always an invalid library.  This was fixed in
25609     # development snapshots of GCC prior to 3.0.
25610     case $host_os in
25611       aix4 | aix4.[01] | aix4.[01].*)
25612       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25613            echo ' yes '
25614            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25615         :
25616       else
25617         can_build_shared=no
25618       fi
25619       ;;
25620     esac
25621     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25622     # soname into executable. Probably we can add versioning support to
25623     # collect2, so additional links can be useful in future.
25624     if test "$aix_use_runtimelinking" = yes; then
25625       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25626       # instead of lib<name>.a to let people know that these are not
25627       # typical AIX shared libraries.
25628       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25629     else
25630       # We preserve .a as extension for shared libraries through AIX4.2
25631       # and later when we are not doing run time linking.
25632       library_names_spec='${libname}${release}.a $libname.a'
25633       soname_spec='${libname}${release}${shared_ext}$major'
25634     fi
25635     shlibpath_var=LIBPATH
25636   fi
25637   ;;
25638
25639 amigaos*)
25640   library_names_spec='$libname.ixlibrary $libname.a'
25641   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25642   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'
25643   ;;
25644
25645 beos*)
25646   library_names_spec='${libname}${shared_ext}'
25647   dynamic_linker="$host_os ld.so"
25648   shlibpath_var=LIBRARY_PATH
25649   ;;
25650
25651 bsdi[45]*)
25652   version_type=linux
25653   need_version=no
25654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25655   soname_spec='${libname}${release}${shared_ext}$major'
25656   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25657   shlibpath_var=LD_LIBRARY_PATH
25658   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25659   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25660   # the default ld.so.conf also contains /usr/contrib/lib and
25661   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25662   # libtool to hard-code these into programs
25663   ;;
25664
25665 cygwin* | mingw* | pw32*)
25666   version_type=windows
25667   shrext_cmds=".dll"
25668   need_version=no
25669   need_lib_prefix=no
25670
25671   case $GCC,$host_os in
25672   yes,cygwin* | yes,mingw* | yes,pw32*)
25673     library_names_spec='$libname.dll.a'
25674     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25675     postinstall_cmds='base_file=`basename \${file}`~
25676       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25677       dldir=$destdir/`dirname \$dlpath`~
25678       test -d \$dldir || mkdir -p \$dldir~
25679       $install_prog $dir/$dlname \$dldir/$dlname~
25680       chmod a+x \$dldir/$dlname'
25681     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25682       dlpath=$dir/\$dldll~
25683        $rm \$dlpath'
25684     shlibpath_overrides_runpath=yes
25685
25686     case $host_os in
25687     cygwin*)
25688       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25689       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25690       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25691       ;;
25692     mingw*)
25693       # MinGW DLLs use traditional 'lib' prefix
25694       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25695       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25696       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25697         # It is most probably a Windows format PATH printed by
25698         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25699         # path with ; separators, and with drive letters. We can handle the
25700         # drive letters (cygwin fileutils understands them), so leave them,
25701         # especially as we might pass files found there to a mingw objdump,
25702         # which wouldn't understand a cygwinified path. Ahh.
25703         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25704       else
25705         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25706       fi
25707       ;;
25708     pw32*)
25709       # pw32 DLLs use 'pw' prefix rather than 'lib'
25710       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25711       ;;
25712     esac
25713     ;;
25714
25715   *)
25716     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25717     ;;
25718   esac
25719   dynamic_linker='Win32 ld.exe'
25720   # FIXME: first we should search . and the directory the executable is in
25721   shlibpath_var=PATH
25722   ;;
25723
25724 darwin* | rhapsody*)
25725   dynamic_linker="$host_os dyld"
25726   version_type=darwin
25727   need_lib_prefix=no
25728   need_version=no
25729   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25730   soname_spec='${libname}${release}${major}$shared_ext'
25731   shlibpath_overrides_runpath=yes
25732   shlibpath_var=DYLD_LIBRARY_PATH
25733   shrext_cmds='.dylib'
25734   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25735   if test "$GCC" = yes; then
25736     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"`
25737   else
25738     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25739   fi
25740   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25741   ;;
25742
25743 dgux*)
25744   version_type=linux
25745   need_lib_prefix=no
25746   need_version=no
25747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25748   soname_spec='${libname}${release}${shared_ext}$major'
25749   shlibpath_var=LD_LIBRARY_PATH
25750   ;;
25751
25752 freebsd1*)
25753   dynamic_linker=no
25754   ;;
25755
25756 kfreebsd*-gnu)
25757   version_type=linux
25758   need_lib_prefix=no
25759   need_version=no
25760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25761   soname_spec='${libname}${release}${shared_ext}$major'
25762   shlibpath_var=LD_LIBRARY_PATH
25763   shlibpath_overrides_runpath=no
25764   hardcode_into_libs=yes
25765   dynamic_linker='GNU ld.so'
25766   ;;
25767
25768 freebsd* | dragonfly*)
25769   # DragonFly does not have aout.  When/if they implement a new
25770   # versioning mechanism, adjust this.
25771   if test -x /usr/bin/objformat; then
25772     objformat=`/usr/bin/objformat`
25773   else
25774     case $host_os in
25775     freebsd[123]*) objformat=aout ;;
25776     *) objformat=elf ;;
25777     esac
25778   fi
25779   version_type=freebsd-$objformat
25780   case $version_type in
25781     freebsd-elf*)
25782       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25783       need_version=no
25784       need_lib_prefix=no
25785       ;;
25786     freebsd-*)
25787       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25788       need_version=yes
25789       ;;
25790   esac
25791   shlibpath_var=LD_LIBRARY_PATH
25792   case $host_os in
25793   freebsd2*)
25794     shlibpath_overrides_runpath=yes
25795     ;;
25796   freebsd3.[01]* | freebsdelf3.[01]*)
25797     shlibpath_overrides_runpath=yes
25798     hardcode_into_libs=yes
25799     ;;
25800   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25801   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25802     shlibpath_overrides_runpath=no
25803     hardcode_into_libs=yes
25804     ;;
25805   freebsd*) # from 4.6 on
25806     shlibpath_overrides_runpath=yes
25807     hardcode_into_libs=yes
25808     ;;
25809   esac
25810   ;;
25811
25812 gnu*)
25813   version_type=linux
25814   need_lib_prefix=no
25815   need_version=no
25816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25817   soname_spec='${libname}${release}${shared_ext}$major'
25818   shlibpath_var=LD_LIBRARY_PATH
25819   hardcode_into_libs=yes
25820   ;;
25821
25822 hpux9* | hpux10* | hpux11*)
25823   # Give a soname corresponding to the major version so that dld.sl refuses to
25824   # link against other versions.
25825   version_type=sunos
25826   need_lib_prefix=no
25827   need_version=no
25828   case $host_cpu in
25829   ia64*)
25830     shrext_cmds='.so'
25831     hardcode_into_libs=yes
25832     dynamic_linker="$host_os dld.so"
25833     shlibpath_var=LD_LIBRARY_PATH
25834     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25835     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25836     soname_spec='${libname}${release}${shared_ext}$major'
25837     if test "X$HPUX_IA64_MODE" = X32; then
25838       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25839     else
25840       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25841     fi
25842     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25843     ;;
25844    hppa*64*)
25845      shrext_cmds='.sl'
25846      hardcode_into_libs=yes
25847      dynamic_linker="$host_os dld.sl"
25848      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25849      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25850      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25851      soname_spec='${libname}${release}${shared_ext}$major'
25852      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25853      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25854      ;;
25855    *)
25856     shrext_cmds='.sl'
25857     dynamic_linker="$host_os dld.sl"
25858     shlibpath_var=SHLIB_PATH
25859     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25860     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25861     soname_spec='${libname}${release}${shared_ext}$major'
25862     ;;
25863   esac
25864   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25865   postinstall_cmds='chmod 555 $lib'
25866   ;;
25867
25868 interix3*)
25869   version_type=linux
25870   need_lib_prefix=no
25871   need_version=no
25872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25873   soname_spec='${libname}${release}${shared_ext}$major'
25874   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25875   shlibpath_var=LD_LIBRARY_PATH
25876   shlibpath_overrides_runpath=no
25877   hardcode_into_libs=yes
25878   ;;
25879
25880 irix5* | irix6* | nonstopux*)
25881   case $host_os in
25882     nonstopux*) version_type=nonstopux ;;
25883     *)
25884         if test "$lt_cv_prog_gnu_ld" = yes; then
25885                 version_type=linux
25886         else
25887                 version_type=irix
25888         fi ;;
25889   esac
25890   need_lib_prefix=no
25891   need_version=no
25892   soname_spec='${libname}${release}${shared_ext}$major'
25893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25894   case $host_os in
25895   irix5* | nonstopux*)
25896     libsuff= shlibsuff=
25897     ;;
25898   *)
25899     case $LD in # libtool.m4 will add one of these switches to LD
25900     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25901       libsuff= shlibsuff= libmagic=32-bit;;
25902     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25903       libsuff=32 shlibsuff=N32 libmagic=N32;;
25904     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25905       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25906     *) libsuff= shlibsuff= libmagic=never-match;;
25907     esac
25908     ;;
25909   esac
25910   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25911   shlibpath_overrides_runpath=no
25912   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25913   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25914   hardcode_into_libs=yes
25915   ;;
25916
25917 # No shared lib support for Linux oldld, aout, or coff.
25918 linux*oldld* | linux*aout* | linux*coff*)
25919   dynamic_linker=no
25920   ;;
25921
25922 # This must be Linux ELF.
25923 linux*)
25924   version_type=linux
25925   need_lib_prefix=no
25926   need_version=no
25927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25928   soname_spec='${libname}${release}${shared_ext}$major'
25929   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25930   shlibpath_var=LD_LIBRARY_PATH
25931   shlibpath_overrides_runpath=no
25932   # This implies no fast_install, which is unacceptable.
25933   # Some rework will be needed to allow for fast_install
25934   # before this can be enabled.
25935   hardcode_into_libs=yes
25936
25937   # Append ld.so.conf contents to the search path
25938   if test -f /etc/ld.so.conf; then
25939     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' ' '`
25940     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25941   fi
25942
25943   # We used to test for /lib/ld.so.1 and disable shared libraries on
25944   # powerpc, because MkLinux only supported shared libraries with the
25945   # GNU dynamic linker.  Since this was broken with cross compilers,
25946   # most powerpc-linux boxes support dynamic linking these days and
25947   # people can always --disable-shared, the test was removed, and we
25948   # assume the GNU/Linux dynamic linker is in use.
25949   dynamic_linker='GNU/Linux ld.so'
25950   ;;
25951
25952 knetbsd*-gnu)
25953   version_type=linux
25954   need_lib_prefix=no
25955   need_version=no
25956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25957   soname_spec='${libname}${release}${shared_ext}$major'
25958   shlibpath_var=LD_LIBRARY_PATH
25959   shlibpath_overrides_runpath=no
25960   hardcode_into_libs=yes
25961   dynamic_linker='GNU ld.so'
25962   ;;
25963
25964 netbsd*)
25965   version_type=sunos
25966   need_lib_prefix=no
25967   need_version=no
25968   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25970     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25971     dynamic_linker='NetBSD (a.out) ld.so'
25972   else
25973     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25974     soname_spec='${libname}${release}${shared_ext}$major'
25975     dynamic_linker='NetBSD ld.elf_so'
25976   fi
25977   shlibpath_var=LD_LIBRARY_PATH
25978   shlibpath_overrides_runpath=yes
25979   hardcode_into_libs=yes
25980   ;;
25981
25982 newsos6)
25983   version_type=linux
25984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25985   shlibpath_var=LD_LIBRARY_PATH
25986   shlibpath_overrides_runpath=yes
25987   ;;
25988
25989 nto-qnx*)
25990   version_type=linux
25991   need_lib_prefix=no
25992   need_version=no
25993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25994   soname_spec='${libname}${release}${shared_ext}$major'
25995   shlibpath_var=LD_LIBRARY_PATH
25996   shlibpath_overrides_runpath=yes
25997   ;;
25998
25999 openbsd*)
26000   version_type=sunos
26001   sys_lib_dlsearch_path_spec="/usr/lib"
26002   need_lib_prefix=no
26003   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26004   case $host_os in
26005     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26006     *)                         need_version=no  ;;
26007   esac
26008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26009   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26010   shlibpath_var=LD_LIBRARY_PATH
26011   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26012     case $host_os in
26013       openbsd2.[89] | openbsd2.[89].*)
26014         shlibpath_overrides_runpath=no
26015         ;;
26016       *)
26017         shlibpath_overrides_runpath=yes
26018         ;;
26019       esac
26020   else
26021     shlibpath_overrides_runpath=yes
26022   fi
26023   ;;
26024
26025 os2*)
26026   libname_spec='$name'
26027   shrext_cmds=".dll"
26028   need_lib_prefix=no
26029   library_names_spec='$libname${shared_ext} $libname.a'
26030   dynamic_linker='OS/2 ld.exe'
26031   shlibpath_var=LIBPATH
26032   ;;
26033
26034 osf3* | osf4* | osf5*)
26035   version_type=osf
26036   need_lib_prefix=no
26037   need_version=no
26038   soname_spec='${libname}${release}${shared_ext}$major'
26039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26040   shlibpath_var=LD_LIBRARY_PATH
26041   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26042   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26043   ;;
26044
26045 solaris*)
26046   version_type=linux
26047   need_lib_prefix=no
26048   need_version=no
26049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26050   soname_spec='${libname}${release}${shared_ext}$major'
26051   shlibpath_var=LD_LIBRARY_PATH
26052   shlibpath_overrides_runpath=yes
26053   hardcode_into_libs=yes
26054   # ldd complains unless libraries are executable
26055   postinstall_cmds='chmod +x $lib'
26056   ;;
26057
26058 sunos4*)
26059   version_type=sunos
26060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26061   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26062   shlibpath_var=LD_LIBRARY_PATH
26063   shlibpath_overrides_runpath=yes
26064   if test "$with_gnu_ld" = yes; then
26065     need_lib_prefix=no
26066   fi
26067   need_version=yes
26068   ;;
26069
26070 sysv4 | sysv4.3*)
26071   version_type=linux
26072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26073   soname_spec='${libname}${release}${shared_ext}$major'
26074   shlibpath_var=LD_LIBRARY_PATH
26075   case $host_vendor in
26076     sni)
26077       shlibpath_overrides_runpath=no
26078       need_lib_prefix=no
26079       export_dynamic_flag_spec='${wl}-Blargedynsym'
26080       runpath_var=LD_RUN_PATH
26081       ;;
26082     siemens)
26083       need_lib_prefix=no
26084       ;;
26085     motorola)
26086       need_lib_prefix=no
26087       need_version=no
26088       shlibpath_overrides_runpath=no
26089       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26090       ;;
26091   esac
26092   ;;
26093
26094 sysv4*MP*)
26095   if test -d /usr/nec ;then
26096     version_type=linux
26097     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26098     soname_spec='$libname${shared_ext}.$major'
26099     shlibpath_var=LD_LIBRARY_PATH
26100   fi
26101   ;;
26102
26103 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26104   version_type=freebsd-elf
26105   need_lib_prefix=no
26106   need_version=no
26107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26108   soname_spec='${libname}${release}${shared_ext}$major'
26109   shlibpath_var=LD_LIBRARY_PATH
26110   hardcode_into_libs=yes
26111   if test "$with_gnu_ld" = yes; then
26112     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26113     shlibpath_overrides_runpath=no
26114   else
26115     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26116     shlibpath_overrides_runpath=yes
26117     case $host_os in
26118       sco3.2v5*)
26119         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26120         ;;
26121     esac
26122   fi
26123   sys_lib_dlsearch_path_spec='/usr/lib'
26124   ;;
26125
26126 uts4*)
26127   version_type=linux
26128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26129   soname_spec='${libname}${release}${shared_ext}$major'
26130   shlibpath_var=LD_LIBRARY_PATH
26131   ;;
26132
26133 *)
26134   dynamic_linker=no
26135   ;;
26136 esac
26137 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26138 echo "${ECHO_T}$dynamic_linker" >&6; }
26139 test "$dynamic_linker" = no && can_build_shared=no
26140
26141 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26142 if test "$GCC" = yes; then
26143   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26144 fi
26145
26146 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26147 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26148 hardcode_action_GCJ=
26149 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26150    test -n "$runpath_var_GCJ" || \
26151    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26152
26153   # We can hardcode non-existant directories.
26154   if test "$hardcode_direct_GCJ" != no &&
26155      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26156      # have to relink, otherwise we might link with an installed library
26157      # when we should be linking with a yet-to-be-installed one
26158      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26159      test "$hardcode_minus_L_GCJ" != no; then
26160     # Linking always hardcodes the temporary library directory.
26161     hardcode_action_GCJ=relink
26162   else
26163     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26164     hardcode_action_GCJ=immediate
26165   fi
26166 else
26167   # We cannot hardcode anything, or else we can only hardcode existing
26168   # directories.
26169   hardcode_action_GCJ=unsupported
26170 fi
26171 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26172 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26173
26174 if test "$hardcode_action_GCJ" = relink; then
26175   # Fast installation is not supported
26176   enable_fast_install=no
26177 elif test "$shlibpath_overrides_runpath" = yes ||
26178      test "$enable_shared" = no; then
26179   # Fast installation is not necessary
26180   enable_fast_install=needless
26181 fi
26182
26183
26184 # The else clause should only fire when bootstrapping the
26185 # libtool distribution, otherwise you forgot to ship ltmain.sh
26186 # with your package, and you will get complaints that there are
26187 # no rules to generate ltmain.sh.
26188 if test -f "$ltmain"; then
26189   # See if we are running on zsh, and set the options which allow our commands through
26190   # without removal of \ escapes.
26191   if test -n "${ZSH_VERSION+set}" ; then
26192     setopt NO_GLOB_SUBST
26193   fi
26194   # Now quote all the things that may contain metacharacters while being
26195   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26196   # variables and quote the copies for generation of the libtool script.
26197   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26198     SED SHELL STRIP \
26199     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26200     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26201     deplibs_check_method reload_flag reload_cmds need_locks \
26202     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26203     lt_cv_sys_global_symbol_to_c_name_address \
26204     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26205     old_postinstall_cmds old_postuninstall_cmds \
26206     compiler_GCJ \
26207     CC_GCJ \
26208     LD_GCJ \
26209     lt_prog_compiler_wl_GCJ \
26210     lt_prog_compiler_pic_GCJ \
26211     lt_prog_compiler_static_GCJ \
26212     lt_prog_compiler_no_builtin_flag_GCJ \
26213     export_dynamic_flag_spec_GCJ \
26214     thread_safe_flag_spec_GCJ \
26215     whole_archive_flag_spec_GCJ \
26216     enable_shared_with_static_runtimes_GCJ \
26217     old_archive_cmds_GCJ \
26218     old_archive_from_new_cmds_GCJ \
26219     predep_objects_GCJ \
26220     postdep_objects_GCJ \
26221     predeps_GCJ \
26222     postdeps_GCJ \
26223     compiler_lib_search_path_GCJ \
26224     archive_cmds_GCJ \
26225     archive_expsym_cmds_GCJ \
26226     postinstall_cmds_GCJ \
26227     postuninstall_cmds_GCJ \
26228     old_archive_from_expsyms_cmds_GCJ \
26229     allow_undefined_flag_GCJ \
26230     no_undefined_flag_GCJ \
26231     export_symbols_cmds_GCJ \
26232     hardcode_libdir_flag_spec_GCJ \
26233     hardcode_libdir_flag_spec_ld_GCJ \
26234     hardcode_libdir_separator_GCJ \
26235     hardcode_automatic_GCJ \
26236     module_cmds_GCJ \
26237     module_expsym_cmds_GCJ \
26238     lt_cv_prog_compiler_c_o_GCJ \
26239     exclude_expsyms_GCJ \
26240     include_expsyms_GCJ; do
26241
26242     case $var in
26243     old_archive_cmds_GCJ | \
26244     old_archive_from_new_cmds_GCJ | \
26245     archive_cmds_GCJ | \
26246     archive_expsym_cmds_GCJ | \
26247     module_cmds_GCJ | \
26248     module_expsym_cmds_GCJ | \
26249     old_archive_from_expsyms_cmds_GCJ | \
26250     export_symbols_cmds_GCJ | \
26251     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26252     postinstall_cmds | postuninstall_cmds | \
26253     old_postinstall_cmds | old_postuninstall_cmds | \
26254     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26255       # Double-quote double-evaled strings.
26256       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26257       ;;
26258     *)
26259       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26260       ;;
26261     esac
26262   done
26263
26264   case $lt_echo in
26265   *'\$0 --fallback-echo"')
26266     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26267     ;;
26268   esac
26269
26270 cfgfile="$ofile"
26271
26272   cat <<__EOF__ >> "$cfgfile"
26273 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26274
26275 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26276
26277 # Shell to use when invoking shell scripts.
26278 SHELL=$lt_SHELL
26279
26280 # Whether or not to build shared libraries.
26281 build_libtool_libs=$enable_shared
26282
26283 # Whether or not to build static libraries.
26284 build_old_libs=$enable_static
26285
26286 # Whether or not to add -lc for building shared libraries.
26287 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26288
26289 # Whether or not to disallow shared libs when runtime libs are static
26290 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26291
26292 # Whether or not to optimize for fast installation.
26293 fast_install=$enable_fast_install
26294
26295 # The host system.
26296 host_alias=$host_alias
26297 host=$host
26298 host_os=$host_os
26299
26300 # The build system.
26301 build_alias=$build_alias
26302 build=$build
26303 build_os=$build_os
26304
26305 # An echo program that does not interpret backslashes.
26306 echo=$lt_echo
26307
26308 # The archiver.
26309 AR=$lt_AR
26310 AR_FLAGS=$lt_AR_FLAGS
26311
26312 # A C compiler.
26313 LTCC=$lt_LTCC
26314
26315 # LTCC compiler flags.
26316 LTCFLAGS=$lt_LTCFLAGS
26317
26318 # A language-specific compiler.
26319 CC=$lt_compiler_GCJ
26320
26321 # Is the compiler the GNU C compiler?
26322 with_gcc=$GCC_GCJ
26323
26324 # An ERE matcher.
26325 EGREP=$lt_EGREP
26326
26327 # The linker used to build libraries.
26328 LD=$lt_LD_GCJ
26329
26330 # Whether we need hard or soft links.
26331 LN_S=$lt_LN_S
26332
26333 # A BSD-compatible nm program.
26334 NM=$lt_NM
26335
26336 # A symbol stripping program
26337 STRIP=$lt_STRIP
26338
26339 # Used to examine libraries when file_magic_cmd begins "file"
26340 MAGIC_CMD=$MAGIC_CMD
26341
26342 # Used on cygwin: DLL creation program.
26343 DLLTOOL="$DLLTOOL"
26344
26345 # Used on cygwin: object dumper.
26346 OBJDUMP="$OBJDUMP"
26347
26348 # Used on cygwin: assembler.
26349 AS="$AS"
26350
26351 # The name of the directory that contains temporary libtool files.
26352 objdir=$objdir
26353
26354 # How to create reloadable object files.
26355 reload_flag=$lt_reload_flag
26356 reload_cmds=$lt_reload_cmds
26357
26358 # How to pass a linker flag through the compiler.
26359 wl=$lt_lt_prog_compiler_wl_GCJ
26360
26361 # Object file suffix (normally "o").
26362 objext="$ac_objext"
26363
26364 # Old archive suffix (normally "a").
26365 libext="$libext"
26366
26367 # Shared library suffix (normally ".so").
26368 shrext_cmds='$shrext_cmds'
26369
26370 # Executable file suffix (normally "").
26371 exeext="$exeext"
26372
26373 # Additional compiler flags for building library objects.
26374 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26375 pic_mode=$pic_mode
26376
26377 # What is the maximum length of a command?
26378 max_cmd_len=$lt_cv_sys_max_cmd_len
26379
26380 # Does compiler simultaneously support -c and -o options?
26381 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26382
26383 # Must we lock files when doing compilation?
26384 need_locks=$lt_need_locks
26385
26386 # Do we need the lib prefix for modules?
26387 need_lib_prefix=$need_lib_prefix
26388
26389 # Do we need a version for libraries?
26390 need_version=$need_version
26391
26392 # Whether dlopen is supported.
26393 dlopen_support=$enable_dlopen
26394
26395 # Whether dlopen of programs is supported.
26396 dlopen_self=$enable_dlopen_self
26397
26398 # Whether dlopen of statically linked programs is supported.
26399 dlopen_self_static=$enable_dlopen_self_static
26400
26401 # Compiler flag to prevent dynamic linking.
26402 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26403
26404 # Compiler flag to turn off builtin functions.
26405 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26406
26407 # Compiler flag to allow reflexive dlopens.
26408 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26409
26410 # Compiler flag to generate shared objects directly from archives.
26411 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26412
26413 # Compiler flag to generate thread-safe objects.
26414 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26415
26416 # Library versioning type.
26417 version_type=$version_type
26418
26419 # Format of library name prefix.
26420 libname_spec=$lt_libname_spec
26421
26422 # List of archive names.  First name is the real one, the rest are links.
26423 # The last name is the one that the linker finds with -lNAME.
26424 library_names_spec=$lt_library_names_spec
26425
26426 # The coded name of the library, if different from the real name.
26427 soname_spec=$lt_soname_spec
26428
26429 # Commands used to build and install an old-style archive.
26430 RANLIB=$lt_RANLIB
26431 old_archive_cmds=$lt_old_archive_cmds_GCJ
26432 old_postinstall_cmds=$lt_old_postinstall_cmds
26433 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26434
26435 # Create an old-style archive from a shared archive.
26436 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26437
26438 # Create a temporary old-style archive to link instead of a shared archive.
26439 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26440
26441 # Commands used to build and install a shared archive.
26442 archive_cmds=$lt_archive_cmds_GCJ
26443 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26444 postinstall_cmds=$lt_postinstall_cmds
26445 postuninstall_cmds=$lt_postuninstall_cmds
26446
26447 # Commands used to build a loadable module (assumed same as above if empty)
26448 module_cmds=$lt_module_cmds_GCJ
26449 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26450
26451 # Commands to strip libraries.
26452 old_striplib=$lt_old_striplib
26453 striplib=$lt_striplib
26454
26455 # Dependencies to place before the objects being linked to create a
26456 # shared library.
26457 predep_objects=$lt_predep_objects_GCJ
26458
26459 # Dependencies to place after the objects being linked to create a
26460 # shared library.
26461 postdep_objects=$lt_postdep_objects_GCJ
26462
26463 # Dependencies to place before the objects being linked to create a
26464 # shared library.
26465 predeps=$lt_predeps_GCJ
26466
26467 # Dependencies to place after the objects being linked to create a
26468 # shared library.
26469 postdeps=$lt_postdeps_GCJ
26470
26471 # The library search path used internally by the compiler when linking
26472 # a shared library.
26473 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26474
26475 # Method to check whether dependent libraries are shared objects.
26476 deplibs_check_method=$lt_deplibs_check_method
26477
26478 # Command to use when deplibs_check_method == file_magic.
26479 file_magic_cmd=$lt_file_magic_cmd
26480
26481 # Flag that allows shared libraries with undefined symbols to be built.
26482 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26483
26484 # Flag that forces no undefined symbols.
26485 no_undefined_flag=$lt_no_undefined_flag_GCJ
26486
26487 # Commands used to finish a libtool library installation in a directory.
26488 finish_cmds=$lt_finish_cmds
26489
26490 # Same as above, but a single script fragment to be evaled but not shown.
26491 finish_eval=$lt_finish_eval
26492
26493 # Take the output of nm and produce a listing of raw symbols and C names.
26494 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26495
26496 # Transform the output of nm in a proper C declaration
26497 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26498
26499 # Transform the output of nm in a C name address pair
26500 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26501
26502 # This is the shared library runtime path variable.
26503 runpath_var=$runpath_var
26504
26505 # This is the shared library path variable.
26506 shlibpath_var=$shlibpath_var
26507
26508 # Is shlibpath searched before the hard-coded library search path?
26509 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26510
26511 # How to hardcode a shared library path into an executable.
26512 hardcode_action=$hardcode_action_GCJ
26513
26514 # Whether we should hardcode library paths into libraries.
26515 hardcode_into_libs=$hardcode_into_libs
26516
26517 # Flag to hardcode \$libdir into a binary during linking.
26518 # This must work even if \$libdir does not exist.
26519 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26520
26521 # If ld is used when linking, flag to hardcode \$libdir into
26522 # a binary during linking. This must work even if \$libdir does
26523 # not exist.
26524 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26525
26526 # Whether we need a single -rpath flag with a separated argument.
26527 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26528
26529 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26530 # resulting binary.
26531 hardcode_direct=$hardcode_direct_GCJ
26532
26533 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26534 # resulting binary.
26535 hardcode_minus_L=$hardcode_minus_L_GCJ
26536
26537 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26538 # the resulting binary.
26539 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26540
26541 # Set to yes if building a shared library automatically hardcodes DIR into the library
26542 # and all subsequent libraries and executables linked against it.
26543 hardcode_automatic=$hardcode_automatic_GCJ
26544
26545 # Variables whose values should be saved in libtool wrapper scripts and
26546 # restored at relink time.
26547 variables_saved_for_relink="$variables_saved_for_relink"
26548
26549 # Whether libtool must link a program against all its dependency libraries.
26550 link_all_deplibs=$link_all_deplibs_GCJ
26551
26552 # Compile-time system search path for libraries
26553 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26554
26555 # Run-time system search path for libraries
26556 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26557
26558 # Fix the shell variable \$srcfile for the compiler.
26559 fix_srcfile_path="$fix_srcfile_path_GCJ"
26560
26561 # Set to yes if exported symbols are required.
26562 always_export_symbols=$always_export_symbols_GCJ
26563
26564 # The commands to list exported symbols.
26565 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26566
26567 # The commands to extract the exported symbol list from a shared archive.
26568 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26569
26570 # Symbols that should not be listed in the preloaded symbols.
26571 exclude_expsyms=$lt_exclude_expsyms_GCJ
26572
26573 # Symbols that must always be exported.
26574 include_expsyms=$lt_include_expsyms_GCJ
26575
26576 # ### END LIBTOOL TAG CONFIG: $tagname
26577
26578 __EOF__
26579
26580
26581 else
26582   # If there is no Makefile yet, we rely on a make rule to execute
26583   # `config.status --recheck' to rerun these tests and create the
26584   # libtool script then.
26585   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26586   if test -f "$ltmain_in"; then
26587     test -f Makefile && make "$ltmain"
26588   fi
26589 fi
26590
26591
26592 ac_ext=c
26593 ac_cpp='$CPP $CPPFLAGS'
26594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26597
26598 CC="$lt_save_CC"
26599
26600         else
26601           tagname=""
26602         fi
26603         ;;
26604
26605       RC)
26606         ac_ext=c
26607 ac_cpp='$CPP $CPPFLAGS'
26608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26611
26612
26613 # Source file extension for RC test sources.
26614 ac_ext=rc
26615
26616 # Object file extension for compiled RC test sources.
26617 objext=o
26618 objext_RC=$objext
26619
26620 # Code to be used in simple compile tests
26621 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26622
26623 # Code to be used in simple link tests
26624 lt_simple_link_test_code="$lt_simple_compile_test_code"
26625
26626 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26627
26628 # If no C compiler was specified, use CC.
26629 LTCC=${LTCC-"$CC"}
26630
26631 # If no C compiler flags were specified, use CFLAGS.
26632 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26633
26634 # Allow CC to be a program name with arguments.
26635 compiler=$CC
26636
26637
26638 # save warnings/boilerplate of simple test code
26639 ac_outfile=conftest.$ac_objext
26640 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26641 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26642 _lt_compiler_boilerplate=`cat conftest.err`
26643 $rm conftest*
26644
26645 ac_outfile=conftest.$ac_objext
26646 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26647 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26648 _lt_linker_boilerplate=`cat conftest.err`
26649 $rm conftest*
26650
26651
26652 # Allow CC to be a program name with arguments.
26653 lt_save_CC="$CC"
26654 CC=${RC-"windres"}
26655 compiler=$CC
26656 compiler_RC=$CC
26657 for cc_temp in $compiler""; do
26658   case $cc_temp in
26659     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26660     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26661     \-*) ;;
26662     *) break;;
26663   esac
26664 done
26665 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26666
26667 lt_cv_prog_compiler_c_o_RC=yes
26668
26669 # The else clause should only fire when bootstrapping the
26670 # libtool distribution, otherwise you forgot to ship ltmain.sh
26671 # with your package, and you will get complaints that there are
26672 # no rules to generate ltmain.sh.
26673 if test -f "$ltmain"; then
26674   # See if we are running on zsh, and set the options which allow our commands through
26675   # without removal of \ escapes.
26676   if test -n "${ZSH_VERSION+set}" ; then
26677     setopt NO_GLOB_SUBST
26678   fi
26679   # Now quote all the things that may contain metacharacters while being
26680   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26681   # variables and quote the copies for generation of the libtool script.
26682   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26683     SED SHELL STRIP \
26684     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26685     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26686     deplibs_check_method reload_flag reload_cmds need_locks \
26687     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26688     lt_cv_sys_global_symbol_to_c_name_address \
26689     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26690     old_postinstall_cmds old_postuninstall_cmds \
26691     compiler_RC \
26692     CC_RC \
26693     LD_RC \
26694     lt_prog_compiler_wl_RC \
26695     lt_prog_compiler_pic_RC \
26696     lt_prog_compiler_static_RC \
26697     lt_prog_compiler_no_builtin_flag_RC \
26698     export_dynamic_flag_spec_RC \
26699     thread_safe_flag_spec_RC \
26700     whole_archive_flag_spec_RC \
26701     enable_shared_with_static_runtimes_RC \
26702     old_archive_cmds_RC \
26703     old_archive_from_new_cmds_RC \
26704     predep_objects_RC \
26705     postdep_objects_RC \
26706     predeps_RC \
26707     postdeps_RC \
26708     compiler_lib_search_path_RC \
26709     archive_cmds_RC \
26710     archive_expsym_cmds_RC \
26711     postinstall_cmds_RC \
26712     postuninstall_cmds_RC \
26713     old_archive_from_expsyms_cmds_RC \
26714     allow_undefined_flag_RC \
26715     no_undefined_flag_RC \
26716     export_symbols_cmds_RC \
26717     hardcode_libdir_flag_spec_RC \
26718     hardcode_libdir_flag_spec_ld_RC \
26719     hardcode_libdir_separator_RC \
26720     hardcode_automatic_RC \
26721     module_cmds_RC \
26722     module_expsym_cmds_RC \
26723     lt_cv_prog_compiler_c_o_RC \
26724     exclude_expsyms_RC \
26725     include_expsyms_RC; do
26726
26727     case $var in
26728     old_archive_cmds_RC | \
26729     old_archive_from_new_cmds_RC | \
26730     archive_cmds_RC | \
26731     archive_expsym_cmds_RC | \
26732     module_cmds_RC | \
26733     module_expsym_cmds_RC | \
26734     old_archive_from_expsyms_cmds_RC | \
26735     export_symbols_cmds_RC | \
26736     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26737     postinstall_cmds | postuninstall_cmds | \
26738     old_postinstall_cmds | old_postuninstall_cmds | \
26739     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26740       # Double-quote double-evaled strings.
26741       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26742       ;;
26743     *)
26744       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26745       ;;
26746     esac
26747   done
26748
26749   case $lt_echo in
26750   *'\$0 --fallback-echo"')
26751     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26752     ;;
26753   esac
26754
26755 cfgfile="$ofile"
26756
26757   cat <<__EOF__ >> "$cfgfile"
26758 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26759
26760 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26761
26762 # Shell to use when invoking shell scripts.
26763 SHELL=$lt_SHELL
26764
26765 # Whether or not to build shared libraries.
26766 build_libtool_libs=$enable_shared
26767
26768 # Whether or not to build static libraries.
26769 build_old_libs=$enable_static
26770
26771 # Whether or not to add -lc for building shared libraries.
26772 build_libtool_need_lc=$archive_cmds_need_lc_RC
26773
26774 # Whether or not to disallow shared libs when runtime libs are static
26775 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26776
26777 # Whether or not to optimize for fast installation.
26778 fast_install=$enable_fast_install
26779
26780 # The host system.
26781 host_alias=$host_alias
26782 host=$host
26783 host_os=$host_os
26784
26785 # The build system.
26786 build_alias=$build_alias
26787 build=$build
26788 build_os=$build_os
26789
26790 # An echo program that does not interpret backslashes.
26791 echo=$lt_echo
26792
26793 # The archiver.
26794 AR=$lt_AR
26795 AR_FLAGS=$lt_AR_FLAGS
26796
26797 # A C compiler.
26798 LTCC=$lt_LTCC
26799
26800 # LTCC compiler flags.
26801 LTCFLAGS=$lt_LTCFLAGS
26802
26803 # A language-specific compiler.
26804 CC=$lt_compiler_RC
26805
26806 # Is the compiler the GNU C compiler?
26807 with_gcc=$GCC_RC
26808
26809 # An ERE matcher.
26810 EGREP=$lt_EGREP
26811
26812 # The linker used to build libraries.
26813 LD=$lt_LD_RC
26814
26815 # Whether we need hard or soft links.
26816 LN_S=$lt_LN_S
26817
26818 # A BSD-compatible nm program.
26819 NM=$lt_NM
26820
26821 # A symbol stripping program
26822 STRIP=$lt_STRIP
26823
26824 # Used to examine libraries when file_magic_cmd begins "file"
26825 MAGIC_CMD=$MAGIC_CMD
26826
26827 # Used on cygwin: DLL creation program.
26828 DLLTOOL="$DLLTOOL"
26829
26830 # Used on cygwin: object dumper.
26831 OBJDUMP="$OBJDUMP"
26832
26833 # Used on cygwin: assembler.
26834 AS="$AS"
26835
26836 # The name of the directory that contains temporary libtool files.
26837 objdir=$objdir
26838
26839 # How to create reloadable object files.
26840 reload_flag=$lt_reload_flag
26841 reload_cmds=$lt_reload_cmds
26842
26843 # How to pass a linker flag through the compiler.
26844 wl=$lt_lt_prog_compiler_wl_RC
26845
26846 # Object file suffix (normally "o").
26847 objext="$ac_objext"
26848
26849 # Old archive suffix (normally "a").
26850 libext="$libext"
26851
26852 # Shared library suffix (normally ".so").
26853 shrext_cmds='$shrext_cmds'
26854
26855 # Executable file suffix (normally "").
26856 exeext="$exeext"
26857
26858 # Additional compiler flags for building library objects.
26859 pic_flag=$lt_lt_prog_compiler_pic_RC
26860 pic_mode=$pic_mode
26861
26862 # What is the maximum length of a command?
26863 max_cmd_len=$lt_cv_sys_max_cmd_len
26864
26865 # Does compiler simultaneously support -c and -o options?
26866 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26867
26868 # Must we lock files when doing compilation?
26869 need_locks=$lt_need_locks
26870
26871 # Do we need the lib prefix for modules?
26872 need_lib_prefix=$need_lib_prefix
26873
26874 # Do we need a version for libraries?
26875 need_version=$need_version
26876
26877 # Whether dlopen is supported.
26878 dlopen_support=$enable_dlopen
26879
26880 # Whether dlopen of programs is supported.
26881 dlopen_self=$enable_dlopen_self
26882
26883 # Whether dlopen of statically linked programs is supported.
26884 dlopen_self_static=$enable_dlopen_self_static
26885
26886 # Compiler flag to prevent dynamic linking.
26887 link_static_flag=$lt_lt_prog_compiler_static_RC
26888
26889 # Compiler flag to turn off builtin functions.
26890 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26891
26892 # Compiler flag to allow reflexive dlopens.
26893 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26894
26895 # Compiler flag to generate shared objects directly from archives.
26896 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26897
26898 # Compiler flag to generate thread-safe objects.
26899 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26900
26901 # Library versioning type.
26902 version_type=$version_type
26903
26904 # Format of library name prefix.
26905 libname_spec=$lt_libname_spec
26906
26907 # List of archive names.  First name is the real one, the rest are links.
26908 # The last name is the one that the linker finds with -lNAME.
26909 library_names_spec=$lt_library_names_spec
26910
26911 # The coded name of the library, if different from the real name.
26912 soname_spec=$lt_soname_spec
26913
26914 # Commands used to build and install an old-style archive.
26915 RANLIB=$lt_RANLIB
26916 old_archive_cmds=$lt_old_archive_cmds_RC
26917 old_postinstall_cmds=$lt_old_postinstall_cmds
26918 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26919
26920 # Create an old-style archive from a shared archive.
26921 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26922
26923 # Create a temporary old-style archive to link instead of a shared archive.
26924 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26925
26926 # Commands used to build and install a shared archive.
26927 archive_cmds=$lt_archive_cmds_RC
26928 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26929 postinstall_cmds=$lt_postinstall_cmds
26930 postuninstall_cmds=$lt_postuninstall_cmds
26931
26932 # Commands used to build a loadable module (assumed same as above if empty)
26933 module_cmds=$lt_module_cmds_RC
26934 module_expsym_cmds=$lt_module_expsym_cmds_RC
26935
26936 # Commands to strip libraries.
26937 old_striplib=$lt_old_striplib
26938 striplib=$lt_striplib
26939
26940 # Dependencies to place before the objects being linked to create a
26941 # shared library.
26942 predep_objects=$lt_predep_objects_RC
26943
26944 # Dependencies to place after the objects being linked to create a
26945 # shared library.
26946 postdep_objects=$lt_postdep_objects_RC
26947
26948 # Dependencies to place before the objects being linked to create a
26949 # shared library.
26950 predeps=$lt_predeps_RC
26951
26952 # Dependencies to place after the objects being linked to create a
26953 # shared library.
26954 postdeps=$lt_postdeps_RC
26955
26956 # The library search path used internally by the compiler when linking
26957 # a shared library.
26958 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26959
26960 # Method to check whether dependent libraries are shared objects.
26961 deplibs_check_method=$lt_deplibs_check_method
26962
26963 # Command to use when deplibs_check_method == file_magic.
26964 file_magic_cmd=$lt_file_magic_cmd
26965
26966 # Flag that allows shared libraries with undefined symbols to be built.
26967 allow_undefined_flag=$lt_allow_undefined_flag_RC
26968
26969 # Flag that forces no undefined symbols.
26970 no_undefined_flag=$lt_no_undefined_flag_RC
26971
26972 # Commands used to finish a libtool library installation in a directory.
26973 finish_cmds=$lt_finish_cmds
26974
26975 # Same as above, but a single script fragment to be evaled but not shown.
26976 finish_eval=$lt_finish_eval
26977
26978 # Take the output of nm and produce a listing of raw symbols and C names.
26979 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26980
26981 # Transform the output of nm in a proper C declaration
26982 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26983
26984 # Transform the output of nm in a C name address pair
26985 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26986
26987 # This is the shared library runtime path variable.
26988 runpath_var=$runpath_var
26989
26990 # This is the shared library path variable.
26991 shlibpath_var=$shlibpath_var
26992
26993 # Is shlibpath searched before the hard-coded library search path?
26994 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26995
26996 # How to hardcode a shared library path into an executable.
26997 hardcode_action=$hardcode_action_RC
26998
26999 # Whether we should hardcode library paths into libraries.
27000 hardcode_into_libs=$hardcode_into_libs
27001
27002 # Flag to hardcode \$libdir into a binary during linking.
27003 # This must work even if \$libdir does not exist.
27004 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27005
27006 # If ld is used when linking, flag to hardcode \$libdir into
27007 # a binary during linking. This must work even if \$libdir does
27008 # not exist.
27009 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27010
27011 # Whether we need a single -rpath flag with a separated argument.
27012 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27013
27014 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27015 # resulting binary.
27016 hardcode_direct=$hardcode_direct_RC
27017
27018 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27019 # resulting binary.
27020 hardcode_minus_L=$hardcode_minus_L_RC
27021
27022 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27023 # the resulting binary.
27024 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27025
27026 # Set to yes if building a shared library automatically hardcodes DIR into the library
27027 # and all subsequent libraries and executables linked against it.
27028 hardcode_automatic=$hardcode_automatic_RC
27029
27030 # Variables whose values should be saved in libtool wrapper scripts and
27031 # restored at relink time.
27032 variables_saved_for_relink="$variables_saved_for_relink"
27033
27034 # Whether libtool must link a program against all its dependency libraries.
27035 link_all_deplibs=$link_all_deplibs_RC
27036
27037 # Compile-time system search path for libraries
27038 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27039
27040 # Run-time system search path for libraries
27041 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27042
27043 # Fix the shell variable \$srcfile for the compiler.
27044 fix_srcfile_path="$fix_srcfile_path_RC"
27045
27046 # Set to yes if exported symbols are required.
27047 always_export_symbols=$always_export_symbols_RC
27048
27049 # The commands to list exported symbols.
27050 export_symbols_cmds=$lt_export_symbols_cmds_RC
27051
27052 # The commands to extract the exported symbol list from a shared archive.
27053 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27054
27055 # Symbols that should not be listed in the preloaded symbols.
27056 exclude_expsyms=$lt_exclude_expsyms_RC
27057
27058 # Symbols that must always be exported.
27059 include_expsyms=$lt_include_expsyms_RC
27060
27061 # ### END LIBTOOL TAG CONFIG: $tagname
27062
27063 __EOF__
27064
27065
27066 else
27067   # If there is no Makefile yet, we rely on a make rule to execute
27068   # `config.status --recheck' to rerun these tests and create the
27069   # libtool script then.
27070   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27071   if test -f "$ltmain_in"; then
27072     test -f Makefile && make "$ltmain"
27073   fi
27074 fi
27075
27076
27077 ac_ext=c
27078 ac_cpp='$CPP $CPPFLAGS'
27079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27082
27083 CC="$lt_save_CC"
27084
27085         ;;
27086
27087       *)
27088         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27089 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27090    { (exit 1); exit 1; }; }
27091         ;;
27092       esac
27093
27094       # Append the new tag name to the list of available tags.
27095       if test -n "$tagname" ; then
27096       available_tags="$available_tags $tagname"
27097     fi
27098     fi
27099   done
27100   IFS="$lt_save_ifs"
27101
27102   # Now substitute the updated list of available tags.
27103   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27104     mv "${ofile}T" "$ofile"
27105     chmod +x "$ofile"
27106   else
27107     rm -f "${ofile}T"
27108     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27109 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27110    { (exit 1); exit 1; }; }
27111   fi
27112 fi
27113
27114
27115
27116 # This can be used to rebuild libtool when needed
27117 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27118
27119 # Always use our own libtool.
27120 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27121
27122 # Prevent multiple expansion
27123
27124
27125
27126
27127
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144 if test "$lt_cv_dlopen_self" = "yes" ; then
27145
27146 cat >>confdefs.h <<\_ACEOF
27147 #define CAN_DLOPEN_SELF 1
27148 _ACEOF
27149
27150 fi
27151
27152
27153 if test "$WITH_LLVMGCCDIR" = "default" ; then
27154   LLVMGCC="llvm-gcc${EXEEXT}"
27155   LLVMGXX="llvm-g++${EXEEXT}"
27156   LLVMGCCCOMMAND="$LLVMGCC"
27157   LLVMGXXCOMMAND="$LLVMGXX"
27158   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27159
27160   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27161
27162   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27163 set dummy $LLVMGCC; ac_word=$2
27164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27166 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27167   echo $ECHO_N "(cached) $ECHO_C" >&6
27168 else
27169   case $LLVMGCC in
27170   [\\/]* | ?:[\\/]*)
27171   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27172   ;;
27173   *)
27174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27175 for as_dir in $PATH
27176 do
27177   IFS=$as_save_IFS
27178   test -z "$as_dir" && as_dir=.
27179   for ac_exec_ext in '' $ac_executable_extensions; do
27180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27181     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27183     break 2
27184   fi
27185 done
27186 done
27187 IFS=$as_save_IFS
27188
27189   ;;
27190 esac
27191 fi
27192 LLVMGCC=$ac_cv_path_LLVMGCC
27193 if test -n "$LLVMGCC"; then
27194   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27195 echo "${ECHO_T}$LLVMGCC" >&6; }
27196 else
27197   { echo "$as_me:$LINENO: result: no" >&5
27198 echo "${ECHO_T}no" >&6; }
27199 fi
27200
27201
27202   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27203 set dummy $LLVMGXX; ac_word=$2
27204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27206 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27207   echo $ECHO_N "(cached) $ECHO_C" >&6
27208 else
27209   case $LLVMGXX in
27210   [\\/]* | ?:[\\/]*)
27211   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27212   ;;
27213   *)
27214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27215 for as_dir in $PATH
27216 do
27217   IFS=$as_save_IFS
27218   test -z "$as_dir" && as_dir=.
27219   for ac_exec_ext in '' $ac_executable_extensions; do
27220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27221     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27223     break 2
27224   fi
27225 done
27226 done
27227 IFS=$as_save_IFS
27228
27229   ;;
27230 esac
27231 fi
27232 LLVMGXX=$ac_cv_path_LLVMGXX
27233 if test -n "$LLVMGXX"; then
27234   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27235 echo "${ECHO_T}$LLVMGXX" >&6; }
27236 else
27237   { echo "$as_me:$LINENO: result: no" >&5
27238 echo "${ECHO_T}no" >&6; }
27239 fi
27240
27241
27242 else
27243   if test -z "$LLVMGCC"; then
27244     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27245     LLVMGCCCOMMAND="$LLVMGCC"
27246   fi
27247   if test -z "$LLVMGXX"; then
27248     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27249     LLVMGXXCOMMAND="$LLVMGXX"
27250   fi
27251
27252   LLVMGCC=$LLVMGCC
27253
27254   LLVMGXX=$LLVMGXX
27255
27256   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27257
27258   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27259
27260 fi
27261
27262
27263 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27264 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27265
27266 ICC=no
27267 IXX=no
27268 case $CC in
27269   icc*|icpc*)
27270     ICC=yes
27271     IXX=yes
27272     ;;
27273    *)
27274     ;;
27275 esac
27276
27277 if test "$GCC" != "yes" && test "$ICC" != "yes"
27278 then
27279   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27280 echo "$as_me: error: gcc|icc required but not found" >&2;}
27281    { (exit 1); exit 1; }; }
27282 fi
27283
27284 if test "$GXX" != "yes" && test "$IXX" != "yes"
27285 then
27286   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27287 echo "$as_me: error: g++|icc required but not found" >&2;}
27288    { (exit 1); exit 1; }; }
27289 fi
27290
27291 if test "$GCC" = "yes"
27292 then
27293   cat >conftest.$ac_ext <<_ACEOF
27294 #if !defined(__GNUC__) || __GNUC__ < 3
27295 #error Unsupported GCC version
27296 #endif
27297
27298 _ACEOF
27299 rm -f conftest.$ac_objext
27300 if { (ac_try="$ac_compile"
27301 case "(($ac_try" in
27302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303   *) ac_try_echo=$ac_try;;
27304 esac
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306   (eval "$ac_compile") 2>conftest.er1
27307   ac_status=$?
27308   grep -v '^ *+' conftest.er1 >conftest.err
27309   rm -f conftest.er1
27310   cat conftest.err >&5
27311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312   (exit $ac_status); } &&
27313          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27314   { (case "(($ac_try" in
27315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27316   *) ac_try_echo=$ac_try;;
27317 esac
27318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27319   (eval "$ac_try") 2>&5
27320   ac_status=$?
27321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322   (exit $ac_status); }; } &&
27323          { ac_try='test -s conftest.$ac_objext'
27324   { (case "(($ac_try" in
27325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326   *) ac_try_echo=$ac_try;;
27327 esac
27328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27329   (eval "$ac_try") 2>&5
27330   ac_status=$?
27331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332   (exit $ac_status); }; }; then
27333   :
27334 else
27335   echo "$as_me: failed program was:" >&5
27336 sed 's/^/| /' conftest.$ac_ext >&5
27337
27338         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27339 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27340    { (exit 1); exit 1; }; }
27341 fi
27342
27343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27344 fi
27345
27346 if test -z "$llvm_cv_gnu_make_command"
27347 then
27348   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27349 echo "$as_me: error: GNU Make required but not found" >&2;}
27350    { (exit 1); exit 1; }; }
27351 fi
27352
27353 { echo "$as_me:$LINENO: result: ok" >&5
27354 echo "${ECHO_T}ok" >&6; }
27355
27356 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27357 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27358 if test "${ac_cv_lib_m_sin+set}" = set; then
27359   echo $ECHO_N "(cached) $ECHO_C" >&6
27360 else
27361   ac_check_lib_save_LIBS=$LIBS
27362 LIBS="-lm  $LIBS"
27363 cat >conftest.$ac_ext <<_ACEOF
27364 /* confdefs.h.  */
27365 _ACEOF
27366 cat confdefs.h >>conftest.$ac_ext
27367 cat >>conftest.$ac_ext <<_ACEOF
27368 /* end confdefs.h.  */
27369
27370 /* Override any GCC internal prototype to avoid an error.
27371    Use char because int might match the return type of a GCC
27372    builtin and then its argument prototype would still apply.  */
27373 #ifdef __cplusplus
27374 extern "C"
27375 #endif
27376 char sin ();
27377 int
27378 main ()
27379 {
27380 return sin ();
27381   ;
27382   return 0;
27383 }
27384 _ACEOF
27385 rm -f conftest.$ac_objext conftest$ac_exeext
27386 if { (ac_try="$ac_link"
27387 case "(($ac_try" in
27388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27389   *) ac_try_echo=$ac_try;;
27390 esac
27391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27392   (eval "$ac_link") 2>conftest.er1
27393   ac_status=$?
27394   grep -v '^ *+' conftest.er1 >conftest.err
27395   rm -f conftest.er1
27396   cat conftest.err >&5
27397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398   (exit $ac_status); } &&
27399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27400   { (case "(($ac_try" in
27401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27402   *) ac_try_echo=$ac_try;;
27403 esac
27404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27405   (eval "$ac_try") 2>&5
27406   ac_status=$?
27407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408   (exit $ac_status); }; } &&
27409          { ac_try='test -s conftest$ac_exeext'
27410   { (case "(($ac_try" in
27411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27412   *) ac_try_echo=$ac_try;;
27413 esac
27414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27415   (eval "$ac_try") 2>&5
27416   ac_status=$?
27417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418   (exit $ac_status); }; }; then
27419   ac_cv_lib_m_sin=yes
27420 else
27421   echo "$as_me: failed program was:" >&5
27422 sed 's/^/| /' conftest.$ac_ext >&5
27423
27424         ac_cv_lib_m_sin=no
27425 fi
27426
27427 rm -f core conftest.err conftest.$ac_objext \
27428       conftest$ac_exeext conftest.$ac_ext
27429 LIBS=$ac_check_lib_save_LIBS
27430 fi
27431 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27432 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27433 if test $ac_cv_lib_m_sin = yes; then
27434   cat >>confdefs.h <<_ACEOF
27435 #define HAVE_LIBM 1
27436 _ACEOF
27437
27438   LIBS="-lm $LIBS"
27439
27440 fi
27441
27442 if test "$llvm_cv_os_type" = "MingW" ; then
27443
27444 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27445 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27446 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27447   echo $ECHO_N "(cached) $ECHO_C" >&6
27448 else
27449   ac_check_lib_save_LIBS=$LIBS
27450 LIBS="-limagehlp  $LIBS"
27451 cat >conftest.$ac_ext <<_ACEOF
27452 /* confdefs.h.  */
27453 _ACEOF
27454 cat confdefs.h >>conftest.$ac_ext
27455 cat >>conftest.$ac_ext <<_ACEOF
27456 /* end confdefs.h.  */
27457
27458
27459 int
27460 main ()
27461 {
27462 return main ();
27463   ;
27464   return 0;
27465 }
27466 _ACEOF
27467 rm -f conftest.$ac_objext conftest$ac_exeext
27468 if { (ac_try="$ac_link"
27469 case "(($ac_try" in
27470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27471   *) ac_try_echo=$ac_try;;
27472 esac
27473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27474   (eval "$ac_link") 2>conftest.er1
27475   ac_status=$?
27476   grep -v '^ *+' conftest.er1 >conftest.err
27477   rm -f conftest.er1
27478   cat conftest.err >&5
27479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480   (exit $ac_status); } &&
27481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
27491          { ac_try='test -s conftest$ac_exeext'
27492   { (case "(($ac_try" in
27493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27494   *) ac_try_echo=$ac_try;;
27495 esac
27496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27497   (eval "$ac_try") 2>&5
27498   ac_status=$?
27499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500   (exit $ac_status); }; }; then
27501   ac_cv_lib_imagehlp_main=yes
27502 else
27503   echo "$as_me: failed program was:" >&5
27504 sed 's/^/| /' conftest.$ac_ext >&5
27505
27506         ac_cv_lib_imagehlp_main=no
27507 fi
27508
27509 rm -f core conftest.err conftest.$ac_objext \
27510       conftest$ac_exeext conftest.$ac_ext
27511 LIBS=$ac_check_lib_save_LIBS
27512 fi
27513 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27514 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27515 if test $ac_cv_lib_imagehlp_main = yes; then
27516   cat >>confdefs.h <<_ACEOF
27517 #define HAVE_LIBIMAGEHLP 1
27518 _ACEOF
27519
27520   LIBS="-limagehlp $LIBS"
27521
27522 fi
27523
27524
27525 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27526 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27527 if test "${ac_cv_lib_psapi_main+set}" = set; then
27528   echo $ECHO_N "(cached) $ECHO_C" >&6
27529 else
27530   ac_check_lib_save_LIBS=$LIBS
27531 LIBS="-lpsapi  $LIBS"
27532 cat >conftest.$ac_ext <<_ACEOF
27533 /* confdefs.h.  */
27534 _ACEOF
27535 cat confdefs.h >>conftest.$ac_ext
27536 cat >>conftest.$ac_ext <<_ACEOF
27537 /* end confdefs.h.  */
27538
27539
27540 int
27541 main ()
27542 {
27543 return main ();
27544   ;
27545   return 0;
27546 }
27547 _ACEOF
27548 rm -f conftest.$ac_objext conftest$ac_exeext
27549 if { (ac_try="$ac_link"
27550 case "(($ac_try" in
27551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27552   *) ac_try_echo=$ac_try;;
27553 esac
27554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27555   (eval "$ac_link") 2>conftest.er1
27556   ac_status=$?
27557   grep -v '^ *+' conftest.er1 >conftest.err
27558   rm -f conftest.er1
27559   cat conftest.err >&5
27560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27561   (exit $ac_status); } &&
27562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27563   { (case "(($ac_try" in
27564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27565   *) ac_try_echo=$ac_try;;
27566 esac
27567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27568   (eval "$ac_try") 2>&5
27569   ac_status=$?
27570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571   (exit $ac_status); }; } &&
27572          { ac_try='test -s conftest$ac_exeext'
27573   { (case "(($ac_try" in
27574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27575   *) ac_try_echo=$ac_try;;
27576 esac
27577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27578   (eval "$ac_try") 2>&5
27579   ac_status=$?
27580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581   (exit $ac_status); }; }; then
27582   ac_cv_lib_psapi_main=yes
27583 else
27584   echo "$as_me: failed program was:" >&5
27585 sed 's/^/| /' conftest.$ac_ext >&5
27586
27587         ac_cv_lib_psapi_main=no
27588 fi
27589
27590 rm -f core conftest.err conftest.$ac_objext \
27591       conftest$ac_exeext conftest.$ac_ext
27592 LIBS=$ac_check_lib_save_LIBS
27593 fi
27594 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27595 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27596 if test $ac_cv_lib_psapi_main = yes; then
27597   cat >>confdefs.h <<_ACEOF
27598 #define HAVE_LIBPSAPI 1
27599 _ACEOF
27600
27601   LIBS="-lpsapi $LIBS"
27602
27603 fi
27604
27605 fi
27606
27607 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27608 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27609 if test "${ac_cv_search_dlopen+set}" = set; then
27610   echo $ECHO_N "(cached) $ECHO_C" >&6
27611 else
27612   ac_func_search_save_LIBS=$LIBS
27613 cat >conftest.$ac_ext <<_ACEOF
27614 /* confdefs.h.  */
27615 _ACEOF
27616 cat confdefs.h >>conftest.$ac_ext
27617 cat >>conftest.$ac_ext <<_ACEOF
27618 /* end confdefs.h.  */
27619
27620 /* Override any GCC internal prototype to avoid an error.
27621    Use char because int might match the return type of a GCC
27622    builtin and then its argument prototype would still apply.  */
27623 #ifdef __cplusplus
27624 extern "C"
27625 #endif
27626 char dlopen ();
27627 int
27628 main ()
27629 {
27630 return dlopen ();
27631   ;
27632   return 0;
27633 }
27634 _ACEOF
27635 for ac_lib in '' dl; do
27636   if test -z "$ac_lib"; then
27637     ac_res="none required"
27638   else
27639     ac_res=-l$ac_lib
27640     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27641   fi
27642   rm -f conftest.$ac_objext conftest$ac_exeext
27643 if { (ac_try="$ac_link"
27644 case "(($ac_try" in
27645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27646   *) ac_try_echo=$ac_try;;
27647 esac
27648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27649   (eval "$ac_link") 2>conftest.er1
27650   ac_status=$?
27651   grep -v '^ *+' conftest.er1 >conftest.err
27652   rm -f conftest.er1
27653   cat conftest.err >&5
27654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655   (exit $ac_status); } &&
27656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27657   { (case "(($ac_try" in
27658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659   *) ac_try_echo=$ac_try;;
27660 esac
27661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662   (eval "$ac_try") 2>&5
27663   ac_status=$?
27664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665   (exit $ac_status); }; } &&
27666          { ac_try='test -s conftest$ac_exeext'
27667   { (case "(($ac_try" in
27668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27669   *) ac_try_echo=$ac_try;;
27670 esac
27671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27672   (eval "$ac_try") 2>&5
27673   ac_status=$?
27674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675   (exit $ac_status); }; }; then
27676   ac_cv_search_dlopen=$ac_res
27677 else
27678   echo "$as_me: failed program was:" >&5
27679 sed 's/^/| /' conftest.$ac_ext >&5
27680
27681
27682 fi
27683
27684 rm -f core conftest.err conftest.$ac_objext \
27685       conftest$ac_exeext
27686   if test "${ac_cv_search_dlopen+set}" = set; then
27687   break
27688 fi
27689 done
27690 if test "${ac_cv_search_dlopen+set}" = set; then
27691   :
27692 else
27693   ac_cv_search_dlopen=no
27694 fi
27695 rm conftest.$ac_ext
27696 LIBS=$ac_func_search_save_LIBS
27697 fi
27698 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27699 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27700 ac_res=$ac_cv_search_dlopen
27701 if test "$ac_res" != no; then
27702   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27703
27704 cat >>confdefs.h <<\_ACEOF
27705 #define HAVE_DLOPEN 1
27706 _ACEOF
27707
27708 else
27709   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27710 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27711 fi
27712
27713
27714 if test "$llvm_cv_enable_libffi" = "yes" ; then
27715   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27716 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27717 if test "${ac_cv_search_ffi_call+set}" = set; then
27718   echo $ECHO_N "(cached) $ECHO_C" >&6
27719 else
27720   ac_func_search_save_LIBS=$LIBS
27721 cat >conftest.$ac_ext <<_ACEOF
27722 /* confdefs.h.  */
27723 _ACEOF
27724 cat confdefs.h >>conftest.$ac_ext
27725 cat >>conftest.$ac_ext <<_ACEOF
27726 /* end confdefs.h.  */
27727
27728 /* Override any GCC internal prototype to avoid an error.
27729    Use char because int might match the return type of a GCC
27730    builtin and then its argument prototype would still apply.  */
27731 #ifdef __cplusplus
27732 extern "C"
27733 #endif
27734 char ffi_call ();
27735 int
27736 main ()
27737 {
27738 return ffi_call ();
27739   ;
27740   return 0;
27741 }
27742 _ACEOF
27743 for ac_lib in '' ffi; do
27744   if test -z "$ac_lib"; then
27745     ac_res="none required"
27746   else
27747     ac_res=-l$ac_lib
27748     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27749   fi
27750   rm -f conftest.$ac_objext conftest$ac_exeext
27751 if { (ac_try="$ac_link"
27752 case "(($ac_try" in
27753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27754   *) ac_try_echo=$ac_try;;
27755 esac
27756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27757   (eval "$ac_link") 2>conftest.er1
27758   ac_status=$?
27759   grep -v '^ *+' conftest.er1 >conftest.err
27760   rm -f conftest.er1
27761   cat conftest.err >&5
27762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763   (exit $ac_status); } &&
27764          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27765   { (case "(($ac_try" in
27766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767   *) ac_try_echo=$ac_try;;
27768 esac
27769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770   (eval "$ac_try") 2>&5
27771   ac_status=$?
27772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773   (exit $ac_status); }; } &&
27774          { ac_try='test -s conftest$ac_exeext'
27775   { (case "(($ac_try" in
27776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27777   *) ac_try_echo=$ac_try;;
27778 esac
27779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27780   (eval "$ac_try") 2>&5
27781   ac_status=$?
27782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783   (exit $ac_status); }; }; then
27784   ac_cv_search_ffi_call=$ac_res
27785 else
27786   echo "$as_me: failed program was:" >&5
27787 sed 's/^/| /' conftest.$ac_ext >&5
27788
27789
27790 fi
27791
27792 rm -f core conftest.err conftest.$ac_objext \
27793       conftest$ac_exeext
27794   if test "${ac_cv_search_ffi_call+set}" = set; then
27795   break
27796 fi
27797 done
27798 if test "${ac_cv_search_ffi_call+set}" = set; then
27799   :
27800 else
27801   ac_cv_search_ffi_call=no
27802 fi
27803 rm conftest.$ac_ext
27804 LIBS=$ac_func_search_save_LIBS
27805 fi
27806 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27807 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27808 ac_res=$ac_cv_search_ffi_call
27809 if test "$ac_res" != no; then
27810   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27811
27812 cat >>confdefs.h <<\_ACEOF
27813 #define HAVE_FFI_CALL 1
27814 _ACEOF
27815
27816 else
27817   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27818 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27819 fi
27820
27821 fi
27822
27823 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27824 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27825 if test "${ac_cv_search_mallinfo+set}" = set; then
27826   echo $ECHO_N "(cached) $ECHO_C" >&6
27827 else
27828   ac_func_search_save_LIBS=$LIBS
27829 cat >conftest.$ac_ext <<_ACEOF
27830 /* confdefs.h.  */
27831 _ACEOF
27832 cat confdefs.h >>conftest.$ac_ext
27833 cat >>conftest.$ac_ext <<_ACEOF
27834 /* end confdefs.h.  */
27835
27836 /* Override any GCC internal prototype to avoid an error.
27837    Use char because int might match the return type of a GCC
27838    builtin and then its argument prototype would still apply.  */
27839 #ifdef __cplusplus
27840 extern "C"
27841 #endif
27842 char mallinfo ();
27843 int
27844 main ()
27845 {
27846 return mallinfo ();
27847   ;
27848   return 0;
27849 }
27850 _ACEOF
27851 for ac_lib in '' malloc; do
27852   if test -z "$ac_lib"; then
27853     ac_res="none required"
27854   else
27855     ac_res=-l$ac_lib
27856     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27857   fi
27858   rm -f conftest.$ac_objext conftest$ac_exeext
27859 if { (ac_try="$ac_link"
27860 case "(($ac_try" in
27861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27862   *) ac_try_echo=$ac_try;;
27863 esac
27864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27865   (eval "$ac_link") 2>conftest.er1
27866   ac_status=$?
27867   grep -v '^ *+' conftest.er1 >conftest.err
27868   rm -f conftest.er1
27869   cat conftest.err >&5
27870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871   (exit $ac_status); } &&
27872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27873   { (case "(($ac_try" in
27874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875   *) ac_try_echo=$ac_try;;
27876 esac
27877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878   (eval "$ac_try") 2>&5
27879   ac_status=$?
27880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881   (exit $ac_status); }; } &&
27882          { ac_try='test -s conftest$ac_exeext'
27883   { (case "(($ac_try" in
27884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885   *) ac_try_echo=$ac_try;;
27886 esac
27887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888   (eval "$ac_try") 2>&5
27889   ac_status=$?
27890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891   (exit $ac_status); }; }; then
27892   ac_cv_search_mallinfo=$ac_res
27893 else
27894   echo "$as_me: failed program was:" >&5
27895 sed 's/^/| /' conftest.$ac_ext >&5
27896
27897
27898 fi
27899
27900 rm -f core conftest.err conftest.$ac_objext \
27901       conftest$ac_exeext
27902   if test "${ac_cv_search_mallinfo+set}" = set; then
27903   break
27904 fi
27905 done
27906 if test "${ac_cv_search_mallinfo+set}" = set; then
27907   :
27908 else
27909   ac_cv_search_mallinfo=no
27910 fi
27911 rm conftest.$ac_ext
27912 LIBS=$ac_func_search_save_LIBS
27913 fi
27914 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27915 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27916 ac_res=$ac_cv_search_mallinfo
27917 if test "$ac_res" != no; then
27918   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27919
27920 cat >>confdefs.h <<\_ACEOF
27921 #define HAVE_MALLINFO 1
27922 _ACEOF
27923
27924 fi
27925
27926
27927 if test "$ENABLE_THREADS" -eq 1 ; then
27928
27929 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27930 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27931 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27932   echo $ECHO_N "(cached) $ECHO_C" >&6
27933 else
27934   ac_check_lib_save_LIBS=$LIBS
27935 LIBS="-lpthread  $LIBS"
27936 cat >conftest.$ac_ext <<_ACEOF
27937 /* confdefs.h.  */
27938 _ACEOF
27939 cat confdefs.h >>conftest.$ac_ext
27940 cat >>conftest.$ac_ext <<_ACEOF
27941 /* end confdefs.h.  */
27942
27943 /* Override any GCC internal prototype to avoid an error.
27944    Use char because int might match the return type of a GCC
27945    builtin and then its argument prototype would still apply.  */
27946 #ifdef __cplusplus
27947 extern "C"
27948 #endif
27949 char pthread_mutex_init ();
27950 int
27951 main ()
27952 {
27953 return pthread_mutex_init ();
27954   ;
27955   return 0;
27956 }
27957 _ACEOF
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_lib_pthread_pthread_mutex_init=yes
27993 else
27994   echo "$as_me: failed program was:" >&5
27995 sed 's/^/| /' conftest.$ac_ext >&5
27996
27997         ac_cv_lib_pthread_pthread_mutex_init=no
27998 fi
27999
28000 rm -f core conftest.err conftest.$ac_objext \
28001       conftest$ac_exeext conftest.$ac_ext
28002 LIBS=$ac_check_lib_save_LIBS
28003 fi
28004 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28005 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28006 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28007   cat >>confdefs.h <<_ACEOF
28008 #define HAVE_LIBPTHREAD 1
28009 _ACEOF
28010
28011   LIBS="-lpthread $LIBS"
28012
28013 fi
28014
28015   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28016 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28017 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28018   echo $ECHO_N "(cached) $ECHO_C" >&6
28019 else
28020   ac_func_search_save_LIBS=$LIBS
28021 cat >conftest.$ac_ext <<_ACEOF
28022 /* confdefs.h.  */
28023 _ACEOF
28024 cat confdefs.h >>conftest.$ac_ext
28025 cat >>conftest.$ac_ext <<_ACEOF
28026 /* end confdefs.h.  */
28027
28028 /* Override any GCC internal prototype to avoid an error.
28029    Use char because int might match the return type of a GCC
28030    builtin and then its argument prototype would still apply.  */
28031 #ifdef __cplusplus
28032 extern "C"
28033 #endif
28034 char pthread_mutex_lock ();
28035 int
28036 main ()
28037 {
28038 return pthread_mutex_lock ();
28039   ;
28040   return 0;
28041 }
28042 _ACEOF
28043 for ac_lib in '' pthread; do
28044   if test -z "$ac_lib"; then
28045     ac_res="none required"
28046   else
28047     ac_res=-l$ac_lib
28048     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28049   fi
28050   rm -f conftest.$ac_objext conftest$ac_exeext
28051 if { (ac_try="$ac_link"
28052 case "(($ac_try" in
28053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28054   *) ac_try_echo=$ac_try;;
28055 esac
28056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28057   (eval "$ac_link") 2>conftest.er1
28058   ac_status=$?
28059   grep -v '^ *+' conftest.er1 >conftest.err
28060   rm -f conftest.er1
28061   cat conftest.err >&5
28062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063   (exit $ac_status); } &&
28064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28065   { (case "(($ac_try" in
28066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067   *) ac_try_echo=$ac_try;;
28068 esac
28069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070   (eval "$ac_try") 2>&5
28071   ac_status=$?
28072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073   (exit $ac_status); }; } &&
28074          { ac_try='test -s conftest$ac_exeext'
28075   { (case "(($ac_try" in
28076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28077   *) ac_try_echo=$ac_try;;
28078 esac
28079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28080   (eval "$ac_try") 2>&5
28081   ac_status=$?
28082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083   (exit $ac_status); }; }; then
28084   ac_cv_search_pthread_mutex_lock=$ac_res
28085 else
28086   echo "$as_me: failed program was:" >&5
28087 sed 's/^/| /' conftest.$ac_ext >&5
28088
28089
28090 fi
28091
28092 rm -f core conftest.err conftest.$ac_objext \
28093       conftest$ac_exeext
28094   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28095   break
28096 fi
28097 done
28098 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28099   :
28100 else
28101   ac_cv_search_pthread_mutex_lock=no
28102 fi
28103 rm conftest.$ac_ext
28104 LIBS=$ac_func_search_save_LIBS
28105 fi
28106 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28107 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28108 ac_res=$ac_cv_search_pthread_mutex_lock
28109 if test "$ac_res" != no; then
28110   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28111
28112 cat >>confdefs.h <<\_ACEOF
28113 #define HAVE_PTHREAD_MUTEX_LOCK 1
28114 _ACEOF
28115
28116 fi
28117
28118   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28119 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28120 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28121   echo $ECHO_N "(cached) $ECHO_C" >&6
28122 else
28123   ac_func_search_save_LIBS=$LIBS
28124 cat >conftest.$ac_ext <<_ACEOF
28125 /* confdefs.h.  */
28126 _ACEOF
28127 cat confdefs.h >>conftest.$ac_ext
28128 cat >>conftest.$ac_ext <<_ACEOF
28129 /* end confdefs.h.  */
28130
28131 /* Override any GCC internal prototype to avoid an error.
28132    Use char because int might match the return type of a GCC
28133    builtin and then its argument prototype would still apply.  */
28134 #ifdef __cplusplus
28135 extern "C"
28136 #endif
28137 char pthread_rwlock_init ();
28138 int
28139 main ()
28140 {
28141 return pthread_rwlock_init ();
28142   ;
28143   return 0;
28144 }
28145 _ACEOF
28146 for ac_lib in '' pthread; do
28147   if test -z "$ac_lib"; then
28148     ac_res="none required"
28149   else
28150     ac_res=-l$ac_lib
28151     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28152   fi
28153   rm -f conftest.$ac_objext conftest$ac_exeext
28154 if { (ac_try="$ac_link"
28155 case "(($ac_try" in
28156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28157   *) ac_try_echo=$ac_try;;
28158 esac
28159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28160   (eval "$ac_link") 2>conftest.er1
28161   ac_status=$?
28162   grep -v '^ *+' conftest.er1 >conftest.err
28163   rm -f conftest.er1
28164   cat conftest.err >&5
28165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166   (exit $ac_status); } &&
28167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28168   { (case "(($ac_try" in
28169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28170   *) ac_try_echo=$ac_try;;
28171 esac
28172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28173   (eval "$ac_try") 2>&5
28174   ac_status=$?
28175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176   (exit $ac_status); }; } &&
28177          { ac_try='test -s conftest$ac_exeext'
28178   { (case "(($ac_try" in
28179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28180   *) ac_try_echo=$ac_try;;
28181 esac
28182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28183   (eval "$ac_try") 2>&5
28184   ac_status=$?
28185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28186   (exit $ac_status); }; }; then
28187   ac_cv_search_pthread_rwlock_init=$ac_res
28188 else
28189   echo "$as_me: failed program was:" >&5
28190 sed 's/^/| /' conftest.$ac_ext >&5
28191
28192
28193 fi
28194
28195 rm -f core conftest.err conftest.$ac_objext \
28196       conftest$ac_exeext
28197   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28198   break
28199 fi
28200 done
28201 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28202   :
28203 else
28204   ac_cv_search_pthread_rwlock_init=no
28205 fi
28206 rm conftest.$ac_ext
28207 LIBS=$ac_func_search_save_LIBS
28208 fi
28209 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28210 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28211 ac_res=$ac_cv_search_pthread_rwlock_init
28212 if test "$ac_res" != no; then
28213   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28214
28215 cat >>confdefs.h <<\_ACEOF
28216 #define HAVE_PTHREAD_RWLOCK_INIT 1
28217 _ACEOF
28218
28219 fi
28220
28221   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28222 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28223 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28224   echo $ECHO_N "(cached) $ECHO_C" >&6
28225 else
28226   ac_func_search_save_LIBS=$LIBS
28227 cat >conftest.$ac_ext <<_ACEOF
28228 /* confdefs.h.  */
28229 _ACEOF
28230 cat confdefs.h >>conftest.$ac_ext
28231 cat >>conftest.$ac_ext <<_ACEOF
28232 /* end confdefs.h.  */
28233
28234 /* Override any GCC internal prototype to avoid an error.
28235    Use char because int might match the return type of a GCC
28236    builtin and then its argument prototype would still apply.  */
28237 #ifdef __cplusplus
28238 extern "C"
28239 #endif
28240 char pthread_getspecific ();
28241 int
28242 main ()
28243 {
28244 return pthread_getspecific ();
28245   ;
28246   return 0;
28247 }
28248 _ACEOF
28249 for ac_lib in '' pthread; do
28250   if test -z "$ac_lib"; then
28251     ac_res="none required"
28252   else
28253     ac_res=-l$ac_lib
28254     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28255   fi
28256   rm -f conftest.$ac_objext conftest$ac_exeext
28257 if { (ac_try="$ac_link"
28258 case "(($ac_try" in
28259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28260   *) ac_try_echo=$ac_try;;
28261 esac
28262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28263   (eval "$ac_link") 2>conftest.er1
28264   ac_status=$?
28265   grep -v '^ *+' conftest.er1 >conftest.err
28266   rm -f conftest.er1
28267   cat conftest.err >&5
28268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269   (exit $ac_status); } &&
28270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28271   { (case "(($ac_try" in
28272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28273   *) ac_try_echo=$ac_try;;
28274 esac
28275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28276   (eval "$ac_try") 2>&5
28277   ac_status=$?
28278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279   (exit $ac_status); }; } &&
28280          { ac_try='test -s conftest$ac_exeext'
28281   { (case "(($ac_try" in
28282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28283   *) ac_try_echo=$ac_try;;
28284 esac
28285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28286   (eval "$ac_try") 2>&5
28287   ac_status=$?
28288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289   (exit $ac_status); }; }; then
28290   ac_cv_search_pthread_getspecific=$ac_res
28291 else
28292   echo "$as_me: failed program was:" >&5
28293 sed 's/^/| /' conftest.$ac_ext >&5
28294
28295
28296 fi
28297
28298 rm -f core conftest.err conftest.$ac_objext \
28299       conftest$ac_exeext
28300   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28301   break
28302 fi
28303 done
28304 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28305   :
28306 else
28307   ac_cv_search_pthread_getspecific=no
28308 fi
28309 rm conftest.$ac_ext
28310 LIBS=$ac_func_search_save_LIBS
28311 fi
28312 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28313 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28314 ac_res=$ac_cv_search_pthread_getspecific
28315 if test "$ac_res" != no; then
28316   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28317
28318 cat >>confdefs.h <<\_ACEOF
28319 #define HAVE_PTHREAD_GETSPECIFIC 1
28320 _ACEOF
28321
28322 fi
28323
28324 fi
28325
28326
28327 # Check whether --with-udis86 was given.
28328 if test "${with_udis86+set}" = set; then
28329   withval=$with_udis86;
28330       USE_UDIS86=1
28331
28332       case "$withval" in
28333         /usr/lib|yes) ;;
28334         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28335       esac
28336
28337 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28338 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28339 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28340   echo $ECHO_N "(cached) $ECHO_C" >&6
28341 else
28342   ac_check_lib_save_LIBS=$LIBS
28343 LIBS="-ludis86  $LIBS"
28344 cat >conftest.$ac_ext <<_ACEOF
28345 /* confdefs.h.  */
28346 _ACEOF
28347 cat confdefs.h >>conftest.$ac_ext
28348 cat >>conftest.$ac_ext <<_ACEOF
28349 /* end confdefs.h.  */
28350
28351 /* Override any GCC internal prototype to avoid an error.
28352    Use char because int might match the return type of a GCC
28353    builtin and then its argument prototype would still apply.  */
28354 #ifdef __cplusplus
28355 extern "C"
28356 #endif
28357 char ud_init ();
28358 int
28359 main ()
28360 {
28361 return ud_init ();
28362   ;
28363   return 0;
28364 }
28365 _ACEOF
28366 rm -f conftest.$ac_objext conftest$ac_exeext
28367 if { (ac_try="$ac_link"
28368 case "(($ac_try" in
28369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28370   *) ac_try_echo=$ac_try;;
28371 esac
28372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28373   (eval "$ac_link") 2>conftest.er1
28374   ac_status=$?
28375   grep -v '^ *+' conftest.er1 >conftest.err
28376   rm -f conftest.er1
28377   cat conftest.err >&5
28378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379   (exit $ac_status); } &&
28380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28381   { (case "(($ac_try" in
28382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28383   *) ac_try_echo=$ac_try;;
28384 esac
28385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28386   (eval "$ac_try") 2>&5
28387   ac_status=$?
28388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389   (exit $ac_status); }; } &&
28390          { ac_try='test -s conftest$ac_exeext'
28391   { (case "(($ac_try" in
28392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28393   *) ac_try_echo=$ac_try;;
28394 esac
28395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28396   (eval "$ac_try") 2>&5
28397   ac_status=$?
28398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399   (exit $ac_status); }; }; then
28400   ac_cv_lib_udis86_ud_init=yes
28401 else
28402   echo "$as_me: failed program was:" >&5
28403 sed 's/^/| /' conftest.$ac_ext >&5
28404
28405         ac_cv_lib_udis86_ud_init=no
28406 fi
28407
28408 rm -f core conftest.err conftest.$ac_objext \
28409       conftest$ac_exeext conftest.$ac_ext
28410 LIBS=$ac_check_lib_save_LIBS
28411 fi
28412 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28413 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28414 if test $ac_cv_lib_udis86_ud_init = yes; then
28415   cat >>confdefs.h <<_ACEOF
28416 #define HAVE_LIBUDIS86 1
28417 _ACEOF
28418
28419   LIBS="-ludis86 $LIBS"
28420
28421 else
28422
28423         echo "Error! You need to have libudis86 around."
28424         exit -1
28425
28426 fi
28427
28428
28429 else
28430   USE_UDIS86=0
28431
28432 fi
28433
28434
28435 cat >>confdefs.h <<_ACEOF
28436 #define USE_UDIS86 $USE_UDIS86
28437 _ACEOF
28438
28439
28440
28441 # Check whether --with-oprofile was given.
28442 if test "${with_oprofile+set}" = set; then
28443   withval=$with_oprofile;
28444       USE_OPROFILE=1
28445
28446       case "$withval" in
28447         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28448         *) llvm_cv_oppath="${withval}/lib/oprofile"
28449            CPPFLAGS="-I${withval}/include";;
28450       esac
28451       LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28452       { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28453 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28454 if test "${ac_cv_search_op_open_agent+set}" = set; then
28455   echo $ECHO_N "(cached) $ECHO_C" >&6
28456 else
28457   ac_func_search_save_LIBS=$LIBS
28458 cat >conftest.$ac_ext <<_ACEOF
28459 /* confdefs.h.  */
28460 _ACEOF
28461 cat confdefs.h >>conftest.$ac_ext
28462 cat >>conftest.$ac_ext <<_ACEOF
28463 /* end confdefs.h.  */
28464
28465 /* Override any GCC internal prototype to avoid an error.
28466    Use char because int might match the return type of a GCC
28467    builtin and then its argument prototype would still apply.  */
28468 #ifdef __cplusplus
28469 extern "C"
28470 #endif
28471 char op_open_agent ();
28472 int
28473 main ()
28474 {
28475 return op_open_agent ();
28476   ;
28477   return 0;
28478 }
28479 _ACEOF
28480 for ac_lib in '' opagent; do
28481   if test -z "$ac_lib"; then
28482     ac_res="none required"
28483   else
28484     ac_res=-l$ac_lib
28485     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28486   fi
28487   rm -f conftest.$ac_objext conftest$ac_exeext
28488 if { (ac_try="$ac_link"
28489 case "(($ac_try" in
28490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28491   *) ac_try_echo=$ac_try;;
28492 esac
28493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28494   (eval "$ac_link") 2>conftest.er1
28495   ac_status=$?
28496   grep -v '^ *+' conftest.er1 >conftest.err
28497   rm -f conftest.er1
28498   cat conftest.err >&5
28499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500   (exit $ac_status); } &&
28501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28502   { (case "(($ac_try" in
28503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504   *) ac_try_echo=$ac_try;;
28505 esac
28506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507   (eval "$ac_try") 2>&5
28508   ac_status=$?
28509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510   (exit $ac_status); }; } &&
28511          { ac_try='test -s conftest$ac_exeext'
28512   { (case "(($ac_try" in
28513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28514   *) ac_try_echo=$ac_try;;
28515 esac
28516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28517   (eval "$ac_try") 2>&5
28518   ac_status=$?
28519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520   (exit $ac_status); }; }; then
28521   ac_cv_search_op_open_agent=$ac_res
28522 else
28523   echo "$as_me: failed program was:" >&5
28524 sed 's/^/| /' conftest.$ac_ext >&5
28525
28526
28527 fi
28528
28529 rm -f core conftest.err conftest.$ac_objext \
28530       conftest$ac_exeext
28531   if test "${ac_cv_search_op_open_agent+set}" = set; then
28532   break
28533 fi
28534 done
28535 if test "${ac_cv_search_op_open_agent+set}" = set; then
28536   :
28537 else
28538   ac_cv_search_op_open_agent=no
28539 fi
28540 rm conftest.$ac_ext
28541 LIBS=$ac_func_search_save_LIBS
28542 fi
28543 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28544 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28545 ac_res=$ac_cv_search_op_open_agent
28546 if test "$ac_res" != no; then
28547   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28548
28549 else
28550
28551         echo "Error! You need to have libopagent around."
28552         exit -1
28553
28554 fi
28555
28556       if test "${ac_cv_header_opagent_h+set}" = set; then
28557   { echo "$as_me:$LINENO: checking for opagent.h" >&5
28558 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28559 if test "${ac_cv_header_opagent_h+set}" = set; then
28560   echo $ECHO_N "(cached) $ECHO_C" >&6
28561 fi
28562 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28563 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28564 else
28565   # Is the header compilable?
28566 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28567 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28568 cat >conftest.$ac_ext <<_ACEOF
28569 /* confdefs.h.  */
28570 _ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h.  */
28574 $ac_includes_default
28575 #include <opagent.h>
28576 _ACEOF
28577 rm -f conftest.$ac_objext
28578 if { (ac_try="$ac_compile"
28579 case "(($ac_try" in
28580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28581   *) ac_try_echo=$ac_try;;
28582 esac
28583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28584   (eval "$ac_compile") 2>conftest.er1
28585   ac_status=$?
28586   grep -v '^ *+' conftest.er1 >conftest.err
28587   rm -f conftest.er1
28588   cat conftest.err >&5
28589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590   (exit $ac_status); } &&
28591          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28592   { (case "(($ac_try" in
28593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28594   *) ac_try_echo=$ac_try;;
28595 esac
28596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28597   (eval "$ac_try") 2>&5
28598   ac_status=$?
28599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600   (exit $ac_status); }; } &&
28601          { ac_try='test -s conftest.$ac_objext'
28602   { (case "(($ac_try" in
28603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604   *) ac_try_echo=$ac_try;;
28605 esac
28606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28607   (eval "$ac_try") 2>&5
28608   ac_status=$?
28609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610   (exit $ac_status); }; }; then
28611   ac_header_compiler=yes
28612 else
28613   echo "$as_me: failed program was:" >&5
28614 sed 's/^/| /' conftest.$ac_ext >&5
28615
28616         ac_header_compiler=no
28617 fi
28618
28619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28621 echo "${ECHO_T}$ac_header_compiler" >&6; }
28622
28623 # Is the header present?
28624 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28625 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28626 cat >conftest.$ac_ext <<_ACEOF
28627 /* confdefs.h.  */
28628 _ACEOF
28629 cat confdefs.h >>conftest.$ac_ext
28630 cat >>conftest.$ac_ext <<_ACEOF
28631 /* end confdefs.h.  */
28632 #include <opagent.h>
28633 _ACEOF
28634 if { (ac_try="$ac_cpp conftest.$ac_ext"
28635 case "(($ac_try" in
28636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28637   *) ac_try_echo=$ac_try;;
28638 esac
28639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28641   ac_status=$?
28642   grep -v '^ *+' conftest.er1 >conftest.err
28643   rm -f conftest.er1
28644   cat conftest.err >&5
28645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646   (exit $ac_status); } >/dev/null; then
28647   if test -s conftest.err; then
28648     ac_cpp_err=$ac_c_preproc_warn_flag
28649     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28650   else
28651     ac_cpp_err=
28652   fi
28653 else
28654   ac_cpp_err=yes
28655 fi
28656 if test -z "$ac_cpp_err"; then
28657   ac_header_preproc=yes
28658 else
28659   echo "$as_me: failed program was:" >&5
28660 sed 's/^/| /' conftest.$ac_ext >&5
28661
28662   ac_header_preproc=no
28663 fi
28664
28665 rm -f conftest.err conftest.$ac_ext
28666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28667 echo "${ECHO_T}$ac_header_preproc" >&6; }
28668
28669 # So?  What about this header?
28670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28671   yes:no: )
28672     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28673 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28674     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28675 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28676     ac_header_preproc=yes
28677     ;;
28678   no:yes:* )
28679     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28680 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28681     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
28682 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
28683     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28684 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28685     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
28686 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28687     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28688 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28689     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28690 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28691     ( cat <<\_ASBOX
28692 ## ----------------------------------- ##
28693 ## Report this to llvmbugs@cs.uiuc.edu ##
28694 ## ----------------------------------- ##
28695 _ASBOX
28696      ) | sed "s/^/$as_me: WARNING:     /" >&2
28697     ;;
28698 esac
28699 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28700 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28701 if test "${ac_cv_header_opagent_h+set}" = set; then
28702   echo $ECHO_N "(cached) $ECHO_C" >&6
28703 else
28704   ac_cv_header_opagent_h=$ac_header_preproc
28705 fi
28706 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28707 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28708
28709 fi
28710 if test $ac_cv_header_opagent_h = yes; then
28711   :
28712 else
28713
28714         echo "Error! You need to have opagent.h around."
28715         exit -1
28716
28717 fi
28718
28719
28720
28721 else
28722
28723       llvm_cv_old_LIBS="$LIBS"
28724       LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28725             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28726 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28727 if test "${ac_cv_search_op_open_agent+set}" = set; then
28728   echo $ECHO_N "(cached) $ECHO_C" >&6
28729 else
28730   ac_func_search_save_LIBS=$LIBS
28731 cat >conftest.$ac_ext <<_ACEOF
28732 /* confdefs.h.  */
28733 _ACEOF
28734 cat confdefs.h >>conftest.$ac_ext
28735 cat >>conftest.$ac_ext <<_ACEOF
28736 /* end confdefs.h.  */
28737
28738 /* Override any GCC internal prototype to avoid an error.
28739    Use char because int might match the return type of a GCC
28740    builtin and then its argument prototype would still apply.  */
28741 #ifdef __cplusplus
28742 extern "C"
28743 #endif
28744 char op_open_agent ();
28745 int
28746 main ()
28747 {
28748 return op_open_agent ();
28749   ;
28750   return 0;
28751 }
28752 _ACEOF
28753 for ac_lib in '' opagent; do
28754   if test -z "$ac_lib"; then
28755     ac_res="none required"
28756   else
28757     ac_res=-l$ac_lib
28758     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28759   fi
28760   rm -f conftest.$ac_objext conftest$ac_exeext
28761 if { (ac_try="$ac_link"
28762 case "(($ac_try" in
28763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764   *) ac_try_echo=$ac_try;;
28765 esac
28766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767   (eval "$ac_link") 2>conftest.er1
28768   ac_status=$?
28769   grep -v '^ *+' conftest.er1 >conftest.err
28770   rm -f conftest.er1
28771   cat conftest.err >&5
28772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773   (exit $ac_status); } &&
28774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28775   { (case "(($ac_try" in
28776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777   *) ac_try_echo=$ac_try;;
28778 esac
28779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780   (eval "$ac_try") 2>&5
28781   ac_status=$?
28782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783   (exit $ac_status); }; } &&
28784          { ac_try='test -s conftest$ac_exeext'
28785   { (case "(($ac_try" in
28786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28787   *) ac_try_echo=$ac_try;;
28788 esac
28789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28790   (eval "$ac_try") 2>&5
28791   ac_status=$?
28792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793   (exit $ac_status); }; }; then
28794   ac_cv_search_op_open_agent=$ac_res
28795 else
28796   echo "$as_me: failed program was:" >&5
28797 sed 's/^/| /' conftest.$ac_ext >&5
28798
28799
28800 fi
28801
28802 rm -f core conftest.err conftest.$ac_objext \
28803       conftest$ac_exeext
28804   if test "${ac_cv_search_op_open_agent+set}" = set; then
28805   break
28806 fi
28807 done
28808 if test "${ac_cv_search_op_open_agent+set}" = set; then
28809   :
28810 else
28811   ac_cv_search_op_open_agent=no
28812 fi
28813 rm conftest.$ac_ext
28814 LIBS=$ac_func_search_save_LIBS
28815 fi
28816 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28817 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28818 ac_res=$ac_cv_search_op_open_agent
28819 if test "$ac_res" != no; then
28820   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28821   USE_OPROFILE=1
28822
28823 else
28824   LIBS="$llvm_cv_old_LIBS"
28825                       USE_OPROFILE=0
28826
28827 fi
28828
28829       if test "${ac_cv_header_opagent_h+set}" = set; then
28830   { echo "$as_me:$LINENO: checking for opagent.h" >&5
28831 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28832 if test "${ac_cv_header_opagent_h+set}" = set; then
28833   echo $ECHO_N "(cached) $ECHO_C" >&6
28834 fi
28835 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28836 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28837 else
28838   # Is the header compilable?
28839 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28840 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28841 cat >conftest.$ac_ext <<_ACEOF
28842 /* confdefs.h.  */
28843 _ACEOF
28844 cat confdefs.h >>conftest.$ac_ext
28845 cat >>conftest.$ac_ext <<_ACEOF
28846 /* end confdefs.h.  */
28847 $ac_includes_default
28848 #include <opagent.h>
28849 _ACEOF
28850 rm -f conftest.$ac_objext
28851 if { (ac_try="$ac_compile"
28852 case "(($ac_try" in
28853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28854   *) ac_try_echo=$ac_try;;
28855 esac
28856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28857   (eval "$ac_compile") 2>conftest.er1
28858   ac_status=$?
28859   grep -v '^ *+' conftest.er1 >conftest.err
28860   rm -f conftest.er1
28861   cat conftest.err >&5
28862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863   (exit $ac_status); } &&
28864          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28865   { (case "(($ac_try" in
28866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28867   *) ac_try_echo=$ac_try;;
28868 esac
28869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28870   (eval "$ac_try") 2>&5
28871   ac_status=$?
28872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873   (exit $ac_status); }; } &&
28874          { ac_try='test -s conftest.$ac_objext'
28875   { (case "(($ac_try" in
28876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28877   *) ac_try_echo=$ac_try;;
28878 esac
28879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28880   (eval "$ac_try") 2>&5
28881   ac_status=$?
28882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883   (exit $ac_status); }; }; then
28884   ac_header_compiler=yes
28885 else
28886   echo "$as_me: failed program was:" >&5
28887 sed 's/^/| /' conftest.$ac_ext >&5
28888
28889         ac_header_compiler=no
28890 fi
28891
28892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28894 echo "${ECHO_T}$ac_header_compiler" >&6; }
28895
28896 # Is the header present?
28897 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28898 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28899 cat >conftest.$ac_ext <<_ACEOF
28900 /* confdefs.h.  */
28901 _ACEOF
28902 cat confdefs.h >>conftest.$ac_ext
28903 cat >>conftest.$ac_ext <<_ACEOF
28904 /* end confdefs.h.  */
28905 #include <opagent.h>
28906 _ACEOF
28907 if { (ac_try="$ac_cpp conftest.$ac_ext"
28908 case "(($ac_try" in
28909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28910   *) ac_try_echo=$ac_try;;
28911 esac
28912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28913   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28914   ac_status=$?
28915   grep -v '^ *+' conftest.er1 >conftest.err
28916   rm -f conftest.er1
28917   cat conftest.err >&5
28918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919   (exit $ac_status); } >/dev/null; then
28920   if test -s conftest.err; then
28921     ac_cpp_err=$ac_c_preproc_warn_flag
28922     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28923   else
28924     ac_cpp_err=
28925   fi
28926 else
28927   ac_cpp_err=yes
28928 fi
28929 if test -z "$ac_cpp_err"; then
28930   ac_header_preproc=yes
28931 else
28932   echo "$as_me: failed program was:" >&5
28933 sed 's/^/| /' conftest.$ac_ext >&5
28934
28935   ac_header_preproc=no
28936 fi
28937
28938 rm -f conftest.err conftest.$ac_ext
28939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28940 echo "${ECHO_T}$ac_header_preproc" >&6; }
28941
28942 # So?  What about this header?
28943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28944   yes:no: )
28945     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28946 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28947     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28948 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28949     ac_header_preproc=yes
28950     ;;
28951   no:yes:* )
28952     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28953 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28954     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
28955 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
28956     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28957 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28958     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
28959 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28960     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28961 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28962     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28963 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28964     ( cat <<\_ASBOX
28965 ## ----------------------------------- ##
28966 ## Report this to llvmbugs@cs.uiuc.edu ##
28967 ## ----------------------------------- ##
28968 _ASBOX
28969      ) | sed "s/^/$as_me: WARNING:     /" >&2
28970     ;;
28971 esac
28972 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28973 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28974 if test "${ac_cv_header_opagent_h+set}" = set; then
28975   echo $ECHO_N "(cached) $ECHO_C" >&6
28976 else
28977   ac_cv_header_opagent_h=$ac_header_preproc
28978 fi
28979 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28980 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28981
28982 fi
28983 if test $ac_cv_header_opagent_h = yes; then
28984   :
28985 else
28986
28987         LIBS="$llvm_cv_old_LIBS"
28988         USE_OPROFILE=0
28989
28990
28991 fi
28992
28993
28994
28995 fi
28996
28997
28998 cat >>confdefs.h <<_ACEOF
28999 #define USE_OPROFILE $USE_OPROFILE
29000 _ACEOF
29001
29002
29003
29004
29005
29006
29007
29008
29009 ac_header_dirent=no
29010 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29011   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29012 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29013 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29015   echo $ECHO_N "(cached) $ECHO_C" >&6
29016 else
29017   cat >conftest.$ac_ext <<_ACEOF
29018 /* confdefs.h.  */
29019 _ACEOF
29020 cat confdefs.h >>conftest.$ac_ext
29021 cat >>conftest.$ac_ext <<_ACEOF
29022 /* end confdefs.h.  */
29023 #include <sys/types.h>
29024 #include <$ac_hdr>
29025
29026 int
29027 main ()
29028 {
29029 if ((DIR *) 0)
29030 return 0;
29031   ;
29032   return 0;
29033 }
29034 _ACEOF
29035 rm -f conftest.$ac_objext
29036 if { (ac_try="$ac_compile"
29037 case "(($ac_try" in
29038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29039   *) ac_try_echo=$ac_try;;
29040 esac
29041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29042   (eval "$ac_compile") 2>conftest.er1
29043   ac_status=$?
29044   grep -v '^ *+' conftest.er1 >conftest.err
29045   rm -f conftest.er1
29046   cat conftest.err >&5
29047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048   (exit $ac_status); } &&
29049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29050   { (case "(($ac_try" in
29051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052   *) ac_try_echo=$ac_try;;
29053 esac
29054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29055   (eval "$ac_try") 2>&5
29056   ac_status=$?
29057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058   (exit $ac_status); }; } &&
29059          { ac_try='test -s conftest.$ac_objext'
29060   { (case "(($ac_try" in
29061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29062   *) ac_try_echo=$ac_try;;
29063 esac
29064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29065   (eval "$ac_try") 2>&5
29066   ac_status=$?
29067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068   (exit $ac_status); }; }; then
29069   eval "$as_ac_Header=yes"
29070 else
29071   echo "$as_me: failed program was:" >&5
29072 sed 's/^/| /' conftest.$ac_ext >&5
29073
29074         eval "$as_ac_Header=no"
29075 fi
29076
29077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29078 fi
29079 ac_res=`eval echo '${'$as_ac_Header'}'`
29080                { echo "$as_me:$LINENO: result: $ac_res" >&5
29081 echo "${ECHO_T}$ac_res" >&6; }
29082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29083   cat >>confdefs.h <<_ACEOF
29084 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29085 _ACEOF
29086
29087 ac_header_dirent=$ac_hdr; break
29088 fi
29089
29090 done
29091 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29092 if test $ac_header_dirent = dirent.h; then
29093   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29094 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29095 if test "${ac_cv_search_opendir+set}" = set; then
29096   echo $ECHO_N "(cached) $ECHO_C" >&6
29097 else
29098   ac_func_search_save_LIBS=$LIBS
29099 cat >conftest.$ac_ext <<_ACEOF
29100 /* confdefs.h.  */
29101 _ACEOF
29102 cat confdefs.h >>conftest.$ac_ext
29103 cat >>conftest.$ac_ext <<_ACEOF
29104 /* end confdefs.h.  */
29105
29106 /* Override any GCC internal prototype to avoid an error.
29107    Use char because int might match the return type of a GCC
29108    builtin and then its argument prototype would still apply.  */
29109 #ifdef __cplusplus
29110 extern "C"
29111 #endif
29112 char opendir ();
29113 int
29114 main ()
29115 {
29116 return opendir ();
29117   ;
29118   return 0;
29119 }
29120 _ACEOF
29121 for ac_lib in '' dir; do
29122   if test -z "$ac_lib"; then
29123     ac_res="none required"
29124   else
29125     ac_res=-l$ac_lib
29126     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29127   fi
29128   rm -f conftest.$ac_objext conftest$ac_exeext
29129 if { (ac_try="$ac_link"
29130 case "(($ac_try" in
29131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29132   *) ac_try_echo=$ac_try;;
29133 esac
29134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29135   (eval "$ac_link") 2>conftest.er1
29136   ac_status=$?
29137   grep -v '^ *+' conftest.er1 >conftest.err
29138   rm -f conftest.er1
29139   cat conftest.err >&5
29140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29141   (exit $ac_status); } &&
29142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29143   { (case "(($ac_try" in
29144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29145   *) ac_try_echo=$ac_try;;
29146 esac
29147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29148   (eval "$ac_try") 2>&5
29149   ac_status=$?
29150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151   (exit $ac_status); }; } &&
29152          { ac_try='test -s conftest$ac_exeext'
29153   { (case "(($ac_try" in
29154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29155   *) ac_try_echo=$ac_try;;
29156 esac
29157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29158   (eval "$ac_try") 2>&5
29159   ac_status=$?
29160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161   (exit $ac_status); }; }; then
29162   ac_cv_search_opendir=$ac_res
29163 else
29164   echo "$as_me: failed program was:" >&5
29165 sed 's/^/| /' conftest.$ac_ext >&5
29166
29167
29168 fi
29169
29170 rm -f core conftest.err conftest.$ac_objext \
29171       conftest$ac_exeext
29172   if test "${ac_cv_search_opendir+set}" = set; then
29173   break
29174 fi
29175 done
29176 if test "${ac_cv_search_opendir+set}" = set; then
29177   :
29178 else
29179   ac_cv_search_opendir=no
29180 fi
29181 rm conftest.$ac_ext
29182 LIBS=$ac_func_search_save_LIBS
29183 fi
29184 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29185 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29186 ac_res=$ac_cv_search_opendir
29187 if test "$ac_res" != no; then
29188   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29189
29190 fi
29191
29192 else
29193   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29194 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29195 if test "${ac_cv_search_opendir+set}" = set; then
29196   echo $ECHO_N "(cached) $ECHO_C" >&6
29197 else
29198   ac_func_search_save_LIBS=$LIBS
29199 cat >conftest.$ac_ext <<_ACEOF
29200 /* confdefs.h.  */
29201 _ACEOF
29202 cat confdefs.h >>conftest.$ac_ext
29203 cat >>conftest.$ac_ext <<_ACEOF
29204 /* end confdefs.h.  */
29205
29206 /* Override any GCC internal prototype to avoid an error.
29207    Use char because int might match the return type of a GCC
29208    builtin and then its argument prototype would still apply.  */
29209 #ifdef __cplusplus
29210 extern "C"
29211 #endif
29212 char opendir ();
29213 int
29214 main ()
29215 {
29216 return opendir ();
29217   ;
29218   return 0;
29219 }
29220 _ACEOF
29221 for ac_lib in '' x; do
29222   if test -z "$ac_lib"; then
29223     ac_res="none required"
29224   else
29225     ac_res=-l$ac_lib
29226     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29227   fi
29228   rm -f conftest.$ac_objext conftest$ac_exeext
29229 if { (ac_try="$ac_link"
29230 case "(($ac_try" in
29231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29232   *) ac_try_echo=$ac_try;;
29233 esac
29234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29235   (eval "$ac_link") 2>conftest.er1
29236   ac_status=$?
29237   grep -v '^ *+' conftest.er1 >conftest.err
29238   rm -f conftest.er1
29239   cat conftest.err >&5
29240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241   (exit $ac_status); } &&
29242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29243   { (case "(($ac_try" in
29244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245   *) ac_try_echo=$ac_try;;
29246 esac
29247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248   (eval "$ac_try") 2>&5
29249   ac_status=$?
29250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251   (exit $ac_status); }; } &&
29252          { ac_try='test -s conftest$ac_exeext'
29253   { (case "(($ac_try" in
29254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29255   *) ac_try_echo=$ac_try;;
29256 esac
29257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29258   (eval "$ac_try") 2>&5
29259   ac_status=$?
29260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261   (exit $ac_status); }; }; then
29262   ac_cv_search_opendir=$ac_res
29263 else
29264   echo "$as_me: failed program was:" >&5
29265 sed 's/^/| /' conftest.$ac_ext >&5
29266
29267
29268 fi
29269
29270 rm -f core conftest.err conftest.$ac_objext \
29271       conftest$ac_exeext
29272   if test "${ac_cv_search_opendir+set}" = set; then
29273   break
29274 fi
29275 done
29276 if test "${ac_cv_search_opendir+set}" = set; then
29277   :
29278 else
29279   ac_cv_search_opendir=no
29280 fi
29281 rm conftest.$ac_ext
29282 LIBS=$ac_func_search_save_LIBS
29283 fi
29284 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29285 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29286 ac_res=$ac_cv_search_opendir
29287 if test "$ac_res" != no; then
29288   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29289
29290 fi
29291
29292 fi
29293
29294 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29295 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29296 if test "${ac_cv_header_mmap_anon+set}" = set; then
29297   echo $ECHO_N "(cached) $ECHO_C" >&6
29298 else
29299    ac_ext=c
29300 ac_cpp='$CPP $CPPFLAGS'
29301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29304
29305   cat >conftest.$ac_ext <<_ACEOF
29306 /* confdefs.h.  */
29307 _ACEOF
29308 cat confdefs.h >>conftest.$ac_ext
29309 cat >>conftest.$ac_ext <<_ACEOF
29310 /* end confdefs.h.  */
29311 #include <sys/mman.h>
29312 #include <unistd.h>
29313 #include <fcntl.h>
29314 int
29315 main ()
29316 {
29317 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29318   ;
29319   return 0;
29320 }
29321 _ACEOF
29322 rm -f conftest.$ac_objext
29323 if { (ac_try="$ac_compile"
29324 case "(($ac_try" in
29325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29326   *) ac_try_echo=$ac_try;;
29327 esac
29328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29329   (eval "$ac_compile") 2>conftest.er1
29330   ac_status=$?
29331   grep -v '^ *+' conftest.er1 >conftest.err
29332   rm -f conftest.er1
29333   cat conftest.err >&5
29334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335   (exit $ac_status); } &&
29336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29337   { (case "(($ac_try" in
29338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29339   *) ac_try_echo=$ac_try;;
29340 esac
29341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29342   (eval "$ac_try") 2>&5
29343   ac_status=$?
29344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345   (exit $ac_status); }; } &&
29346          { ac_try='test -s conftest.$ac_objext'
29347   { (case "(($ac_try" in
29348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29349   *) ac_try_echo=$ac_try;;
29350 esac
29351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29352   (eval "$ac_try") 2>&5
29353   ac_status=$?
29354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355   (exit $ac_status); }; }; then
29356   ac_cv_header_mmap_anon=yes
29357 else
29358   echo "$as_me: failed program was:" >&5
29359 sed 's/^/| /' conftest.$ac_ext >&5
29360
29361         ac_cv_header_mmap_anon=no
29362 fi
29363
29364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29365   ac_ext=c
29366 ac_cpp='$CPP $CPPFLAGS'
29367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29370
29371
29372 fi
29373 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29374 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29375 if test "$ac_cv_header_mmap_anon" = yes; then
29376
29377 cat >>confdefs.h <<\_ACEOF
29378 #define HAVE_MMAP_ANONYMOUS 1
29379 _ACEOF
29380
29381 fi
29382
29383 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29384 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29385 if test "${ac_cv_header_stat_broken+set}" = set; then
29386   echo $ECHO_N "(cached) $ECHO_C" >&6
29387 else
29388   cat >conftest.$ac_ext <<_ACEOF
29389 /* confdefs.h.  */
29390 _ACEOF
29391 cat confdefs.h >>conftest.$ac_ext
29392 cat >>conftest.$ac_ext <<_ACEOF
29393 /* end confdefs.h.  */
29394 #include <sys/types.h>
29395 #include <sys/stat.h>
29396
29397 #if defined S_ISBLK && defined S_IFDIR
29398 # if S_ISBLK (S_IFDIR)
29399 You lose.
29400 # endif
29401 #endif
29402
29403 #if defined S_ISBLK && defined S_IFCHR
29404 # if S_ISBLK (S_IFCHR)
29405 You lose.
29406 # endif
29407 #endif
29408
29409 #if defined S_ISLNK && defined S_IFREG
29410 # if S_ISLNK (S_IFREG)
29411 You lose.
29412 # endif
29413 #endif
29414
29415 #if defined S_ISSOCK && defined S_IFREG
29416 # if S_ISSOCK (S_IFREG)
29417 You lose.
29418 # endif
29419 #endif
29420
29421 _ACEOF
29422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29423   $EGREP "You lose" >/dev/null 2>&1; then
29424   ac_cv_header_stat_broken=yes
29425 else
29426   ac_cv_header_stat_broken=no
29427 fi
29428 rm -f conftest*
29429
29430 fi
29431 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29432 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29433 if test $ac_cv_header_stat_broken = yes; then
29434
29435 cat >>confdefs.h <<\_ACEOF
29436 #define STAT_MACROS_BROKEN 1
29437 _ACEOF
29438
29439 fi
29440
29441 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29442 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29443 if test "${ac_cv_header_stdc+set}" = set; then
29444   echo $ECHO_N "(cached) $ECHO_C" >&6
29445 else
29446   cat >conftest.$ac_ext <<_ACEOF
29447 /* confdefs.h.  */
29448 _ACEOF
29449 cat confdefs.h >>conftest.$ac_ext
29450 cat >>conftest.$ac_ext <<_ACEOF
29451 /* end confdefs.h.  */
29452 #include <stdlib.h>
29453 #include <stdarg.h>
29454 #include <string.h>
29455 #include <float.h>
29456
29457 int
29458 main ()
29459 {
29460
29461   ;
29462   return 0;
29463 }
29464 _ACEOF
29465 rm -f conftest.$ac_objext
29466 if { (ac_try="$ac_compile"
29467 case "(($ac_try" in
29468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469   *) ac_try_echo=$ac_try;;
29470 esac
29471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29472   (eval "$ac_compile") 2>conftest.er1
29473   ac_status=$?
29474   grep -v '^ *+' conftest.er1 >conftest.err
29475   rm -f conftest.er1
29476   cat conftest.err >&5
29477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478   (exit $ac_status); } &&
29479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29480   { (case "(($ac_try" in
29481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29482   *) ac_try_echo=$ac_try;;
29483 esac
29484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29485   (eval "$ac_try") 2>&5
29486   ac_status=$?
29487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488   (exit $ac_status); }; } &&
29489          { ac_try='test -s conftest.$ac_objext'
29490   { (case "(($ac_try" in
29491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29492   *) ac_try_echo=$ac_try;;
29493 esac
29494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29495   (eval "$ac_try") 2>&5
29496   ac_status=$?
29497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29498   (exit $ac_status); }; }; then
29499   ac_cv_header_stdc=yes
29500 else
29501   echo "$as_me: failed program was:" >&5
29502 sed 's/^/| /' conftest.$ac_ext >&5
29503
29504         ac_cv_header_stdc=no
29505 fi
29506
29507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29508
29509 if test $ac_cv_header_stdc = yes; then
29510   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29511   cat >conftest.$ac_ext <<_ACEOF
29512 /* confdefs.h.  */
29513 _ACEOF
29514 cat confdefs.h >>conftest.$ac_ext
29515 cat >>conftest.$ac_ext <<_ACEOF
29516 /* end confdefs.h.  */
29517 #include <string.h>
29518
29519 _ACEOF
29520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29521   $EGREP "memchr" >/dev/null 2>&1; then
29522   :
29523 else
29524   ac_cv_header_stdc=no
29525 fi
29526 rm -f conftest*
29527
29528 fi
29529
29530 if test $ac_cv_header_stdc = yes; then
29531   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29532   cat >conftest.$ac_ext <<_ACEOF
29533 /* confdefs.h.  */
29534 _ACEOF
29535 cat confdefs.h >>conftest.$ac_ext
29536 cat >>conftest.$ac_ext <<_ACEOF
29537 /* end confdefs.h.  */
29538 #include <stdlib.h>
29539
29540 _ACEOF
29541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29542   $EGREP "free" >/dev/null 2>&1; then
29543   :
29544 else
29545   ac_cv_header_stdc=no
29546 fi
29547 rm -f conftest*
29548
29549 fi
29550
29551 if test $ac_cv_header_stdc = yes; then
29552   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29553   if test "$cross_compiling" = yes; then
29554   :
29555 else
29556   cat >conftest.$ac_ext <<_ACEOF
29557 /* confdefs.h.  */
29558 _ACEOF
29559 cat confdefs.h >>conftest.$ac_ext
29560 cat >>conftest.$ac_ext <<_ACEOF
29561 /* end confdefs.h.  */
29562 #include <ctype.h>
29563 #include <stdlib.h>
29564 #if ((' ' & 0x0FF) == 0x020)
29565 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29566 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29567 #else
29568 # define ISLOWER(c) \
29569                    (('a' <= (c) && (c) <= 'i') \
29570                      || ('j' <= (c) && (c) <= 'r') \
29571                      || ('s' <= (c) && (c) <= 'z'))
29572 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29573 #endif
29574
29575 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29576 int
29577 main ()
29578 {
29579   int i;
29580   for (i = 0; i < 256; i++)
29581     if (XOR (islower (i), ISLOWER (i))
29582         || toupper (i) != TOUPPER (i))
29583       return 2;
29584   return 0;
29585 }
29586 _ACEOF
29587 rm -f conftest$ac_exeext
29588 if { (ac_try="$ac_link"
29589 case "(($ac_try" in
29590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29591   *) ac_try_echo=$ac_try;;
29592 esac
29593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29594   (eval "$ac_link") 2>&5
29595   ac_status=$?
29596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29598   { (case "(($ac_try" in
29599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29600   *) ac_try_echo=$ac_try;;
29601 esac
29602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29603   (eval "$ac_try") 2>&5
29604   ac_status=$?
29605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606   (exit $ac_status); }; }; then
29607   :
29608 else
29609   echo "$as_me: program exited with status $ac_status" >&5
29610 echo "$as_me: failed program was:" >&5
29611 sed 's/^/| /' conftest.$ac_ext >&5
29612
29613 ( exit $ac_status )
29614 ac_cv_header_stdc=no
29615 fi
29616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29617 fi
29618
29619
29620 fi
29621 fi
29622 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29623 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29624 if test $ac_cv_header_stdc = yes; then
29625
29626 cat >>confdefs.h <<\_ACEOF
29627 #define STDC_HEADERS 1
29628 _ACEOF
29629
29630 fi
29631
29632 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29633 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29634 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29635   echo $ECHO_N "(cached) $ECHO_C" >&6
29636 else
29637   cat >conftest.$ac_ext <<_ACEOF
29638 /* confdefs.h.  */
29639 _ACEOF
29640 cat confdefs.h >>conftest.$ac_ext
29641 cat >>conftest.$ac_ext <<_ACEOF
29642 /* end confdefs.h.  */
29643 #include <sys/types.h>
29644 #include <sys/wait.h>
29645 #ifndef WEXITSTATUS
29646 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29647 #endif
29648 #ifndef WIFEXITED
29649 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29650 #endif
29651
29652 int
29653 main ()
29654 {
29655   int s;
29656   wait (&s);
29657   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29658   ;
29659   return 0;
29660 }
29661 _ACEOF
29662 rm -f conftest.$ac_objext
29663 if { (ac_try="$ac_compile"
29664 case "(($ac_try" in
29665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29666   *) ac_try_echo=$ac_try;;
29667 esac
29668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29669   (eval "$ac_compile") 2>conftest.er1
29670   ac_status=$?
29671   grep -v '^ *+' conftest.er1 >conftest.err
29672   rm -f conftest.er1
29673   cat conftest.err >&5
29674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675   (exit $ac_status); } &&
29676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29677   { (case "(($ac_try" in
29678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29679   *) ac_try_echo=$ac_try;;
29680 esac
29681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29682   (eval "$ac_try") 2>&5
29683   ac_status=$?
29684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685   (exit $ac_status); }; } &&
29686          { ac_try='test -s conftest.$ac_objext'
29687   { (case "(($ac_try" in
29688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689   *) ac_try_echo=$ac_try;;
29690 esac
29691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29692   (eval "$ac_try") 2>&5
29693   ac_status=$?
29694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695   (exit $ac_status); }; }; then
29696   ac_cv_header_sys_wait_h=yes
29697 else
29698   echo "$as_me: failed program was:" >&5
29699 sed 's/^/| /' conftest.$ac_ext >&5
29700
29701         ac_cv_header_sys_wait_h=no
29702 fi
29703
29704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29705 fi
29706 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29707 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29708 if test $ac_cv_header_sys_wait_h = yes; then
29709
29710 cat >>confdefs.h <<\_ACEOF
29711 #define HAVE_SYS_WAIT_H 1
29712 _ACEOF
29713
29714 fi
29715
29716 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29717 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29718 if test "${ac_cv_header_time+set}" = set; then
29719   echo $ECHO_N "(cached) $ECHO_C" >&6
29720 else
29721   cat >conftest.$ac_ext <<_ACEOF
29722 /* confdefs.h.  */
29723 _ACEOF
29724 cat confdefs.h >>conftest.$ac_ext
29725 cat >>conftest.$ac_ext <<_ACEOF
29726 /* end confdefs.h.  */
29727 #include <sys/types.h>
29728 #include <sys/time.h>
29729 #include <time.h>
29730
29731 int
29732 main ()
29733 {
29734 if ((struct tm *) 0)
29735 return 0;
29736   ;
29737   return 0;
29738 }
29739 _ACEOF
29740 rm -f conftest.$ac_objext
29741 if { (ac_try="$ac_compile"
29742 case "(($ac_try" in
29743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29744   *) ac_try_echo=$ac_try;;
29745 esac
29746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29747   (eval "$ac_compile") 2>conftest.er1
29748   ac_status=$?
29749   grep -v '^ *+' conftest.er1 >conftest.err
29750   rm -f conftest.er1
29751   cat conftest.err >&5
29752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753   (exit $ac_status); } &&
29754          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29755   { (case "(($ac_try" in
29756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29757   *) ac_try_echo=$ac_try;;
29758 esac
29759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29760   (eval "$ac_try") 2>&5
29761   ac_status=$?
29762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763   (exit $ac_status); }; } &&
29764          { ac_try='test -s conftest.$ac_objext'
29765   { (case "(($ac_try" in
29766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29767   *) ac_try_echo=$ac_try;;
29768 esac
29769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29770   (eval "$ac_try") 2>&5
29771   ac_status=$?
29772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773   (exit $ac_status); }; }; then
29774   ac_cv_header_time=yes
29775 else
29776   echo "$as_me: failed program was:" >&5
29777 sed 's/^/| /' conftest.$ac_ext >&5
29778
29779         ac_cv_header_time=no
29780 fi
29781
29782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29783 fi
29784 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29785 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29786 if test $ac_cv_header_time = yes; then
29787
29788 cat >>confdefs.h <<\_ACEOF
29789 #define TIME_WITH_SYS_TIME 1
29790 _ACEOF
29791
29792 fi
29793
29794
29795
29796
29797
29798
29799
29800
29801 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29802 do
29803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29805   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29808   echo $ECHO_N "(cached) $ECHO_C" >&6
29809 fi
29810 ac_res=`eval echo '${'$as_ac_Header'}'`
29811                { echo "$as_me:$LINENO: result: $ac_res" >&5
29812 echo "${ECHO_T}$ac_res" >&6; }
29813 else
29814   # Is the header compilable?
29815 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29817 cat >conftest.$ac_ext <<_ACEOF
29818 /* confdefs.h.  */
29819 _ACEOF
29820 cat confdefs.h >>conftest.$ac_ext
29821 cat >>conftest.$ac_ext <<_ACEOF
29822 /* end confdefs.h.  */
29823 $ac_includes_default
29824 #include <$ac_header>
29825 _ACEOF
29826 rm -f conftest.$ac_objext
29827 if { (ac_try="$ac_compile"
29828 case "(($ac_try" in
29829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29830   *) ac_try_echo=$ac_try;;
29831 esac
29832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29833   (eval "$ac_compile") 2>conftest.er1
29834   ac_status=$?
29835   grep -v '^ *+' conftest.er1 >conftest.err
29836   rm -f conftest.er1
29837   cat conftest.err >&5
29838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839   (exit $ac_status); } &&
29840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29841   { (case "(($ac_try" in
29842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29843   *) ac_try_echo=$ac_try;;
29844 esac
29845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29846   (eval "$ac_try") 2>&5
29847   ac_status=$?
29848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849   (exit $ac_status); }; } &&
29850          { ac_try='test -s conftest.$ac_objext'
29851   { (case "(($ac_try" in
29852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29853   *) ac_try_echo=$ac_try;;
29854 esac
29855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29856   (eval "$ac_try") 2>&5
29857   ac_status=$?
29858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859   (exit $ac_status); }; }; then
29860   ac_header_compiler=yes
29861 else
29862   echo "$as_me: failed program was:" >&5
29863 sed 's/^/| /' conftest.$ac_ext >&5
29864
29865         ac_header_compiler=no
29866 fi
29867
29868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29870 echo "${ECHO_T}$ac_header_compiler" >&6; }
29871
29872 # Is the header present?
29873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29875 cat >conftest.$ac_ext <<_ACEOF
29876 /* confdefs.h.  */
29877 _ACEOF
29878 cat confdefs.h >>conftest.$ac_ext
29879 cat >>conftest.$ac_ext <<_ACEOF
29880 /* end confdefs.h.  */
29881 #include <$ac_header>
29882 _ACEOF
29883 if { (ac_try="$ac_cpp conftest.$ac_ext"
29884 case "(($ac_try" in
29885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886   *) ac_try_echo=$ac_try;;
29887 esac
29888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29890   ac_status=$?
29891   grep -v '^ *+' conftest.er1 >conftest.err
29892   rm -f conftest.er1
29893   cat conftest.err >&5
29894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895   (exit $ac_status); } >/dev/null; then
29896   if test -s conftest.err; then
29897     ac_cpp_err=$ac_c_preproc_warn_flag
29898     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29899   else
29900     ac_cpp_err=
29901   fi
29902 else
29903   ac_cpp_err=yes
29904 fi
29905 if test -z "$ac_cpp_err"; then
29906   ac_header_preproc=yes
29907 else
29908   echo "$as_me: failed program was:" >&5
29909 sed 's/^/| /' conftest.$ac_ext >&5
29910
29911   ac_header_preproc=no
29912 fi
29913
29914 rm -f conftest.err conftest.$ac_ext
29915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29916 echo "${ECHO_T}$ac_header_preproc" >&6; }
29917
29918 # So?  What about this header?
29919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29920   yes:no: )
29921     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29925     ac_header_preproc=yes
29926     ;;
29927   no:yes:* )
29928     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29930     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29931 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29932     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29934     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29935 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29938     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29940     ( cat <<\_ASBOX
29941 ## ----------------------------------- ##
29942 ## Report this to llvmbugs@cs.uiuc.edu ##
29943 ## ----------------------------------- ##
29944 _ASBOX
29945      ) | sed "s/^/$as_me: WARNING:     /" >&2
29946     ;;
29947 esac
29948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29951   echo $ECHO_N "(cached) $ECHO_C" >&6
29952 else
29953   eval "$as_ac_Header=\$ac_header_preproc"
29954 fi
29955 ac_res=`eval echo '${'$as_ac_Header'}'`
29956                { echo "$as_me:$LINENO: result: $ac_res" >&5
29957 echo "${ECHO_T}$ac_res" >&6; }
29958
29959 fi
29960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29961   cat >>confdefs.h <<_ACEOF
29962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29963 _ACEOF
29964
29965 fi
29966
29967 done
29968
29969
29970
29971
29972
29973
29974
29975 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29976 do
29977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29979   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29982   echo $ECHO_N "(cached) $ECHO_C" >&6
29983 fi
29984 ac_res=`eval echo '${'$as_ac_Header'}'`
29985                { echo "$as_me:$LINENO: result: $ac_res" >&5
29986 echo "${ECHO_T}$ac_res" >&6; }
29987 else
29988   # Is the header compilable?
29989 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29991 cat >conftest.$ac_ext <<_ACEOF
29992 /* confdefs.h.  */
29993 _ACEOF
29994 cat confdefs.h >>conftest.$ac_ext
29995 cat >>conftest.$ac_ext <<_ACEOF
29996 /* end confdefs.h.  */
29997 $ac_includes_default
29998 #include <$ac_header>
29999 _ACEOF
30000 rm -f conftest.$ac_objext
30001 if { (ac_try="$ac_compile"
30002 case "(($ac_try" in
30003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30004   *) ac_try_echo=$ac_try;;
30005 esac
30006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30007   (eval "$ac_compile") 2>conftest.er1
30008   ac_status=$?
30009   grep -v '^ *+' conftest.er1 >conftest.err
30010   rm -f conftest.er1
30011   cat conftest.err >&5
30012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013   (exit $ac_status); } &&
30014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30015   { (case "(($ac_try" in
30016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30017   *) ac_try_echo=$ac_try;;
30018 esac
30019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30020   (eval "$ac_try") 2>&5
30021   ac_status=$?
30022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30023   (exit $ac_status); }; } &&
30024          { ac_try='test -s conftest.$ac_objext'
30025   { (case "(($ac_try" in
30026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30027   *) ac_try_echo=$ac_try;;
30028 esac
30029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30030   (eval "$ac_try") 2>&5
30031   ac_status=$?
30032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30033   (exit $ac_status); }; }; then
30034   ac_header_compiler=yes
30035 else
30036   echo "$as_me: failed program was:" >&5
30037 sed 's/^/| /' conftest.$ac_ext >&5
30038
30039         ac_header_compiler=no
30040 fi
30041
30042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30044 echo "${ECHO_T}$ac_header_compiler" >&6; }
30045
30046 # Is the header present?
30047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30049 cat >conftest.$ac_ext <<_ACEOF
30050 /* confdefs.h.  */
30051 _ACEOF
30052 cat confdefs.h >>conftest.$ac_ext
30053 cat >>conftest.$ac_ext <<_ACEOF
30054 /* end confdefs.h.  */
30055 #include <$ac_header>
30056 _ACEOF
30057 if { (ac_try="$ac_cpp conftest.$ac_ext"
30058 case "(($ac_try" in
30059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30060   *) ac_try_echo=$ac_try;;
30061 esac
30062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30063   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30064   ac_status=$?
30065   grep -v '^ *+' conftest.er1 >conftest.err
30066   rm -f conftest.er1
30067   cat conftest.err >&5
30068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069   (exit $ac_status); } >/dev/null; then
30070   if test -s conftest.err; then
30071     ac_cpp_err=$ac_c_preproc_warn_flag
30072     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30073   else
30074     ac_cpp_err=
30075   fi
30076 else
30077   ac_cpp_err=yes
30078 fi
30079 if test -z "$ac_cpp_err"; then
30080   ac_header_preproc=yes
30081 else
30082   echo "$as_me: failed program was:" >&5
30083 sed 's/^/| /' conftest.$ac_ext >&5
30084
30085   ac_header_preproc=no
30086 fi
30087
30088 rm -f conftest.err conftest.$ac_ext
30089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30090 echo "${ECHO_T}$ac_header_preproc" >&6; }
30091
30092 # So?  What about this header?
30093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30094   yes:no: )
30095     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30097     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30099     ac_header_preproc=yes
30100     ;;
30101   no:yes:* )
30102     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30104     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30105 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30106     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30108     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30109 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30112     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30114     ( cat <<\_ASBOX
30115 ## ----------------------------------- ##
30116 ## Report this to llvmbugs@cs.uiuc.edu ##
30117 ## ----------------------------------- ##
30118 _ASBOX
30119      ) | sed "s/^/$as_me: WARNING:     /" >&2
30120     ;;
30121 esac
30122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30125   echo $ECHO_N "(cached) $ECHO_C" >&6
30126 else
30127   eval "$as_ac_Header=\$ac_header_preproc"
30128 fi
30129 ac_res=`eval echo '${'$as_ac_Header'}'`
30130                { echo "$as_me:$LINENO: result: $ac_res" >&5
30131 echo "${ECHO_T}$ac_res" >&6; }
30132
30133 fi
30134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30135   cat >>confdefs.h <<_ACEOF
30136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30137 _ACEOF
30138
30139 fi
30140
30141 done
30142
30143
30144
30145 for ac_header in utime.h windows.h
30146 do
30147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30149   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30152   echo $ECHO_N "(cached) $ECHO_C" >&6
30153 fi
30154 ac_res=`eval echo '${'$as_ac_Header'}'`
30155                { echo "$as_me:$LINENO: result: $ac_res" >&5
30156 echo "${ECHO_T}$ac_res" >&6; }
30157 else
30158   # Is the header compilable?
30159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30161 cat >conftest.$ac_ext <<_ACEOF
30162 /* confdefs.h.  */
30163 _ACEOF
30164 cat confdefs.h >>conftest.$ac_ext
30165 cat >>conftest.$ac_ext <<_ACEOF
30166 /* end confdefs.h.  */
30167 $ac_includes_default
30168 #include <$ac_header>
30169 _ACEOF
30170 rm -f conftest.$ac_objext
30171 if { (ac_try="$ac_compile"
30172 case "(($ac_try" in
30173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30174   *) ac_try_echo=$ac_try;;
30175 esac
30176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30177   (eval "$ac_compile") 2>conftest.er1
30178   ac_status=$?
30179   grep -v '^ *+' conftest.er1 >conftest.err
30180   rm -f conftest.er1
30181   cat conftest.err >&5
30182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183   (exit $ac_status); } &&
30184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30185   { (case "(($ac_try" in
30186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187   *) ac_try_echo=$ac_try;;
30188 esac
30189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190   (eval "$ac_try") 2>&5
30191   ac_status=$?
30192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193   (exit $ac_status); }; } &&
30194          { ac_try='test -s conftest.$ac_objext'
30195   { (case "(($ac_try" in
30196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30197   *) ac_try_echo=$ac_try;;
30198 esac
30199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30200   (eval "$ac_try") 2>&5
30201   ac_status=$?
30202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203   (exit $ac_status); }; }; then
30204   ac_header_compiler=yes
30205 else
30206   echo "$as_me: failed program was:" >&5
30207 sed 's/^/| /' conftest.$ac_ext >&5
30208
30209         ac_header_compiler=no
30210 fi
30211
30212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30213 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30214 echo "${ECHO_T}$ac_header_compiler" >&6; }
30215
30216 # Is the header present?
30217 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30219 cat >conftest.$ac_ext <<_ACEOF
30220 /* confdefs.h.  */
30221 _ACEOF
30222 cat confdefs.h >>conftest.$ac_ext
30223 cat >>conftest.$ac_ext <<_ACEOF
30224 /* end confdefs.h.  */
30225 #include <$ac_header>
30226 _ACEOF
30227 if { (ac_try="$ac_cpp conftest.$ac_ext"
30228 case "(($ac_try" in
30229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30230   *) ac_try_echo=$ac_try;;
30231 esac
30232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30233   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30234   ac_status=$?
30235   grep -v '^ *+' conftest.er1 >conftest.err
30236   rm -f conftest.er1
30237   cat conftest.err >&5
30238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30239   (exit $ac_status); } >/dev/null; then
30240   if test -s conftest.err; then
30241     ac_cpp_err=$ac_c_preproc_warn_flag
30242     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30243   else
30244     ac_cpp_err=
30245   fi
30246 else
30247   ac_cpp_err=yes
30248 fi
30249 if test -z "$ac_cpp_err"; then
30250   ac_header_preproc=yes
30251 else
30252   echo "$as_me: failed program was:" >&5
30253 sed 's/^/| /' conftest.$ac_ext >&5
30254
30255   ac_header_preproc=no
30256 fi
30257
30258 rm -f conftest.err conftest.$ac_ext
30259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30260 echo "${ECHO_T}$ac_header_preproc" >&6; }
30261
30262 # So?  What about this header?
30263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30264   yes:no: )
30265     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30266 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30267     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30268 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30269     ac_header_preproc=yes
30270     ;;
30271   no:yes:* )
30272     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30273 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30274     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30275 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30276     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30277 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30278     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30279 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30280     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30282     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30283 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30284     ( cat <<\_ASBOX
30285 ## ----------------------------------- ##
30286 ## Report this to llvmbugs@cs.uiuc.edu ##
30287 ## ----------------------------------- ##
30288 _ASBOX
30289      ) | sed "s/^/$as_me: WARNING:     /" >&2
30290     ;;
30291 esac
30292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30295   echo $ECHO_N "(cached) $ECHO_C" >&6
30296 else
30297   eval "$as_ac_Header=\$ac_header_preproc"
30298 fi
30299 ac_res=`eval echo '${'$as_ac_Header'}'`
30300                { echo "$as_me:$LINENO: result: $ac_res" >&5
30301 echo "${ECHO_T}$ac_res" >&6; }
30302
30303 fi
30304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30305   cat >>confdefs.h <<_ACEOF
30306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30307 _ACEOF
30308
30309 fi
30310
30311 done
30312
30313
30314
30315
30316
30317 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30318 do
30319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30321   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30324   echo $ECHO_N "(cached) $ECHO_C" >&6
30325 fi
30326 ac_res=`eval echo '${'$as_ac_Header'}'`
30327                { echo "$as_me:$LINENO: result: $ac_res" >&5
30328 echo "${ECHO_T}$ac_res" >&6; }
30329 else
30330   # Is the header compilable?
30331 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30333 cat >conftest.$ac_ext <<_ACEOF
30334 /* confdefs.h.  */
30335 _ACEOF
30336 cat confdefs.h >>conftest.$ac_ext
30337 cat >>conftest.$ac_ext <<_ACEOF
30338 /* end confdefs.h.  */
30339 $ac_includes_default
30340 #include <$ac_header>
30341 _ACEOF
30342 rm -f conftest.$ac_objext
30343 if { (ac_try="$ac_compile"
30344 case "(($ac_try" in
30345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30346   *) ac_try_echo=$ac_try;;
30347 esac
30348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30349   (eval "$ac_compile") 2>conftest.er1
30350   ac_status=$?
30351   grep -v '^ *+' conftest.er1 >conftest.err
30352   rm -f conftest.er1
30353   cat conftest.err >&5
30354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355   (exit $ac_status); } &&
30356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30357   { (case "(($ac_try" in
30358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30359   *) ac_try_echo=$ac_try;;
30360 esac
30361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30362   (eval "$ac_try") 2>&5
30363   ac_status=$?
30364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365   (exit $ac_status); }; } &&
30366          { ac_try='test -s conftest.$ac_objext'
30367   { (case "(($ac_try" in
30368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30369   *) ac_try_echo=$ac_try;;
30370 esac
30371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30372   (eval "$ac_try") 2>&5
30373   ac_status=$?
30374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375   (exit $ac_status); }; }; then
30376   ac_header_compiler=yes
30377 else
30378   echo "$as_me: failed program was:" >&5
30379 sed 's/^/| /' conftest.$ac_ext >&5
30380
30381         ac_header_compiler=no
30382 fi
30383
30384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30386 echo "${ECHO_T}$ac_header_compiler" >&6; }
30387
30388 # Is the header present?
30389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30391 cat >conftest.$ac_ext <<_ACEOF
30392 /* confdefs.h.  */
30393 _ACEOF
30394 cat confdefs.h >>conftest.$ac_ext
30395 cat >>conftest.$ac_ext <<_ACEOF
30396 /* end confdefs.h.  */
30397 #include <$ac_header>
30398 _ACEOF
30399 if { (ac_try="$ac_cpp conftest.$ac_ext"
30400 case "(($ac_try" in
30401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30402   *) ac_try_echo=$ac_try;;
30403 esac
30404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30406   ac_status=$?
30407   grep -v '^ *+' conftest.er1 >conftest.err
30408   rm -f conftest.er1
30409   cat conftest.err >&5
30410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411   (exit $ac_status); } >/dev/null; then
30412   if test -s conftest.err; then
30413     ac_cpp_err=$ac_c_preproc_warn_flag
30414     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30415   else
30416     ac_cpp_err=
30417   fi
30418 else
30419   ac_cpp_err=yes
30420 fi
30421 if test -z "$ac_cpp_err"; then
30422   ac_header_preproc=yes
30423 else
30424   echo "$as_me: failed program was:" >&5
30425 sed 's/^/| /' conftest.$ac_ext >&5
30426
30427   ac_header_preproc=no
30428 fi
30429
30430 rm -f conftest.err conftest.$ac_ext
30431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30432 echo "${ECHO_T}$ac_header_preproc" >&6; }
30433
30434 # So?  What about this header?
30435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30436   yes:no: )
30437     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30441     ac_header_preproc=yes
30442     ;;
30443   no:yes:* )
30444     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30446     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30447 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30448     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30450     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30451 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30454     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30456     ( cat <<\_ASBOX
30457 ## ----------------------------------- ##
30458 ## Report this to llvmbugs@cs.uiuc.edu ##
30459 ## ----------------------------------- ##
30460 _ASBOX
30461      ) | sed "s/^/$as_me: WARNING:     /" >&2
30462     ;;
30463 esac
30464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30467   echo $ECHO_N "(cached) $ECHO_C" >&6
30468 else
30469   eval "$as_ac_Header=\$ac_header_preproc"
30470 fi
30471 ac_res=`eval echo '${'$as_ac_Header'}'`
30472                { echo "$as_me:$LINENO: result: $ac_res" >&5
30473 echo "${ECHO_T}$ac_res" >&6; }
30474
30475 fi
30476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30477   cat >>confdefs.h <<_ACEOF
30478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30479 _ACEOF
30480
30481 fi
30482
30483 done
30484
30485
30486
30487
30488
30489 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30490 do
30491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30493   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30496   echo $ECHO_N "(cached) $ECHO_C" >&6
30497 fi
30498 ac_res=`eval echo '${'$as_ac_Header'}'`
30499                { echo "$as_me:$LINENO: result: $ac_res" >&5
30500 echo "${ECHO_T}$ac_res" >&6; }
30501 else
30502   # Is the header compilable?
30503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30505 cat >conftest.$ac_ext <<_ACEOF
30506 /* confdefs.h.  */
30507 _ACEOF
30508 cat confdefs.h >>conftest.$ac_ext
30509 cat >>conftest.$ac_ext <<_ACEOF
30510 /* end confdefs.h.  */
30511 $ac_includes_default
30512 #include <$ac_header>
30513 _ACEOF
30514 rm -f conftest.$ac_objext
30515 if { (ac_try="$ac_compile"
30516 case "(($ac_try" in
30517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30518   *) ac_try_echo=$ac_try;;
30519 esac
30520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30521   (eval "$ac_compile") 2>conftest.er1
30522   ac_status=$?
30523   grep -v '^ *+' conftest.er1 >conftest.err
30524   rm -f conftest.er1
30525   cat conftest.err >&5
30526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527   (exit $ac_status); } &&
30528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30529   { (case "(($ac_try" in
30530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30531   *) ac_try_echo=$ac_try;;
30532 esac
30533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30534   (eval "$ac_try") 2>&5
30535   ac_status=$?
30536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537   (exit $ac_status); }; } &&
30538          { ac_try='test -s conftest.$ac_objext'
30539   { (case "(($ac_try" in
30540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30541   *) ac_try_echo=$ac_try;;
30542 esac
30543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30544   (eval "$ac_try") 2>&5
30545   ac_status=$?
30546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547   (exit $ac_status); }; }; then
30548   ac_header_compiler=yes
30549 else
30550   echo "$as_me: failed program was:" >&5
30551 sed 's/^/| /' conftest.$ac_ext >&5
30552
30553         ac_header_compiler=no
30554 fi
30555
30556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30558 echo "${ECHO_T}$ac_header_compiler" >&6; }
30559
30560 # Is the header present?
30561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30563 cat >conftest.$ac_ext <<_ACEOF
30564 /* confdefs.h.  */
30565 _ACEOF
30566 cat confdefs.h >>conftest.$ac_ext
30567 cat >>conftest.$ac_ext <<_ACEOF
30568 /* end confdefs.h.  */
30569 #include <$ac_header>
30570 _ACEOF
30571 if { (ac_try="$ac_cpp conftest.$ac_ext"
30572 case "(($ac_try" in
30573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30574   *) ac_try_echo=$ac_try;;
30575 esac
30576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30577   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30578   ac_status=$?
30579   grep -v '^ *+' conftest.er1 >conftest.err
30580   rm -f conftest.er1
30581   cat conftest.err >&5
30582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583   (exit $ac_status); } >/dev/null; then
30584   if test -s conftest.err; then
30585     ac_cpp_err=$ac_c_preproc_warn_flag
30586     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30587   else
30588     ac_cpp_err=
30589   fi
30590 else
30591   ac_cpp_err=yes
30592 fi
30593 if test -z "$ac_cpp_err"; then
30594   ac_header_preproc=yes
30595 else
30596   echo "$as_me: failed program was:" >&5
30597 sed 's/^/| /' conftest.$ac_ext >&5
30598
30599   ac_header_preproc=no
30600 fi
30601
30602 rm -f conftest.err conftest.$ac_ext
30603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30604 echo "${ECHO_T}$ac_header_preproc" >&6; }
30605
30606 # So?  What about this header?
30607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30608   yes:no: )
30609     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30613     ac_header_preproc=yes
30614     ;;
30615   no:yes:* )
30616     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30618     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30619 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30620     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30622     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30623 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30626     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30628     ( cat <<\_ASBOX
30629 ## ----------------------------------- ##
30630 ## Report this to llvmbugs@cs.uiuc.edu ##
30631 ## ----------------------------------- ##
30632 _ASBOX
30633      ) | sed "s/^/$as_me: WARNING:     /" >&2
30634     ;;
30635 esac
30636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30639   echo $ECHO_N "(cached) $ECHO_C" >&6
30640 else
30641   eval "$as_ac_Header=\$ac_header_preproc"
30642 fi
30643 ac_res=`eval echo '${'$as_ac_Header'}'`
30644                { echo "$as_me:$LINENO: result: $ac_res" >&5
30645 echo "${ECHO_T}$ac_res" >&6; }
30646
30647 fi
30648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30649   cat >>confdefs.h <<_ACEOF
30650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30651 _ACEOF
30652
30653 fi
30654
30655 done
30656
30657 if test "$ENABLE_THREADS" -eq 1 ; then
30658
30659 for ac_header in pthread.h
30660 do
30661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30663   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30666   echo $ECHO_N "(cached) $ECHO_C" >&6
30667 fi
30668 ac_res=`eval echo '${'$as_ac_Header'}'`
30669                { echo "$as_me:$LINENO: result: $ac_res" >&5
30670 echo "${ECHO_T}$ac_res" >&6; }
30671 else
30672   # Is the header compilable?
30673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30675 cat >conftest.$ac_ext <<_ACEOF
30676 /* confdefs.h.  */
30677 _ACEOF
30678 cat confdefs.h >>conftest.$ac_ext
30679 cat >>conftest.$ac_ext <<_ACEOF
30680 /* end confdefs.h.  */
30681 $ac_includes_default
30682 #include <$ac_header>
30683 _ACEOF
30684 rm -f conftest.$ac_objext
30685 if { (ac_try="$ac_compile"
30686 case "(($ac_try" in
30687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30688   *) ac_try_echo=$ac_try;;
30689 esac
30690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30691   (eval "$ac_compile") 2>conftest.er1
30692   ac_status=$?
30693   grep -v '^ *+' conftest.er1 >conftest.err
30694   rm -f conftest.er1
30695   cat conftest.err >&5
30696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30697   (exit $ac_status); } &&
30698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30699   { (case "(($ac_try" in
30700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30701   *) ac_try_echo=$ac_try;;
30702 esac
30703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30704   (eval "$ac_try") 2>&5
30705   ac_status=$?
30706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707   (exit $ac_status); }; } &&
30708          { ac_try='test -s conftest.$ac_objext'
30709   { (case "(($ac_try" in
30710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30711   *) ac_try_echo=$ac_try;;
30712 esac
30713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30714   (eval "$ac_try") 2>&5
30715   ac_status=$?
30716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717   (exit $ac_status); }; }; then
30718   ac_header_compiler=yes
30719 else
30720   echo "$as_me: failed program was:" >&5
30721 sed 's/^/| /' conftest.$ac_ext >&5
30722
30723         ac_header_compiler=no
30724 fi
30725
30726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30728 echo "${ECHO_T}$ac_header_compiler" >&6; }
30729
30730 # Is the header present?
30731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30733 cat >conftest.$ac_ext <<_ACEOF
30734 /* confdefs.h.  */
30735 _ACEOF
30736 cat confdefs.h >>conftest.$ac_ext
30737 cat >>conftest.$ac_ext <<_ACEOF
30738 /* end confdefs.h.  */
30739 #include <$ac_header>
30740 _ACEOF
30741 if { (ac_try="$ac_cpp conftest.$ac_ext"
30742 case "(($ac_try" in
30743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30744   *) ac_try_echo=$ac_try;;
30745 esac
30746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30748   ac_status=$?
30749   grep -v '^ *+' conftest.er1 >conftest.err
30750   rm -f conftest.er1
30751   cat conftest.err >&5
30752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30753   (exit $ac_status); } >/dev/null; then
30754   if test -s conftest.err; then
30755     ac_cpp_err=$ac_c_preproc_warn_flag
30756     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30757   else
30758     ac_cpp_err=
30759   fi
30760 else
30761   ac_cpp_err=yes
30762 fi
30763 if test -z "$ac_cpp_err"; then
30764   ac_header_preproc=yes
30765 else
30766   echo "$as_me: failed program was:" >&5
30767 sed 's/^/| /' conftest.$ac_ext >&5
30768
30769   ac_header_preproc=no
30770 fi
30771
30772 rm -f conftest.err conftest.$ac_ext
30773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30774 echo "${ECHO_T}$ac_header_preproc" >&6; }
30775
30776 # So?  What about this header?
30777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30778   yes:no: )
30779     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30783     ac_header_preproc=yes
30784     ;;
30785   no:yes:* )
30786     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30788     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30789 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30790     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30792     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30793 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30796     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30798     ( cat <<\_ASBOX
30799 ## ----------------------------------- ##
30800 ## Report this to llvmbugs@cs.uiuc.edu ##
30801 ## ----------------------------------- ##
30802 _ASBOX
30803      ) | sed "s/^/$as_me: WARNING:     /" >&2
30804     ;;
30805 esac
30806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30809   echo $ECHO_N "(cached) $ECHO_C" >&6
30810 else
30811   eval "$as_ac_Header=\$ac_header_preproc"
30812 fi
30813 ac_res=`eval echo '${'$as_ac_Header'}'`
30814                { echo "$as_me:$LINENO: result: $ac_res" >&5
30815 echo "${ECHO_T}$ac_res" >&6; }
30816
30817 fi
30818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30819   cat >>confdefs.h <<_ACEOF
30820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30821 _ACEOF
30822  HAVE_PTHREAD=1
30823
30824 else
30825   HAVE_PTHREAD=0
30826
30827 fi
30828
30829 done
30830
30831 else
30832   HAVE_PTHREAD=0
30833
30834 fi
30835
30836 if test "$llvm_cv_enable_libffi" = "yes" ; then
30837
30838
30839 for ac_header in ffi.h ffi/ffi.h
30840 do
30841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30843   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30846   echo $ECHO_N "(cached) $ECHO_C" >&6
30847 fi
30848 ac_res=`eval echo '${'$as_ac_Header'}'`
30849                { echo "$as_me:$LINENO: result: $ac_res" >&5
30850 echo "${ECHO_T}$ac_res" >&6; }
30851 else
30852   # Is the header compilable?
30853 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30855 cat >conftest.$ac_ext <<_ACEOF
30856 /* confdefs.h.  */
30857 _ACEOF
30858 cat confdefs.h >>conftest.$ac_ext
30859 cat >>conftest.$ac_ext <<_ACEOF
30860 /* end confdefs.h.  */
30861 $ac_includes_default
30862 #include <$ac_header>
30863 _ACEOF
30864 rm -f conftest.$ac_objext
30865 if { (ac_try="$ac_compile"
30866 case "(($ac_try" in
30867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30868   *) ac_try_echo=$ac_try;;
30869 esac
30870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30871   (eval "$ac_compile") 2>conftest.er1
30872   ac_status=$?
30873   grep -v '^ *+' conftest.er1 >conftest.err
30874   rm -f conftest.er1
30875   cat conftest.err >&5
30876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877   (exit $ac_status); } &&
30878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30879   { (case "(($ac_try" in
30880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30881   *) ac_try_echo=$ac_try;;
30882 esac
30883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30884   (eval "$ac_try") 2>&5
30885   ac_status=$?
30886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887   (exit $ac_status); }; } &&
30888          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
30898   ac_header_compiler=yes
30899 else
30900   echo "$as_me: failed program was:" >&5
30901 sed 's/^/| /' conftest.$ac_ext >&5
30902
30903         ac_header_compiler=no
30904 fi
30905
30906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30908 echo "${ECHO_T}$ac_header_compiler" >&6; }
30909
30910 # Is the header present?
30911 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30913 cat >conftest.$ac_ext <<_ACEOF
30914 /* confdefs.h.  */
30915 _ACEOF
30916 cat confdefs.h >>conftest.$ac_ext
30917 cat >>conftest.$ac_ext <<_ACEOF
30918 /* end confdefs.h.  */
30919 #include <$ac_header>
30920 _ACEOF
30921 if { (ac_try="$ac_cpp conftest.$ac_ext"
30922 case "(($ac_try" in
30923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30924   *) ac_try_echo=$ac_try;;
30925 esac
30926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30927   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30928   ac_status=$?
30929   grep -v '^ *+' conftest.er1 >conftest.err
30930   rm -f conftest.er1
30931   cat conftest.err >&5
30932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933   (exit $ac_status); } >/dev/null; then
30934   if test -s conftest.err; then
30935     ac_cpp_err=$ac_c_preproc_warn_flag
30936     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30937   else
30938     ac_cpp_err=
30939   fi
30940 else
30941   ac_cpp_err=yes
30942 fi
30943 if test -z "$ac_cpp_err"; then
30944   ac_header_preproc=yes
30945 else
30946   echo "$as_me: failed program was:" >&5
30947 sed 's/^/| /' conftest.$ac_ext >&5
30948
30949   ac_header_preproc=no
30950 fi
30951
30952 rm -f conftest.err conftest.$ac_ext
30953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30954 echo "${ECHO_T}$ac_header_preproc" >&6; }
30955
30956 # So?  What about this header?
30957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30958   yes:no: )
30959     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30961     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30963     ac_header_preproc=yes
30964     ;;
30965   no:yes:* )
30966     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30968     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30969 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30970     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30972     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30973 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30974     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30976     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30978     ( cat <<\_ASBOX
30979 ## ----------------------------------- ##
30980 ## Report this to llvmbugs@cs.uiuc.edu ##
30981 ## ----------------------------------- ##
30982 _ASBOX
30983      ) | sed "s/^/$as_me: WARNING:     /" >&2
30984     ;;
30985 esac
30986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30989   echo $ECHO_N "(cached) $ECHO_C" >&6
30990 else
30991   eval "$as_ac_Header=\$ac_header_preproc"
30992 fi
30993 ac_res=`eval echo '${'$as_ac_Header'}'`
30994                { echo "$as_me:$LINENO: result: $ac_res" >&5
30995 echo "${ECHO_T}$ac_res" >&6; }
30996
30997 fi
30998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30999   cat >>confdefs.h <<_ACEOF
31000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31001 _ACEOF
31002
31003 fi
31004
31005 done
31006
31007 fi
31008
31009
31010
31011   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31012 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31013 if test "${ac_cv_huge_val_sanity+set}" = set; then
31014   echo $ECHO_N "(cached) $ECHO_C" >&6
31015 else
31016
31017     ac_ext=cpp
31018 ac_cpp='$CXXCPP $CPPFLAGS'
31019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31022
31023     CXXFLAGS=-pedantic
31024     if test "$cross_compiling" = yes; then
31025   ac_cv_huge_val_sanity=yes
31026 else
31027   cat >conftest.$ac_ext <<_ACEOF
31028 /* confdefs.h.  */
31029 _ACEOF
31030 cat confdefs.h >>conftest.$ac_ext
31031 cat >>conftest.$ac_ext <<_ACEOF
31032 /* end confdefs.h.  */
31033 #include <math.h>
31034 int
31035 main ()
31036 {
31037 double x = HUGE_VAL; return x != x;
31038   ;
31039   return 0;
31040 }
31041 _ACEOF
31042 rm -f conftest$ac_exeext
31043 if { (ac_try="$ac_link"
31044 case "(($ac_try" in
31045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31046   *) ac_try_echo=$ac_try;;
31047 esac
31048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31049   (eval "$ac_link") 2>&5
31050   ac_status=$?
31051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31053   { (case "(($ac_try" in
31054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31055   *) ac_try_echo=$ac_try;;
31056 esac
31057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31058   (eval "$ac_try") 2>&5
31059   ac_status=$?
31060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31061   (exit $ac_status); }; }; then
31062   ac_cv_huge_val_sanity=yes
31063 else
31064   echo "$as_me: program exited with status $ac_status" >&5
31065 echo "$as_me: failed program was:" >&5
31066 sed 's/^/| /' conftest.$ac_ext >&5
31067
31068 ( exit $ac_status )
31069 ac_cv_huge_val_sanity=no
31070 fi
31071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31072 fi
31073
31074
31075     ac_ext=c
31076 ac_cpp='$CPP $CPPFLAGS'
31077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31080
31081
31082 fi
31083 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31084 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31085   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31086
31087
31088 { echo "$as_me:$LINENO: checking for pid_t" >&5
31089 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31090 if test "${ac_cv_type_pid_t+set}" = set; then
31091   echo $ECHO_N "(cached) $ECHO_C" >&6
31092 else
31093   cat >conftest.$ac_ext <<_ACEOF
31094 /* confdefs.h.  */
31095 _ACEOF
31096 cat confdefs.h >>conftest.$ac_ext
31097 cat >>conftest.$ac_ext <<_ACEOF
31098 /* end confdefs.h.  */
31099 $ac_includes_default
31100 typedef pid_t ac__type_new_;
31101 int
31102 main ()
31103 {
31104 if ((ac__type_new_ *) 0)
31105   return 0;
31106 if (sizeof (ac__type_new_))
31107   return 0;
31108   ;
31109   return 0;
31110 }
31111 _ACEOF
31112 rm -f conftest.$ac_objext
31113 if { (ac_try="$ac_compile"
31114 case "(($ac_try" in
31115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31116   *) ac_try_echo=$ac_try;;
31117 esac
31118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31119   (eval "$ac_compile") 2>conftest.er1
31120   ac_status=$?
31121   grep -v '^ *+' conftest.er1 >conftest.err
31122   rm -f conftest.er1
31123   cat conftest.err >&5
31124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125   (exit $ac_status); } &&
31126          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31127   { (case "(($ac_try" in
31128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31129   *) ac_try_echo=$ac_try;;
31130 esac
31131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31132   (eval "$ac_try") 2>&5
31133   ac_status=$?
31134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135   (exit $ac_status); }; } &&
31136          { ac_try='test -s conftest.$ac_objext'
31137   { (case "(($ac_try" in
31138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31139   *) ac_try_echo=$ac_try;;
31140 esac
31141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31142   (eval "$ac_try") 2>&5
31143   ac_status=$?
31144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145   (exit $ac_status); }; }; then
31146   ac_cv_type_pid_t=yes
31147 else
31148   echo "$as_me: failed program was:" >&5
31149 sed 's/^/| /' conftest.$ac_ext >&5
31150
31151         ac_cv_type_pid_t=no
31152 fi
31153
31154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31155 fi
31156 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31157 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31158 if test $ac_cv_type_pid_t = yes; then
31159   :
31160 else
31161
31162 cat >>confdefs.h <<_ACEOF
31163 #define pid_t int
31164 _ACEOF
31165
31166 fi
31167
31168 { echo "$as_me:$LINENO: checking for size_t" >&5
31169 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31170 if test "${ac_cv_type_size_t+set}" = set; then
31171   echo $ECHO_N "(cached) $ECHO_C" >&6
31172 else
31173   cat >conftest.$ac_ext <<_ACEOF
31174 /* confdefs.h.  */
31175 _ACEOF
31176 cat confdefs.h >>conftest.$ac_ext
31177 cat >>conftest.$ac_ext <<_ACEOF
31178 /* end confdefs.h.  */
31179 $ac_includes_default
31180 typedef size_t ac__type_new_;
31181 int
31182 main ()
31183 {
31184 if ((ac__type_new_ *) 0)
31185   return 0;
31186 if (sizeof (ac__type_new_))
31187   return 0;
31188   ;
31189   return 0;
31190 }
31191 _ACEOF
31192 rm -f conftest.$ac_objext
31193 if { (ac_try="$ac_compile"
31194 case "(($ac_try" in
31195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31196   *) ac_try_echo=$ac_try;;
31197 esac
31198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31199   (eval "$ac_compile") 2>conftest.er1
31200   ac_status=$?
31201   grep -v '^ *+' conftest.er1 >conftest.err
31202   rm -f conftest.er1
31203   cat conftest.err >&5
31204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205   (exit $ac_status); } &&
31206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31207   { (case "(($ac_try" in
31208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31209   *) ac_try_echo=$ac_try;;
31210 esac
31211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31212   (eval "$ac_try") 2>&5
31213   ac_status=$?
31214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215   (exit $ac_status); }; } &&
31216          { ac_try='test -s conftest.$ac_objext'
31217   { (case "(($ac_try" in
31218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31219   *) ac_try_echo=$ac_try;;
31220 esac
31221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31222   (eval "$ac_try") 2>&5
31223   ac_status=$?
31224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225   (exit $ac_status); }; }; then
31226   ac_cv_type_size_t=yes
31227 else
31228   echo "$as_me: failed program was:" >&5
31229 sed 's/^/| /' conftest.$ac_ext >&5
31230
31231         ac_cv_type_size_t=no
31232 fi
31233
31234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31235 fi
31236 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31237 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31238 if test $ac_cv_type_size_t = yes; then
31239   :
31240 else
31241
31242 cat >>confdefs.h <<_ACEOF
31243 #define size_t unsigned int
31244 _ACEOF
31245
31246 fi
31247
31248 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31249 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31250 if test "${ac_cv_type_signal+set}" = set; then
31251   echo $ECHO_N "(cached) $ECHO_C" >&6
31252 else
31253   cat >conftest.$ac_ext <<_ACEOF
31254 /* confdefs.h.  */
31255 _ACEOF
31256 cat confdefs.h >>conftest.$ac_ext
31257 cat >>conftest.$ac_ext <<_ACEOF
31258 /* end confdefs.h.  */
31259 #include <sys/types.h>
31260 #include <signal.h>
31261
31262 int
31263 main ()
31264 {
31265 return *(signal (0, 0)) (0) == 1;
31266   ;
31267   return 0;
31268 }
31269 _ACEOF
31270 rm -f conftest.$ac_objext
31271 if { (ac_try="$ac_compile"
31272 case "(($ac_try" in
31273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31274   *) ac_try_echo=$ac_try;;
31275 esac
31276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31277   (eval "$ac_compile") 2>conftest.er1
31278   ac_status=$?
31279   grep -v '^ *+' conftest.er1 >conftest.err
31280   rm -f conftest.er1
31281   cat conftest.err >&5
31282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283   (exit $ac_status); } &&
31284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31285   { (case "(($ac_try" in
31286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31287   *) ac_try_echo=$ac_try;;
31288 esac
31289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31290   (eval "$ac_try") 2>&5
31291   ac_status=$?
31292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293   (exit $ac_status); }; } &&
31294          { ac_try='test -s conftest.$ac_objext'
31295   { (case "(($ac_try" in
31296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31297   *) ac_try_echo=$ac_try;;
31298 esac
31299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31300   (eval "$ac_try") 2>&5
31301   ac_status=$?
31302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31303   (exit $ac_status); }; }; then
31304   ac_cv_type_signal=int
31305 else
31306   echo "$as_me: failed program was:" >&5
31307 sed 's/^/| /' conftest.$ac_ext >&5
31308
31309         ac_cv_type_signal=void
31310 fi
31311
31312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31313 fi
31314 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31315 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31316
31317 cat >>confdefs.h <<_ACEOF
31318 #define RETSIGTYPE $ac_cv_type_signal
31319 _ACEOF
31320
31321
31322 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31323 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31324 if test "${ac_cv_struct_tm+set}" = set; then
31325   echo $ECHO_N "(cached) $ECHO_C" >&6
31326 else
31327   cat >conftest.$ac_ext <<_ACEOF
31328 /* confdefs.h.  */
31329 _ACEOF
31330 cat confdefs.h >>conftest.$ac_ext
31331 cat >>conftest.$ac_ext <<_ACEOF
31332 /* end confdefs.h.  */
31333 #include <sys/types.h>
31334 #include <time.h>
31335
31336 int
31337 main ()
31338 {
31339 struct tm *tp; tp->tm_sec;
31340   ;
31341   return 0;
31342 }
31343 _ACEOF
31344 rm -f conftest.$ac_objext
31345 if { (ac_try="$ac_compile"
31346 case "(($ac_try" in
31347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31348   *) ac_try_echo=$ac_try;;
31349 esac
31350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31351   (eval "$ac_compile") 2>conftest.er1
31352   ac_status=$?
31353   grep -v '^ *+' conftest.er1 >conftest.err
31354   rm -f conftest.er1
31355   cat conftest.err >&5
31356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357   (exit $ac_status); } &&
31358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31359   { (case "(($ac_try" in
31360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31361   *) ac_try_echo=$ac_try;;
31362 esac
31363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31364   (eval "$ac_try") 2>&5
31365   ac_status=$?
31366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367   (exit $ac_status); }; } &&
31368          { ac_try='test -s conftest.$ac_objext'
31369   { (case "(($ac_try" in
31370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31371   *) ac_try_echo=$ac_try;;
31372 esac
31373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31374   (eval "$ac_try") 2>&5
31375   ac_status=$?
31376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31377   (exit $ac_status); }; }; then
31378   ac_cv_struct_tm=time.h
31379 else
31380   echo "$as_me: failed program was:" >&5
31381 sed 's/^/| /' conftest.$ac_ext >&5
31382
31383         ac_cv_struct_tm=sys/time.h
31384 fi
31385
31386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31387 fi
31388 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31389 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31390 if test $ac_cv_struct_tm = sys/time.h; then
31391
31392 cat >>confdefs.h <<\_ACEOF
31393 #define TM_IN_SYS_TIME 1
31394 _ACEOF
31395
31396 fi
31397
31398 { echo "$as_me:$LINENO: checking for int64_t" >&5
31399 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31400 if test "${ac_cv_type_int64_t+set}" = set; then
31401   echo $ECHO_N "(cached) $ECHO_C" >&6
31402 else
31403   cat >conftest.$ac_ext <<_ACEOF
31404 /* confdefs.h.  */
31405 _ACEOF
31406 cat confdefs.h >>conftest.$ac_ext
31407 cat >>conftest.$ac_ext <<_ACEOF
31408 /* end confdefs.h.  */
31409 $ac_includes_default
31410 typedef int64_t ac__type_new_;
31411 int
31412 main ()
31413 {
31414 if ((ac__type_new_ *) 0)
31415   return 0;
31416 if (sizeof (ac__type_new_))
31417   return 0;
31418   ;
31419   return 0;
31420 }
31421 _ACEOF
31422 rm -f conftest.$ac_objext
31423 if { (ac_try="$ac_compile"
31424 case "(($ac_try" in
31425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31426   *) ac_try_echo=$ac_try;;
31427 esac
31428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31429   (eval "$ac_compile") 2>conftest.er1
31430   ac_status=$?
31431   grep -v '^ *+' conftest.er1 >conftest.err
31432   rm -f conftest.er1
31433   cat conftest.err >&5
31434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435   (exit $ac_status); } &&
31436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31437   { (case "(($ac_try" in
31438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31439   *) ac_try_echo=$ac_try;;
31440 esac
31441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31442   (eval "$ac_try") 2>&5
31443   ac_status=$?
31444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445   (exit $ac_status); }; } &&
31446          { ac_try='test -s conftest.$ac_objext'
31447   { (case "(($ac_try" in
31448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31449   *) ac_try_echo=$ac_try;;
31450 esac
31451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31452   (eval "$ac_try") 2>&5
31453   ac_status=$?
31454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455   (exit $ac_status); }; }; then
31456   ac_cv_type_int64_t=yes
31457 else
31458   echo "$as_me: failed program was:" >&5
31459 sed 's/^/| /' conftest.$ac_ext >&5
31460
31461         ac_cv_type_int64_t=no
31462 fi
31463
31464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31465 fi
31466 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31467 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31468 if test $ac_cv_type_int64_t = yes; then
31469
31470 cat >>confdefs.h <<_ACEOF
31471 #define HAVE_INT64_T 1
31472 _ACEOF
31473
31474
31475 else
31476   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31477 echo "$as_me: error: Type int64_t required but not found" >&2;}
31478    { (exit 1); exit 1; }; }
31479 fi
31480
31481 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31482 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31483 if test "${ac_cv_type_uint64_t+set}" = set; then
31484   echo $ECHO_N "(cached) $ECHO_C" >&6
31485 else
31486   cat >conftest.$ac_ext <<_ACEOF
31487 /* confdefs.h.  */
31488 _ACEOF
31489 cat confdefs.h >>conftest.$ac_ext
31490 cat >>conftest.$ac_ext <<_ACEOF
31491 /* end confdefs.h.  */
31492 $ac_includes_default
31493 typedef uint64_t ac__type_new_;
31494 int
31495 main ()
31496 {
31497 if ((ac__type_new_ *) 0)
31498   return 0;
31499 if (sizeof (ac__type_new_))
31500   return 0;
31501   ;
31502   return 0;
31503 }
31504 _ACEOF
31505 rm -f conftest.$ac_objext
31506 if { (ac_try="$ac_compile"
31507 case "(($ac_try" in
31508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31509   *) ac_try_echo=$ac_try;;
31510 esac
31511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31512   (eval "$ac_compile") 2>conftest.er1
31513   ac_status=$?
31514   grep -v '^ *+' conftest.er1 >conftest.err
31515   rm -f conftest.er1
31516   cat conftest.err >&5
31517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518   (exit $ac_status); } &&
31519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31520   { (case "(($ac_try" in
31521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31522   *) ac_try_echo=$ac_try;;
31523 esac
31524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31525   (eval "$ac_try") 2>&5
31526   ac_status=$?
31527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528   (exit $ac_status); }; } &&
31529          { ac_try='test -s conftest.$ac_objext'
31530   { (case "(($ac_try" in
31531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31532   *) ac_try_echo=$ac_try;;
31533 esac
31534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31535   (eval "$ac_try") 2>&5
31536   ac_status=$?
31537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538   (exit $ac_status); }; }; then
31539   ac_cv_type_uint64_t=yes
31540 else
31541   echo "$as_me: failed program was:" >&5
31542 sed 's/^/| /' conftest.$ac_ext >&5
31543
31544         ac_cv_type_uint64_t=no
31545 fi
31546
31547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31548 fi
31549 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31550 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31551 if test $ac_cv_type_uint64_t = yes; then
31552
31553 cat >>confdefs.h <<_ACEOF
31554 #define HAVE_UINT64_T 1
31555 _ACEOF
31556
31557
31558 else
31559   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31560 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31561 if test "${ac_cv_type_u_int64_t+set}" = set; then
31562   echo $ECHO_N "(cached) $ECHO_C" >&6
31563 else
31564   cat >conftest.$ac_ext <<_ACEOF
31565 /* confdefs.h.  */
31566 _ACEOF
31567 cat confdefs.h >>conftest.$ac_ext
31568 cat >>conftest.$ac_ext <<_ACEOF
31569 /* end confdefs.h.  */
31570 $ac_includes_default
31571 typedef u_int64_t ac__type_new_;
31572 int
31573 main ()
31574 {
31575 if ((ac__type_new_ *) 0)
31576   return 0;
31577 if (sizeof (ac__type_new_))
31578   return 0;
31579   ;
31580   return 0;
31581 }
31582 _ACEOF
31583 rm -f conftest.$ac_objext
31584 if { (ac_try="$ac_compile"
31585 case "(($ac_try" in
31586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31587   *) ac_try_echo=$ac_try;;
31588 esac
31589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31590   (eval "$ac_compile") 2>conftest.er1
31591   ac_status=$?
31592   grep -v '^ *+' conftest.er1 >conftest.err
31593   rm -f conftest.er1
31594   cat conftest.err >&5
31595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31596   (exit $ac_status); } &&
31597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31598   { (case "(($ac_try" in
31599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31600   *) ac_try_echo=$ac_try;;
31601 esac
31602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31603   (eval "$ac_try") 2>&5
31604   ac_status=$?
31605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606   (exit $ac_status); }; } &&
31607          { ac_try='test -s conftest.$ac_objext'
31608   { (case "(($ac_try" in
31609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31610   *) ac_try_echo=$ac_try;;
31611 esac
31612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31613   (eval "$ac_try") 2>&5
31614   ac_status=$?
31615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616   (exit $ac_status); }; }; then
31617   ac_cv_type_u_int64_t=yes
31618 else
31619   echo "$as_me: failed program was:" >&5
31620 sed 's/^/| /' conftest.$ac_ext >&5
31621
31622         ac_cv_type_u_int64_t=no
31623 fi
31624
31625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31626 fi
31627 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31628 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31629 if test $ac_cv_type_u_int64_t = yes; then
31630
31631 cat >>confdefs.h <<_ACEOF
31632 #define HAVE_U_INT64_T 1
31633 _ACEOF
31634
31635
31636 else
31637   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31638 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31639    { (exit 1); exit 1; }; }
31640 fi
31641
31642 fi
31643
31644
31645
31646
31647
31648
31649
31650
31651
31652
31653 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31654 do
31655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31659   echo $ECHO_N "(cached) $ECHO_C" >&6
31660 else
31661   cat >conftest.$ac_ext <<_ACEOF
31662 /* confdefs.h.  */
31663 _ACEOF
31664 cat confdefs.h >>conftest.$ac_ext
31665 cat >>conftest.$ac_ext <<_ACEOF
31666 /* end confdefs.h.  */
31667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31669 #define $ac_func innocuous_$ac_func
31670
31671 /* System header to define __stub macros and hopefully few prototypes,
31672     which can conflict with char $ac_func (); below.
31673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31674     <limits.h> exists even on freestanding compilers.  */
31675
31676 #ifdef __STDC__
31677 # include <limits.h>
31678 #else
31679 # include <assert.h>
31680 #endif
31681
31682 #undef $ac_func
31683
31684 /* Override any GCC internal prototype to avoid an error.
31685    Use char because int might match the return type of a GCC
31686    builtin and then its argument prototype would still apply.  */
31687 #ifdef __cplusplus
31688 extern "C"
31689 #endif
31690 char $ac_func ();
31691 /* The GNU C library defines this for functions which it implements
31692     to always fail with ENOSYS.  Some functions are actually named
31693     something starting with __ and the normal name is an alias.  */
31694 #if defined __stub_$ac_func || defined __stub___$ac_func
31695 choke me
31696 #endif
31697
31698 int
31699 main ()
31700 {
31701 return $ac_func ();
31702   ;
31703   return 0;
31704 }
31705 _ACEOF
31706 rm -f conftest.$ac_objext conftest$ac_exeext
31707 if { (ac_try="$ac_link"
31708 case "(($ac_try" in
31709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31710   *) ac_try_echo=$ac_try;;
31711 esac
31712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31713   (eval "$ac_link") 2>conftest.er1
31714   ac_status=$?
31715   grep -v '^ *+' conftest.er1 >conftest.err
31716   rm -f conftest.er1
31717   cat conftest.err >&5
31718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719   (exit $ac_status); } &&
31720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31721   { (case "(($ac_try" in
31722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31723   *) ac_try_echo=$ac_try;;
31724 esac
31725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31726   (eval "$ac_try") 2>&5
31727   ac_status=$?
31728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729   (exit $ac_status); }; } &&
31730          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
31737   ac_status=$?
31738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739   (exit $ac_status); }; }; then
31740   eval "$as_ac_var=yes"
31741 else
31742   echo "$as_me: failed program was:" >&5
31743 sed 's/^/| /' conftest.$ac_ext >&5
31744
31745         eval "$as_ac_var=no"
31746 fi
31747
31748 rm -f core conftest.err conftest.$ac_objext \
31749       conftest$ac_exeext conftest.$ac_ext
31750 fi
31751 ac_res=`eval echo '${'$as_ac_var'}'`
31752                { echo "$as_me:$LINENO: result: $ac_res" >&5
31753 echo "${ECHO_T}$ac_res" >&6; }
31754 if test `eval echo '${'$as_ac_var'}'` = yes; then
31755   cat >>confdefs.h <<_ACEOF
31756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31757 _ACEOF
31758
31759 fi
31760 done
31761
31762
31763
31764
31765
31766 for ac_func in powf fmodf strtof round
31767 do
31768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31772   echo $ECHO_N "(cached) $ECHO_C" >&6
31773 else
31774   cat >conftest.$ac_ext <<_ACEOF
31775 /* confdefs.h.  */
31776 _ACEOF
31777 cat confdefs.h >>conftest.$ac_ext
31778 cat >>conftest.$ac_ext <<_ACEOF
31779 /* end confdefs.h.  */
31780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31782 #define $ac_func innocuous_$ac_func
31783
31784 /* System header to define __stub macros and hopefully few prototypes,
31785     which can conflict with char $ac_func (); below.
31786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31787     <limits.h> exists even on freestanding compilers.  */
31788
31789 #ifdef __STDC__
31790 # include <limits.h>
31791 #else
31792 # include <assert.h>
31793 #endif
31794
31795 #undef $ac_func
31796
31797 /* Override any GCC internal prototype to avoid an error.
31798    Use char because int might match the return type of a GCC
31799    builtin and then its argument prototype would still apply.  */
31800 #ifdef __cplusplus
31801 extern "C"
31802 #endif
31803 char $ac_func ();
31804 /* The GNU C library defines this for functions which it implements
31805     to always fail with ENOSYS.  Some functions are actually named
31806     something starting with __ and the normal name is an alias.  */
31807 #if defined __stub_$ac_func || defined __stub___$ac_func
31808 choke me
31809 #endif
31810
31811 int
31812 main ()
31813 {
31814 return $ac_func ();
31815   ;
31816   return 0;
31817 }
31818 _ACEOF
31819 rm -f conftest.$ac_objext conftest$ac_exeext
31820 if { (ac_try="$ac_link"
31821 case "(($ac_try" in
31822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31823   *) ac_try_echo=$ac_try;;
31824 esac
31825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31826   (eval "$ac_link") 2>conftest.er1
31827   ac_status=$?
31828   grep -v '^ *+' conftest.er1 >conftest.err
31829   rm -f conftest.er1
31830   cat conftest.err >&5
31831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832   (exit $ac_status); } &&
31833          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31834   { (case "(($ac_try" in
31835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31836   *) ac_try_echo=$ac_try;;
31837 esac
31838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31839   (eval "$ac_try") 2>&5
31840   ac_status=$?
31841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842   (exit $ac_status); }; } &&
31843          { ac_try='test -s conftest$ac_exeext'
31844   { (case "(($ac_try" in
31845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31846   *) ac_try_echo=$ac_try;;
31847 esac
31848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31849   (eval "$ac_try") 2>&5
31850   ac_status=$?
31851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852   (exit $ac_status); }; }; then
31853   eval "$as_ac_var=yes"
31854 else
31855   echo "$as_me: failed program was:" >&5
31856 sed 's/^/| /' conftest.$ac_ext >&5
31857
31858         eval "$as_ac_var=no"
31859 fi
31860
31861 rm -f core conftest.err conftest.$ac_objext \
31862       conftest$ac_exeext conftest.$ac_ext
31863 fi
31864 ac_res=`eval echo '${'$as_ac_var'}'`
31865                { echo "$as_me:$LINENO: result: $ac_res" >&5
31866 echo "${ECHO_T}$ac_res" >&6; }
31867 if test `eval echo '${'$as_ac_var'}'` = yes; then
31868   cat >>confdefs.h <<_ACEOF
31869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31870 _ACEOF
31871
31872 fi
31873 done
31874
31875
31876
31877
31878
31879
31880 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31881 do
31882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31883 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31886   echo $ECHO_N "(cached) $ECHO_C" >&6
31887 else
31888   cat >conftest.$ac_ext <<_ACEOF
31889 /* confdefs.h.  */
31890 _ACEOF
31891 cat confdefs.h >>conftest.$ac_ext
31892 cat >>conftest.$ac_ext <<_ACEOF
31893 /* end confdefs.h.  */
31894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31896 #define $ac_func innocuous_$ac_func
31897
31898 /* System header to define __stub macros and hopefully few prototypes,
31899     which can conflict with char $ac_func (); below.
31900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31901     <limits.h> exists even on freestanding compilers.  */
31902
31903 #ifdef __STDC__
31904 # include <limits.h>
31905 #else
31906 # include <assert.h>
31907 #endif
31908
31909 #undef $ac_func
31910
31911 /* Override any GCC internal prototype to avoid an error.
31912    Use char because int might match the return type of a GCC
31913    builtin and then its argument prototype would still apply.  */
31914 #ifdef __cplusplus
31915 extern "C"
31916 #endif
31917 char $ac_func ();
31918 /* The GNU C library defines this for functions which it implements
31919     to always fail with ENOSYS.  Some functions are actually named
31920     something starting with __ and the normal name is an alias.  */
31921 #if defined __stub_$ac_func || defined __stub___$ac_func
31922 choke me
31923 #endif
31924
31925 int
31926 main ()
31927 {
31928 return $ac_func ();
31929   ;
31930   return 0;
31931 }
31932 _ACEOF
31933 rm -f conftest.$ac_objext conftest$ac_exeext
31934 if { (ac_try="$ac_link"
31935 case "(($ac_try" in
31936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937   *) ac_try_echo=$ac_try;;
31938 esac
31939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940   (eval "$ac_link") 2>conftest.er1
31941   ac_status=$?
31942   grep -v '^ *+' conftest.er1 >conftest.err
31943   rm -f conftest.er1
31944   cat conftest.err >&5
31945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946   (exit $ac_status); } &&
31947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31948   { (case "(($ac_try" in
31949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31950   *) ac_try_echo=$ac_try;;
31951 esac
31952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31953   (eval "$ac_try") 2>&5
31954   ac_status=$?
31955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956   (exit $ac_status); }; } &&
31957          { ac_try='test -s conftest$ac_exeext'
31958   { (case "(($ac_try" in
31959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31960   *) ac_try_echo=$ac_try;;
31961 esac
31962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31963   (eval "$ac_try") 2>&5
31964   ac_status=$?
31965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966   (exit $ac_status); }; }; then
31967   eval "$as_ac_var=yes"
31968 else
31969   echo "$as_me: failed program was:" >&5
31970 sed 's/^/| /' conftest.$ac_ext >&5
31971
31972         eval "$as_ac_var=no"
31973 fi
31974
31975 rm -f core conftest.err conftest.$ac_objext \
31976       conftest$ac_exeext conftest.$ac_ext
31977 fi
31978 ac_res=`eval echo '${'$as_ac_var'}'`
31979                { echo "$as_me:$LINENO: result: $ac_res" >&5
31980 echo "${ECHO_T}$ac_res" >&6; }
31981 if test `eval echo '${'$as_ac_var'}'` = yes; then
31982   cat >>confdefs.h <<_ACEOF
31983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31984 _ACEOF
31985
31986 fi
31987 done
31988
31989
31990
31991
31992 for ac_func in isatty mkdtemp mkstemp
31993 do
31994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31998   echo $ECHO_N "(cached) $ECHO_C" >&6
31999 else
32000   cat >conftest.$ac_ext <<_ACEOF
32001 /* confdefs.h.  */
32002 _ACEOF
32003 cat confdefs.h >>conftest.$ac_ext
32004 cat >>conftest.$ac_ext <<_ACEOF
32005 /* end confdefs.h.  */
32006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32008 #define $ac_func innocuous_$ac_func
32009
32010 /* System header to define __stub macros and hopefully few prototypes,
32011     which can conflict with char $ac_func (); below.
32012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32013     <limits.h> exists even on freestanding compilers.  */
32014
32015 #ifdef __STDC__
32016 # include <limits.h>
32017 #else
32018 # include <assert.h>
32019 #endif
32020
32021 #undef $ac_func
32022
32023 /* Override any GCC internal prototype to avoid an error.
32024    Use char because int might match the return type of a GCC
32025    builtin and then its argument prototype would still apply.  */
32026 #ifdef __cplusplus
32027 extern "C"
32028 #endif
32029 char $ac_func ();
32030 /* The GNU C library defines this for functions which it implements
32031     to always fail with ENOSYS.  Some functions are actually named
32032     something starting with __ and the normal name is an alias.  */
32033 #if defined __stub_$ac_func || defined __stub___$ac_func
32034 choke me
32035 #endif
32036
32037 int
32038 main ()
32039 {
32040 return $ac_func ();
32041   ;
32042   return 0;
32043 }
32044 _ACEOF
32045 rm -f conftest.$ac_objext conftest$ac_exeext
32046 if { (ac_try="$ac_link"
32047 case "(($ac_try" in
32048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32049   *) ac_try_echo=$ac_try;;
32050 esac
32051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32052   (eval "$ac_link") 2>conftest.er1
32053   ac_status=$?
32054   grep -v '^ *+' conftest.er1 >conftest.err
32055   rm -f conftest.er1
32056   cat conftest.err >&5
32057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058   (exit $ac_status); } &&
32059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32060   { (case "(($ac_try" in
32061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32062   *) ac_try_echo=$ac_try;;
32063 esac
32064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32065   (eval "$ac_try") 2>&5
32066   ac_status=$?
32067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068   (exit $ac_status); }; } &&
32069          { ac_try='test -s conftest$ac_exeext'
32070   { (case "(($ac_try" in
32071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32072   *) ac_try_echo=$ac_try;;
32073 esac
32074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32075   (eval "$ac_try") 2>&5
32076   ac_status=$?
32077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32078   (exit $ac_status); }; }; then
32079   eval "$as_ac_var=yes"
32080 else
32081   echo "$as_me: failed program was:" >&5
32082 sed 's/^/| /' conftest.$ac_ext >&5
32083
32084         eval "$as_ac_var=no"
32085 fi
32086
32087 rm -f core conftest.err conftest.$ac_objext \
32088       conftest$ac_exeext conftest.$ac_ext
32089 fi
32090 ac_res=`eval echo '${'$as_ac_var'}'`
32091                { echo "$as_me:$LINENO: result: $ac_res" >&5
32092 echo "${ECHO_T}$ac_res" >&6; }
32093 if test `eval echo '${'$as_ac_var'}'` = yes; then
32094   cat >>confdefs.h <<_ACEOF
32095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32096 _ACEOF
32097
32098 fi
32099 done
32100
32101
32102
32103
32104
32105
32106 for ac_func in mktemp realpath sbrk setrlimit strdup
32107 do
32108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32109 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32111 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32112   echo $ECHO_N "(cached) $ECHO_C" >&6
32113 else
32114   cat >conftest.$ac_ext <<_ACEOF
32115 /* confdefs.h.  */
32116 _ACEOF
32117 cat confdefs.h >>conftest.$ac_ext
32118 cat >>conftest.$ac_ext <<_ACEOF
32119 /* end confdefs.h.  */
32120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32121    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32122 #define $ac_func innocuous_$ac_func
32123
32124 /* System header to define __stub macros and hopefully few prototypes,
32125     which can conflict with char $ac_func (); below.
32126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32127     <limits.h> exists even on freestanding compilers.  */
32128
32129 #ifdef __STDC__
32130 # include <limits.h>
32131 #else
32132 # include <assert.h>
32133 #endif
32134
32135 #undef $ac_func
32136
32137 /* Override any GCC internal prototype to avoid an error.
32138    Use char because int might match the return type of a GCC
32139    builtin and then its argument prototype would still apply.  */
32140 #ifdef __cplusplus
32141 extern "C"
32142 #endif
32143 char $ac_func ();
32144 /* The GNU C library defines this for functions which it implements
32145     to always fail with ENOSYS.  Some functions are actually named
32146     something starting with __ and the normal name is an alias.  */
32147 #if defined __stub_$ac_func || defined __stub___$ac_func
32148 choke me
32149 #endif
32150
32151 int
32152 main ()
32153 {
32154 return $ac_func ();
32155   ;
32156   return 0;
32157 }
32158 _ACEOF
32159 rm -f conftest.$ac_objext conftest$ac_exeext
32160 if { (ac_try="$ac_link"
32161 case "(($ac_try" in
32162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32163   *) ac_try_echo=$ac_try;;
32164 esac
32165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32166   (eval "$ac_link") 2>conftest.er1
32167   ac_status=$?
32168   grep -v '^ *+' conftest.er1 >conftest.err
32169   rm -f conftest.er1
32170   cat conftest.err >&5
32171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172   (exit $ac_status); } &&
32173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32174   { (case "(($ac_try" in
32175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32176   *) ac_try_echo=$ac_try;;
32177 esac
32178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32179   (eval "$ac_try") 2>&5
32180   ac_status=$?
32181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182   (exit $ac_status); }; } &&
32183          { ac_try='test -s conftest$ac_exeext'
32184   { (case "(($ac_try" in
32185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32186   *) ac_try_echo=$ac_try;;
32187 esac
32188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32189   (eval "$ac_try") 2>&5
32190   ac_status=$?
32191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32192   (exit $ac_status); }; }; then
32193   eval "$as_ac_var=yes"
32194 else
32195   echo "$as_me: failed program was:" >&5
32196 sed 's/^/| /' conftest.$ac_ext >&5
32197
32198         eval "$as_ac_var=no"
32199 fi
32200
32201 rm -f core conftest.err conftest.$ac_objext \
32202       conftest$ac_exeext conftest.$ac_ext
32203 fi
32204 ac_res=`eval echo '${'$as_ac_var'}'`
32205                { echo "$as_me:$LINENO: result: $ac_res" >&5
32206 echo "${ECHO_T}$ac_res" >&6; }
32207 if test `eval echo '${'$as_ac_var'}'` = yes; then
32208   cat >>confdefs.h <<_ACEOF
32209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32210 _ACEOF
32211
32212 fi
32213 done
32214
32215
32216
32217
32218 for ac_func in strerror strerror_r strerror_s
32219 do
32220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32224   echo $ECHO_N "(cached) $ECHO_C" >&6
32225 else
32226   cat >conftest.$ac_ext <<_ACEOF
32227 /* confdefs.h.  */
32228 _ACEOF
32229 cat confdefs.h >>conftest.$ac_ext
32230 cat >>conftest.$ac_ext <<_ACEOF
32231 /* end confdefs.h.  */
32232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32234 #define $ac_func innocuous_$ac_func
32235
32236 /* System header to define __stub macros and hopefully few prototypes,
32237     which can conflict with char $ac_func (); below.
32238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32239     <limits.h> exists even on freestanding compilers.  */
32240
32241 #ifdef __STDC__
32242 # include <limits.h>
32243 #else
32244 # include <assert.h>
32245 #endif
32246
32247 #undef $ac_func
32248
32249 /* Override any GCC internal prototype to avoid an error.
32250    Use char because int might match the return type of a GCC
32251    builtin and then its argument prototype would still apply.  */
32252 #ifdef __cplusplus
32253 extern "C"
32254 #endif
32255 char $ac_func ();
32256 /* The GNU C library defines this for functions which it implements
32257     to always fail with ENOSYS.  Some functions are actually named
32258     something starting with __ and the normal name is an alias.  */
32259 #if defined __stub_$ac_func || defined __stub___$ac_func
32260 choke me
32261 #endif
32262
32263 int
32264 main ()
32265 {
32266 return $ac_func ();
32267   ;
32268   return 0;
32269 }
32270 _ACEOF
32271 rm -f conftest.$ac_objext conftest$ac_exeext
32272 if { (ac_try="$ac_link"
32273 case "(($ac_try" in
32274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32275   *) ac_try_echo=$ac_try;;
32276 esac
32277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32278   (eval "$ac_link") 2>conftest.er1
32279   ac_status=$?
32280   grep -v '^ *+' conftest.er1 >conftest.err
32281   rm -f conftest.er1
32282   cat conftest.err >&5
32283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284   (exit $ac_status); } &&
32285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32286   { (case "(($ac_try" in
32287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32288   *) ac_try_echo=$ac_try;;
32289 esac
32290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32291   (eval "$ac_try") 2>&5
32292   ac_status=$?
32293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294   (exit $ac_status); }; } &&
32295          { ac_try='test -s conftest$ac_exeext'
32296   { (case "(($ac_try" in
32297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32298   *) ac_try_echo=$ac_try;;
32299 esac
32300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32301   (eval "$ac_try") 2>&5
32302   ac_status=$?
32303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304   (exit $ac_status); }; }; then
32305   eval "$as_ac_var=yes"
32306 else
32307   echo "$as_me: failed program was:" >&5
32308 sed 's/^/| /' conftest.$ac_ext >&5
32309
32310         eval "$as_ac_var=no"
32311 fi
32312
32313 rm -f core conftest.err conftest.$ac_objext \
32314       conftest$ac_exeext conftest.$ac_ext
32315 fi
32316 ac_res=`eval echo '${'$as_ac_var'}'`
32317                { echo "$as_me:$LINENO: result: $ac_res" >&5
32318 echo "${ECHO_T}$ac_res" >&6; }
32319 if test `eval echo '${'$as_ac_var'}'` = yes; then
32320   cat >>confdefs.h <<_ACEOF
32321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32322 _ACEOF
32323
32324 fi
32325 done
32326
32327
32328
32329
32330
32331 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32332 do
32333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32337   echo $ECHO_N "(cached) $ECHO_C" >&6
32338 else
32339   cat >conftest.$ac_ext <<_ACEOF
32340 /* confdefs.h.  */
32341 _ACEOF
32342 cat confdefs.h >>conftest.$ac_ext
32343 cat >>conftest.$ac_ext <<_ACEOF
32344 /* end confdefs.h.  */
32345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32347 #define $ac_func innocuous_$ac_func
32348
32349 /* System header to define __stub macros and hopefully few prototypes,
32350     which can conflict with char $ac_func (); below.
32351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32352     <limits.h> exists even on freestanding compilers.  */
32353
32354 #ifdef __STDC__
32355 # include <limits.h>
32356 #else
32357 # include <assert.h>
32358 #endif
32359
32360 #undef $ac_func
32361
32362 /* Override any GCC internal prototype to avoid an error.
32363    Use char because int might match the return type of a GCC
32364    builtin and then its argument prototype would still apply.  */
32365 #ifdef __cplusplus
32366 extern "C"
32367 #endif
32368 char $ac_func ();
32369 /* The GNU C library defines this for functions which it implements
32370     to always fail with ENOSYS.  Some functions are actually named
32371     something starting with __ and the normal name is an alias.  */
32372 #if defined __stub_$ac_func || defined __stub___$ac_func
32373 choke me
32374 #endif
32375
32376 int
32377 main ()
32378 {
32379 return $ac_func ();
32380   ;
32381   return 0;
32382 }
32383 _ACEOF
32384 rm -f conftest.$ac_objext conftest$ac_exeext
32385 if { (ac_try="$ac_link"
32386 case "(($ac_try" in
32387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32388   *) ac_try_echo=$ac_try;;
32389 esac
32390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32391   (eval "$ac_link") 2>conftest.er1
32392   ac_status=$?
32393   grep -v '^ *+' conftest.er1 >conftest.err
32394   rm -f conftest.er1
32395   cat conftest.err >&5
32396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397   (exit $ac_status); } &&
32398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32399   { (case "(($ac_try" in
32400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32401   *) ac_try_echo=$ac_try;;
32402 esac
32403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32404   (eval "$ac_try") 2>&5
32405   ac_status=$?
32406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407   (exit $ac_status); }; } &&
32408          { ac_try='test -s conftest$ac_exeext'
32409   { (case "(($ac_try" in
32410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32411   *) ac_try_echo=$ac_try;;
32412 esac
32413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32414   (eval "$ac_try") 2>&5
32415   ac_status=$?
32416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417   (exit $ac_status); }; }; then
32418   eval "$as_ac_var=yes"
32419 else
32420   echo "$as_me: failed program was:" >&5
32421 sed 's/^/| /' conftest.$ac_ext >&5
32422
32423         eval "$as_ac_var=no"
32424 fi
32425
32426 rm -f core conftest.err conftest.$ac_objext \
32427       conftest$ac_exeext conftest.$ac_ext
32428 fi
32429 ac_res=`eval echo '${'$as_ac_var'}'`
32430                { echo "$as_me:$LINENO: result: $ac_res" >&5
32431 echo "${ECHO_T}$ac_res" >&6; }
32432 if test `eval echo '${'$as_ac_var'}'` = yes; then
32433   cat >>confdefs.h <<_ACEOF
32434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32435 _ACEOF
32436
32437 fi
32438 done
32439
32440
32441
32442
32443
32444 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32445 do
32446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32450   echo $ECHO_N "(cached) $ECHO_C" >&6
32451 else
32452   cat >conftest.$ac_ext <<_ACEOF
32453 /* confdefs.h.  */
32454 _ACEOF
32455 cat confdefs.h >>conftest.$ac_ext
32456 cat >>conftest.$ac_ext <<_ACEOF
32457 /* end confdefs.h.  */
32458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32460 #define $ac_func innocuous_$ac_func
32461
32462 /* System header to define __stub macros and hopefully few prototypes,
32463     which can conflict with char $ac_func (); below.
32464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32465     <limits.h> exists even on freestanding compilers.  */
32466
32467 #ifdef __STDC__
32468 # include <limits.h>
32469 #else
32470 # include <assert.h>
32471 #endif
32472
32473 #undef $ac_func
32474
32475 /* Override any GCC internal prototype to avoid an error.
32476    Use char because int might match the return type of a GCC
32477    builtin and then its argument prototype would still apply.  */
32478 #ifdef __cplusplus
32479 extern "C"
32480 #endif
32481 char $ac_func ();
32482 /* The GNU C library defines this for functions which it implements
32483     to always fail with ENOSYS.  Some functions are actually named
32484     something starting with __ and the normal name is an alias.  */
32485 #if defined __stub_$ac_func || defined __stub___$ac_func
32486 choke me
32487 #endif
32488
32489 int
32490 main ()
32491 {
32492 return $ac_func ();
32493   ;
32494   return 0;
32495 }
32496 _ACEOF
32497 rm -f conftest.$ac_objext conftest$ac_exeext
32498 if { (ac_try="$ac_link"
32499 case "(($ac_try" in
32500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32501   *) ac_try_echo=$ac_try;;
32502 esac
32503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32504   (eval "$ac_link") 2>conftest.er1
32505   ac_status=$?
32506   grep -v '^ *+' conftest.er1 >conftest.err
32507   rm -f conftest.er1
32508   cat conftest.err >&5
32509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510   (exit $ac_status); } &&
32511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32512   { (case "(($ac_try" in
32513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32514   *) ac_try_echo=$ac_try;;
32515 esac
32516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32517   (eval "$ac_try") 2>&5
32518   ac_status=$?
32519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520   (exit $ac_status); }; } &&
32521          { ac_try='test -s conftest$ac_exeext'
32522   { (case "(($ac_try" in
32523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32524   *) ac_try_echo=$ac_try;;
32525 esac
32526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32527   (eval "$ac_try") 2>&5
32528   ac_status=$?
32529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530   (exit $ac_status); }; }; then
32531   eval "$as_ac_var=yes"
32532 else
32533   echo "$as_me: failed program was:" >&5
32534 sed 's/^/| /' conftest.$ac_ext >&5
32535
32536         eval "$as_ac_var=no"
32537 fi
32538
32539 rm -f core conftest.err conftest.$ac_objext \
32540       conftest$ac_exeext conftest.$ac_ext
32541 fi
32542 ac_res=`eval echo '${'$as_ac_var'}'`
32543                { echo "$as_me:$LINENO: result: $ac_res" >&5
32544 echo "${ECHO_T}$ac_res" >&6; }
32545 if test `eval echo '${'$as_ac_var'}'` = yes; then
32546   cat >>confdefs.h <<_ACEOF
32547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32548 _ACEOF
32549
32550 fi
32551 done
32552
32553 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32554 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32555 if test "${llvm_cv_c_printf_a+set}" = set; then
32556   echo $ECHO_N "(cached) $ECHO_C" >&6
32557 else
32558   ac_ext=c
32559 ac_cpp='$CPP $CPPFLAGS'
32560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32563
32564  if test "$cross_compiling" = yes; then
32565   llvmac_cv_c_printf_a=no
32566 else
32567   cat >conftest.$ac_ext <<_ACEOF
32568
32569   /* confdefs.h.  */
32570 _ACEOF
32571 cat confdefs.h >>conftest.$ac_ext
32572 cat >>conftest.$ac_ext <<_ACEOF
32573 /* end confdefs.h.  */
32574
32575 #include <stdio.h>
32576 #include <stdlib.h>
32577
32578 int
32579 main ()
32580 {
32581
32582 volatile double A, B;
32583 char Buffer[100];
32584 A = 1;
32585 A /= 10.0;
32586 sprintf(Buffer, "%a", A);
32587 B = atof(Buffer);
32588 if (A != B)
32589   return (1);
32590 if (A != 0x1.999999999999ap-4)
32591   return (1);
32592 return (0);
32593   ;
32594   return 0;
32595 }
32596 _ACEOF
32597 rm -f conftest$ac_exeext
32598 if { (ac_try="$ac_link"
32599 case "(($ac_try" in
32600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32601   *) ac_try_echo=$ac_try;;
32602 esac
32603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32604   (eval "$ac_link") 2>&5
32605   ac_status=$?
32606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32608   { (case "(($ac_try" in
32609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32610   *) ac_try_echo=$ac_try;;
32611 esac
32612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32613   (eval "$ac_try") 2>&5
32614   ac_status=$?
32615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32616   (exit $ac_status); }; }; then
32617   llvm_cv_c_printf_a=yes
32618 else
32619   echo "$as_me: program exited with status $ac_status" >&5
32620 echo "$as_me: failed program was:" >&5
32621 sed 's/^/| /' conftest.$ac_ext >&5
32622
32623 ( exit $ac_status )
32624 llvmac_cv_c_printf_a=no
32625 fi
32626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32627 fi
32628
32629
32630  ac_ext=c
32631 ac_cpp='$CPP $CPPFLAGS'
32632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32635
32636 fi
32637 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32638 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32639  if test "$llvm_cv_c_printf_a" = "yes"; then
32640
32641 cat >>confdefs.h <<\_ACEOF
32642 #define HAVE_PRINTF_A 1
32643 _ACEOF
32644
32645  fi
32646
32647 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32648 # for constant arguments.  Useless!
32649 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32650 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32651 if test "${ac_cv_working_alloca_h+set}" = set; then
32652   echo $ECHO_N "(cached) $ECHO_C" >&6
32653 else
32654   cat >conftest.$ac_ext <<_ACEOF
32655 /* confdefs.h.  */
32656 _ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h.  */
32660 #include <alloca.h>
32661 int
32662 main ()
32663 {
32664 char *p = (char *) alloca (2 * sizeof (int));
32665                           if (p) return 0;
32666   ;
32667   return 0;
32668 }
32669 _ACEOF
32670 rm -f conftest.$ac_objext conftest$ac_exeext
32671 if { (ac_try="$ac_link"
32672 case "(($ac_try" in
32673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32674   *) ac_try_echo=$ac_try;;
32675 esac
32676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32677   (eval "$ac_link") 2>conftest.er1
32678   ac_status=$?
32679   grep -v '^ *+' conftest.er1 >conftest.err
32680   rm -f conftest.er1
32681   cat conftest.err >&5
32682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683   (exit $ac_status); } &&
32684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32685   { (case "(($ac_try" in
32686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32687   *) ac_try_echo=$ac_try;;
32688 esac
32689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32690   (eval "$ac_try") 2>&5
32691   ac_status=$?
32692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693   (exit $ac_status); }; } &&
32694          { ac_try='test -s conftest$ac_exeext'
32695   { (case "(($ac_try" in
32696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32697   *) ac_try_echo=$ac_try;;
32698 esac
32699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32700   (eval "$ac_try") 2>&5
32701   ac_status=$?
32702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703   (exit $ac_status); }; }; then
32704   ac_cv_working_alloca_h=yes
32705 else
32706   echo "$as_me: failed program was:" >&5
32707 sed 's/^/| /' conftest.$ac_ext >&5
32708
32709         ac_cv_working_alloca_h=no
32710 fi
32711
32712 rm -f core conftest.err conftest.$ac_objext \
32713       conftest$ac_exeext conftest.$ac_ext
32714 fi
32715 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32716 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32717 if test $ac_cv_working_alloca_h = yes; then
32718
32719 cat >>confdefs.h <<\_ACEOF
32720 #define HAVE_ALLOCA_H 1
32721 _ACEOF
32722
32723 fi
32724
32725 { echo "$as_me:$LINENO: checking for alloca" >&5
32726 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32727 if test "${ac_cv_func_alloca_works+set}" = set; then
32728   echo $ECHO_N "(cached) $ECHO_C" >&6
32729 else
32730   cat >conftest.$ac_ext <<_ACEOF
32731 /* confdefs.h.  */
32732 _ACEOF
32733 cat confdefs.h >>conftest.$ac_ext
32734 cat >>conftest.$ac_ext <<_ACEOF
32735 /* end confdefs.h.  */
32736 #ifdef __GNUC__
32737 # define alloca __builtin_alloca
32738 #else
32739 # ifdef _MSC_VER
32740 #  include <malloc.h>
32741 #  define alloca _alloca
32742 # else
32743 #  if HAVE_ALLOCA_H
32744 #   include <alloca.h>
32745 #  else
32746 #   ifdef _AIX
32747  #pragma alloca
32748 #   else
32749 #    ifndef alloca /* predefined by HP cc +Olibcalls */
32750 char *alloca ();
32751 #    endif
32752 #   endif
32753 #  endif
32754 # endif
32755 #endif
32756
32757 int
32758 main ()
32759 {
32760 char *p = (char *) alloca (1);
32761                                     if (p) return 0;
32762   ;
32763   return 0;
32764 }
32765 _ACEOF
32766 rm -f conftest.$ac_objext conftest$ac_exeext
32767 if { (ac_try="$ac_link"
32768 case "(($ac_try" in
32769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32770   *) ac_try_echo=$ac_try;;
32771 esac
32772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32773   (eval "$ac_link") 2>conftest.er1
32774   ac_status=$?
32775   grep -v '^ *+' conftest.er1 >conftest.err
32776   rm -f conftest.er1
32777   cat conftest.err >&5
32778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779   (exit $ac_status); } &&
32780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32781   { (case "(($ac_try" in
32782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32783   *) ac_try_echo=$ac_try;;
32784 esac
32785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32786   (eval "$ac_try") 2>&5
32787   ac_status=$?
32788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789   (exit $ac_status); }; } &&
32790          { ac_try='test -s conftest$ac_exeext'
32791   { (case "(($ac_try" in
32792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32793   *) ac_try_echo=$ac_try;;
32794 esac
32795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32796   (eval "$ac_try") 2>&5
32797   ac_status=$?
32798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799   (exit $ac_status); }; }; then
32800   ac_cv_func_alloca_works=yes
32801 else
32802   echo "$as_me: failed program was:" >&5
32803 sed 's/^/| /' conftest.$ac_ext >&5
32804
32805         ac_cv_func_alloca_works=no
32806 fi
32807
32808 rm -f core conftest.err conftest.$ac_objext \
32809       conftest$ac_exeext conftest.$ac_ext
32810 fi
32811 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32812 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32813
32814 if test $ac_cv_func_alloca_works = yes; then
32815
32816 cat >>confdefs.h <<\_ACEOF
32817 #define HAVE_ALLOCA 1
32818 _ACEOF
32819
32820 else
32821   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32822 # that cause trouble.  Some versions do not even contain alloca or
32823 # contain a buggy version.  If you still want to use their alloca,
32824 # use ar to extract alloca.o from them instead of compiling alloca.c.
32825
32826 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32827
32828 cat >>confdefs.h <<\_ACEOF
32829 #define C_ALLOCA 1
32830 _ACEOF
32831
32832
32833 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32834 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32835 if test "${ac_cv_os_cray+set}" = set; then
32836   echo $ECHO_N "(cached) $ECHO_C" >&6
32837 else
32838   cat >conftest.$ac_ext <<_ACEOF
32839 /* confdefs.h.  */
32840 _ACEOF
32841 cat confdefs.h >>conftest.$ac_ext
32842 cat >>conftest.$ac_ext <<_ACEOF
32843 /* end confdefs.h.  */
32844 #if defined CRAY && ! defined CRAY2
32845 webecray
32846 #else
32847 wenotbecray
32848 #endif
32849
32850 _ACEOF
32851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32852   $EGREP "webecray" >/dev/null 2>&1; then
32853   ac_cv_os_cray=yes
32854 else
32855   ac_cv_os_cray=no
32856 fi
32857 rm -f conftest*
32858
32859 fi
32860 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32861 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32862 if test $ac_cv_os_cray = yes; then
32863   for ac_func in _getb67 GETB67 getb67; do
32864     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32865 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32867 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32868   echo $ECHO_N "(cached) $ECHO_C" >&6
32869 else
32870   cat >conftest.$ac_ext <<_ACEOF
32871 /* confdefs.h.  */
32872 _ACEOF
32873 cat confdefs.h >>conftest.$ac_ext
32874 cat >>conftest.$ac_ext <<_ACEOF
32875 /* end confdefs.h.  */
32876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32877    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32878 #define $ac_func innocuous_$ac_func
32879
32880 /* System header to define __stub macros and hopefully few prototypes,
32881     which can conflict with char $ac_func (); below.
32882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32883     <limits.h> exists even on freestanding compilers.  */
32884
32885 #ifdef __STDC__
32886 # include <limits.h>
32887 #else
32888 # include <assert.h>
32889 #endif
32890
32891 #undef $ac_func
32892
32893 /* Override any GCC internal prototype to avoid an error.
32894    Use char because int might match the return type of a GCC
32895    builtin and then its argument prototype would still apply.  */
32896 #ifdef __cplusplus
32897 extern "C"
32898 #endif
32899 char $ac_func ();
32900 /* The GNU C library defines this for functions which it implements
32901     to always fail with ENOSYS.  Some functions are actually named
32902     something starting with __ and the normal name is an alias.  */
32903 #if defined __stub_$ac_func || defined __stub___$ac_func
32904 choke me
32905 #endif
32906
32907 int
32908 main ()
32909 {
32910 return $ac_func ();
32911   ;
32912   return 0;
32913 }
32914 _ACEOF
32915 rm -f conftest.$ac_objext conftest$ac_exeext
32916 if { (ac_try="$ac_link"
32917 case "(($ac_try" in
32918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32919   *) ac_try_echo=$ac_try;;
32920 esac
32921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32922   (eval "$ac_link") 2>conftest.er1
32923   ac_status=$?
32924   grep -v '^ *+' conftest.er1 >conftest.err
32925   rm -f conftest.er1
32926   cat conftest.err >&5
32927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32928   (exit $ac_status); } &&
32929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32930   { (case "(($ac_try" in
32931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32932   *) ac_try_echo=$ac_try;;
32933 esac
32934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32935   (eval "$ac_try") 2>&5
32936   ac_status=$?
32937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938   (exit $ac_status); }; } &&
32939          { ac_try='test -s conftest$ac_exeext'
32940   { (case "(($ac_try" in
32941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32942   *) ac_try_echo=$ac_try;;
32943 esac
32944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32945   (eval "$ac_try") 2>&5
32946   ac_status=$?
32947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32948   (exit $ac_status); }; }; then
32949   eval "$as_ac_var=yes"
32950 else
32951   echo "$as_me: failed program was:" >&5
32952 sed 's/^/| /' conftest.$ac_ext >&5
32953
32954         eval "$as_ac_var=no"
32955 fi
32956
32957 rm -f core conftest.err conftest.$ac_objext \
32958       conftest$ac_exeext conftest.$ac_ext
32959 fi
32960 ac_res=`eval echo '${'$as_ac_var'}'`
32961                { echo "$as_me:$LINENO: result: $ac_res" >&5
32962 echo "${ECHO_T}$ac_res" >&6; }
32963 if test `eval echo '${'$as_ac_var'}'` = yes; then
32964
32965 cat >>confdefs.h <<_ACEOF
32966 #define CRAY_STACKSEG_END $ac_func
32967 _ACEOF
32968
32969     break
32970 fi
32971
32972   done
32973 fi
32974
32975 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32976 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32977 if test "${ac_cv_c_stack_direction+set}" = set; then
32978   echo $ECHO_N "(cached) $ECHO_C" >&6
32979 else
32980   if test "$cross_compiling" = yes; then
32981   ac_cv_c_stack_direction=0
32982 else
32983   cat >conftest.$ac_ext <<_ACEOF
32984 /* confdefs.h.  */
32985 _ACEOF
32986 cat confdefs.h >>conftest.$ac_ext
32987 cat >>conftest.$ac_ext <<_ACEOF
32988 /* end confdefs.h.  */
32989 $ac_includes_default
32990 int
32991 find_stack_direction ()
32992 {
32993   static char *addr = 0;
32994   auto char dummy;
32995   if (addr == 0)
32996     {
32997       addr = &dummy;
32998       return find_stack_direction ();
32999     }
33000   else
33001     return (&dummy > addr) ? 1 : -1;
33002 }
33003
33004 int
33005 main ()
33006 {
33007   return find_stack_direction () < 0;
33008 }
33009 _ACEOF
33010 rm -f conftest$ac_exeext
33011 if { (ac_try="$ac_link"
33012 case "(($ac_try" in
33013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014   *) ac_try_echo=$ac_try;;
33015 esac
33016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017   (eval "$ac_link") 2>&5
33018   ac_status=$?
33019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33021   { (case "(($ac_try" in
33022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33023   *) ac_try_echo=$ac_try;;
33024 esac
33025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33026   (eval "$ac_try") 2>&5
33027   ac_status=$?
33028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33029   (exit $ac_status); }; }; then
33030   ac_cv_c_stack_direction=1
33031 else
33032   echo "$as_me: program exited with status $ac_status" >&5
33033 echo "$as_me: failed program was:" >&5
33034 sed 's/^/| /' conftest.$ac_ext >&5
33035
33036 ( exit $ac_status )
33037 ac_cv_c_stack_direction=-1
33038 fi
33039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33040 fi
33041
33042
33043 fi
33044 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33045 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33046
33047 cat >>confdefs.h <<_ACEOF
33048 #define STACK_DIRECTION $ac_cv_c_stack_direction
33049 _ACEOF
33050
33051
33052 fi
33053
33054
33055 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33056 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33057 if test "${ac_cv_func_rand48+set}" = set; then
33058   echo $ECHO_N "(cached) $ECHO_C" >&6
33059 else
33060   ac_ext=cpp
33061 ac_cpp='$CXXCPP $CPPFLAGS'
33062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33065
33066    cat >conftest.$ac_ext <<_ACEOF
33067 /* confdefs.h.  */
33068 _ACEOF
33069 cat confdefs.h >>conftest.$ac_ext
33070 cat >>conftest.$ac_ext <<_ACEOF
33071 /* end confdefs.h.  */
33072 #include <stdlib.h>
33073 int
33074 main ()
33075 {
33076 srand48(0);lrand48();drand48();
33077   ;
33078   return 0;
33079 }
33080 _ACEOF
33081 rm -f conftest.$ac_objext
33082 if { (ac_try="$ac_compile"
33083 case "(($ac_try" in
33084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33085   *) ac_try_echo=$ac_try;;
33086 esac
33087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33088   (eval "$ac_compile") 2>conftest.er1
33089   ac_status=$?
33090   grep -v '^ *+' conftest.er1 >conftest.err
33091   rm -f conftest.er1
33092   cat conftest.err >&5
33093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33094   (exit $ac_status); } &&
33095          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33096   { (case "(($ac_try" in
33097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33098   *) ac_try_echo=$ac_try;;
33099 esac
33100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33101   (eval "$ac_try") 2>&5
33102   ac_status=$?
33103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104   (exit $ac_status); }; } &&
33105          { ac_try='test -s conftest.$ac_objext'
33106   { (case "(($ac_try" in
33107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33108   *) ac_try_echo=$ac_try;;
33109 esac
33110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33111   (eval "$ac_try") 2>&5
33112   ac_status=$?
33113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114   (exit $ac_status); }; }; then
33115   ac_cv_func_rand48=yes
33116 else
33117   echo "$as_me: failed program was:" >&5
33118 sed 's/^/| /' conftest.$ac_ext >&5
33119
33120         ac_cv_func_rand48=no
33121 fi
33122
33123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33124   ac_ext=c
33125 ac_cpp='$CPP $CPPFLAGS'
33126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33129
33130 fi
33131 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33132 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33133
33134 if test "$ac_cv_func_rand48" = "yes" ; then
33135
33136 cat >>confdefs.h <<\_ACEOF
33137 #define HAVE_RAND48 1
33138 _ACEOF
33139
33140 fi
33141
33142
33143 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33144 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33145 if test "${ac_cv_cxx_namespaces+set}" = set; then
33146   echo $ECHO_N "(cached) $ECHO_C" >&6
33147 else
33148   ac_ext=cpp
33149 ac_cpp='$CXXCPP $CPPFLAGS'
33150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33153
33154  cat >conftest.$ac_ext <<_ACEOF
33155 /* confdefs.h.  */
33156 _ACEOF
33157 cat confdefs.h >>conftest.$ac_ext
33158 cat >>conftest.$ac_ext <<_ACEOF
33159 /* end confdefs.h.  */
33160 namespace Outer { namespace Inner { int i = 0; }}
33161 int
33162 main ()
33163 {
33164 using namespace Outer::Inner; return i;
33165   ;
33166   return 0;
33167 }
33168 _ACEOF
33169 rm -f conftest.$ac_objext
33170 if { (ac_try="$ac_compile"
33171 case "(($ac_try" in
33172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33173   *) ac_try_echo=$ac_try;;
33174 esac
33175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33176   (eval "$ac_compile") 2>conftest.er1
33177   ac_status=$?
33178   grep -v '^ *+' conftest.er1 >conftest.err
33179   rm -f conftest.er1
33180   cat conftest.err >&5
33181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33182   (exit $ac_status); } &&
33183          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33184   { (case "(($ac_try" in
33185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33186   *) ac_try_echo=$ac_try;;
33187 esac
33188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33189   (eval "$ac_try") 2>&5
33190   ac_status=$?
33191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33192   (exit $ac_status); }; } &&
33193          { ac_try='test -s conftest.$ac_objext'
33194   { (case "(($ac_try" in
33195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33196   *) ac_try_echo=$ac_try;;
33197 esac
33198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33199   (eval "$ac_try") 2>&5
33200   ac_status=$?
33201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33202   (exit $ac_status); }; }; then
33203   ac_cv_cxx_namespaces=yes
33204 else
33205   echo "$as_me: failed program was:" >&5
33206 sed 's/^/| /' conftest.$ac_ext >&5
33207
33208         ac_cv_cxx_namespaces=no
33209 fi
33210
33211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33212  ac_ext=c
33213 ac_cpp='$CPP $CPPFLAGS'
33214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33217
33218
33219 fi
33220 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33221 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33222 if test "$ac_cv_cxx_namespaces" = yes; then
33223
33224 cat >>confdefs.h <<\_ACEOF
33225 #define HAVE_NAMESPACES
33226 _ACEOF
33227
33228 fi
33229
33230 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33231 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33232 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33233   echo $ECHO_N "(cached) $ECHO_C" >&6
33234 else
33235
33236   ac_ext=cpp
33237 ac_cpp='$CXXCPP $CPPFLAGS'
33238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33241
33242   cat >conftest.$ac_ext <<_ACEOF
33243 /* confdefs.h.  */
33244 _ACEOF
33245 cat confdefs.h >>conftest.$ac_ext
33246 cat >>conftest.$ac_ext <<_ACEOF
33247 /* end confdefs.h.  */
33248 #include <iterator>
33249 #ifdef HAVE_NAMESPACES
33250 using namespace std;
33251 #endif
33252 int
33253 main ()
33254 {
33255 iterator<int,int,int> t; return 0;
33256   ;
33257   return 0;
33258 }
33259 _ACEOF
33260 rm -f conftest.$ac_objext
33261 if { (ac_try="$ac_compile"
33262 case "(($ac_try" in
33263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33264   *) ac_try_echo=$ac_try;;
33265 esac
33266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33267   (eval "$ac_compile") 2>conftest.er1
33268   ac_status=$?
33269   grep -v '^ *+' conftest.er1 >conftest.err
33270   rm -f conftest.er1
33271   cat conftest.err >&5
33272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273   (exit $ac_status); } &&
33274          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33275   { (case "(($ac_try" in
33276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33277   *) ac_try_echo=$ac_try;;
33278 esac
33279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33280   (eval "$ac_try") 2>&5
33281   ac_status=$?
33282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283   (exit $ac_status); }; } &&
33284          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
33291   ac_status=$?
33292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293   (exit $ac_status); }; }; then
33294   ac_cv_cxx_have_std_iterator=yes
33295 else
33296   echo "$as_me: failed program was:" >&5
33297 sed 's/^/| /' conftest.$ac_ext >&5
33298
33299         ac_cv_cxx_have_std_iterator=no
33300 fi
33301
33302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33303   ac_ext=c
33304 ac_cpp='$CPP $CPPFLAGS'
33305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33308
33309
33310 fi
33311 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33312 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33313 if test "$ac_cv_cxx_have_std_iterator" = yes
33314 then
33315
33316 cat >>confdefs.h <<\_ACEOF
33317 #define HAVE_STD_ITERATOR 1
33318 _ACEOF
33319
33320 else
33321
33322 cat >>confdefs.h <<\_ACEOF
33323 #define HAVE_STD_ITERATOR 0
33324 _ACEOF
33325
33326 fi
33327
33328 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33329 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33330 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33331   echo $ECHO_N "(cached) $ECHO_C" >&6
33332 else
33333
33334   ac_ext=cpp
33335 ac_cpp='$CXXCPP $CPPFLAGS'
33336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33339
33340   cat >conftest.$ac_ext <<_ACEOF
33341 /* confdefs.h.  */
33342 _ACEOF
33343 cat confdefs.h >>conftest.$ac_ext
33344 cat >>conftest.$ac_ext <<_ACEOF
33345 /* end confdefs.h.  */
33346 #include <iterator>
33347 #ifdef HAVE_NAMESPACES
33348 using namespace std;
33349 #endif
33350 int
33351 main ()
33352 {
33353 bidirectional_iterator<int,int> t; return 0;
33354   ;
33355   return 0;
33356 }
33357 _ACEOF
33358 rm -f conftest.$ac_objext
33359 if { (ac_try="$ac_compile"
33360 case "(($ac_try" in
33361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33362   *) ac_try_echo=$ac_try;;
33363 esac
33364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33365   (eval "$ac_compile") 2>conftest.er1
33366   ac_status=$?
33367   grep -v '^ *+' conftest.er1 >conftest.err
33368   rm -f conftest.er1
33369   cat conftest.err >&5
33370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371   (exit $ac_status); } &&
33372          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33373   { (case "(($ac_try" in
33374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33375   *) ac_try_echo=$ac_try;;
33376 esac
33377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33378   (eval "$ac_try") 2>&5
33379   ac_status=$?
33380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33381   (exit $ac_status); }; } &&
33382          { ac_try='test -s conftest.$ac_objext'
33383   { (case "(($ac_try" in
33384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33385   *) ac_try_echo=$ac_try;;
33386 esac
33387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388   (eval "$ac_try") 2>&5
33389   ac_status=$?
33390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391   (exit $ac_status); }; }; then
33392   ac_cv_cxx_have_bi_iterator=yes
33393 else
33394   echo "$as_me: failed program was:" >&5
33395 sed 's/^/| /' conftest.$ac_ext >&5
33396
33397         ac_cv_cxx_have_bi_iterator=no
33398 fi
33399
33400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33401   ac_ext=c
33402 ac_cpp='$CPP $CPPFLAGS'
33403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33406
33407
33408 fi
33409 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33410 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33411 if test "$ac_cv_cxx_have_bi_iterator" = yes
33412 then
33413
33414 cat >>confdefs.h <<\_ACEOF
33415 #define HAVE_BI_ITERATOR 1
33416 _ACEOF
33417
33418 else
33419
33420 cat >>confdefs.h <<\_ACEOF
33421 #define HAVE_BI_ITERATOR 0
33422 _ACEOF
33423
33424 fi
33425
33426 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33427 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33428 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33429   echo $ECHO_N "(cached) $ECHO_C" >&6
33430 else
33431
33432   ac_ext=cpp
33433 ac_cpp='$CXXCPP $CPPFLAGS'
33434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33437
33438   cat >conftest.$ac_ext <<_ACEOF
33439 /* confdefs.h.  */
33440 _ACEOF
33441 cat confdefs.h >>conftest.$ac_ext
33442 cat >>conftest.$ac_ext <<_ACEOF
33443 /* end confdefs.h.  */
33444 #include <iterator>
33445 #ifdef HAVE_NAMESPACES
33446 using namespace std;
33447 #endif
33448 int
33449 main ()
33450 {
33451 forward_iterator<int,int> t; return 0;
33452   ;
33453   return 0;
33454 }
33455 _ACEOF
33456 rm -f conftest.$ac_objext
33457 if { (ac_try="$ac_compile"
33458 case "(($ac_try" in
33459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33460   *) ac_try_echo=$ac_try;;
33461 esac
33462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33463   (eval "$ac_compile") 2>conftest.er1
33464   ac_status=$?
33465   grep -v '^ *+' conftest.er1 >conftest.err
33466   rm -f conftest.er1
33467   cat conftest.err >&5
33468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33469   (exit $ac_status); } &&
33470          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33471   { (case "(($ac_try" in
33472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33473   *) ac_try_echo=$ac_try;;
33474 esac
33475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33476   (eval "$ac_try") 2>&5
33477   ac_status=$?
33478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479   (exit $ac_status); }; } &&
33480          { ac_try='test -s conftest.$ac_objext'
33481   { (case "(($ac_try" in
33482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33483   *) ac_try_echo=$ac_try;;
33484 esac
33485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33486   (eval "$ac_try") 2>&5
33487   ac_status=$?
33488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33489   (exit $ac_status); }; }; then
33490   ac_cv_cxx_have_fwd_iterator=yes
33491 else
33492   echo "$as_me: failed program was:" >&5
33493 sed 's/^/| /' conftest.$ac_ext >&5
33494
33495         ac_cv_cxx_have_fwd_iterator=no
33496 fi
33497
33498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33499   ac_ext=c
33500 ac_cpp='$CPP $CPPFLAGS'
33501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33504
33505
33506 fi
33507 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33508 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33509 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33510 then
33511
33512 cat >>confdefs.h <<\_ACEOF
33513 #define HAVE_FWD_ITERATOR 1
33514 _ACEOF
33515
33516 else
33517
33518 cat >>confdefs.h <<\_ACEOF
33519 #define HAVE_FWD_ITERATOR 0
33520 _ACEOF
33521
33522 fi
33523
33524
33525 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33526 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33527 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33528   echo $ECHO_N "(cached) $ECHO_C" >&6
33529 else
33530   ac_ext=cpp
33531 ac_cpp='$CXXCPP $CPPFLAGS'
33532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33535
33536    cat >conftest.$ac_ext <<_ACEOF
33537 /* confdefs.h.  */
33538 _ACEOF
33539 cat confdefs.h >>conftest.$ac_ext
33540 cat >>conftest.$ac_ext <<_ACEOF
33541 /* end confdefs.h.  */
33542 #include <math.h>
33543 int
33544 main ()
33545 {
33546 float f; isnan(f);
33547   ;
33548   return 0;
33549 }
33550 _ACEOF
33551 rm -f conftest.$ac_objext
33552 if { (ac_try="$ac_compile"
33553 case "(($ac_try" in
33554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555   *) ac_try_echo=$ac_try;;
33556 esac
33557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558   (eval "$ac_compile") 2>conftest.er1
33559   ac_status=$?
33560   grep -v '^ *+' conftest.er1 >conftest.err
33561   rm -f conftest.er1
33562   cat conftest.err >&5
33563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564   (exit $ac_status); } &&
33565          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33566   { (case "(($ac_try" in
33567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33568   *) ac_try_echo=$ac_try;;
33569 esac
33570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33571   (eval "$ac_try") 2>&5
33572   ac_status=$?
33573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33574   (exit $ac_status); }; } &&
33575          { ac_try='test -s conftest.$ac_objext'
33576   { (case "(($ac_try" in
33577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33578   *) ac_try_echo=$ac_try;;
33579 esac
33580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33581   (eval "$ac_try") 2>&5
33582   ac_status=$?
33583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584   (exit $ac_status); }; }; then
33585   ac_cv_func_isnan_in_math_h=yes
33586 else
33587   echo "$as_me: failed program was:" >&5
33588 sed 's/^/| /' conftest.$ac_ext >&5
33589
33590         ac_cv_func_isnan_in_math_h=no
33591 fi
33592
33593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33594   ac_ext=c
33595 ac_cpp='$CPP $CPPFLAGS'
33596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33599
33600 fi
33601 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33602 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33603
33604
33605 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33606
33607 cat >>confdefs.h <<\_ACEOF
33608 #define HAVE_ISNAN_IN_MATH_H 1
33609 _ACEOF
33610
33611 fi
33612
33613 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33614 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33615 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33616   echo $ECHO_N "(cached) $ECHO_C" >&6
33617 else
33618   ac_ext=cpp
33619 ac_cpp='$CXXCPP $CPPFLAGS'
33620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33623
33624    cat >conftest.$ac_ext <<_ACEOF
33625 /* confdefs.h.  */
33626 _ACEOF
33627 cat confdefs.h >>conftest.$ac_ext
33628 cat >>conftest.$ac_ext <<_ACEOF
33629 /* end confdefs.h.  */
33630 #include <cmath>
33631 int
33632 main ()
33633 {
33634 float f; isnan(f);
33635   ;
33636   return 0;
33637 }
33638 _ACEOF
33639 rm -f conftest.$ac_objext
33640 if { (ac_try="$ac_compile"
33641 case "(($ac_try" in
33642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643   *) ac_try_echo=$ac_try;;
33644 esac
33645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646   (eval "$ac_compile") 2>conftest.er1
33647   ac_status=$?
33648   grep -v '^ *+' conftest.er1 >conftest.err
33649   rm -f conftest.er1
33650   cat conftest.err >&5
33651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33652   (exit $ac_status); } &&
33653          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33654   { (case "(($ac_try" in
33655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33656   *) ac_try_echo=$ac_try;;
33657 esac
33658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33659   (eval "$ac_try") 2>&5
33660   ac_status=$?
33661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662   (exit $ac_status); }; } &&
33663          { ac_try='test -s conftest.$ac_objext'
33664   { (case "(($ac_try" in
33665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33666   *) ac_try_echo=$ac_try;;
33667 esac
33668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33669   (eval "$ac_try") 2>&5
33670   ac_status=$?
33671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33672   (exit $ac_status); }; }; then
33673   ac_cv_func_isnan_in_cmath=yes
33674 else
33675   echo "$as_me: failed program was:" >&5
33676 sed 's/^/| /' conftest.$ac_ext >&5
33677
33678         ac_cv_func_isnan_in_cmath=no
33679 fi
33680
33681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33682   ac_ext=c
33683 ac_cpp='$CPP $CPPFLAGS'
33684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33687
33688 fi
33689 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33690 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33691
33692 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33693
33694 cat >>confdefs.h <<\_ACEOF
33695 #define HAVE_ISNAN_IN_CMATH 1
33696 _ACEOF
33697
33698 fi
33699
33700 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33701 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33702 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33703   echo $ECHO_N "(cached) $ECHO_C" >&6
33704 else
33705   ac_ext=cpp
33706 ac_cpp='$CXXCPP $CPPFLAGS'
33707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33710
33711    cat >conftest.$ac_ext <<_ACEOF
33712 /* confdefs.h.  */
33713 _ACEOF
33714 cat confdefs.h >>conftest.$ac_ext
33715 cat >>conftest.$ac_ext <<_ACEOF
33716 /* end confdefs.h.  */
33717 #include <cmath>
33718 int
33719 main ()
33720 {
33721 float f; std::isnan(f);
33722   ;
33723   return 0;
33724 }
33725 _ACEOF
33726 rm -f conftest.$ac_objext
33727 if { (ac_try="$ac_compile"
33728 case "(($ac_try" in
33729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33730   *) ac_try_echo=$ac_try;;
33731 esac
33732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33733   (eval "$ac_compile") 2>conftest.er1
33734   ac_status=$?
33735   grep -v '^ *+' conftest.er1 >conftest.err
33736   rm -f conftest.er1
33737   cat conftest.err >&5
33738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739   (exit $ac_status); } &&
33740          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33741   { (case "(($ac_try" in
33742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33743   *) ac_try_echo=$ac_try;;
33744 esac
33745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33746   (eval "$ac_try") 2>&5
33747   ac_status=$?
33748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33749   (exit $ac_status); }; } &&
33750          { ac_try='test -s conftest.$ac_objext'
33751   { (case "(($ac_try" in
33752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33753   *) ac_try_echo=$ac_try;;
33754 esac
33755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33756   (eval "$ac_try") 2>&5
33757   ac_status=$?
33758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33759   (exit $ac_status); }; }; then
33760   ac_cv_func_std_isnan_in_cmath=yes
33761 else
33762   echo "$as_me: failed program was:" >&5
33763 sed 's/^/| /' conftest.$ac_ext >&5
33764
33765         ac_cv_func_std_isnan_in_cmath=no
33766 fi
33767
33768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33769   ac_ext=c
33770 ac_cpp='$CPP $CPPFLAGS'
33771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33774
33775 fi
33776 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33777 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33778
33779 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33780
33781 cat >>confdefs.h <<\_ACEOF
33782 #define HAVE_STD_ISNAN_IN_CMATH 1
33783 _ACEOF
33784
33785 fi
33786
33787
33788 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33789 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33790 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33791   echo $ECHO_N "(cached) $ECHO_C" >&6
33792 else
33793   ac_ext=cpp
33794 ac_cpp='$CXXCPP $CPPFLAGS'
33795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33798
33799    cat >conftest.$ac_ext <<_ACEOF
33800 /* confdefs.h.  */
33801 _ACEOF
33802 cat confdefs.h >>conftest.$ac_ext
33803 cat >>conftest.$ac_ext <<_ACEOF
33804 /* end confdefs.h.  */
33805 #include <math.h>
33806 int
33807 main ()
33808 {
33809 float f; isinf(f);
33810   ;
33811   return 0;
33812 }
33813 _ACEOF
33814 rm -f conftest.$ac_objext
33815 if { (ac_try="$ac_compile"
33816 case "(($ac_try" in
33817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33818   *) ac_try_echo=$ac_try;;
33819 esac
33820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33821   (eval "$ac_compile") 2>conftest.er1
33822   ac_status=$?
33823   grep -v '^ *+' conftest.er1 >conftest.err
33824   rm -f conftest.er1
33825   cat conftest.err >&5
33826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33827   (exit $ac_status); } &&
33828          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33829   { (case "(($ac_try" in
33830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33831   *) ac_try_echo=$ac_try;;
33832 esac
33833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33834   (eval "$ac_try") 2>&5
33835   ac_status=$?
33836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33837   (exit $ac_status); }; } &&
33838          { ac_try='test -s conftest.$ac_objext'
33839   { (case "(($ac_try" in
33840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33841   *) ac_try_echo=$ac_try;;
33842 esac
33843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33844   (eval "$ac_try") 2>&5
33845   ac_status=$?
33846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847   (exit $ac_status); }; }; then
33848   ac_cv_func_isinf_in_math_h=yes
33849 else
33850   echo "$as_me: failed program was:" >&5
33851 sed 's/^/| /' conftest.$ac_ext >&5
33852
33853         ac_cv_func_isinf_in_math_h=no
33854 fi
33855
33856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33857   ac_ext=c
33858 ac_cpp='$CPP $CPPFLAGS'
33859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33862
33863 fi
33864 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33865 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33866
33867 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33868
33869 cat >>confdefs.h <<\_ACEOF
33870 #define HAVE_ISINF_IN_MATH_H 1
33871 _ACEOF
33872
33873 fi
33874
33875 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33876 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33877 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33878   echo $ECHO_N "(cached) $ECHO_C" >&6
33879 else
33880   ac_ext=cpp
33881 ac_cpp='$CXXCPP $CPPFLAGS'
33882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33885
33886    cat >conftest.$ac_ext <<_ACEOF
33887 /* confdefs.h.  */
33888 _ACEOF
33889 cat confdefs.h >>conftest.$ac_ext
33890 cat >>conftest.$ac_ext <<_ACEOF
33891 /* end confdefs.h.  */
33892 #include <cmath>
33893 int
33894 main ()
33895 {
33896 float f; isinf(f);
33897   ;
33898   return 0;
33899 }
33900 _ACEOF
33901 rm -f conftest.$ac_objext
33902 if { (ac_try="$ac_compile"
33903 case "(($ac_try" in
33904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33905   *) ac_try_echo=$ac_try;;
33906 esac
33907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33908   (eval "$ac_compile") 2>conftest.er1
33909   ac_status=$?
33910   grep -v '^ *+' conftest.er1 >conftest.err
33911   rm -f conftest.er1
33912   cat conftest.err >&5
33913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33914   (exit $ac_status); } &&
33915          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33916   { (case "(($ac_try" in
33917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33918   *) ac_try_echo=$ac_try;;
33919 esac
33920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33921   (eval "$ac_try") 2>&5
33922   ac_status=$?
33923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33924   (exit $ac_status); }; } &&
33925          { ac_try='test -s conftest.$ac_objext'
33926   { (case "(($ac_try" in
33927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33928   *) ac_try_echo=$ac_try;;
33929 esac
33930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33931   (eval "$ac_try") 2>&5
33932   ac_status=$?
33933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33934   (exit $ac_status); }; }; then
33935   ac_cv_func_isinf_in_cmath=yes
33936 else
33937   echo "$as_me: failed program was:" >&5
33938 sed 's/^/| /' conftest.$ac_ext >&5
33939
33940         ac_cv_func_isinf_in_cmath=no
33941 fi
33942
33943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33944   ac_ext=c
33945 ac_cpp='$CPP $CPPFLAGS'
33946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33949
33950 fi
33951 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33952 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33953
33954 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33955
33956 cat >>confdefs.h <<\_ACEOF
33957 #define HAVE_ISINF_IN_CMATH 1
33958 _ACEOF
33959
33960 fi
33961
33962 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33963 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33964 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33965   echo $ECHO_N "(cached) $ECHO_C" >&6
33966 else
33967   ac_ext=cpp
33968 ac_cpp='$CXXCPP $CPPFLAGS'
33969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33972
33973    cat >conftest.$ac_ext <<_ACEOF
33974 /* confdefs.h.  */
33975 _ACEOF
33976 cat confdefs.h >>conftest.$ac_ext
33977 cat >>conftest.$ac_ext <<_ACEOF
33978 /* end confdefs.h.  */
33979 #include <cmath>
33980 int
33981 main ()
33982 {
33983 float f; std::isinf(f)}
33984   ;
33985   return 0;
33986 }
33987 _ACEOF
33988 rm -f conftest.$ac_objext
33989 if { (ac_try="$ac_compile"
33990 case "(($ac_try" in
33991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33992   *) ac_try_echo=$ac_try;;
33993 esac
33994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33995   (eval "$ac_compile") 2>conftest.er1
33996   ac_status=$?
33997   grep -v '^ *+' conftest.er1 >conftest.err
33998   rm -f conftest.er1
33999   cat conftest.err >&5
34000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34001   (exit $ac_status); } &&
34002          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34003   { (case "(($ac_try" in
34004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34005   *) ac_try_echo=$ac_try;;
34006 esac
34007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34008   (eval "$ac_try") 2>&5
34009   ac_status=$?
34010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011   (exit $ac_status); }; } &&
34012          { ac_try='test -s conftest.$ac_objext'
34013   { (case "(($ac_try" in
34014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34015   *) ac_try_echo=$ac_try;;
34016 esac
34017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34018   (eval "$ac_try") 2>&5
34019   ac_status=$?
34020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021   (exit $ac_status); }; }; then
34022   ac_cv_func_std_isinf_in_cmath=yes
34023 else
34024   echo "$as_me: failed program was:" >&5
34025 sed 's/^/| /' conftest.$ac_ext >&5
34026
34027         ac_cv_func_std_isinf_in_cmath=no
34028 fi
34029
34030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34031   ac_ext=c
34032 ac_cpp='$CPP $CPPFLAGS'
34033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34036
34037 fi
34038 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34039 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34040
34041 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34042
34043 cat >>confdefs.h <<\_ACEOF
34044 #define HAVE_STD_ISINF_IN_CMATH 1
34045 _ACEOF
34046
34047 fi
34048
34049 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34050 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34051 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34052   echo $ECHO_N "(cached) $ECHO_C" >&6
34053 else
34054   ac_ext=cpp
34055 ac_cpp='$CXXCPP $CPPFLAGS'
34056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34059
34060    cat >conftest.$ac_ext <<_ACEOF
34061 /* confdefs.h.  */
34062 _ACEOF
34063 cat confdefs.h >>conftest.$ac_ext
34064 cat >>conftest.$ac_ext <<_ACEOF
34065 /* end confdefs.h.  */
34066 #include <ieeefp.h>
34067 int
34068 main ()
34069 {
34070 float f; finite(f);
34071   ;
34072   return 0;
34073 }
34074 _ACEOF
34075 rm -f conftest.$ac_objext
34076 if { (ac_try="$ac_compile"
34077 case "(($ac_try" in
34078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34079   *) ac_try_echo=$ac_try;;
34080 esac
34081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34082   (eval "$ac_compile") 2>conftest.er1
34083   ac_status=$?
34084   grep -v '^ *+' conftest.er1 >conftest.err
34085   rm -f conftest.er1
34086   cat conftest.err >&5
34087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34088   (exit $ac_status); } &&
34089          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34090   { (case "(($ac_try" in
34091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34092   *) ac_try_echo=$ac_try;;
34093 esac
34094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34095   (eval "$ac_try") 2>&5
34096   ac_status=$?
34097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34098   (exit $ac_status); }; } &&
34099          { ac_try='test -s conftest.$ac_objext'
34100   { (case "(($ac_try" in
34101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34102   *) ac_try_echo=$ac_try;;
34103 esac
34104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34105   (eval "$ac_try") 2>&5
34106   ac_status=$?
34107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108   (exit $ac_status); }; }; then
34109   ac_cv_func_finite_in_ieeefp_h=yes
34110 else
34111   echo "$as_me: failed program was:" >&5
34112 sed 's/^/| /' conftest.$ac_ext >&5
34113
34114         ac_cv_func_finite_in_ieeefp_h=no
34115 fi
34116
34117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34118   ac_ext=c
34119 ac_cpp='$CPP $CPPFLAGS'
34120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34123
34124 fi
34125 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34126 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34127
34128 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34129
34130 cat >>confdefs.h <<\_ACEOF
34131 #define HAVE_FINITE_IN_IEEEFP_H 1
34132 _ACEOF
34133
34134 fi
34135
34136
34137
34138 if test "$llvm_cv_platform_type" = "Unix" ; then
34139
34140
34141 for ac_header in stdlib.h unistd.h
34142 do
34143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34145   { echo "$as_me:$LINENO: checking for $ac_header" >&5
34146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34148   echo $ECHO_N "(cached) $ECHO_C" >&6
34149 fi
34150 ac_res=`eval echo '${'$as_ac_Header'}'`
34151                { echo "$as_me:$LINENO: result: $ac_res" >&5
34152 echo "${ECHO_T}$ac_res" >&6; }
34153 else
34154   # Is the header compilable?
34155 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34157 cat >conftest.$ac_ext <<_ACEOF
34158 /* confdefs.h.  */
34159 _ACEOF
34160 cat confdefs.h >>conftest.$ac_ext
34161 cat >>conftest.$ac_ext <<_ACEOF
34162 /* end confdefs.h.  */
34163 $ac_includes_default
34164 #include <$ac_header>
34165 _ACEOF
34166 rm -f conftest.$ac_objext
34167 if { (ac_try="$ac_compile"
34168 case "(($ac_try" in
34169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34170   *) ac_try_echo=$ac_try;;
34171 esac
34172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34173   (eval "$ac_compile") 2>conftest.er1
34174   ac_status=$?
34175   grep -v '^ *+' conftest.er1 >conftest.err
34176   rm -f conftest.er1
34177   cat conftest.err >&5
34178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34179   (exit $ac_status); } &&
34180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34181   { (case "(($ac_try" in
34182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34183   *) ac_try_echo=$ac_try;;
34184 esac
34185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34186   (eval "$ac_try") 2>&5
34187   ac_status=$?
34188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34189   (exit $ac_status); }; } &&
34190          { ac_try='test -s conftest.$ac_objext'
34191   { (case "(($ac_try" in
34192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34193   *) ac_try_echo=$ac_try;;
34194 esac
34195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34196   (eval "$ac_try") 2>&5
34197   ac_status=$?
34198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34199   (exit $ac_status); }; }; then
34200   ac_header_compiler=yes
34201 else
34202   echo "$as_me: failed program was:" >&5
34203 sed 's/^/| /' conftest.$ac_ext >&5
34204
34205         ac_header_compiler=no
34206 fi
34207
34208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34210 echo "${ECHO_T}$ac_header_compiler" >&6; }
34211
34212 # Is the header present?
34213 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34215 cat >conftest.$ac_ext <<_ACEOF
34216 /* confdefs.h.  */
34217 _ACEOF
34218 cat confdefs.h >>conftest.$ac_ext
34219 cat >>conftest.$ac_ext <<_ACEOF
34220 /* end confdefs.h.  */
34221 #include <$ac_header>
34222 _ACEOF
34223 if { (ac_try="$ac_cpp conftest.$ac_ext"
34224 case "(($ac_try" in
34225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34226   *) ac_try_echo=$ac_try;;
34227 esac
34228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34229   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34230   ac_status=$?
34231   grep -v '^ *+' conftest.er1 >conftest.err
34232   rm -f conftest.er1
34233   cat conftest.err >&5
34234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34235   (exit $ac_status); } >/dev/null; then
34236   if test -s conftest.err; then
34237     ac_cpp_err=$ac_c_preproc_warn_flag
34238     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34239   else
34240     ac_cpp_err=
34241   fi
34242 else
34243   ac_cpp_err=yes
34244 fi
34245 if test -z "$ac_cpp_err"; then
34246   ac_header_preproc=yes
34247 else
34248   echo "$as_me: failed program was:" >&5
34249 sed 's/^/| /' conftest.$ac_ext >&5
34250
34251   ac_header_preproc=no
34252 fi
34253
34254 rm -f conftest.err conftest.$ac_ext
34255 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34256 echo "${ECHO_T}$ac_header_preproc" >&6; }
34257
34258 # So?  What about this header?
34259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34260   yes:no: )
34261     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34265     ac_header_preproc=yes
34266     ;;
34267   no:yes:* )
34268     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34270     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34271 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34272     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34274     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34275 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34278     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34280     ( cat <<\_ASBOX
34281 ## ----------------------------------- ##
34282 ## Report this to llvmbugs@cs.uiuc.edu ##
34283 ## ----------------------------------- ##
34284 _ASBOX
34285      ) | sed "s/^/$as_me: WARNING:     /" >&2
34286     ;;
34287 esac
34288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34291   echo $ECHO_N "(cached) $ECHO_C" >&6
34292 else
34293   eval "$as_ac_Header=\$ac_header_preproc"
34294 fi
34295 ac_res=`eval echo '${'$as_ac_Header'}'`
34296                { echo "$as_me:$LINENO: result: $ac_res" >&5
34297 echo "${ECHO_T}$ac_res" >&6; }
34298
34299 fi
34300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34301   cat >>confdefs.h <<_ACEOF
34302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34303 _ACEOF
34304
34305 fi
34306
34307 done
34308
34309
34310 for ac_func in getpagesize
34311 do
34312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34313 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34316   echo $ECHO_N "(cached) $ECHO_C" >&6
34317 else
34318   cat >conftest.$ac_ext <<_ACEOF
34319 /* confdefs.h.  */
34320 _ACEOF
34321 cat confdefs.h >>conftest.$ac_ext
34322 cat >>conftest.$ac_ext <<_ACEOF
34323 /* end confdefs.h.  */
34324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34325    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34326 #define $ac_func innocuous_$ac_func
34327
34328 /* System header to define __stub macros and hopefully few prototypes,
34329     which can conflict with char $ac_func (); below.
34330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34331     <limits.h> exists even on freestanding compilers.  */
34332
34333 #ifdef __STDC__
34334 # include <limits.h>
34335 #else
34336 # include <assert.h>
34337 #endif
34338
34339 #undef $ac_func
34340
34341 /* Override any GCC internal prototype to avoid an error.
34342    Use char because int might match the return type of a GCC
34343    builtin and then its argument prototype would still apply.  */
34344 #ifdef __cplusplus
34345 extern "C"
34346 #endif
34347 char $ac_func ();
34348 /* The GNU C library defines this for functions which it implements
34349     to always fail with ENOSYS.  Some functions are actually named
34350     something starting with __ and the normal name is an alias.  */
34351 #if defined __stub_$ac_func || defined __stub___$ac_func
34352 choke me
34353 #endif
34354
34355 int
34356 main ()
34357 {
34358 return $ac_func ();
34359   ;
34360   return 0;
34361 }
34362 _ACEOF
34363 rm -f conftest.$ac_objext conftest$ac_exeext
34364 if { (ac_try="$ac_link"
34365 case "(($ac_try" in
34366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34367   *) ac_try_echo=$ac_try;;
34368 esac
34369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34370   (eval "$ac_link") 2>conftest.er1
34371   ac_status=$?
34372   grep -v '^ *+' conftest.er1 >conftest.err
34373   rm -f conftest.er1
34374   cat conftest.err >&5
34375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34376   (exit $ac_status); } &&
34377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34378   { (case "(($ac_try" in
34379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34380   *) ac_try_echo=$ac_try;;
34381 esac
34382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34383   (eval "$ac_try") 2>&5
34384   ac_status=$?
34385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34386   (exit $ac_status); }; } &&
34387          { ac_try='test -s conftest$ac_exeext'
34388   { (case "(($ac_try" in
34389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34390   *) ac_try_echo=$ac_try;;
34391 esac
34392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34393   (eval "$ac_try") 2>&5
34394   ac_status=$?
34395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396   (exit $ac_status); }; }; then
34397   eval "$as_ac_var=yes"
34398 else
34399   echo "$as_me: failed program was:" >&5
34400 sed 's/^/| /' conftest.$ac_ext >&5
34401
34402         eval "$as_ac_var=no"
34403 fi
34404
34405 rm -f core conftest.err conftest.$ac_objext \
34406       conftest$ac_exeext conftest.$ac_ext
34407 fi
34408 ac_res=`eval echo '${'$as_ac_var'}'`
34409                { echo "$as_me:$LINENO: result: $ac_res" >&5
34410 echo "${ECHO_T}$ac_res" >&6; }
34411 if test `eval echo '${'$as_ac_var'}'` = yes; then
34412   cat >>confdefs.h <<_ACEOF
34413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34414 _ACEOF
34415
34416 fi
34417 done
34418
34419 { echo "$as_me:$LINENO: checking for working mmap" >&5
34420 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34421 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34422   echo $ECHO_N "(cached) $ECHO_C" >&6
34423 else
34424   if test "$cross_compiling" = yes; then
34425   ac_cv_func_mmap_fixed_mapped=no
34426 else
34427   cat >conftest.$ac_ext <<_ACEOF
34428 /* confdefs.h.  */
34429 _ACEOF
34430 cat confdefs.h >>conftest.$ac_ext
34431 cat >>conftest.$ac_ext <<_ACEOF
34432 /* end confdefs.h.  */
34433 $ac_includes_default
34434 /* malloc might have been renamed as rpl_malloc. */
34435 #undef malloc
34436
34437 /* Thanks to Mike Haertel and Jim Avera for this test.
34438    Here is a matrix of mmap possibilities:
34439         mmap private not fixed
34440         mmap private fixed at somewhere currently unmapped
34441         mmap private fixed at somewhere already mapped
34442         mmap shared not fixed
34443         mmap shared fixed at somewhere currently unmapped
34444         mmap shared fixed at somewhere already mapped
34445    For private mappings, we should verify that changes cannot be read()
34446    back from the file, nor mmap's back from the file at a different
34447    address.  (There have been systems where private was not correctly
34448    implemented like the infamous i386 svr4.0, and systems where the
34449    VM page cache was not coherent with the file system buffer cache
34450    like early versions of FreeBSD and possibly contemporary NetBSD.)
34451    For shared mappings, we should conversely verify that changes get
34452    propagated back to all the places they're supposed to be.
34453
34454    Grep wants private fixed already mapped.
34455    The main things grep needs to know about mmap are:
34456    * does it exist and is it safe to write into the mmap'd area
34457    * how to use it (BSD variants)  */
34458
34459 #include <fcntl.h>
34460 #include <sys/mman.h>
34461
34462 #if !STDC_HEADERS && !HAVE_STDLIB_H
34463 char *malloc ();
34464 #endif
34465
34466 /* This mess was copied from the GNU getpagesize.h.  */
34467 #if !HAVE_GETPAGESIZE
34468 /* Assume that all systems that can run configure have sys/param.h.  */
34469 # if !HAVE_SYS_PARAM_H
34470 #  define HAVE_SYS_PARAM_H 1
34471 # endif
34472
34473 # ifdef _SC_PAGESIZE
34474 #  define getpagesize() sysconf(_SC_PAGESIZE)
34475 # else /* no _SC_PAGESIZE */
34476 #  if HAVE_SYS_PARAM_H
34477 #   include <sys/param.h>
34478 #   ifdef EXEC_PAGESIZE
34479 #    define getpagesize() EXEC_PAGESIZE
34480 #   else /* no EXEC_PAGESIZE */
34481 #    ifdef NBPG
34482 #     define getpagesize() NBPG * CLSIZE
34483 #     ifndef CLSIZE
34484 #      define CLSIZE 1
34485 #     endif /* no CLSIZE */
34486 #    else /* no NBPG */
34487 #     ifdef NBPC
34488 #      define getpagesize() NBPC
34489 #     else /* no NBPC */
34490 #      ifdef PAGESIZE
34491 #       define getpagesize() PAGESIZE
34492 #      endif /* PAGESIZE */
34493 #     endif /* no NBPC */
34494 #    endif /* no NBPG */
34495 #   endif /* no EXEC_PAGESIZE */
34496 #  else /* no HAVE_SYS_PARAM_H */
34497 #   define getpagesize() 8192   /* punt totally */
34498 #  endif /* no HAVE_SYS_PARAM_H */
34499 # endif /* no _SC_PAGESIZE */
34500
34501 #endif /* no HAVE_GETPAGESIZE */
34502
34503 int
34504 main ()
34505 {
34506   char *data, *data2, *data3;
34507   int i, pagesize;
34508   int fd;
34509
34510   pagesize = getpagesize ();
34511
34512   /* First, make a file with some known garbage in it. */
34513   data = (char *) malloc (pagesize);
34514   if (!data)
34515     return 1;
34516   for (i = 0; i < pagesize; ++i)
34517     *(data + i) = rand ();
34518   umask (0);
34519   fd = creat ("conftest.mmap", 0600);
34520   if (fd < 0)
34521     return 1;
34522   if (write (fd, data, pagesize) != pagesize)
34523     return 1;
34524   close (fd);
34525
34526   /* Next, try to mmap the file at a fixed address which already has
34527      something else allocated at it.  If we can, also make sure that
34528      we see the same garbage.  */
34529   fd = open ("conftest.mmap", O_RDWR);
34530   if (fd < 0)
34531     return 1;
34532   data2 = (char *) malloc (2 * pagesize);
34533   if (!data2)
34534     return 1;
34535   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34536   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34537                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
34538     return 1;
34539   for (i = 0; i < pagesize; ++i)
34540     if (*(data + i) != *(data2 + i))
34541       return 1;
34542
34543   /* Finally, make sure that changes to the mapped area do not
34544      percolate back to the file as seen by read().  (This is a bug on
34545      some variants of i386 svr4.0.)  */
34546   for (i = 0; i < pagesize; ++i)
34547     *(data2 + i) = *(data2 + i) + 1;
34548   data3 = (char *) malloc (pagesize);
34549   if (!data3)
34550     return 1;
34551   if (read (fd, data3, pagesize) != pagesize)
34552     return 1;
34553   for (i = 0; i < pagesize; ++i)
34554     if (*(data + i) != *(data3 + i))
34555       return 1;
34556   close (fd);
34557   return 0;
34558 }
34559 _ACEOF
34560 rm -f conftest$ac_exeext
34561 if { (ac_try="$ac_link"
34562 case "(($ac_try" in
34563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34564   *) ac_try_echo=$ac_try;;
34565 esac
34566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34567   (eval "$ac_link") 2>&5
34568   ac_status=$?
34569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34571   { (case "(($ac_try" in
34572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34573   *) ac_try_echo=$ac_try;;
34574 esac
34575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34576   (eval "$ac_try") 2>&5
34577   ac_status=$?
34578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34579   (exit $ac_status); }; }; then
34580   ac_cv_func_mmap_fixed_mapped=yes
34581 else
34582   echo "$as_me: program exited with status $ac_status" >&5
34583 echo "$as_me: failed program was:" >&5
34584 sed 's/^/| /' conftest.$ac_ext >&5
34585
34586 ( exit $ac_status )
34587 ac_cv_func_mmap_fixed_mapped=no
34588 fi
34589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34590 fi
34591
34592
34593 fi
34594 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34595 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34596 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34597
34598 cat >>confdefs.h <<\_ACEOF
34599 #define HAVE_MMAP 1
34600 _ACEOF
34601
34602 fi
34603 rm -f conftest.mmap
34604
34605   { echo "$as_me:$LINENO: checking for mmap of files" >&5
34606 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34607 if test "${ac_cv_func_mmap_file+set}" = set; then
34608   echo $ECHO_N "(cached) $ECHO_C" >&6
34609 else
34610    ac_ext=c
34611 ac_cpp='$CPP $CPPFLAGS'
34612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34615
34616   if test "$cross_compiling" = yes; then
34617   ac_cv_func_mmap_file=no
34618 else
34619   cat >conftest.$ac_ext <<_ACEOF
34620
34621     /* confdefs.h.  */
34622 _ACEOF
34623 cat confdefs.h >>conftest.$ac_ext
34624 cat >>conftest.$ac_ext <<_ACEOF
34625 /* end confdefs.h.  */
34626
34627 #include <sys/types.h>
34628 #include <sys/mman.h>
34629 #include <fcntl.h>
34630
34631 int
34632 main ()
34633 {
34634
34635   int fd;
34636   fd = creat ("foo",0777);
34637   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34638   unlink ("foo");
34639   return (fd != (int) MAP_FAILED);
34640   ;
34641   return 0;
34642 }
34643 _ACEOF
34644 rm -f conftest$ac_exeext
34645 if { (ac_try="$ac_link"
34646 case "(($ac_try" in
34647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34648   *) ac_try_echo=$ac_try;;
34649 esac
34650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34651   (eval "$ac_link") 2>&5
34652   ac_status=$?
34653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34655   { (case "(($ac_try" in
34656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34657   *) ac_try_echo=$ac_try;;
34658 esac
34659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34660   (eval "$ac_try") 2>&5
34661   ac_status=$?
34662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663   (exit $ac_status); }; }; then
34664   ac_cv_func_mmap_file=yes
34665 else
34666   echo "$as_me: program exited with status $ac_status" >&5
34667 echo "$as_me: failed program was:" >&5
34668 sed 's/^/| /' conftest.$ac_ext >&5
34669
34670 ( exit $ac_status )
34671 ac_cv_func_mmap_file=no
34672 fi
34673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34674 fi
34675
34676
34677   ac_ext=c
34678 ac_cpp='$CPP $CPPFLAGS'
34679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34682
34683
34684 fi
34685 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34686 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34687 if test "$ac_cv_func_mmap_file" = yes; then
34688
34689 cat >>confdefs.h <<\_ACEOF
34690 #define HAVE_MMAP_FILE
34691 _ACEOF
34692
34693    MMAP_FILE=yes
34694
34695 fi
34696
34697   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34698 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34699 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34700   echo $ECHO_N "(cached) $ECHO_C" >&6
34701 else
34702   if test "$llvm_cv_os_type" = "Interix" ; then
34703    ac_cv_need_dev_zero_for_mmap=yes
34704  else
34705    ac_cv_need_dev_zero_for_mmap=no
34706  fi
34707
34708 fi
34709 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34710 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34711 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34712
34713 cat >>confdefs.h <<\_ACEOF
34714 #define NEED_DEV_ZERO_FOR_MMAP 1
34715 _ACEOF
34716
34717 fi
34718
34719   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34720   then
34721     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34722 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34723   fi
34724   if test "$ac_cv_func_mmap_file" = "no"
34725   then
34726     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34727 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34728   fi
34729 fi
34730
34731 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34732 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34733 cat >conftest.$ac_ext <<_ACEOF
34734 /* confdefs.h.  */
34735 _ACEOF
34736 cat confdefs.h >>conftest.$ac_ext
34737 cat >>conftest.$ac_ext <<_ACEOF
34738 /* end confdefs.h.  */
34739 int main() {
34740         volatile unsigned long val = 1;
34741         __sync_synchronize();
34742         __sync_val_compare_and_swap(&val, 1, 0);
34743         __sync_add_and_fetch(&val, 1);
34744         __sync_sub_and_fetch(&val, 1);
34745         return 0;
34746       }
34747
34748 _ACEOF
34749 rm -f conftest.$ac_objext conftest$ac_exeext
34750 if { (ac_try="$ac_link"
34751 case "(($ac_try" in
34752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34753   *) ac_try_echo=$ac_try;;
34754 esac
34755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34756   (eval "$ac_link") 2>conftest.er1
34757   ac_status=$?
34758   grep -v '^ *+' conftest.er1 >conftest.err
34759   rm -f conftest.er1
34760   cat conftest.err >&5
34761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34762   (exit $ac_status); } &&
34763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34764   { (case "(($ac_try" in
34765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34766   *) ac_try_echo=$ac_try;;
34767 esac
34768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34769   (eval "$ac_try") 2>&5
34770   ac_status=$?
34771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34772   (exit $ac_status); }; } &&
34773          { ac_try='test -s conftest$ac_exeext'
34774   { (case "(($ac_try" in
34775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34776   *) ac_try_echo=$ac_try;;
34777 esac
34778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34779   (eval "$ac_try") 2>&5
34780   ac_status=$?
34781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34782   (exit $ac_status); }; }; then
34783   { echo "$as_me:$LINENO: result: yes" >&5
34784 echo "${ECHO_T}yes" >&6; }
34785
34786 cat >>confdefs.h <<\_ACEOF
34787 #define LLVM_MULTITHREADED 1
34788 _ACEOF
34789
34790 else
34791   echo "$as_me: failed program was:" >&5
34792 sed 's/^/| /' conftest.$ac_ext >&5
34793
34794         { echo "$as_me:$LINENO: result: no" >&5
34795 echo "${ECHO_T}no" >&6; }
34796
34797 cat >>confdefs.h <<\_ACEOF
34798 #define LLVM_MULTITHREADED 0
34799 _ACEOF
34800
34801   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34802 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34803 fi
34804
34805 rm -f core conftest.err conftest.$ac_objext \
34806       conftest$ac_exeext conftest.$ac_ext
34807
34808
34809
34810
34811 for ac_func in __dso_handle
34812 do
34813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34817   echo $ECHO_N "(cached) $ECHO_C" >&6
34818 else
34819   cat >conftest.$ac_ext <<_ACEOF
34820 /* confdefs.h.  */
34821 _ACEOF
34822 cat confdefs.h >>conftest.$ac_ext
34823 cat >>conftest.$ac_ext <<_ACEOF
34824 /* end confdefs.h.  */
34825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34827 #define $ac_func innocuous_$ac_func
34828
34829 /* System header to define __stub macros and hopefully few prototypes,
34830     which can conflict with char $ac_func (); below.
34831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34832     <limits.h> exists even on freestanding compilers.  */
34833
34834 #ifdef __STDC__
34835 # include <limits.h>
34836 #else
34837 # include <assert.h>
34838 #endif
34839
34840 #undef $ac_func
34841
34842 /* Override any GCC internal prototype to avoid an error.
34843    Use char because int might match the return type of a GCC
34844    builtin and then its argument prototype would still apply.  */
34845 #ifdef __cplusplus
34846 extern "C"
34847 #endif
34848 char $ac_func ();
34849 /* The GNU C library defines this for functions which it implements
34850     to always fail with ENOSYS.  Some functions are actually named
34851     something starting with __ and the normal name is an alias.  */
34852 #if defined __stub_$ac_func || defined __stub___$ac_func
34853 choke me
34854 #endif
34855
34856 int
34857 main ()
34858 {
34859 return $ac_func ();
34860   ;
34861   return 0;
34862 }
34863 _ACEOF
34864 rm -f conftest.$ac_objext conftest$ac_exeext
34865 if { (ac_try="$ac_link"
34866 case "(($ac_try" in
34867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34868   *) ac_try_echo=$ac_try;;
34869 esac
34870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34871   (eval "$ac_link") 2>conftest.er1
34872   ac_status=$?
34873   grep -v '^ *+' conftest.er1 >conftest.err
34874   rm -f conftest.er1
34875   cat conftest.err >&5
34876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34877   (exit $ac_status); } &&
34878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34879   { (case "(($ac_try" in
34880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34881   *) ac_try_echo=$ac_try;;
34882 esac
34883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34884   (eval "$ac_try") 2>&5
34885   ac_status=$?
34886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34887   (exit $ac_status); }; } &&
34888          { ac_try='test -s conftest$ac_exeext'
34889   { (case "(($ac_try" in
34890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34891   *) ac_try_echo=$ac_try;;
34892 esac
34893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34894   (eval "$ac_try") 2>&5
34895   ac_status=$?
34896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897   (exit $ac_status); }; }; then
34898   eval "$as_ac_var=yes"
34899 else
34900   echo "$as_me: failed program was:" >&5
34901 sed 's/^/| /' conftest.$ac_ext >&5
34902
34903         eval "$as_ac_var=no"
34904 fi
34905
34906 rm -f core conftest.err conftest.$ac_objext \
34907       conftest$ac_exeext conftest.$ac_ext
34908 fi
34909 ac_res=`eval echo '${'$as_ac_var'}'`
34910                { echo "$as_me:$LINENO: result: $ac_res" >&5
34911 echo "${ECHO_T}$ac_res" >&6; }
34912 if test `eval echo '${'$as_ac_var'}'` = yes; then
34913   cat >>confdefs.h <<_ACEOF
34914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34915 _ACEOF
34916
34917 fi
34918 done
34919
34920
34921 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34922 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34923 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34924   echo $ECHO_N "(cached) $ECHO_C" >&6
34925 else
34926   llvm_cv_llvmgcc_sanity="no"
34927 if test -x "$LLVMGCC" ; then
34928   cp /dev/null conftest.c
34929   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34930       grep 'target datalayout =' > /dev/null 2>&1
34931   if test $? -eq 0 ; then
34932     llvm_cv_llvmgcc_sanity="yes"
34933   fi
34934   rm conftest.c
34935 fi
34936 fi
34937 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34938 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34939
34940 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34941   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34942 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34943   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34944   LLVMCC1=$llvmcc1path
34945
34946   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34947   LLVMCC1PLUS=$llvmcc1pluspath
34948
34949   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34950   LLVMGCCDIR=$llvmgccdir
34951
34952   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34953   LLVMGCCLIBEXEC=$llvmgcclibexec
34954
34955   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34956   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34957   LLVMGCC_VERSION=$llvmgccversion
34958
34959   LLVMGCC_MAJVERS=$llvmgccmajvers
34960
34961   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34962   LLVMGCC_LANGS=$llvmgcclangs
34963
34964   { echo "$as_me:$LINENO: result: ok" >&5
34965 echo "${ECHO_T}ok" >&6; }
34966 fi
34967
34968 SHLIBEXT=$libltdl_cv_shlibext
34969
34970
34971 # Translate the various configuration directories and other basic
34972 # information into substitutions that will end up in Makefile.config.in
34973 # that these configured values can be used by the makefiles
34974 if test "${prefix}" = "NONE" ; then
34975   prefix="/usr/local"
34976 fi
34977 eval LLVM_PREFIX="${prefix}";
34978 eval LLVM_BINDIR="${prefix}/bin";
34979 eval LLVM_LIBDIR="${prefix}/lib";
34980 eval LLVM_DATADIR="${prefix}/share/llvm";
34981 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34982 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34983 eval LLVM_INCLUDEDIR="${prefix}/include";
34984 eval LLVM_INFODIR="${prefix}/info";
34985 eval LLVM_MANDIR="${prefix}/man";
34986 LLVM_CONFIGTIME=`date`
34987
34988
34989
34990
34991
34992
34993
34994
34995
34996
34997
34998 # Place the various directores into the config.h file as #defines so that we
34999 # can know about the installation paths within LLVM.
35000
35001 cat >>confdefs.h <<_ACEOF
35002 #define LLVM_PREFIX "$LLVM_PREFIX"
35003 _ACEOF
35004
35005
35006 cat >>confdefs.h <<_ACEOF
35007 #define LLVM_BINDIR "$LLVM_BINDIR"
35008 _ACEOF
35009
35010
35011 cat >>confdefs.h <<_ACEOF
35012 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35013 _ACEOF
35014
35015
35016 cat >>confdefs.h <<_ACEOF
35017 #define LLVM_DATADIR "$LLVM_DATADIR"
35018 _ACEOF
35019
35020
35021 cat >>confdefs.h <<_ACEOF
35022 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35023 _ACEOF
35024
35025
35026 cat >>confdefs.h <<_ACEOF
35027 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35028 _ACEOF
35029
35030
35031 cat >>confdefs.h <<_ACEOF
35032 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35033 _ACEOF
35034
35035
35036 cat >>confdefs.h <<_ACEOF
35037 #define LLVM_INFODIR "$LLVM_INFODIR"
35038 _ACEOF
35039
35040
35041 cat >>confdefs.h <<_ACEOF
35042 #define LLVM_MANDIR "$LLVM_MANDIR"
35043 _ACEOF
35044
35045
35046 cat >>confdefs.h <<_ACEOF
35047 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35048 _ACEOF
35049
35050
35051 cat >>confdefs.h <<_ACEOF
35052 #define LLVM_HOSTTRIPLE "$host"
35053 _ACEOF
35054
35055
35056 # Determine which bindings to build.
35057 if test "$BINDINGS_TO_BUILD" = auto ; then
35058   BINDINGS_TO_BUILD=""
35059   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35060     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35061   fi
35062 fi
35063 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35064
35065
35066 # This isn't really configurey, but it avoids having to repeat the list in
35067 # other files.
35068 ALL_BINDINGS=ocaml
35069
35070
35071 # Do any work necessary to ensure that bindings have what they need.
35072 binding_prereqs_failed=0
35073 for a_binding in $BINDINGS_TO_BUILD ; do
35074   case "$a_binding" in
35075   ocaml)
35076     if test "x$OCAMLC" = x ; then
35077       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35078 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35079       binding_prereqs_failed=1
35080     fi
35081     if test "x$OCAMLDEP" = x ; then
35082       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35083 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35084       binding_prereqs_failed=1
35085     fi
35086     if test "x$OCAMLOPT" = x ; then
35087       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35088 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35089           fi
35090     if test "x$with_ocaml_libdir" != xauto ; then
35091       OCAML_LIBDIR=$with_ocaml_libdir
35092
35093     else
35094       ocaml_stdlib="`"$OCAMLC" -where`"
35095       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35096       then
35097         # ocaml stdlib is beneath our prefix; use stdlib
35098         OCAML_LIBDIR=$ocaml_stdlib
35099
35100       else
35101         # ocaml stdlib is outside our prefix; use libdir/ocaml
35102         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35103
35104       fi
35105     fi
35106     ;;
35107   esac
35108 done
35109 if test "$binding_prereqs_failed" = 1 ; then
35110   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35111 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35112    { (exit 1); exit 1; }; }
35113 fi
35114
35115 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35116 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35117 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35118   echo $ECHO_N "(cached) $ECHO_C" >&6
35119 else
35120    ac_ext=cpp
35121 ac_cpp='$CXXCPP $CPPFLAGS'
35122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35125
35126   oldcxxflags="$CXXFLAGS"
35127   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35128   cat >conftest.$ac_ext <<_ACEOF
35129 /* confdefs.h.  */
35130 _ACEOF
35131 cat confdefs.h >>conftest.$ac_ext
35132 cat >>conftest.$ac_ext <<_ACEOF
35133 /* end confdefs.h.  */
35134
35135 int
35136 main ()
35137 {
35138
35139   ;
35140   return 0;
35141 }
35142 _ACEOF
35143 rm -f conftest.$ac_objext
35144 if { (ac_try="$ac_compile"
35145 case "(($ac_try" in
35146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35147   *) ac_try_echo=$ac_try;;
35148 esac
35149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35150   (eval "$ac_compile") 2>conftest.er1
35151   ac_status=$?
35152   grep -v '^ *+' conftest.er1 >conftest.err
35153   rm -f conftest.er1
35154   cat conftest.err >&5
35155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35156   (exit $ac_status); } &&
35157          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35158   { (case "(($ac_try" in
35159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35160   *) ac_try_echo=$ac_try;;
35161 esac
35162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35163   (eval "$ac_try") 2>&5
35164   ac_status=$?
35165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166   (exit $ac_status); }; } &&
35167          { ac_try='test -s conftest.$ac_objext'
35168   { (case "(($ac_try" in
35169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35170   *) ac_try_echo=$ac_try;;
35171 esac
35172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35173   (eval "$ac_try") 2>&5
35174   ac_status=$?
35175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35176   (exit $ac_status); }; }; then
35177   llvm_cv_cxx_visibility_inlines_hidden=yes
35178 else
35179   echo "$as_me: failed program was:" >&5
35180 sed 's/^/| /' conftest.$ac_ext >&5
35181
35182         llvm_cv_cxx_visibility_inlines_hidden=no
35183 fi
35184
35185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35186   CXXFLAGS="$oldcxxflags"
35187   ac_ext=c
35188 ac_cpp='$CPP $CPPFLAGS'
35189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35192
35193
35194 fi
35195 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35196 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35197 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35198   ENABLE_VISIBILITY_INLINES_HIDDEN=1
35199
35200 else
35201   ENABLE_VISIBILITY_INLINES_HIDDEN=0
35202
35203 fi
35204
35205
35206 if test "$llvm_cv_link_use_r" = "yes" ; then
35207   RPATH="-Wl,-R"
35208 else
35209   RPATH="-Wl,-rpath"
35210 fi
35211
35212
35213 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35214   RDYNAMIC="-Wl,-export-dynamic"
35215 else
35216   RDYNAMIC=""
35217 fi
35218
35219
35220
35221 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35222
35223 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35224
35225 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35226
35227 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35228
35229 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
35230
35231
35232 ac_config_files="$ac_config_files Makefile.config"
35233
35234
35235 ac_config_files="$ac_config_files llvm.spec"
35236
35237
35238 ac_config_files="$ac_config_files docs/doxygen.cfg"
35239
35240
35241 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35242
35243
35244 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35245
35246
35247 ac_config_commands="$ac_config_commands setup"
35248
35249 ac_config_commands="$ac_config_commands Makefile"
35250
35251
35252 ac_config_commands="$ac_config_commands Makefile.common"
35253
35254
35255 ac_config_commands="$ac_config_commands examples/Makefile"
35256
35257
35258 ac_config_commands="$ac_config_commands lib/Makefile"
35259
35260
35261 ac_config_commands="$ac_config_commands runtime/Makefile"
35262
35263
35264 ac_config_commands="$ac_config_commands test/Makefile"
35265
35266
35267 ac_config_commands="$ac_config_commands test/Makefile.tests"
35268
35269
35270 ac_config_commands="$ac_config_commands unittests/Makefile"
35271
35272
35273 ac_config_commands="$ac_config_commands tools/Makefile"
35274
35275
35276 ac_config_commands="$ac_config_commands utils/Makefile"
35277
35278
35279 ac_config_commands="$ac_config_commands projects/Makefile"
35280
35281
35282 ac_config_commands="$ac_config_commands bindings/Makefile"
35283
35284
35285 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35286
35287
35288
35289 cat >confcache <<\_ACEOF
35290 # This file is a shell script that caches the results of configure
35291 # tests run on this system so they can be shared between configure
35292 # scripts and configure runs, see configure's option --config-cache.
35293 # It is not useful on other systems.  If it contains results you don't
35294 # want to keep, you may remove or edit it.
35295 #
35296 # config.status only pays attention to the cache file if you give it
35297 # the --recheck option to rerun configure.
35298 #
35299 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35300 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35301 # following values.
35302
35303 _ACEOF
35304
35305 # The following way of writing the cache mishandles newlines in values,
35306 # but we know of no workaround that is simple, portable, and efficient.
35307 # So, we kill variables containing newlines.
35308 # Ultrix sh set writes to stderr and can't be redirected directly,
35309 # and sets the high bit in the cache file unless we assign to the vars.
35310 (
35311   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35312     eval ac_val=\$$ac_var
35313     case $ac_val in #(
35314     *${as_nl}*)
35315       case $ac_var in #(
35316       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35317 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35318       esac
35319       case $ac_var in #(
35320       _ | IFS | as_nl) ;; #(
35321       *) $as_unset $ac_var ;;
35322       esac ;;
35323     esac
35324   done
35325
35326   (set) 2>&1 |
35327     case $as_nl`(ac_space=' '; set) 2>&1` in #(
35328     *${as_nl}ac_space=\ *)
35329       # `set' does not quote correctly, so add quotes (double-quote
35330       # substitution turns \\\\ into \\, and sed turns \\ into \).
35331       sed -n \
35332         "s/'/'\\\\''/g;
35333           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35334       ;; #(
35335     *)
35336       # `set' quotes correctly as required by POSIX, so do not add quotes.
35337       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35338       ;;
35339     esac |
35340     sort
35341 ) |
35342   sed '
35343      /^ac_cv_env_/b end
35344      t clear
35345      :clear
35346      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35347      t end
35348      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35349      :end' >>confcache
35350 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35351   if test -w "$cache_file"; then
35352     test "x$cache_file" != "x/dev/null" &&
35353       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35354 echo "$as_me: updating cache $cache_file" >&6;}
35355     cat confcache >$cache_file
35356   else
35357     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35358 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35359   fi
35360 fi
35361 rm -f confcache
35362
35363 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35364 # Let make expand exec_prefix.
35365 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35366
35367 DEFS=-DHAVE_CONFIG_H
35368
35369 ac_libobjs=
35370 ac_ltlibobjs=
35371 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35372   # 1. Remove the extension, and $U if already installed.
35373   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35374   ac_i=`echo "$ac_i" | sed "$ac_script"`
35375   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35376   #    will be set to the directory where LIBOBJS objects are built.
35377   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35378   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35379 done
35380 LIBOBJS=$ac_libobjs
35381
35382 LTLIBOBJS=$ac_ltlibobjs
35383
35384
35385 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35386   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35387 Usually this means the macro was only invoked conditionally." >&5
35388 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35389 Usually this means the macro was only invoked conditionally." >&2;}
35390    { (exit 1); exit 1; }; }
35391 fi
35392 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35393   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35394 Usually this means the macro was only invoked conditionally." >&5
35395 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35396 Usually this means the macro was only invoked conditionally." >&2;}
35397    { (exit 1); exit 1; }; }
35398 fi
35399
35400 : ${CONFIG_STATUS=./config.status}
35401 ac_clean_files_save=$ac_clean_files
35402 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35403 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35404 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35405 cat >$CONFIG_STATUS <<_ACEOF
35406 #! $SHELL
35407 # Generated by $as_me.
35408 # Run this file to recreate the current configuration.
35409 # Compiler output produced by configure, useful for debugging
35410 # configure, is in config.log if it exists.
35411
35412 debug=false
35413 ac_cs_recheck=false
35414 ac_cs_silent=false
35415 SHELL=\${CONFIG_SHELL-$SHELL}
35416 _ACEOF
35417
35418 cat >>$CONFIG_STATUS <<\_ACEOF
35419 ## --------------------- ##
35420 ## M4sh Initialization.  ##
35421 ## --------------------- ##
35422
35423 # Be Bourne compatible
35424 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35425   emulate sh
35426   NULLCMD=:
35427   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35428   # is contrary to our usage.  Disable this feature.
35429   alias -g '${1+"$@"}'='"$@"'
35430   setopt NO_GLOB_SUBST
35431 else
35432   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35433 fi
35434 BIN_SH=xpg4; export BIN_SH # for Tru64
35435 DUALCASE=1; export DUALCASE # for MKS sh
35436
35437
35438 # PATH needs CR
35439 # Avoid depending upon Character Ranges.
35440 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35441 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35442 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35443 as_cr_digits='0123456789'
35444 as_cr_alnum=$as_cr_Letters$as_cr_digits
35445
35446 # The user is always right.
35447 if test "${PATH_SEPARATOR+set}" != set; then
35448   echo "#! /bin/sh" >conf$$.sh
35449   echo  "exit 0"   >>conf$$.sh
35450   chmod +x conf$$.sh
35451   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35452     PATH_SEPARATOR=';'
35453   else
35454     PATH_SEPARATOR=:
35455   fi
35456   rm -f conf$$.sh
35457 fi
35458
35459 # Support unset when possible.
35460 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35461   as_unset=unset
35462 else
35463   as_unset=false
35464 fi
35465
35466
35467 # IFS
35468 # We need space, tab and new line, in precisely that order.  Quoting is
35469 # there to prevent editors from complaining about space-tab.
35470 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35471 # splitting by setting IFS to empty value.)
35472 as_nl='
35473 '
35474 IFS=" ""        $as_nl"
35475
35476 # Find who we are.  Look in the path if we contain no directory separator.
35477 case $0 in
35478   *[\\/]* ) as_myself=$0 ;;
35479   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35480 for as_dir in $PATH
35481 do
35482   IFS=$as_save_IFS
35483   test -z "$as_dir" && as_dir=.
35484   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35485 done
35486 IFS=$as_save_IFS
35487
35488      ;;
35489 esac
35490 # We did not find ourselves, most probably we were run as `sh COMMAND'
35491 # in which case we are not to be found in the path.
35492 if test "x$as_myself" = x; then
35493   as_myself=$0
35494 fi
35495 if test ! -f "$as_myself"; then
35496   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35497   { (exit 1); exit 1; }
35498 fi
35499
35500 # Work around bugs in pre-3.0 UWIN ksh.
35501 for as_var in ENV MAIL MAILPATH
35502 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35503 done
35504 PS1='$ '
35505 PS2='> '
35506 PS4='+ '
35507
35508 # NLS nuisances.
35509 for as_var in \
35510   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35511   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35512   LC_TELEPHONE LC_TIME
35513 do
35514   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35515     eval $as_var=C; export $as_var
35516   else
35517     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35518   fi
35519 done
35520
35521 # Required to use basename.
35522 if expr a : '\(a\)' >/dev/null 2>&1 &&
35523    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35524   as_expr=expr
35525 else
35526   as_expr=false
35527 fi
35528
35529 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35530   as_basename=basename
35531 else
35532   as_basename=false
35533 fi
35534
35535
35536 # Name of the executable.
35537 as_me=`$as_basename -- "$0" ||
35538 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35539          X"$0" : 'X\(//\)$' \| \
35540          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35541 echo X/"$0" |
35542     sed '/^.*\/\([^/][^/]*\)\/*$/{
35543             s//\1/
35544             q
35545           }
35546           /^X\/\(\/\/\)$/{
35547             s//\1/
35548             q
35549           }
35550           /^X\/\(\/\).*/{
35551             s//\1/
35552             q
35553           }
35554           s/.*/./; q'`
35555
35556 # CDPATH.
35557 $as_unset CDPATH
35558
35559
35560
35561   as_lineno_1=$LINENO
35562   as_lineno_2=$LINENO
35563   test "x$as_lineno_1" != "x$as_lineno_2" &&
35564   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35565
35566   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35567   # uniformly replaced by the line number.  The first 'sed' inserts a
35568   # line-number line after each line using $LINENO; the second 'sed'
35569   # does the real work.  The second script uses 'N' to pair each
35570   # line-number line with the line containing $LINENO, and appends
35571   # trailing '-' during substitution so that $LINENO is not a special
35572   # case at line end.
35573   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35574   # scripts with optimization help from Paolo Bonzini.  Blame Lee
35575   # E. McMahon (1931-1989) for sed's syntax.  :-)
35576   sed -n '
35577     p
35578     /[$]LINENO/=
35579   ' <$as_myself |
35580     sed '
35581       s/[$]LINENO.*/&-/
35582       t lineno
35583       b
35584       :lineno
35585       N
35586       :loop
35587       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35588       t loop
35589       s/-\n.*//
35590     ' >$as_me.lineno &&
35591   chmod +x "$as_me.lineno" ||
35592     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35593    { (exit 1); exit 1; }; }
35594
35595   # Don't try to exec as it changes $[0], causing all sort of problems
35596   # (the dirname of $[0] is not the place where we might find the
35597   # original and so on.  Autoconf is especially sensitive to this).
35598   . "./$as_me.lineno"
35599   # Exit status is that of the last command.
35600   exit
35601 }
35602
35603
35604 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35605   as_dirname=dirname
35606 else
35607   as_dirname=false
35608 fi
35609
35610 ECHO_C= ECHO_N= ECHO_T=
35611 case `echo -n x` in
35612 -n*)
35613   case `echo 'x\c'` in
35614   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35615   *)   ECHO_C='\c';;
35616   esac;;
35617 *)
35618   ECHO_N='-n';;
35619 esac
35620
35621 if expr a : '\(a\)' >/dev/null 2>&1 &&
35622    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35623   as_expr=expr
35624 else
35625   as_expr=false
35626 fi
35627
35628 rm -f conf$$ conf$$.exe conf$$.file
35629 if test -d conf$$.dir; then
35630   rm -f conf$$.dir/conf$$.file
35631 else
35632   rm -f conf$$.dir
35633   mkdir conf$$.dir
35634 fi
35635 echo >conf$$.file
35636 if ln -s conf$$.file conf$$ 2>/dev/null; then
35637   as_ln_s='ln -s'
35638   # ... but there are two gotchas:
35639   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35640   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35641   # In both cases, we have to default to `cp -p'.
35642   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35643     as_ln_s='cp -p'
35644 elif ln conf$$.file conf$$ 2>/dev/null; then
35645   as_ln_s=ln
35646 else
35647   as_ln_s='cp -p'
35648 fi
35649 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35650 rmdir conf$$.dir 2>/dev/null
35651
35652 if mkdir -p . 2>/dev/null; then
35653   as_mkdir_p=:
35654 else
35655   test -d ./-p && rmdir ./-p
35656   as_mkdir_p=false
35657 fi
35658
35659 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
35660 # systems may use methods other than mode bits to determine executability.
35661 cat >conf$$.file <<_ASEOF
35662 #! /bin/sh
35663 exit 0
35664 _ASEOF
35665 chmod +x conf$$.file
35666 if test -x conf$$.file >/dev/null 2>&1; then
35667   as_executable_p="test -x"
35668 else
35669   as_executable_p=:
35670 fi
35671 rm -f conf$$.file
35672
35673 # Sed expression to map a string onto a valid CPP name.
35674 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35675
35676 # Sed expression to map a string onto a valid variable name.
35677 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35678
35679
35680 exec 6>&1
35681
35682 # Save the log message, to keep $[0] and so on meaningful, and to
35683 # report actual input values of CONFIG_FILES etc. instead of their
35684 # values after options handling.
35685 ac_log="
35686 This file was extended by llvm $as_me 2.6svn, which was
35687 generated by GNU Autoconf 2.60.  Invocation command line was
35688
35689   CONFIG_FILES    = $CONFIG_FILES
35690   CONFIG_HEADERS  = $CONFIG_HEADERS
35691   CONFIG_LINKS    = $CONFIG_LINKS
35692   CONFIG_COMMANDS = $CONFIG_COMMANDS
35693   $ $0 $@
35694
35695 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35696 "
35697
35698 _ACEOF
35699
35700 cat >>$CONFIG_STATUS <<_ACEOF
35701 # Files that config.status was made for.
35702 config_files="$ac_config_files"
35703 config_headers="$ac_config_headers"
35704 config_commands="$ac_config_commands"
35705
35706 _ACEOF
35707
35708 cat >>$CONFIG_STATUS <<\_ACEOF
35709 ac_cs_usage="\
35710 \`$as_me' instantiates files from templates according to the
35711 current configuration.
35712
35713 Usage: $0 [OPTIONS] [FILE]...
35714
35715   -h, --help       print this help, then exit
35716   -V, --version    print version number, then exit
35717   -q, --quiet      do not print progress messages
35718   -d, --debug      don't remove temporary files
35719       --recheck    update $as_me by reconfiguring in the same conditions
35720   --file=FILE[:TEMPLATE]
35721                    instantiate the configuration file FILE
35722   --header=FILE[:TEMPLATE]
35723                    instantiate the configuration header FILE
35724
35725 Configuration files:
35726 $config_files
35727
35728 Configuration headers:
35729 $config_headers
35730
35731 Configuration commands:
35732 $config_commands
35733
35734 Report bugs to <bug-autoconf@gnu.org>."
35735
35736 _ACEOF
35737 cat >>$CONFIG_STATUS <<_ACEOF
35738 ac_cs_version="\\
35739 llvm config.status 2.6svn
35740 configured by $0, generated by GNU Autoconf 2.60,
35741   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35742
35743 Copyright (C) 2006 Free Software Foundation, Inc.
35744 This config.status script is free software; the Free Software Foundation
35745 gives unlimited permission to copy, distribute and modify it."
35746
35747 ac_pwd='$ac_pwd'
35748 srcdir='$srcdir'
35749 INSTALL='$INSTALL'
35750 _ACEOF
35751
35752 cat >>$CONFIG_STATUS <<\_ACEOF
35753 # If no file are specified by the user, then we need to provide default
35754 # value.  By we need to know if files were specified by the user.
35755 ac_need_defaults=:
35756 while test $# != 0
35757 do
35758   case $1 in
35759   --*=*)
35760     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35761     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35762     ac_shift=:
35763     ;;
35764   *)
35765     ac_option=$1
35766     ac_optarg=$2
35767     ac_shift=shift
35768     ;;
35769   esac
35770
35771   case $ac_option in
35772   # Handling of the options.
35773   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35774     ac_cs_recheck=: ;;
35775   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35776     echo "$ac_cs_version"; exit ;;
35777   --debug | --debu | --deb | --de | --d | -d )
35778     debug=: ;;
35779   --file | --fil | --fi | --f )
35780     $ac_shift
35781     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35782     ac_need_defaults=false;;
35783   --header | --heade | --head | --hea )
35784     $ac_shift
35785     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35786     ac_need_defaults=false;;
35787   --he | --h)
35788     # Conflict between --help and --header
35789     { echo "$as_me: error: ambiguous option: $1
35790 Try \`$0 --help' for more information." >&2
35791    { (exit 1); exit 1; }; };;
35792   --help | --hel | -h )
35793     echo "$ac_cs_usage"; exit ;;
35794   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35795   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35796     ac_cs_silent=: ;;
35797
35798   # This is an error.
35799   -*) { echo "$as_me: error: unrecognized option: $1
35800 Try \`$0 --help' for more information." >&2
35801    { (exit 1); exit 1; }; } ;;
35802
35803   *) ac_config_targets="$ac_config_targets $1"
35804      ac_need_defaults=false ;;
35805
35806   esac
35807   shift
35808 done
35809
35810 ac_configure_extra_args=
35811
35812 if $ac_cs_silent; then
35813   exec 6>/dev/null
35814   ac_configure_extra_args="$ac_configure_extra_args --silent"
35815 fi
35816
35817 _ACEOF
35818 cat >>$CONFIG_STATUS <<_ACEOF
35819 if \$ac_cs_recheck; then
35820   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35821   CONFIG_SHELL=$SHELL
35822   export CONFIG_SHELL
35823   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35824 fi
35825
35826 _ACEOF
35827 cat >>$CONFIG_STATUS <<\_ACEOF
35828 exec 5>>config.log
35829 {
35830   echo
35831   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35832 ## Running $as_me. ##
35833 _ASBOX
35834   echo "$ac_log"
35835 } >&5
35836
35837 _ACEOF
35838 cat >>$CONFIG_STATUS <<_ACEOF
35839 #
35840 # INIT-COMMANDS
35841 #
35842 llvm_src="${srcdir}"
35843
35844 _ACEOF
35845
35846 cat >>$CONFIG_STATUS <<\_ACEOF
35847
35848 # Handling of arguments.
35849 for ac_config_target in $ac_config_targets
35850 do
35851   case $ac_config_target in
35852     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35853     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35854     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35855     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35856     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35857     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35858     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35859     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35860     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35861     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35862     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35863     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35864     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35865     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35866     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35867     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35868     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35869     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35870     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35871     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35872     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35873     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35874     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35875     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35876
35877   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35878 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35879    { (exit 1); exit 1; }; };;
35880   esac
35881 done
35882
35883
35884 # If the user did not use the arguments to specify the items to instantiate,
35885 # then the envvar interface is used.  Set only those that are not.
35886 # We use the long form for the default assignment because of an extremely
35887 # bizarre bug on SunOS 4.1.3.
35888 if $ac_need_defaults; then
35889   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35890   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35891   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35892 fi
35893
35894 # Have a temporary directory for convenience.  Make it in the build tree
35895 # simply because there is no reason against having it here, and in addition,
35896 # creating and moving files from /tmp can sometimes cause problems.
35897 # Hook for its removal unless debugging.
35898 # Note that there is a small window in which the directory will not be cleaned:
35899 # after its creation but before its name has been assigned to `$tmp'.
35900 $debug ||
35901 {
35902   tmp=
35903   trap 'exit_status=$?
35904   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35905 ' 0
35906   trap '{ (exit 1); exit 1; }' 1 2 13 15
35907 }
35908 # Create a (secure) tmp directory for tmp files.
35909
35910 {
35911   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35912   test -n "$tmp" && test -d "$tmp"
35913 }  ||
35914 {
35915   tmp=./conf$$-$RANDOM
35916   (umask 077 && mkdir "$tmp")
35917 } ||
35918 {
35919    echo "$me: cannot create a temporary directory in ." >&2
35920    { (exit 1); exit 1; }
35921 }
35922
35923 #
35924 # Set up the sed scripts for CONFIG_FILES section.
35925 #
35926
35927 # No need to generate the scripts if there are no CONFIG_FILES.
35928 # This happens for instance when ./config.status config.h
35929 if test -n "$CONFIG_FILES"; then
35930
35931 _ACEOF
35932
35933
35934
35935 ac_delim='%!_!# '
35936 for ac_last_try in false false false false false :; do
35937   cat >conf$$subs.sed <<_ACEOF
35938 SHELL!$SHELL$ac_delim
35939 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35940 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35941 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35942 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35943 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35944 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35945 exec_prefix!$exec_prefix$ac_delim
35946 prefix!$prefix$ac_delim
35947 program_transform_name!$program_transform_name$ac_delim
35948 bindir!$bindir$ac_delim
35949 sbindir!$sbindir$ac_delim
35950 libexecdir!$libexecdir$ac_delim
35951 datarootdir!$datarootdir$ac_delim
35952 datadir!$datadir$ac_delim
35953 sysconfdir!$sysconfdir$ac_delim
35954 sharedstatedir!$sharedstatedir$ac_delim
35955 localstatedir!$localstatedir$ac_delim
35956 includedir!$includedir$ac_delim
35957 oldincludedir!$oldincludedir$ac_delim
35958 docdir!$docdir$ac_delim
35959 infodir!$infodir$ac_delim
35960 htmldir!$htmldir$ac_delim
35961 dvidir!$dvidir$ac_delim
35962 pdfdir!$pdfdir$ac_delim
35963 psdir!$psdir$ac_delim
35964 libdir!$libdir$ac_delim
35965 localedir!$localedir$ac_delim
35966 mandir!$mandir$ac_delim
35967 DEFS!$DEFS$ac_delim
35968 ECHO_C!$ECHO_C$ac_delim
35969 ECHO_N!$ECHO_N$ac_delim
35970 ECHO_T!$ECHO_T$ac_delim
35971 LIBS!$LIBS$ac_delim
35972 build_alias!$build_alias$ac_delim
35973 host_alias!$host_alias$ac_delim
35974 target_alias!$target_alias$ac_delim
35975 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35976 subdirs!$subdirs$ac_delim
35977 build!$build$ac_delim
35978 build_cpu!$build_cpu$ac_delim
35979 build_vendor!$build_vendor$ac_delim
35980 build_os!$build_os$ac_delim
35981 host!$host$ac_delim
35982 host_cpu!$host_cpu$ac_delim
35983 host_vendor!$host_vendor$ac_delim
35984 host_os!$host_os$ac_delim
35985 target!$target$ac_delim
35986 target_cpu!$target_cpu$ac_delim
35987 target_vendor!$target_vendor$ac_delim
35988 target_os!$target_os$ac_delim
35989 OS!$OS$ac_delim
35990 LINKALL!$LINKALL$ac_delim
35991 NOLINKALL!$NOLINKALL$ac_delim
35992 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35993 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35994 ARCH!$ARCH$ac_delim
35995 ENDIAN!$ENDIAN$ac_delim
35996 CC!$CC$ac_delim
35997 CFLAGS!$CFLAGS$ac_delim
35998 LDFLAGS!$LDFLAGS$ac_delim
35999 CPPFLAGS!$CPPFLAGS$ac_delim
36000 ac_ct_CC!$ac_ct_CC$ac_delim
36001 EXEEXT!$EXEEXT$ac_delim
36002 OBJEXT!$OBJEXT$ac_delim
36003 CPP!$CPP$ac_delim
36004 GREP!$GREP$ac_delim
36005 EGREP!$EGREP$ac_delim
36006 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36007 BUILD_CC!$BUILD_CC$ac_delim
36008 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36009 BUILD_CXX!$BUILD_CXX$ac_delim
36010 CVSBUILD!$CVSBUILD$ac_delim
36011 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36012 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36013 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36014 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36015 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36016 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36017 JIT!$JIT$ac_delim
36018 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36019 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36020 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36021 ENABLE_PIC!$ENABLE_PIC$ac_delim
36022 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36023 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36024 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36025 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36026 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36027 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36028 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36029 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36030 CXX!$CXX$ac_delim
36031 CXXFLAGS!$CXXFLAGS$ac_delim
36032 ac_ct_CXX!$ac_ct_CXX$ac_delim
36033 NM!$NM$ac_delim
36034 ifGNUmake!$ifGNUmake$ac_delim
36035 _ACEOF
36036
36037   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36038     break
36039   elif $ac_last_try; then
36040     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36041 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36042    { (exit 1); exit 1; }; }
36043   else
36044     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36045   fi
36046 done
36047
36048 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36049 if test -n "$ac_eof"; then
36050   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36051   ac_eof=`expr $ac_eof + 1`
36052 fi
36053
36054 cat >>$CONFIG_STATUS <<_ACEOF
36055 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36057 _ACEOF
36058 sed '
36059 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36060 s/^/s,@/; s/!/@,|#_!!_#|/
36061 :n
36062 t n
36063 s/'"$ac_delim"'$/,g/; t
36064 s/$/\\/; p
36065 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36066 ' >>$CONFIG_STATUS <conf$$subs.sed
36067 rm -f conf$$subs.sed
36068 cat >>$CONFIG_STATUS <<_ACEOF
36069 CEOF$ac_eof
36070 _ACEOF
36071
36072
36073 ac_delim='%!_!# '
36074 for ac_last_try in false false false false false :; do
36075   cat >conf$$subs.sed <<_ACEOF
36076 LN_S!$LN_S$ac_delim
36077 CMP!$CMP$ac_delim
36078 CP!$CP$ac_delim
36079 DATE!$DATE$ac_delim
36080 FIND!$FIND$ac_delim
36081 MKDIR!$MKDIR$ac_delim
36082 MV!$MV$ac_delim
36083 RANLIB!$RANLIB$ac_delim
36084 RM!$RM$ac_delim
36085 SED!$SED$ac_delim
36086 TAR!$TAR$ac_delim
36087 BINPWD!$BINPWD$ac_delim
36088 GRAPHVIZ!$GRAPHVIZ$ac_delim
36089 DOT!$DOT$ac_delim
36090 FDP!$FDP$ac_delim
36091 NEATO!$NEATO$ac_delim
36092 TWOPI!$TWOPI$ac_delim
36093 CIRCO!$CIRCO$ac_delim
36094 GV!$GV$ac_delim
36095 DOTTY!$DOTTY$ac_delim
36096 PERL!$PERL$ac_delim
36097 HAVE_PERL!$HAVE_PERL$ac_delim
36098 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36099 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36100 INSTALL_DATA!$INSTALL_DATA$ac_delim
36101 BZIP2!$BZIP2$ac_delim
36102 DOXYGEN!$DOXYGEN$ac_delim
36103 GROFF!$GROFF$ac_delim
36104 GZIP!$GZIP$ac_delim
36105 POD2HTML!$POD2HTML$ac_delim
36106 POD2MAN!$POD2MAN$ac_delim
36107 RUNTEST!$RUNTEST$ac_delim
36108 TCLSH!$TCLSH$ac_delim
36109 ZIP!$ZIP$ac_delim
36110 OCAMLC!$OCAMLC$ac_delim
36111 OCAMLOPT!$OCAMLOPT$ac_delim
36112 OCAMLDEP!$OCAMLDEP$ac_delim
36113 OCAMLDOC!$OCAMLDOC$ac_delim
36114 GAS!$GAS$ac_delim
36115 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36116 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36117 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36118 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36119 LIBADD_DL!$LIBADD_DL$ac_delim
36120 ECHO!$ECHO$ac_delim
36121 AR!$AR$ac_delim
36122 STRIP!$STRIP$ac_delim
36123 CXXCPP!$CXXCPP$ac_delim
36124 F77!$F77$ac_delim
36125 FFLAGS!$FFLAGS$ac_delim
36126 ac_ct_F77!$ac_ct_F77$ac_delim
36127 LIBTOOL!$LIBTOOL$ac_delim
36128 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36129 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36130 LLVMGCC!$LLVMGCC$ac_delim
36131 LLVMGXX!$LLVMGXX$ac_delim
36132 USE_UDIS86!$USE_UDIS86$ac_delim
36133 USE_OPROFILE!$USE_OPROFILE$ac_delim
36134 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36135 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36136 ALLOCA!$ALLOCA$ac_delim
36137 MMAP_FILE!$MMAP_FILE$ac_delim
36138 LLVMCC1!$LLVMCC1$ac_delim
36139 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36140 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36141 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36142 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36143 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36144 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36145 SHLIBEXT!$SHLIBEXT$ac_delim
36146 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36147 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36148 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36149 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36150 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36151 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36152 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36153 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36154 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36155 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36156 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36157 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36158 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36159 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36160 RPATH!$RPATH$ac_delim
36161 RDYNAMIC!$RDYNAMIC$ac_delim
36162 LIBOBJS!$LIBOBJS$ac_delim
36163 LTLIBOBJS!$LTLIBOBJS$ac_delim
36164 _ACEOF
36165
36166   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
36167     break
36168   elif $ac_last_try; then
36169     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36170 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36171    { (exit 1); exit 1; }; }
36172   else
36173     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36174   fi
36175 done
36176
36177 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36178 if test -n "$ac_eof"; then
36179   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36180   ac_eof=`expr $ac_eof + 1`
36181 fi
36182
36183 cat >>$CONFIG_STATUS <<_ACEOF
36184 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36186 _ACEOF
36187 sed '
36188 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36189 s/^/s,@/; s/!/@,|#_!!_#|/
36190 :n
36191 t n
36192 s/'"$ac_delim"'$/,g/; t
36193 s/$/\\/; p
36194 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36195 ' >>$CONFIG_STATUS <conf$$subs.sed
36196 rm -f conf$$subs.sed
36197 cat >>$CONFIG_STATUS <<_ACEOF
36198 :end
36199 s/|#_!!_#|//g
36200 CEOF$ac_eof
36201 _ACEOF
36202
36203
36204 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36205 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36206 # trailing colons and then remove the whole line if VPATH becomes empty
36207 # (actually we leave an empty line to preserve line numbers).
36208 if test "x$srcdir" = x.; then
36209   ac_vpsub='/^[  ]*VPATH[        ]*=/{
36210 s/:*\$(srcdir):*/:/
36211 s/:*\${srcdir}:*/:/
36212 s/:*@srcdir@:*/:/
36213 s/^\([^=]*=[     ]*\):*/\1/
36214 s/:*$//
36215 s/^[^=]*=[       ]*$//
36216 }'
36217 fi
36218
36219 cat >>$CONFIG_STATUS <<\_ACEOF
36220 fi # test -n "$CONFIG_FILES"
36221
36222
36223 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
36224 do
36225   case $ac_tag in
36226   :[FHLC]) ac_mode=$ac_tag; continue;;
36227   esac
36228   case $ac_mode$ac_tag in
36229   :[FHL]*:*);;
36230   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36231 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36232    { (exit 1); exit 1; }; };;
36233   :[FH]-) ac_tag=-:-;;
36234   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36235   esac
36236   ac_save_IFS=$IFS
36237   IFS=:
36238   set x $ac_tag
36239   IFS=$ac_save_IFS
36240   shift
36241   ac_file=$1
36242   shift
36243
36244   case $ac_mode in
36245   :L) ac_source=$1;;
36246   :[FH])
36247     ac_file_inputs=
36248     for ac_f
36249     do
36250       case $ac_f in
36251       -) ac_f="$tmp/stdin";;
36252       *) # Look for the file first in the build tree, then in the source tree
36253          # (if the path is not absolute).  The absolute path cannot be DOS-style,
36254          # because $ac_f cannot contain `:'.
36255          test -f "$ac_f" ||
36256            case $ac_f in
36257            [\\/$]*) false;;
36258            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36259            esac ||
36260            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36261 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36262    { (exit 1); exit 1; }; };;
36263       esac
36264       ac_file_inputs="$ac_file_inputs $ac_f"
36265     done
36266
36267     # Let's still pretend it is `configure' which instantiates (i.e., don't
36268     # use $as_me), people would be surprised to read:
36269     #    /* config.h.  Generated by config.status.  */
36270     configure_input="Generated from "`IFS=:
36271           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36272     if test x"$ac_file" != x-; then
36273       configure_input="$ac_file.  $configure_input"
36274       { echo "$as_me:$LINENO: creating $ac_file" >&5
36275 echo "$as_me: creating $ac_file" >&6;}
36276     fi
36277
36278     case $ac_tag in
36279     *:-:* | *:-) cat >"$tmp/stdin";;
36280     esac
36281     ;;
36282   esac
36283
36284   ac_dir=`$as_dirname -- "$ac_file" ||
36285 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36286          X"$ac_file" : 'X\(//\)[^/]' \| \
36287          X"$ac_file" : 'X\(//\)$' \| \
36288          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36289 echo X"$ac_file" |
36290     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36291             s//\1/
36292             q
36293           }
36294           /^X\(\/\/\)[^/].*/{
36295             s//\1/
36296             q
36297           }
36298           /^X\(\/\/\)$/{
36299             s//\1/
36300             q
36301           }
36302           /^X\(\/\).*/{
36303             s//\1/
36304             q
36305           }
36306           s/.*/./; q'`
36307   { as_dir="$ac_dir"
36308   case $as_dir in #(
36309   -*) as_dir=./$as_dir;;
36310   esac
36311   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36312     as_dirs=
36313     while :; do
36314       case $as_dir in #(
36315       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36316       *) as_qdir=$as_dir;;
36317       esac
36318       as_dirs="'$as_qdir' $as_dirs"
36319       as_dir=`$as_dirname -- "$as_dir" ||
36320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36321          X"$as_dir" : 'X\(//\)[^/]' \| \
36322          X"$as_dir" : 'X\(//\)$' \| \
36323          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36324 echo X"$as_dir" |
36325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36326             s//\1/
36327             q
36328           }
36329           /^X\(\/\/\)[^/].*/{
36330             s//\1/
36331             q
36332           }
36333           /^X\(\/\/\)$/{
36334             s//\1/
36335             q
36336           }
36337           /^X\(\/\).*/{
36338             s//\1/
36339             q
36340           }
36341           s/.*/./; q'`
36342       test -d "$as_dir" && break
36343     done
36344     test -z "$as_dirs" || eval "mkdir $as_dirs"
36345   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36346 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36347    { (exit 1); exit 1; }; }; }
36348   ac_builddir=.
36349
36350 case "$ac_dir" in
36351 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36352 *)
36353   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36354   # A ".." for each directory in $ac_dir_suffix.
36355   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36356   case $ac_top_builddir_sub in
36357   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36358   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36359   esac ;;
36360 esac
36361 ac_abs_top_builddir=$ac_pwd
36362 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36363 # for backward compatibility:
36364 ac_top_builddir=$ac_top_build_prefix
36365
36366 case $srcdir in
36367   .)  # We are building in place.
36368     ac_srcdir=.
36369     ac_top_srcdir=$ac_top_builddir_sub
36370     ac_abs_top_srcdir=$ac_pwd ;;
36371   [\\/]* | ?:[\\/]* )  # Absolute name.
36372     ac_srcdir=$srcdir$ac_dir_suffix;
36373     ac_top_srcdir=$srcdir
36374     ac_abs_top_srcdir=$srcdir ;;
36375   *) # Relative name.
36376     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36377     ac_top_srcdir=$ac_top_build_prefix$srcdir
36378     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36379 esac
36380 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36381
36382
36383   case $ac_mode in
36384   :F)
36385   #
36386   # CONFIG_FILE
36387   #
36388
36389   case $INSTALL in
36390   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36391   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36392   esac
36393 _ACEOF
36394
36395 cat >>$CONFIG_STATUS <<\_ACEOF
36396 # If the template does not know about datarootdir, expand it.
36397 # FIXME: This hack should be removed a few years after 2.60.
36398 ac_datarootdir_hack=; ac_datarootdir_seen=
36399
36400 case `sed -n '/datarootdir/ {
36401   p
36402   q
36403 }
36404 /@datadir@/p
36405 /@docdir@/p
36406 /@infodir@/p
36407 /@localedir@/p
36408 /@mandir@/p
36409 ' $ac_file_inputs` in
36410 *datarootdir*) ac_datarootdir_seen=yes;;
36411 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36412   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36413 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36414 _ACEOF
36415 cat >>$CONFIG_STATUS <<_ACEOF
36416   ac_datarootdir_hack='
36417   s&@datadir@&$datadir&g
36418   s&@docdir@&$docdir&g
36419   s&@infodir@&$infodir&g
36420   s&@localedir@&$localedir&g
36421   s&@mandir@&$mandir&g
36422     s&\\\${datarootdir}&$datarootdir&g' ;;
36423 esac
36424 _ACEOF
36425
36426 # Neutralize VPATH when `$srcdir' = `.'.
36427 # Shell code in configure.ac might set extrasub.
36428 # FIXME: do we really want to maintain this feature?
36429 cat >>$CONFIG_STATUS <<_ACEOF
36430   sed "$ac_vpsub
36431 $extrasub
36432 _ACEOF
36433 cat >>$CONFIG_STATUS <<\_ACEOF
36434 :t
36435 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36436 s&@configure_input@&$configure_input&;t t
36437 s&@top_builddir@&$ac_top_builddir_sub&;t t
36438 s&@srcdir@&$ac_srcdir&;t t
36439 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36440 s&@top_srcdir@&$ac_top_srcdir&;t t
36441 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36442 s&@builddir@&$ac_builddir&;t t
36443 s&@abs_builddir@&$ac_abs_builddir&;t t
36444 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36445 s&@INSTALL@&$ac_INSTALL&;t t
36446 $ac_datarootdir_hack
36447 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36448
36449 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36450   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36451   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36452   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36453 which seems to be undefined.  Please make sure it is defined." >&5
36454 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36455 which seems to be undefined.  Please make sure it is defined." >&2;}
36456
36457   rm -f "$tmp/stdin"
36458   case $ac_file in
36459   -) cat "$tmp/out"; rm -f "$tmp/out";;
36460   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36461   esac
36462  ;;
36463   :H)
36464   #
36465   # CONFIG_HEADER
36466   #
36467 _ACEOF
36468
36469 # Transform confdefs.h into a sed script `conftest.defines', that
36470 # substitutes the proper values into config.h.in to produce config.h.
36471 rm -f conftest.defines conftest.tail
36472 # First, append a space to every undef/define line, to ease matching.
36473 echo 's/$/ /' >conftest.defines
36474 # Then, protect against being on the right side of a sed subst, or in
36475 # an unquoted here document, in config.status.  If some macros were
36476 # called several times there might be several #defines for the same
36477 # symbol, which is useless.  But do not sort them, since the last
36478 # AC_DEFINE must be honored.
36479 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36480 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36481 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36482 # PARAMS is the parameter list in the macro definition--in most cases, it's
36483 # just an empty string.
36484 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
36485 ac_dB='\\)[      (].*,\\1define\\2'
36486 ac_dC=' '
36487 ac_dD=' ,'
36488
36489 uniq confdefs.h |
36490   sed -n '
36491         t rset
36492         :rset
36493         s/^[     ]*#[    ]*define[       ][      ]*//
36494         t ok
36495         d
36496         :ok
36497         s/[\\&,]/\\&/g
36498         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36499         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36500   ' >>conftest.defines
36501
36502 # Remove the space that was appended to ease matching.
36503 # Then replace #undef with comments.  This is necessary, for
36504 # example, in the case of _POSIX_SOURCE, which is predefined and required
36505 # on some systems where configure will not decide to define it.
36506 # (The regexp can be short, since the line contains either #define or #undef.)
36507 echo 's/ $//
36508 s,^[     #]*u.*,/* & */,' >>conftest.defines
36509
36510 # Break up conftest.defines:
36511 ac_max_sed_lines=50
36512
36513 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36514 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36515 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36516 # et cetera.
36517 ac_in='$ac_file_inputs'
36518 ac_out='"$tmp/out1"'
36519 ac_nxt='"$tmp/out2"'
36520
36521 while :
36522 do
36523   # Write a here document:
36524     cat >>$CONFIG_STATUS <<_ACEOF
36525     # First, check the format of the line:
36526     cat >"\$tmp/defines.sed" <<\\CEOF
36527 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
36528 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
36529 b
36530 :def
36531 _ACEOF
36532   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36533   echo 'CEOF
36534     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36535   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36536   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36537   grep . conftest.tail >/dev/null || break
36538   rm -f conftest.defines
36539   mv conftest.tail conftest.defines
36540 done
36541 rm -f conftest.defines conftest.tail
36542
36543 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36544 cat >>$CONFIG_STATUS <<\_ACEOF
36545   if test x"$ac_file" != x-; then
36546     echo "/* $configure_input  */" >"$tmp/config.h"
36547     cat "$ac_result" >>"$tmp/config.h"
36548     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36549       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36550 echo "$as_me: $ac_file is unchanged" >&6;}
36551     else
36552       rm -f $ac_file
36553       mv "$tmp/config.h" $ac_file
36554     fi
36555   else
36556     echo "/* $configure_input  */"
36557     cat "$ac_result"
36558   fi
36559   rm -f "$tmp/out12"
36560  ;;
36561
36562   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36563 echo "$as_me: executing $ac_file commands" >&6;}
36564  ;;
36565   esac
36566
36567
36568   case $ac_file$ac_mode in
36569     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36570    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36571     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36572    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36573     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36574    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36575     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36576    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
36577     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36578    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36579     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36580    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36581     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36582    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36583     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36584    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36585     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36586    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36587     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36588    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36589     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36590    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
36591     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36592    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36593     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36594    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36595
36596   esac
36597 done # for ac_tag
36598
36599
36600 { (exit 0); exit 0; }
36601 _ACEOF
36602 chmod +x $CONFIG_STATUS
36603 ac_clean_files=$ac_clean_files_save
36604
36605
36606 # configure is writing to config.log, and then calls config.status.
36607 # config.status does its own redirection, appending to config.log.
36608 # Unfortunately, on DOS this fails, as config.log is still kept open
36609 # by configure, so config.status won't be able to write to it; its
36610 # output is simply discarded.  So we exec the FD to /dev/null,
36611 # effectively closing config.log, so it can be properly (re)opened and
36612 # appended to by config.status.  When coming back to configure, we
36613 # need to make the FD available again.
36614 if test "$no_create" != yes; then
36615   ac_cs_success=:
36616   ac_config_status_args=
36617   test "$silent" = yes &&
36618     ac_config_status_args="$ac_config_status_args --quiet"
36619   exec 5>/dev/null
36620   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36621   exec 5>>config.log
36622   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36623   # would make configure fail if this is the last instruction.
36624   $ac_cs_success || { (exit 1); exit 1; }
36625 fi
36626
36627 #
36628 # CONFIG_SUBDIRS section.
36629 #
36630 if test "$no_recursion" != yes; then
36631
36632   # Remove --cache-file and --srcdir arguments so they do not pile up.
36633   ac_sub_configure_args=
36634   ac_prev=
36635   eval "set x $ac_configure_args"
36636   shift
36637   for ac_arg
36638   do
36639     if test -n "$ac_prev"; then
36640       ac_prev=
36641       continue
36642     fi
36643     case $ac_arg in
36644     -cache-file | --cache-file | --cache-fil | --cache-fi \
36645     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36646       ac_prev=cache_file ;;
36647     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36648     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36649     | --c=*)
36650       ;;
36651     --config-cache | -C)
36652       ;;
36653     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36654       ac_prev=srcdir ;;
36655     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36656       ;;
36657     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36658       ac_prev=prefix ;;
36659     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36660       ;;
36661     *)
36662       case $ac_arg in
36663       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36664       esac
36665       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36666     esac
36667   done
36668
36669   # Always prepend --prefix to ensure using the same prefix
36670   # in subdir configurations.
36671   ac_arg="--prefix=$prefix"
36672   case $ac_arg in
36673   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36674   esac
36675   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36676
36677   ac_popdir=`pwd`
36678   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36679
36680     # Do not complain, so a configure script can configure whichever
36681     # parts of a large source tree are present.
36682     test -d "$srcdir/$ac_dir" || continue
36683
36684     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36685     echo "$as_me:$LINENO: $ac_msg" >&5
36686     echo "$ac_msg" >&6
36687     { as_dir="$ac_dir"
36688   case $as_dir in #(
36689   -*) as_dir=./$as_dir;;
36690   esac
36691   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36692     as_dirs=
36693     while :; do
36694       case $as_dir in #(
36695       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36696       *) as_qdir=$as_dir;;
36697       esac
36698       as_dirs="'$as_qdir' $as_dirs"
36699       as_dir=`$as_dirname -- "$as_dir" ||
36700 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36701          X"$as_dir" : 'X\(//\)[^/]' \| \
36702          X"$as_dir" : 'X\(//\)$' \| \
36703          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36704 echo X"$as_dir" |
36705     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36706             s//\1/
36707             q
36708           }
36709           /^X\(\/\/\)[^/].*/{
36710             s//\1/
36711             q
36712           }
36713           /^X\(\/\/\)$/{
36714             s//\1/
36715             q
36716           }
36717           /^X\(\/\).*/{
36718             s//\1/
36719             q
36720           }
36721           s/.*/./; q'`
36722       test -d "$as_dir" && break
36723     done
36724     test -z "$as_dirs" || eval "mkdir $as_dirs"
36725   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36726 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36727    { (exit 1); exit 1; }; }; }
36728     ac_builddir=.
36729
36730 case "$ac_dir" in
36731 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36732 *)
36733   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36734   # A ".." for each directory in $ac_dir_suffix.
36735   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36736   case $ac_top_builddir_sub in
36737   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36738   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36739   esac ;;
36740 esac
36741 ac_abs_top_builddir=$ac_pwd
36742 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36743 # for backward compatibility:
36744 ac_top_builddir=$ac_top_build_prefix
36745
36746 case $srcdir in
36747   .)  # We are building in place.
36748     ac_srcdir=.
36749     ac_top_srcdir=$ac_top_builddir_sub
36750     ac_abs_top_srcdir=$ac_pwd ;;
36751   [\\/]* | ?:[\\/]* )  # Absolute name.
36752     ac_srcdir=$srcdir$ac_dir_suffix;
36753     ac_top_srcdir=$srcdir
36754     ac_abs_top_srcdir=$srcdir ;;
36755   *) # Relative name.
36756     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36757     ac_top_srcdir=$ac_top_build_prefix$srcdir
36758     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36759 esac
36760 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36761
36762
36763     cd "$ac_dir"
36764
36765     # Check for guested configure; otherwise get Cygnus style configure.
36766     if test -f "$ac_srcdir/configure.gnu"; then
36767       ac_sub_configure=$ac_srcdir/configure.gnu
36768     elif test -f "$ac_srcdir/configure"; then
36769       ac_sub_configure=$ac_srcdir/configure
36770     elif test -f "$ac_srcdir/configure.in"; then
36771       # This should be Cygnus configure.
36772       ac_sub_configure=$ac_aux_dir/configure
36773     else
36774       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36775 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36776       ac_sub_configure=
36777     fi
36778
36779     # The recursion is here.
36780     if test -n "$ac_sub_configure"; then
36781       # Make the cache file name correct relative to the subdirectory.
36782       case $cache_file in
36783       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36784       *) # Relative name.
36785         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36786       esac
36787
36788       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36789 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36790       # The eval makes quoting arguments work.
36791       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36792            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36793         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36794 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36795    { (exit 1); exit 1; }; }
36796     fi
36797
36798     cd "$ac_popdir"
36799   done
36800 fi
36801