Add failure tests to APInt unit test.
[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 LLVM_COMPACT_SENTINELS
836 ENABLE_EXPENSIVE_CHECKS
837 EXPENSIVE_CHECKS
838 DEBUG_RUNTIME
839 JIT
840 TARGET_HAS_JIT
841 ENABLE_DOXYGEN
842 ENABLE_THREADS
843 ENABLE_PIC
844 TARGETS_TO_BUILD
845 LLVM_ENUM_TARGETS
846 LLVM_ENUM_ASM_PRINTERS
847 LLVM_ENUM_ASM_PARSERS
848 ENABLE_CBE_PRINTF_A
849 EXTRA_OPTIONS
850 BINUTILS_INCDIR
851 ENABLE_LLVMC_DYNAMIC
852 ENABLE_LLVMC_DYNAMIC_PLUGINS
853 CXX
854 CXXFLAGS
855 ac_ct_CXX
856 NM
857 ifGNUmake
858 LN_S
859 CMP
860 CP
861 DATE
862 FIND
863 MKDIR
864 MV
865 RANLIB
866 RM
867 SED
868 TAR
869 BINPWD
870 GRAPHVIZ
871 DOT
872 FDP
873 NEATO
874 TWOPI
875 CIRCO
876 GV
877 DOTTY
878 PERL
879 HAVE_PERL
880 INSTALL_PROGRAM
881 INSTALL_SCRIPT
882 INSTALL_DATA
883 BZIP2
884 DOXYGEN
885 GROFF
886 GZIP
887 POD2HTML
888 POD2MAN
889 RUNTEST
890 TCLSH
891 ZIP
892 OCAMLC
893 OCAMLOPT
894 OCAMLDEP
895 OCAMLDOC
896 GAS
897 INSTALL_LTDL_TRUE
898 INSTALL_LTDL_FALSE
899 CONVENIENCE_LTDL_TRUE
900 CONVENIENCE_LTDL_FALSE
901 LIBADD_DL
902 ECHO
903 AR
904 STRIP
905 CXXCPP
906 F77
907 FFLAGS
908 ac_ct_F77
909 LIBTOOL
910 LLVMGCCCOMMAND
911 LLVMGXXCOMMAND
912 LLVMGCC
913 LLVMGXX
914 USE_UDIS86
915 USE_OPROFILE
916 HAVE_PTHREAD
917 HUGE_VAL_SANITY
918 ALLOCA
919 MMAP_FILE
920 LLVMCC1
921 LLVMCC1PLUS
922 LLVMGCCDIR
923 LLVMGCCLIBEXEC
924 LLVMGCC_VERSION
925 LLVMGCC_MAJVERS
926 LLVMGCC_LANGS
927 SHLIBEXT
928 LLVM_PREFIX
929 LLVM_BINDIR
930 LLVM_LIBDIR
931 LLVM_DATADIR
932 LLVM_DOCSDIR
933 LLVM_ETCDIR
934 LLVM_INCLUDEDIR
935 LLVM_INFODIR
936 LLVM_MANDIR
937 LLVM_CONFIGTIME
938 BINDINGS_TO_BUILD
939 ALL_BINDINGS
940 OCAML_LIBDIR
941 ENABLE_VISIBILITY_INLINES_HIDDEN
942 RPATH
943 RDYNAMIC
944 LIBOBJS
945 LTLIBOBJS'
946 ac_subst_files=''
947       ac_precious_vars='build_alias
948 host_alias
949 target_alias
950 CC
951 CFLAGS
952 LDFLAGS
953 CPPFLAGS
954 CPP
955 CXX
956 CXXFLAGS
957 CCC
958 CXXCPP
959 F77
960 FFLAGS'
961 ac_subdirs_all='projects/sample
962 projects/privbracket
963 projects/llvm-stacker
964 projects/llvm-test
965 projects/test-suite
966 projects/llvm-reopt
967 projects/llvm-gcc
968 projects/llvm-java
969 projects/llvm-tv
970 projects/llvm-poolalloc
971 projects/poolalloc
972 projects/llvm-kernel'
973
974 # Initialize some variables set by options.
975 ac_init_help=
976 ac_init_version=false
977 # The variables have the same names as the options, with
978 # dashes changed to underlines.
979 cache_file=/dev/null
980 exec_prefix=NONE
981 no_create=
982 no_recursion=
983 prefix=NONE
984 program_prefix=NONE
985 program_suffix=NONE
986 program_transform_name=s,x,x,
987 silent=
988 site=
989 srcdir=
990 verbose=
991 x_includes=NONE
992 x_libraries=NONE
993
994 # Installation directory options.
995 # These are left unexpanded so users can "make install exec_prefix=/foo"
996 # and all the variables that are supposed to be based on exec_prefix
997 # by default will actually change.
998 # Use braces instead of parens because sh, perl, etc. also accept them.
999 # (The list follows the same order as the GNU Coding Standards.)
1000 bindir='${exec_prefix}/bin'
1001 sbindir='${exec_prefix}/sbin'
1002 libexecdir='${exec_prefix}/libexec'
1003 datarootdir='${prefix}/share'
1004 datadir='${datarootdir}'
1005 sysconfdir='${prefix}/etc'
1006 sharedstatedir='${prefix}/com'
1007 localstatedir='${prefix}/var'
1008 includedir='${prefix}/include'
1009 oldincludedir='/usr/include'
1010 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1011 infodir='${datarootdir}/info'
1012 htmldir='${docdir}'
1013 dvidir='${docdir}'
1014 pdfdir='${docdir}'
1015 psdir='${docdir}'
1016 libdir='${exec_prefix}/lib'
1017 localedir='${datarootdir}/locale'
1018 mandir='${datarootdir}/man'
1019
1020 ac_prev=
1021 ac_dashdash=
1022 for ac_option
1023 do
1024   # If the previous option needs an argument, assign it.
1025   if test -n "$ac_prev"; then
1026     eval $ac_prev=\$ac_option
1027     ac_prev=
1028     continue
1029   fi
1030
1031   case $ac_option in
1032   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033   *)    ac_optarg=yes ;;
1034   esac
1035
1036   # Accept the important Cygnus configure options, so we can diagnose typos.
1037
1038   case $ac_dashdash$ac_option in
1039   --)
1040     ac_dashdash=yes ;;
1041
1042   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1043     ac_prev=bindir ;;
1044   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1045     bindir=$ac_optarg ;;
1046
1047   -build | --build | --buil | --bui | --bu)
1048     ac_prev=build_alias ;;
1049   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1050     build_alias=$ac_optarg ;;
1051
1052   -cache-file | --cache-file | --cache-fil | --cache-fi \
1053   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1054     ac_prev=cache_file ;;
1055   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1056   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1057     cache_file=$ac_optarg ;;
1058
1059   --config-cache | -C)
1060     cache_file=config.cache ;;
1061
1062   -datadir | --datadir | --datadi | --datad)
1063     ac_prev=datadir ;;
1064   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1065     datadir=$ac_optarg ;;
1066
1067   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1068   | --dataroo | --dataro | --datar)
1069     ac_prev=datarootdir ;;
1070   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1071   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1072     datarootdir=$ac_optarg ;;
1073
1074   -disable-* | --disable-*)
1075     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1076     # Reject names that are not valid shell variable names.
1077     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1078       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1079    { (exit 1); exit 1; }; }
1080     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1081     eval enable_$ac_feature=no ;;
1082
1083   -docdir | --docdir | --docdi | --doc | --do)
1084     ac_prev=docdir ;;
1085   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086     docdir=$ac_optarg ;;
1087
1088   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089     ac_prev=dvidir ;;
1090   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091     dvidir=$ac_optarg ;;
1092
1093   -enable-* | --enable-*)
1094     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095     # Reject names that are not valid shell variable names.
1096     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1097       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1098    { (exit 1); exit 1; }; }
1099     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1100     eval enable_$ac_feature=\$ac_optarg ;;
1101
1102   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104   | --exec | --exe | --ex)
1105     ac_prev=exec_prefix ;;
1106   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108   | --exec=* | --exe=* | --ex=*)
1109     exec_prefix=$ac_optarg ;;
1110
1111   -gas | --gas | --ga | --g)
1112     # Obsolete; use --with-gas.
1113     with_gas=yes ;;
1114
1115   -help | --help | --hel | --he | -h)
1116     ac_init_help=long ;;
1117   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118     ac_init_help=recursive ;;
1119   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120     ac_init_help=short ;;
1121
1122   -host | --host | --hos | --ho)
1123     ac_prev=host_alias ;;
1124   -host=* | --host=* | --hos=* | --ho=*)
1125     host_alias=$ac_optarg ;;
1126
1127   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128     ac_prev=htmldir ;;
1129   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130   | --ht=*)
1131     htmldir=$ac_optarg ;;
1132
1133   -includedir | --includedir | --includedi | --included | --include \
1134   | --includ | --inclu | --incl | --inc)
1135     ac_prev=includedir ;;
1136   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137   | --includ=* | --inclu=* | --incl=* | --inc=*)
1138     includedir=$ac_optarg ;;
1139
1140   -infodir | --infodir | --infodi | --infod | --info | --inf)
1141     ac_prev=infodir ;;
1142   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143     infodir=$ac_optarg ;;
1144
1145   -libdir | --libdir | --libdi | --libd)
1146     ac_prev=libdir ;;
1147   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148     libdir=$ac_optarg ;;
1149
1150   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151   | --libexe | --libex | --libe)
1152     ac_prev=libexecdir ;;
1153   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154   | --libexe=* | --libex=* | --libe=*)
1155     libexecdir=$ac_optarg ;;
1156
1157   -localedir | --localedir | --localedi | --localed | --locale)
1158     ac_prev=localedir ;;
1159   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160     localedir=$ac_optarg ;;
1161
1162   -localstatedir | --localstatedir | --localstatedi | --localstated \
1163   | --localstate | --localstat | --localsta | --localst | --locals)
1164     ac_prev=localstatedir ;;
1165   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1166   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1167     localstatedir=$ac_optarg ;;
1168
1169   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170     ac_prev=mandir ;;
1171   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172     mandir=$ac_optarg ;;
1173
1174   -nfp | --nfp | --nf)
1175     # Obsolete; use --without-fp.
1176     with_fp=no ;;
1177
1178   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179   | --no-cr | --no-c | -n)
1180     no_create=yes ;;
1181
1182   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184     no_recursion=yes ;;
1185
1186   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188   | --oldin | --oldi | --old | --ol | --o)
1189     ac_prev=oldincludedir ;;
1190   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193     oldincludedir=$ac_optarg ;;
1194
1195   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196     ac_prev=prefix ;;
1197   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198     prefix=$ac_optarg ;;
1199
1200   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201   | --program-pre | --program-pr | --program-p)
1202     ac_prev=program_prefix ;;
1203   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205     program_prefix=$ac_optarg ;;
1206
1207   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208   | --program-suf | --program-su | --program-s)
1209     ac_prev=program_suffix ;;
1210   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212     program_suffix=$ac_optarg ;;
1213
1214   -program-transform-name | --program-transform-name \
1215   | --program-transform-nam | --program-transform-na \
1216   | --program-transform-n | --program-transform- \
1217   | --program-transform | --program-transfor \
1218   | --program-transfo | --program-transf \
1219   | --program-trans | --program-tran \
1220   | --progr-tra | --program-tr | --program-t)
1221     ac_prev=program_transform_name ;;
1222   -program-transform-name=* | --program-transform-name=* \
1223   | --program-transform-nam=* | --program-transform-na=* \
1224   | --program-transform-n=* | --program-transform-=* \
1225   | --program-transform=* | --program-transfor=* \
1226   | --program-transfo=* | --program-transf=* \
1227   | --program-trans=* | --program-tran=* \
1228   | --progr-tra=* | --program-tr=* | --program-t=*)
1229     program_transform_name=$ac_optarg ;;
1230
1231   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232     ac_prev=pdfdir ;;
1233   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234     pdfdir=$ac_optarg ;;
1235
1236   -psdir | --psdir | --psdi | --psd | --ps)
1237     ac_prev=psdir ;;
1238   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239     psdir=$ac_optarg ;;
1240
1241   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242   | -silent | --silent | --silen | --sile | --sil)
1243     silent=yes ;;
1244
1245   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246     ac_prev=sbindir ;;
1247   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248   | --sbi=* | --sb=*)
1249     sbindir=$ac_optarg ;;
1250
1251   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253   | --sharedst | --shareds | --shared | --share | --shar \
1254   | --sha | --sh)
1255     ac_prev=sharedstatedir ;;
1256   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259   | --sha=* | --sh=*)
1260     sharedstatedir=$ac_optarg ;;
1261
1262   -site | --site | --sit)
1263     ac_prev=site ;;
1264   -site=* | --site=* | --sit=*)
1265     site=$ac_optarg ;;
1266
1267   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268     ac_prev=srcdir ;;
1269   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270     srcdir=$ac_optarg ;;
1271
1272   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273   | --syscon | --sysco | --sysc | --sys | --sy)
1274     ac_prev=sysconfdir ;;
1275   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277     sysconfdir=$ac_optarg ;;
1278
1279   -target | --target | --targe | --targ | --tar | --ta | --t)
1280     ac_prev=target_alias ;;
1281   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282     target_alias=$ac_optarg ;;
1283
1284   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285     verbose=yes ;;
1286
1287   -version | --version | --versio | --versi | --vers | -V)
1288     ac_init_version=: ;;
1289
1290   -with-* | --with-*)
1291     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292     # Reject names that are not valid shell variable names.
1293     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1294       { echo "$as_me: error: invalid package name: $ac_package" >&2
1295    { (exit 1); exit 1; }; }
1296     ac_package=`echo $ac_package| sed 's/-/_/g'`
1297     eval with_$ac_package=\$ac_optarg ;;
1298
1299   -without-* | --without-*)
1300     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301     # Reject names that are not valid shell variable names.
1302     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1303       { echo "$as_me: error: invalid package name: $ac_package" >&2
1304    { (exit 1); exit 1; }; }
1305     ac_package=`echo $ac_package | sed 's/-/_/g'`
1306     eval with_$ac_package=no ;;
1307
1308   --x)
1309     # Obsolete; use --with-x.
1310     with_x=yes ;;
1311
1312   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313   | --x-incl | --x-inc | --x-in | --x-i)
1314     ac_prev=x_includes ;;
1315   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317     x_includes=$ac_optarg ;;
1318
1319   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321     ac_prev=x_libraries ;;
1322   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324     x_libraries=$ac_optarg ;;
1325
1326   -*) { echo "$as_me: error: unrecognized option: $ac_option
1327 Try \`$0 --help' for more information." >&2
1328    { (exit 1); exit 1; }; }
1329     ;;
1330
1331   *=*)
1332     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333     # Reject names that are not valid shell variable names.
1334     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1335       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1336    { (exit 1); exit 1; }; }
1337     eval $ac_envvar=\$ac_optarg
1338     export $ac_envvar ;;
1339
1340   *)
1341     # FIXME: should be removed in autoconf 3.0.
1342     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1346     ;;
1347
1348   esac
1349 done
1350
1351 if test -n "$ac_prev"; then
1352   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353   { echo "$as_me: error: missing argument to $ac_option" >&2
1354    { (exit 1); exit 1; }; }
1355 fi
1356
1357 # Be sure to have absolute directory names.
1358 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359                 datadir sysconfdir sharedstatedir localstatedir includedir \
1360                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361                 libdir localedir mandir
1362 do
1363   eval ac_val=\$$ac_var
1364   case $ac_val in
1365     [\\/$]* | ?:[\\/]* )  continue;;
1366     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367   esac
1368   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1369    { (exit 1); exit 1; }; }
1370 done
1371
1372 # There might be people who depend on the old broken behavior: `$host'
1373 # used to hold the argument of --host etc.
1374 # FIXME: To remove some day.
1375 build=$build_alias
1376 host=$host_alias
1377 target=$target_alias
1378
1379 # FIXME: To remove some day.
1380 if test "x$host_alias" != x; then
1381   if test "x$build_alias" = x; then
1382     cross_compiling=maybe
1383     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1384     If a cross compiler is detected then cross compile mode will be used." >&2
1385   elif test "x$build_alias" != "x$host_alias"; then
1386     cross_compiling=yes
1387   fi
1388 fi
1389
1390 ac_tool_prefix=
1391 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392
1393 test "$silent" = yes && exec 6>/dev/null
1394
1395
1396 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397 ac_ls_di=`ls -di .` &&
1398 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1399   { echo "$as_me: error: Working directory cannot be determined" >&2
1400    { (exit 1); exit 1; }; }
1401 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1402   { echo "$as_me: error: pwd does not report name of working directory" >&2
1403    { (exit 1); exit 1; }; }
1404
1405
1406 # Find the source files, if location was not specified.
1407 if test -z "$srcdir"; then
1408   ac_srcdir_defaulted=yes
1409   # Try the directory containing this script, then the parent directory.
1410   ac_confdir=`$as_dirname -- "$0" ||
1411 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1412          X"$0" : 'X\(//\)[^/]' \| \
1413          X"$0" : 'X\(//\)$' \| \
1414          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1415 echo X"$0" |
1416     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1417             s//\1/
1418             q
1419           }
1420           /^X\(\/\/\)[^/].*/{
1421             s//\1/
1422             q
1423           }
1424           /^X\(\/\/\)$/{
1425             s//\1/
1426             q
1427           }
1428           /^X\(\/\).*/{
1429             s//\1/
1430             q
1431           }
1432           s/.*/./; q'`
1433   srcdir=$ac_confdir
1434   if test ! -r "$srcdir/$ac_unique_file"; then
1435     srcdir=..
1436   fi
1437 else
1438   ac_srcdir_defaulted=no
1439 fi
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1442   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1443    { (exit 1); exit 1; }; }
1444 fi
1445 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 ac_abs_confdir=`(
1447         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1448    { (exit 1); exit 1; }; }
1449         pwd)`
1450 # When building in place, set srcdir=.
1451 if test "$ac_abs_confdir" = "$ac_pwd"; then
1452   srcdir=.
1453 fi
1454 # Remove unnecessary trailing slashes from srcdir.
1455 # Double slashes in file names in object file debugging info
1456 # mess up M-x gdb in Emacs.
1457 case $srcdir in
1458 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459 esac
1460 for ac_var in $ac_precious_vars; do
1461   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1462   eval ac_env_${ac_var}_value=\$${ac_var}
1463   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1464   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1465 done
1466
1467 #
1468 # Report the --help message.
1469 #
1470 if test "$ac_init_help" = "long"; then
1471   # Omit some internal or obsolete options to make the list less imposing.
1472   # This message is too long to be a string in the A/UX 3.1 sh.
1473   cat <<_ACEOF
1474 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1475
1476 Usage: $0 [OPTION]... [VAR=VALUE]...
1477
1478 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1479 VAR=VALUE.  See below for descriptions of some of the useful variables.
1480
1481 Defaults for the options are specified in brackets.
1482
1483 Configuration:
1484   -h, --help              display this help and exit
1485       --help=short        display options specific to this package
1486       --help=recursive    display the short help of all the included packages
1487   -V, --version           display version information and exit
1488   -q, --quiet, --silent   do not print \`checking...' messages
1489       --cache-file=FILE   cache test results in FILE [disabled]
1490   -C, --config-cache      alias for \`--cache-file=config.cache'
1491   -n, --no-create         do not create output files
1492       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1493
1494 Installation directories:
1495   --prefix=PREFIX         install architecture-independent files in PREFIX
1496                           [$ac_default_prefix]
1497   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1498                           [PREFIX]
1499
1500 By default, \`make install' will install all the files in
1501 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1502 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1503 for instance \`--prefix=\$HOME'.
1504
1505 For better control, use the options below.
1506
1507 Fine tuning of the installation directories:
1508   --bindir=DIR           user executables [EPREFIX/bin]
1509   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1510   --libexecdir=DIR       program executables [EPREFIX/libexec]
1511   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1512   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1513   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1514   --libdir=DIR           object code libraries [EPREFIX/lib]
1515   --includedir=DIR       C header files [PREFIX/include]
1516   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1517   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1518   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1519   --infodir=DIR          info documentation [DATAROOTDIR/info]
1520   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1521   --mandir=DIR           man documentation [DATAROOTDIR/man]
1522   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1523   --htmldir=DIR          html documentation [DOCDIR]
1524   --dvidir=DIR           dvi documentation [DOCDIR]
1525   --pdfdir=DIR           pdf documentation [DOCDIR]
1526   --psdir=DIR            ps documentation [DOCDIR]
1527 _ACEOF
1528
1529   cat <<\_ACEOF
1530
1531 System types:
1532   --build=BUILD     configure for building on BUILD [guessed]
1533   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1534   --target=TARGET   configure for building compilers for TARGET [HOST]
1535 _ACEOF
1536 fi
1537
1538 if test -n "$ac_init_help"; then
1539   case $ac_init_help in
1540      short | recursive ) echo "Configuration of llvm 2.6svn:";;
1541    esac
1542   cat <<\_ACEOF
1543
1544 Optional Features:
1545   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1546   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1547   --enable-optimized      Compile with optimizations enabled (default is NO)
1548   --enable-profiling      Compile with profiling enabled (default is NO)
1549   --enable-assertions     Compile with assertion checks enabled (default is
1550                           YES)
1551   --enable-expensive-checks
1552                           Compile with expensive debug checks enabled (default
1553                           is NO)
1554   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1555                           NO)
1556   --enable-jit            Enable Just In Time Compiling (default is YES)
1557   --enable-doxygen        Build doxygen documentation (default is NO)
1558   --enable-threads        Use threads if available (default is YES)
1559   --enable-pic            Build LLVM with Position Independent Code (default
1560                           is YES)
1561   --enable-targets        Build specific host targets:
1562                           all,host-only,{target-name} (default=all)
1563   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1564                           %a (default is YES)
1565   --enable-bindings       Build specific language bindings:
1566                           all,auto,none,{binding-name} (default=auto)
1567   --enable-libffi         Check for the presence of libffi (default is YES)
1568   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1569                           Win32)
1570   --enable-llvmc-dynamic-plugins
1571                           Enable dynamic LLVMC plugins (default is YES)
1572   --enable-ltdl-install   install libltdl
1573   --enable-shared[=PKGS]  build shared libraries
1574                           [default=yes]
1575   --enable-static[=PKGS]  build static libraries
1576                           [default=yes]
1577   --enable-fast-install[=PKGS]
1578                           optimize for fast installation
1579                           [default=yes]
1580   --disable-libtool-lock  avoid locking (might break parallel builds)
1581
1582 Optional Packages:
1583   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1584   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1585   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1586                           searches PATH)
1587   --with-llvmgcc          Specify location of llvm-gcc driver (default
1588                           searches PATH)
1589   --with-llvmgxx          Specify location of llvm-g++ driver (default
1590                           searches PATH)
1591   --with-extra-options    Specify additional options to compile LLVM with
1592   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1593                           is stdlib)
1594   --with-binutils-include Specify path to binutils/include/ containing
1595                           plugin-api.h file for gold plugin.
1596   --with-tclinclude       directory where tcl headers are
1597   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1598   --with-pic              try to use only PIC/non-PIC objects [default=use
1599                           both]
1600   --with-tags[=TAGS]      include additional configurations [automatic]
1601   --with-udis86=<path>    Use udis86 external x86 disassembler library
1602   --with-oprofile=<prefix>
1603                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1604
1605 Some influential environment variables:
1606   CC          C compiler command
1607   CFLAGS      C compiler flags
1608   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1609               nonstandard directory <lib dir>
1610   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1611               you have headers in a nonstandard directory <include dir>
1612   CPP         C preprocessor
1613   CXX         C++ compiler command
1614   CXXFLAGS    C++ compiler flags
1615   CXXCPP      C++ preprocessor
1616   F77         Fortran 77 compiler command
1617   FFLAGS      Fortran 77 compiler flags
1618
1619 Use these variables to override the choices made by `configure' or to help
1620 it to find libraries and programs with nonstandard names/locations.
1621
1622 Report bugs to <llvmbugs@cs.uiuc.edu>.
1623 _ACEOF
1624 ac_status=$?
1625 fi
1626
1627 if test "$ac_init_help" = "recursive"; then
1628   # If there are subdirs, report their specific --help.
1629   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1630     test -d "$ac_dir" || continue
1631     ac_builddir=.
1632
1633 case "$ac_dir" in
1634 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 *)
1636   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1637   # A ".." for each directory in $ac_dir_suffix.
1638   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1639   case $ac_top_builddir_sub in
1640   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642   esac ;;
1643 esac
1644 ac_abs_top_builddir=$ac_pwd
1645 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1646 # for backward compatibility:
1647 ac_top_builddir=$ac_top_build_prefix
1648
1649 case $srcdir in
1650   .)  # We are building in place.
1651     ac_srcdir=.
1652     ac_top_srcdir=$ac_top_builddir_sub
1653     ac_abs_top_srcdir=$ac_pwd ;;
1654   [\\/]* | ?:[\\/]* )  # Absolute name.
1655     ac_srcdir=$srcdir$ac_dir_suffix;
1656     ac_top_srcdir=$srcdir
1657     ac_abs_top_srcdir=$srcdir ;;
1658   *) # Relative name.
1659     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1660     ac_top_srcdir=$ac_top_build_prefix$srcdir
1661     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1662 esac
1663 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1664
1665     cd "$ac_dir" || { ac_status=$?; continue; }
1666     # Check for guested configure.
1667     if test -f "$ac_srcdir/configure.gnu"; then
1668       echo &&
1669       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670     elif test -f "$ac_srcdir/configure"; then
1671       echo &&
1672       $SHELL "$ac_srcdir/configure" --help=recursive
1673     else
1674       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1675     fi || ac_status=$?
1676     cd "$ac_pwd" || { ac_status=$?; break; }
1677   done
1678 fi
1679
1680 test -n "$ac_init_help" && exit $ac_status
1681 if $ac_init_version; then
1682   cat <<\_ACEOF
1683 llvm configure 2.6svn
1684 generated by GNU Autoconf 2.60
1685
1686 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1687 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1688 This configure script is free software; the Free Software Foundation
1689 gives unlimited permission to copy, distribute and modify it.
1690
1691 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1692 _ACEOF
1693   exit
1694 fi
1695 cat >config.log <<_ACEOF
1696 This file contains any messages produced by compilers while
1697 running configure, to aid debugging if configure makes a mistake.
1698
1699 It was created by llvm $as_me 2.6svn, which was
1700 generated by GNU Autoconf 2.60.  Invocation command line was
1701
1702   $ $0 $@
1703
1704 _ACEOF
1705 exec 5>>config.log
1706 {
1707 cat <<_ASUNAME
1708 ## --------- ##
1709 ## Platform. ##
1710 ## --------- ##
1711
1712 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1713 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1714 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1715 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1716 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1717
1718 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1719 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1720
1721 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1722 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1723 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1724 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1725 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1726 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1727 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1728
1729 _ASUNAME
1730
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 for as_dir in $PATH
1733 do
1734   IFS=$as_save_IFS
1735   test -z "$as_dir" && as_dir=.
1736   echo "PATH: $as_dir"
1737 done
1738 IFS=$as_save_IFS
1739
1740 } >&5
1741
1742 cat >&5 <<_ACEOF
1743
1744
1745 ## ----------- ##
1746 ## Core tests. ##
1747 ## ----------- ##
1748
1749 _ACEOF
1750
1751
1752 # Keep a trace of the command line.
1753 # Strip out --no-create and --no-recursion so they do not pile up.
1754 # Strip out --silent because we don't want to record it for future runs.
1755 # Also quote any args containing shell meta-characters.
1756 # Make two passes to allow for proper duplicate-argument suppression.
1757 ac_configure_args=
1758 ac_configure_args0=
1759 ac_configure_args1=
1760 ac_must_keep_next=false
1761 for ac_pass in 1 2
1762 do
1763   for ac_arg
1764   do
1765     case $ac_arg in
1766     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1767     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1768     | -silent | --silent | --silen | --sile | --sil)
1769       continue ;;
1770     *\'*)
1771       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1772     esac
1773     case $ac_pass in
1774     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1775     2)
1776       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1777       if test $ac_must_keep_next = true; then
1778         ac_must_keep_next=false # Got value, back to normal.
1779       else
1780         case $ac_arg in
1781           *=* | --config-cache | -C | -disable-* | --disable-* \
1782           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1783           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1784           | -with-* | --with-* | -without-* | --without-* | --x)
1785             case "$ac_configure_args0 " in
1786               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1787             esac
1788             ;;
1789           -* ) ac_must_keep_next=true ;;
1790         esac
1791       fi
1792       ac_configure_args="$ac_configure_args '$ac_arg'"
1793       ;;
1794     esac
1795   done
1796 done
1797 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1798 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1799
1800 # When interrupted or exit'd, cleanup temporary files, and complete
1801 # config.log.  We remove comments because anyway the quotes in there
1802 # would cause problems or look ugly.
1803 # WARNING: Use '\'' to represent an apostrophe within the trap.
1804 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1805 trap 'exit_status=$?
1806   # Save into config.log some information that might help in debugging.
1807   {
1808     echo
1809
1810     cat <<\_ASBOX
1811 ## ---------------- ##
1812 ## Cache variables. ##
1813 ## ---------------- ##
1814 _ASBOX
1815     echo
1816     # The following way of writing the cache mishandles newlines in values,
1817 (
1818   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1819     eval ac_val=\$$ac_var
1820     case $ac_val in #(
1821     *${as_nl}*)
1822       case $ac_var in #(
1823       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1824 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1825       esac
1826       case $ac_var in #(
1827       _ | IFS | as_nl) ;; #(
1828       *) $as_unset $ac_var ;;
1829       esac ;;
1830     esac
1831   done
1832   (set) 2>&1 |
1833     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1834     *${as_nl}ac_space=\ *)
1835       sed -n \
1836         "s/'\''/'\''\\\\'\'''\''/g;
1837           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1838       ;; #(
1839     *)
1840       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1841       ;;
1842     esac |
1843     sort
1844 )
1845     echo
1846
1847     cat <<\_ASBOX
1848 ## ----------------- ##
1849 ## Output variables. ##
1850 ## ----------------- ##
1851 _ASBOX
1852     echo
1853     for ac_var in $ac_subst_vars
1854     do
1855       eval ac_val=\$$ac_var
1856       case $ac_val in
1857       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1858       esac
1859       echo "$ac_var='\''$ac_val'\''"
1860     done | sort
1861     echo
1862
1863     if test -n "$ac_subst_files"; then
1864       cat <<\_ASBOX
1865 ## ------------------- ##
1866 ## File substitutions. ##
1867 ## ------------------- ##
1868 _ASBOX
1869       echo
1870       for ac_var in $ac_subst_files
1871       do
1872         eval ac_val=\$$ac_var
1873         case $ac_val in
1874         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1875         esac
1876         echo "$ac_var='\''$ac_val'\''"
1877       done | sort
1878       echo
1879     fi
1880
1881     if test -s confdefs.h; then
1882       cat <<\_ASBOX
1883 ## ----------- ##
1884 ## confdefs.h. ##
1885 ## ----------- ##
1886 _ASBOX
1887       echo
1888       cat confdefs.h
1889       echo
1890     fi
1891     test "$ac_signal" != 0 &&
1892       echo "$as_me: caught signal $ac_signal"
1893     echo "$as_me: exit $exit_status"
1894   } >&5
1895   rm -f core *.core core.conftest.* &&
1896     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1897     exit $exit_status
1898 ' 0
1899 for ac_signal in 1 2 13 15; do
1900   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1901 done
1902 ac_signal=0
1903
1904 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1905 rm -f -r conftest* confdefs.h
1906
1907 # Predefined preprocessor variables.
1908
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_NAME "$PACKAGE_NAME"
1911 _ACEOF
1912
1913
1914 cat >>confdefs.h <<_ACEOF
1915 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1916 _ACEOF
1917
1918
1919 cat >>confdefs.h <<_ACEOF
1920 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1921 _ACEOF
1922
1923
1924 cat >>confdefs.h <<_ACEOF
1925 #define PACKAGE_STRING "$PACKAGE_STRING"
1926 _ACEOF
1927
1928
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1931 _ACEOF
1932
1933
1934 # Let the site file select an alternate cache file if it wants to.
1935 # Prefer explicitly selected file to automatically selected ones.
1936 if test -n "$CONFIG_SITE"; then
1937   set x "$CONFIG_SITE"
1938 elif test "x$prefix" != xNONE; then
1939   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1940 else
1941   set x "$ac_default_prefix/share/config.site" \
1942         "$ac_default_prefix/etc/config.site"
1943 fi
1944 shift
1945 for ac_site_file
1946 do
1947   if test -r "$ac_site_file"; then
1948     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1949 echo "$as_me: loading site script $ac_site_file" >&6;}
1950     sed 's/^/| /' "$ac_site_file" >&5
1951     . "$ac_site_file"
1952   fi
1953 done
1954
1955 if test -r "$cache_file"; then
1956   # Some versions of bash will fail to source /dev/null (special
1957   # files actually), so we avoid doing that.
1958   if test -f "$cache_file"; then
1959     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1960 echo "$as_me: loading cache $cache_file" >&6;}
1961     case $cache_file in
1962       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1963       *)                      . "./$cache_file";;
1964     esac
1965   fi
1966 else
1967   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1968 echo "$as_me: creating cache $cache_file" >&6;}
1969   >$cache_file
1970 fi
1971
1972 # Check that the precious variables saved in the cache have kept the same
1973 # value.
1974 ac_cache_corrupted=false
1975 for ac_var in $ac_precious_vars; do
1976   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1977   eval ac_new_set=\$ac_env_${ac_var}_set
1978   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1979   eval ac_new_val=\$ac_env_${ac_var}_value
1980   case $ac_old_set,$ac_new_set in
1981     set,)
1982       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1983 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1984       ac_cache_corrupted=: ;;
1985     ,set)
1986       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1987 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1988       ac_cache_corrupted=: ;;
1989     ,);;
1990     *)
1991       if test "x$ac_old_val" != "x$ac_new_val"; then
1992         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1993 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1994         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1995 echo "$as_me:   former value:  $ac_old_val" >&2;}
1996         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1997 echo "$as_me:   current value: $ac_new_val" >&2;}
1998         ac_cache_corrupted=:
1999       fi;;
2000   esac
2001   # Pass precious variables to config.status.
2002   if test "$ac_new_set" = set; then
2003     case $ac_new_val in
2004     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2005     *) ac_arg=$ac_var=$ac_new_val ;;
2006     esac
2007     case " $ac_configure_args " in
2008       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2009       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2010     esac
2011   fi
2012 done
2013 if $ac_cache_corrupted; then
2014   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2015 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2016   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2017 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2018    { (exit 1); exit 1; }; }
2019 fi
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045 ac_ext=c
2046 ac_cpp='$CPP $CPPFLAGS'
2047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2050
2051
2052
2053 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2054
2055
2056
2057
2058
2059
2060
2061 ac_aux_dir=
2062 for ac_dir in autoconf "$srcdir"/autoconf; do
2063   if test -f "$ac_dir/install-sh"; then
2064     ac_aux_dir=$ac_dir
2065     ac_install_sh="$ac_aux_dir/install-sh -c"
2066     break
2067   elif test -f "$ac_dir/install.sh"; then
2068     ac_aux_dir=$ac_dir
2069     ac_install_sh="$ac_aux_dir/install.sh -c"
2070     break
2071   elif test -f "$ac_dir/shtool"; then
2072     ac_aux_dir=$ac_dir
2073     ac_install_sh="$ac_aux_dir/shtool install -c"
2074     break
2075   fi
2076 done
2077 if test -z "$ac_aux_dir"; then
2078   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2079 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2080    { (exit 1); exit 1; }; }
2081 fi
2082
2083 # These three variables are undocumented and unsupported,
2084 # and are intended to be withdrawn in a future Autoconf release.
2085 # They can cause serious problems if a builder's source tree is in a directory
2086 # whose full name contains unusual characters.
2087 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2088 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2089 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2090
2091
2092
2093 if test ${srcdir} != "." ; then
2094   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2095     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2096 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2097    { (exit 1); exit 1; }; }
2098   fi
2099 fi
2100
2101 for i in `ls ${srcdir}/projects`
2102 do
2103   if test -d ${srcdir}/projects/${i} ; then
2104     case ${i} in
2105       CVS) ;;
2106       sample)       subdirs="$subdirs projects/sample"
2107     ;;
2108       privbracket)  subdirs="$subdirs projects/privbracket"
2109  ;;
2110       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2111  ;;
2112       # llvm-test is the old name of the test-suite, kept here for backwards
2113       # compatibility
2114       llvm-test)    subdirs="$subdirs projects/llvm-test"
2115  ;;
2116       test-suite)   subdirs="$subdirs projects/test-suite"
2117  ;;
2118       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2119 ;;
2120       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2121   ;;
2122       llvm-java)    subdirs="$subdirs projects/llvm-java"
2123  ;;
2124       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2125    ;;
2126       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2127  ;;
2128       poolalloc)    subdirs="$subdirs projects/poolalloc"
2129  ;;
2130       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2131  ;;
2132       *)
2133         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2134 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2135         ;;
2136     esac
2137   fi
2138 done
2139
2140
2141 # Make sure we can run config.sub.
2142 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2143   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2144 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2145    { (exit 1); exit 1; }; }
2146
2147 { echo "$as_me:$LINENO: checking build system type" >&5
2148 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2149 if test "${ac_cv_build+set}" = set; then
2150   echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152   ac_build_alias=$build_alias
2153 test "x$ac_build_alias" = x &&
2154   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2155 test "x$ac_build_alias" = x &&
2156   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2157 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2158    { (exit 1); exit 1; }; }
2159 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2160   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2161 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2162    { (exit 1); exit 1; }; }
2163
2164 fi
2165 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2166 echo "${ECHO_T}$ac_cv_build" >&6; }
2167 case $ac_cv_build in
2168 *-*-*) ;;
2169 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2170 echo "$as_me: error: invalid value of canonical build" >&2;}
2171    { (exit 1); exit 1; }; };;
2172 esac
2173 build=$ac_cv_build
2174 ac_save_IFS=$IFS; IFS='-'
2175 set x $ac_cv_build
2176 shift
2177 build_cpu=$1
2178 build_vendor=$2
2179 shift; shift
2180 # Remember, the first character of IFS is used to create $*,
2181 # except with old shells:
2182 build_os=$*
2183 IFS=$ac_save_IFS
2184 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2185
2186
2187 { echo "$as_me:$LINENO: checking host system type" >&5
2188 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2189 if test "${ac_cv_host+set}" = set; then
2190   echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192   if test "x$host_alias" = x; then
2193   ac_cv_host=$ac_cv_build
2194 else
2195   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2196     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2197 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2198    { (exit 1); exit 1; }; }
2199 fi
2200
2201 fi
2202 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2203 echo "${ECHO_T}$ac_cv_host" >&6; }
2204 case $ac_cv_host in
2205 *-*-*) ;;
2206 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2207 echo "$as_me: error: invalid value of canonical host" >&2;}
2208    { (exit 1); exit 1; }; };;
2209 esac
2210 host=$ac_cv_host
2211 ac_save_IFS=$IFS; IFS='-'
2212 set x $ac_cv_host
2213 shift
2214 host_cpu=$1
2215 host_vendor=$2
2216 shift; shift
2217 # Remember, the first character of IFS is used to create $*,
2218 # except with old shells:
2219 host_os=$*
2220 IFS=$ac_save_IFS
2221 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2222
2223
2224 { echo "$as_me:$LINENO: checking target system type" >&5
2225 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2226 if test "${ac_cv_target+set}" = set; then
2227   echo $ECHO_N "(cached) $ECHO_C" >&6
2228 else
2229   if test "x$target_alias" = x; then
2230   ac_cv_target=$ac_cv_host
2231 else
2232   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2233     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2234 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2235    { (exit 1); exit 1; }; }
2236 fi
2237
2238 fi
2239 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2240 echo "${ECHO_T}$ac_cv_target" >&6; }
2241 case $ac_cv_target in
2242 *-*-*) ;;
2243 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2244 echo "$as_me: error: invalid value of canonical target" >&2;}
2245    { (exit 1); exit 1; }; };;
2246 esac
2247 target=$ac_cv_target
2248 ac_save_IFS=$IFS; IFS='-'
2249 set x $ac_cv_target
2250 shift
2251 target_cpu=$1
2252 target_vendor=$2
2253 shift; shift
2254 # Remember, the first character of IFS is used to create $*,
2255 # except with old shells:
2256 target_os=$*
2257 IFS=$ac_save_IFS
2258 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2259
2260
2261 # The aliases save the names the user supplied, while $host etc.
2262 # will get canonicalized.
2263 test -n "$target_alias" &&
2264   test "$program_prefix$program_suffix$program_transform_name" = \
2265     NONENONEs,x,x, &&
2266   program_prefix=${target_alias}-
2267
2268 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2269 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2270 if test "${llvm_cv_os_type+set}" = set; then
2271   echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273   case $host in
2274   *-*-aix*)
2275     llvm_cv_link_all_option="-Wl,--whole-archive"
2276     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2277     llvm_cv_os_type="AIX"
2278     llvm_cv_platform_type="Unix" ;;
2279   *-*-irix*)
2280     llvm_cv_link_all_option="-Wl,--whole-archive"
2281     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282     llvm_cv_os_type="IRIX"
2283     llvm_cv_platform_type="Unix" ;;
2284   *-*-cygwin*)
2285     llvm_cv_link_all_option="-Wl,--whole-archive"
2286     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287     llvm_cv_os_type="Cygwin"
2288     llvm_cv_platform_type="Unix" ;;
2289   *-*-darwin*)
2290     llvm_cv_link_all_option="-Wl,-all_load"
2291     llvm_cv_no_link_all_option="-Wl,-noall_load"
2292     llvm_cv_os_type="Darwin"
2293     llvm_cv_platform_type="Unix" ;;
2294   *-*-freebsd*)
2295     llvm_cv_link_all_option="-Wl,--whole-archive"
2296     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297     llvm_cv_os_type="FreeBSD"
2298     llvm_cv_platform_type="Unix" ;;
2299   *-*-openbsd*)
2300     llvm_cv_link_all_option="-Wl,--whole-archive"
2301     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2302     llvm_cv_os_type="OpenBSD"
2303     llvm_cv_platform_type="Unix" ;;
2304   *-*-netbsd*)
2305     llvm_cv_link_all_option="-Wl,--whole-archive"
2306     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2307     llvm_cv_os_type="NetBSD"
2308     llvm_cv_platform_type="Unix" ;;
2309   *-*-dragonfly*)
2310     llvm_cv_link_all_option="-Wl,--whole-archive"
2311     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2312     llvm_cv_os_type="DragonFly"
2313     llvm_cv_platform_type="Unix" ;;
2314   *-*-hpux*)
2315     llvm_cv_link_all_option="-Wl,--whole-archive"
2316     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2317     llvm_cv_os_type="HP-UX"
2318     llvm_cv_platform_type="Unix" ;;
2319   *-*-interix*)
2320     llvm_cv_link_all_option="-Wl,--whole-archive"
2321     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2322     llvm_cv_os_type="Interix"
2323     llvm_cv_platform_type="Unix" ;;
2324   *-*-linux*)
2325     llvm_cv_link_all_option="-Wl,--whole-archive"
2326     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2327     llvm_cv_os_type="Linux"
2328     llvm_cv_platform_type="Unix" ;;
2329   *-*-solaris*)
2330     llvm_cv_link_all_option="-Wl,-z,allextract"
2331     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2332     llvm_cv_os_type="SunOS"
2333     llvm_cv_platform_type="Unix" ;;
2334   *-*-win32*)
2335     llvm_cv_link_all_option="-Wl,--whole-archive"
2336     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2337     llvm_cv_os_type="Win32"
2338     llvm_cv_platform_type="Win32" ;;
2339   *-*-mingw*)
2340     llvm_cv_link_all_option="-Wl,--whole-archive"
2341     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2342     llvm_cv_os_type="MingW"
2343     llvm_cv_platform_type="Win32" ;;
2344   *)
2345     llvm_cv_link_all_option=""
2346     llvm_cv_no_link_all_option=""
2347     llvm_cv_os_type="Unknown"
2348     llvm_cv_platform_type="Unknown" ;;
2349 esac
2350 fi
2351 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2352 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2353
2354 if test "$llvm_cv_os_type" = "Unknown" ; then
2355   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2356 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2357    { (exit 1); exit 1; }; }
2358 fi
2359
2360 OS=$llvm_cv_os_type
2361
2362
2363 LINKALL=$llvm_cv_link_all_option
2364
2365 NOLINKALL=$llvm_cv_no_link_all_option
2366
2367
2368 case $llvm_cv_platform_type in
2369   Unix)
2370
2371 cat >>confdefs.h <<\_ACEOF
2372 #define LLVM_ON_UNIX 1
2373 _ACEOF
2374
2375     LLVM_ON_UNIX=1
2376
2377     LLVM_ON_WIN32=0
2378
2379     ;;
2380   Win32)
2381
2382 cat >>confdefs.h <<\_ACEOF
2383 #define LLVM_ON_WIN32 1
2384 _ACEOF
2385
2386     LLVM_ON_UNIX=0
2387
2388     LLVM_ON_WIN32=1
2389
2390     ;;
2391 esac
2392
2393 { echo "$as_me:$LINENO: checking target architecture" >&5
2394 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2395 if test "${llvm_cv_target_arch+set}" = set; then
2396   echo $ECHO_N "(cached) $ECHO_C" >&6
2397 else
2398   case $target in
2399   i?86-*)                 llvm_cv_target_arch="x86" ;;
2400   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2401   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2402   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2403   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2404   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2405   mips-*)                 llvm_cv_target_arch="Mips" ;;
2406   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2407   xcore-*)                llvm_cv_target_arch="XCore" ;;
2408   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2409   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2410   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2411   *)                      llvm_cv_target_arch="Unknown" ;;
2412 esac
2413 fi
2414 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2415 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2416
2417 if test "$llvm_cv_target_arch" = "Unknown" ; then
2418   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2419 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2420 fi
2421
2422 # Determine the LLVM native architecture for the target
2423 case "$llvm_cv_target_arch" in
2424     x86)     LLVM_NATIVE_ARCH="X86" ;;
2425     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2426     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2427 esac
2428
2429 ARCH=$llvm_cv_target_arch
2430
2431
2432 ac_ext=c
2433 ac_cpp='$CPP $CPPFLAGS'
2434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2437 if test -n "$ac_tool_prefix"; then
2438   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_CC+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   if test -n "$CC"; then
2446   ac_cv_prog_CC="$CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453   for ac_exec_ext in '' $ac_executable_extensions; do
2454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2455     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457     break 2
2458   fi
2459 done
2460 done
2461 IFS=$as_save_IFS
2462
2463 fi
2464 fi
2465 CC=$ac_cv_prog_CC
2466 if test -n "$CC"; then
2467   { echo "$as_me:$LINENO: result: $CC" >&5
2468 echo "${ECHO_T}$CC" >&6; }
2469 else
2470   { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2472 fi
2473
2474
2475 fi
2476 if test -z "$ac_cv_prog_CC"; then
2477   ac_ct_CC=$CC
2478   # Extract the first word of "gcc", so it can be a program name with args.
2479 set dummy gcc; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   if test -n "$ac_ct_CC"; then
2486   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491   IFS=$as_save_IFS
2492   test -z "$as_dir" && as_dir=.
2493   for ac_exec_ext in '' $ac_executable_extensions; do
2494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2495     ac_cv_prog_ac_ct_CC="gcc"
2496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497     break 2
2498   fi
2499 done
2500 done
2501 IFS=$as_save_IFS
2502
2503 fi
2504 fi
2505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2506 if test -n "$ac_ct_CC"; then
2507   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2508 echo "${ECHO_T}$ac_ct_CC" >&6; }
2509 else
2510   { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2512 fi
2513
2514   if test "x$ac_ct_CC" = x; then
2515     CC=""
2516   else
2517     case $cross_compiling:$ac_tool_warned in
2518 yes:)
2519 { echo "$as_me:$LINENO: 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." >&5
2522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2523 whose name does not start with the host triplet.  If you think this
2524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2525 ac_tool_warned=yes ;;
2526 esac
2527     CC=$ac_ct_CC
2528   fi
2529 else
2530   CC="$ac_cv_prog_CC"
2531 fi
2532
2533 if test -z "$CC"; then
2534           if test -n "$ac_tool_prefix"; then
2535     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2536 set dummy ${ac_tool_prefix}cc; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540   echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542   if test -n "$CC"; then
2543   ac_cv_prog_CC="$CC" # Let the user override the test.
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2547 do
2548   IFS=$as_save_IFS
2549   test -z "$as_dir" && as_dir=.
2550   for ac_exec_ext in '' $ac_executable_extensions; do
2551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2552     ac_cv_prog_CC="${ac_tool_prefix}cc"
2553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554     break 2
2555   fi
2556 done
2557 done
2558 IFS=$as_save_IFS
2559
2560 fi
2561 fi
2562 CC=$ac_cv_prog_CC
2563 if test -n "$CC"; then
2564   { echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6; }
2566 else
2567   { echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6; }
2569 fi
2570
2571
2572   fi
2573 fi
2574 if test -z "$CC"; then
2575   # Extract the first word of "cc", so it can be a program name with args.
2576 set dummy cc; ac_word=$2
2577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2579 if test "${ac_cv_prog_CC+set}" = set; then
2580   echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582   if test -n "$CC"; then
2583   ac_cv_prog_CC="$CC" # Let the user override the test.
2584 else
2585   ac_prog_rejected=no
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589   IFS=$as_save_IFS
2590   test -z "$as_dir" && as_dir=.
2591   for ac_exec_ext in '' $ac_executable_extensions; do
2592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2593     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2594        ac_prog_rejected=yes
2595        continue
2596      fi
2597     ac_cv_prog_CC="cc"
2598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599     break 2
2600   fi
2601 done
2602 done
2603 IFS=$as_save_IFS
2604
2605 if test $ac_prog_rejected = yes; then
2606   # We found a bogon in the path, so make sure we never use it.
2607   set dummy $ac_cv_prog_CC
2608   shift
2609   if test $# != 0; then
2610     # We chose a different compiler from the bogus one.
2611     # However, it has the same basename, so the bogon will be chosen
2612     # first if we set CC to just the basename; use the full file name.
2613     shift
2614     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2615   fi
2616 fi
2617 fi
2618 fi
2619 CC=$ac_cv_prog_CC
2620 if test -n "$CC"; then
2621   { echo "$as_me:$LINENO: result: $CC" >&5
2622 echo "${ECHO_T}$CC" >&6; }
2623 else
2624   { echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6; }
2626 fi
2627
2628
2629 fi
2630 if test -z "$CC"; then
2631   if test -n "$ac_tool_prefix"; then
2632   for ac_prog in cl.exe
2633   do
2634     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_CC+set}" = set; then
2639   echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641   if test -n "$CC"; then
2642   ac_cv_prog_CC="$CC" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647   IFS=$as_save_IFS
2648   test -z "$as_dir" && as_dir=.
2649   for ac_exec_ext in '' $ac_executable_extensions; do
2650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2651     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653     break 2
2654   fi
2655 done
2656 done
2657 IFS=$as_save_IFS
2658
2659 fi
2660 fi
2661 CC=$ac_cv_prog_CC
2662 if test -n "$CC"; then
2663   { echo "$as_me:$LINENO: result: $CC" >&5
2664 echo "${ECHO_T}$CC" >&6; }
2665 else
2666   { echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6; }
2668 fi
2669
2670
2671     test -n "$CC" && break
2672   done
2673 fi
2674 if test -z "$CC"; then
2675   ac_ct_CC=$CC
2676   for ac_prog in cl.exe
2677 do
2678   # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy $ac_prog; ac_word=$2
2680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2683   echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685   if test -n "$ac_ct_CC"; then
2686   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691   IFS=$as_save_IFS
2692   test -z "$as_dir" && as_dir=.
2693   for ac_exec_ext in '' $ac_executable_extensions; do
2694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2695     ac_cv_prog_ac_ct_CC="$ac_prog"
2696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697     break 2
2698   fi
2699 done
2700 done
2701 IFS=$as_save_IFS
2702
2703 fi
2704 fi
2705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2706 if test -n "$ac_ct_CC"; then
2707   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2708 echo "${ECHO_T}$ac_ct_CC" >&6; }
2709 else
2710   { echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6; }
2712 fi
2713
2714
2715   test -n "$ac_ct_CC" && break
2716 done
2717
2718   if test "x$ac_ct_CC" = x; then
2719     CC=""
2720   else
2721     case $cross_compiling:$ac_tool_warned in
2722 yes:)
2723 { echo "$as_me:$LINENO: 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." >&5
2726 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2727 whose name does not start with the host triplet.  If you think this
2728 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2729 ac_tool_warned=yes ;;
2730 esac
2731     CC=$ac_ct_CC
2732   fi
2733 fi
2734
2735 fi
2736
2737
2738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details." >&5
2740 echo "$as_me: error: no acceptable C compiler found in \$PATH
2741 See \`config.log' for more details." >&2;}
2742    { (exit 1); exit 1; }; }
2743
2744 # Provide some information about the compiler.
2745 echo "$as_me:$LINENO: checking for C compiler version" >&5
2746 ac_compiler=`set X $ac_compile; echo $2`
2747 { (ac_try="$ac_compiler --version >&5"
2748 case "(($ac_try" in
2749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750   *) ac_try_echo=$ac_try;;
2751 esac
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753   (eval "$ac_compiler --version >&5") 2>&5
2754   ac_status=$?
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); }
2757 { (ac_try="$ac_compiler -v >&5"
2758 case "(($ac_try" in
2759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760   *) ac_try_echo=$ac_try;;
2761 esac
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763   (eval "$ac_compiler -v >&5") 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); }
2767 { (ac_try="$ac_compiler -V >&5"
2768 case "(($ac_try" in
2769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770   *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773   (eval "$ac_compiler -V >&5") 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }
2777
2778 cat >conftest.$ac_ext <<_ACEOF
2779 /* confdefs.h.  */
2780 _ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h.  */
2784
2785 int
2786 main ()
2787 {
2788
2789   ;
2790   return 0;
2791 }
2792 _ACEOF
2793 ac_clean_files_save=$ac_clean_files
2794 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2795 # Try to create an executable without -o first, disregard a.out.
2796 # It will help us diagnose broken compilers, and finding out an intuition
2797 # of exeext.
2798 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2799 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2800 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2801 #
2802 # List of possible output files, starting from the most likely.
2803 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2804 # only as a last resort.  b.out is created by i960 compilers.
2805 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2806 #
2807 # The IRIX 6 linker writes into existing files which may not be
2808 # executable, retaining their permissions.  Remove them first so a
2809 # subsequent execution test works.
2810 ac_rmfiles=
2811 for ac_file in $ac_files
2812 do
2813   case $ac_file in
2814     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2815     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2816   esac
2817 done
2818 rm -f $ac_rmfiles
2819
2820 if { (ac_try="$ac_link_default"
2821 case "(($ac_try" in
2822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823   *) ac_try_echo=$ac_try;;
2824 esac
2825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2826   (eval "$ac_link_default") 2>&5
2827   ac_status=$?
2828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829   (exit $ac_status); }; then
2830   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2831 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2832 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2833 # so that the user can short-circuit this test for compilers unknown to
2834 # Autoconf.
2835 for ac_file in $ac_files
2836 do
2837   test -f "$ac_file" || continue
2838   case $ac_file in
2839     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2840         ;;
2841     [ab].out )
2842         # We found the default executable, but exeext='' is most
2843         # certainly right.
2844         break;;
2845     *.* )
2846         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2847         then :; else
2848            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2849         fi
2850         # We set ac_cv_exeext here because the later test for it is not
2851         # safe: cross compilers may not add the suffix if given an `-o'
2852         # argument, so we may need to know it at that point already.
2853         # Even if this section looks crufty: it has the advantage of
2854         # actually working.
2855         break;;
2856     * )
2857         break;;
2858   esac
2859 done
2860 test "$ac_cv_exeext" = no && ac_cv_exeext=
2861
2862 else
2863   echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2865
2866 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2867 See \`config.log' for more details." >&5
2868 echo "$as_me: error: C compiler cannot create executables
2869 See \`config.log' for more details." >&2;}
2870    { (exit 77); exit 77; }; }
2871 fi
2872
2873 ac_exeext=$ac_cv_exeext
2874 { echo "$as_me:$LINENO: result: $ac_file" >&5
2875 echo "${ECHO_T}$ac_file" >&6; }
2876
2877 # Check that the compiler produces executables we can run.  If not, either
2878 # the compiler is broken, or we cross compile.
2879 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2880 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2881 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2882 # If not cross compiling, check that we can run a simple program.
2883 if test "$cross_compiling" != yes; then
2884   if { ac_try='./$ac_file'
2885   { (case "(($ac_try" in
2886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887   *) ac_try_echo=$ac_try;;
2888 esac
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890   (eval "$ac_try") 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; }; then
2894     cross_compiling=no
2895   else
2896     if test "$cross_compiling" = maybe; then
2897         cross_compiling=yes
2898     else
2899         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2900 If you meant to cross compile, use \`--host'.
2901 See \`config.log' for more details." >&5
2902 echo "$as_me: error: cannot run C compiled programs.
2903 If you meant to cross compile, use \`--host'.
2904 See \`config.log' for more details." >&2;}
2905    { (exit 1); exit 1; }; }
2906     fi
2907   fi
2908 fi
2909 { echo "$as_me:$LINENO: result: yes" >&5
2910 echo "${ECHO_T}yes" >&6; }
2911
2912 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2913 ac_clean_files=$ac_clean_files_save
2914 # Check that the compiler produces executables we can run.  If not, either
2915 # the compiler is broken, or we cross compile.
2916 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2917 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2918 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2919 echo "${ECHO_T}$cross_compiling" >&6; }
2920
2921 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2922 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2923 if { (ac_try="$ac_link"
2924 case "(($ac_try" in
2925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926   *) ac_try_echo=$ac_try;;
2927 esac
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929   (eval "$ac_link") 2>&5
2930   ac_status=$?
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); }; then
2933   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2934 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2935 # work properly (i.e., refer to `conftest.exe'), while it won't with
2936 # `rm'.
2937 for ac_file in conftest.exe conftest conftest.*; do
2938   test -f "$ac_file" || continue
2939   case $ac_file in
2940     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2941     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2942           break;;
2943     * ) break;;
2944   esac
2945 done
2946 else
2947   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2948 See \`config.log' for more details." >&5
2949 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2950 See \`config.log' for more details." >&2;}
2951    { (exit 1); exit 1; }; }
2952 fi
2953
2954 rm -f conftest$ac_cv_exeext
2955 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2956 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2957
2958 rm -f conftest.$ac_ext
2959 EXEEXT=$ac_cv_exeext
2960 ac_exeext=$EXEEXT
2961 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2962 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2963 if test "${ac_cv_objext+set}" = set; then
2964   echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966   cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h.  */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h.  */
2972
2973 int
2974 main ()
2975 {
2976
2977   ;
2978   return 0;
2979 }
2980 _ACEOF
2981 rm -f conftest.o conftest.obj
2982 if { (ac_try="$ac_compile"
2983 case "(($ac_try" in
2984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985   *) ac_try_echo=$ac_try;;
2986 esac
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988   (eval "$ac_compile") 2>&5
2989   ac_status=$?
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); }; then
2992   for ac_file in conftest.o conftest.obj conftest.*; do
2993   test -f "$ac_file" || continue;
2994   case $ac_file in
2995     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2996     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2997        break;;
2998   esac
2999 done
3000 else
3001   echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3005 See \`config.log' for more details." >&5
3006 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3007 See \`config.log' for more details." >&2;}
3008    { (exit 1); exit 1; }; }
3009 fi
3010
3011 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3012 fi
3013 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3014 echo "${ECHO_T}$ac_cv_objext" >&6; }
3015 OBJEXT=$ac_cv_objext
3016 ac_objext=$OBJEXT
3017 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3018 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3019 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3020   echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022   cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h.  */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h.  */
3028
3029 int
3030 main ()
3031 {
3032 #ifndef __GNUC__
3033        choke me
3034 #endif
3035
3036   ;
3037   return 0;
3038 }
3039 _ACEOF
3040 rm -f conftest.$ac_objext
3041 if { (ac_try="$ac_compile"
3042 case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047   (eval "$ac_compile") 2>conftest.er1
3048   ac_status=$?
3049   grep -v '^ *+' conftest.er1 >conftest.err
3050   rm -f conftest.er1
3051   cat conftest.err >&5
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); } &&
3054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3055   { (case "(($ac_try" in
3056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057   *) ac_try_echo=$ac_try;;
3058 esac
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060   (eval "$ac_try") 2>&5
3061   ac_status=$?
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); }; } &&
3064          { ac_try='test -s conftest.$ac_objext'
3065   { (case "(($ac_try" in
3066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067   *) ac_try_echo=$ac_try;;
3068 esac
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070   (eval "$ac_try") 2>&5
3071   ac_status=$?
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); }; }; then
3074   ac_compiler_gnu=yes
3075 else
3076   echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3078
3079         ac_compiler_gnu=no
3080 fi
3081
3082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3084
3085 fi
3086 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3087 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3088 GCC=`test $ac_compiler_gnu = yes && echo yes`
3089 ac_test_CFLAGS=${CFLAGS+set}
3090 ac_save_CFLAGS=$CFLAGS
3091 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3092 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3093 if test "${ac_cv_prog_cc_g+set}" = set; then
3094   echo $ECHO_N "(cached) $ECHO_C" >&6
3095 else
3096   ac_save_c_werror_flag=$ac_c_werror_flag
3097    ac_c_werror_flag=yes
3098    ac_cv_prog_cc_g=no
3099    CFLAGS="-g"
3100    cat >conftest.$ac_ext <<_ACEOF
3101 /* confdefs.h.  */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h.  */
3106
3107 int
3108 main ()
3109 {
3110
3111   ;
3112   return 0;
3113 }
3114 _ACEOF
3115 rm -f conftest.$ac_objext
3116 if { (ac_try="$ac_compile"
3117 case "(($ac_try" in
3118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119   *) ac_try_echo=$ac_try;;
3120 esac
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122   (eval "$ac_compile") 2>conftest.er1
3123   ac_status=$?
3124   grep -v '^ *+' conftest.er1 >conftest.err
3125   rm -f conftest.er1
3126   cat conftest.err >&5
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); } &&
3129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3130   { (case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135   (eval "$ac_try") 2>&5
3136   ac_status=$?
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); }; } &&
3139          { ac_try='test -s conftest.$ac_objext'
3140   { (case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145   (eval "$ac_try") 2>&5
3146   ac_status=$?
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); }; }; then
3149   ac_cv_prog_cc_g=yes
3150 else
3151   echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154         CFLAGS=""
3155       cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h.  */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h.  */
3161
3162 int
3163 main ()
3164 {
3165
3166   ;
3167   return 0;
3168 }
3169 _ACEOF
3170 rm -f conftest.$ac_objext
3171 if { (ac_try="$ac_compile"
3172 case "(($ac_try" in
3173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174   *) ac_try_echo=$ac_try;;
3175 esac
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177   (eval "$ac_compile") 2>conftest.er1
3178   ac_status=$?
3179   grep -v '^ *+' conftest.er1 >conftest.err
3180   rm -f conftest.er1
3181   cat conftest.err >&5
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); } &&
3184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3185   { (case "(($ac_try" in
3186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187   *) ac_try_echo=$ac_try;;
3188 esac
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190   (eval "$ac_try") 2>&5
3191   ac_status=$?
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); }; } &&
3194          { ac_try='test -s conftest.$ac_objext'
3195   { (case "(($ac_try" in
3196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197   *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200   (eval "$ac_try") 2>&5
3201   ac_status=$?
3202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203   (exit $ac_status); }; }; then
3204   :
3205 else
3206   echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3208
3209         ac_c_werror_flag=$ac_save_c_werror_flag
3210          CFLAGS="-g"
3211          cat >conftest.$ac_ext <<_ACEOF
3212 /* confdefs.h.  */
3213 _ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h.  */
3217
3218 int
3219 main ()
3220 {
3221
3222   ;
3223   return 0;
3224 }
3225 _ACEOF
3226 rm -f conftest.$ac_objext
3227 if { (ac_try="$ac_compile"
3228 case "(($ac_try" in
3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230   *) ac_try_echo=$ac_try;;
3231 esac
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233   (eval "$ac_compile") 2>conftest.er1
3234   ac_status=$?
3235   grep -v '^ *+' conftest.er1 >conftest.err
3236   rm -f conftest.er1
3237   cat conftest.err >&5
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); } &&
3240          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3241   { (case "(($ac_try" in
3242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243   *) ac_try_echo=$ac_try;;
3244 esac
3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246   (eval "$ac_try") 2>&5
3247   ac_status=$?
3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); }; } &&
3250          { ac_try='test -s conftest.$ac_objext'
3251   { (case "(($ac_try" in
3252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253   *) ac_try_echo=$ac_try;;
3254 esac
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256   (eval "$ac_try") 2>&5
3257   ac_status=$?
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); }; }; then
3260   ac_cv_prog_cc_g=yes
3261 else
3262   echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3264
3265
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 fi
3273
3274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275    ac_c_werror_flag=$ac_save_c_werror_flag
3276 fi
3277 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3278 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3279 if test "$ac_test_CFLAGS" = set; then
3280   CFLAGS=$ac_save_CFLAGS
3281 elif test $ac_cv_prog_cc_g = yes; then
3282   if test "$GCC" = yes; then
3283     CFLAGS="-g -O2"
3284   else
3285     CFLAGS="-g"
3286   fi
3287 else
3288   if test "$GCC" = yes; then
3289     CFLAGS="-O2"
3290   else
3291     CFLAGS=
3292   fi
3293 fi
3294 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3295 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3296 if test "${ac_cv_prog_cc_c89+set}" = set; then
3297   echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299   ac_cv_prog_cc_c89=no
3300 ac_save_CC=$CC
3301 cat >conftest.$ac_ext <<_ACEOF
3302 /* confdefs.h.  */
3303 _ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h.  */
3307 #include <stdarg.h>
3308 #include <stdio.h>
3309 #include <sys/types.h>
3310 #include <sys/stat.h>
3311 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3312 struct buf { int x; };
3313 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3314 static char *e (p, i)
3315      char **p;
3316      int i;
3317 {
3318   return p[i];
3319 }
3320 static char *f (char * (*g) (char **, int), char **p, ...)
3321 {
3322   char *s;
3323   va_list v;
3324   va_start (v,p);
3325   s = g (p, va_arg (v,int));
3326   va_end (v);
3327   return s;
3328 }
3329
3330 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3331    function prototypes and stuff, but not '\xHH' hex character constants.
3332    These don't provoke an error unfortunately, instead are silently treated
3333    as 'x'.  The following induces an error, until -std is added to get
3334    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3335    array size at least.  It's necessary to write '\x00'==0 to get something
3336    that's true only with -std.  */
3337 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3338
3339 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3340    inside strings and character constants.  */
3341 #define FOO(x) 'x'
3342 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3343
3344 int test (int i, double x);
3345 struct s1 {int (*f) (int a);};
3346 struct s2 {int (*f) (double a);};
3347 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3348 int argc;
3349 char **argv;
3350 int
3351 main ()
3352 {
3353 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3354   ;
3355   return 0;
3356 }
3357 _ACEOF
3358 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3359         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3360 do
3361   CC="$ac_save_CC $ac_arg"
3362   rm -f conftest.$ac_objext
3363 if { (ac_try="$ac_compile"
3364 case "(($ac_try" in
3365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366   *) ac_try_echo=$ac_try;;
3367 esac
3368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369   (eval "$ac_compile") 2>conftest.er1
3370   ac_status=$?
3371   grep -v '^ *+' conftest.er1 >conftest.err
3372   rm -f conftest.er1
3373   cat conftest.err >&5
3374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375   (exit $ac_status); } &&
3376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3377   { (case "(($ac_try" in
3378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379   *) ac_try_echo=$ac_try;;
3380 esac
3381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382   (eval "$ac_try") 2>&5
3383   ac_status=$?
3384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385   (exit $ac_status); }; } &&
3386          { ac_try='test -s conftest.$ac_objext'
3387   { (case "(($ac_try" in
3388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389   *) ac_try_echo=$ac_try;;
3390 esac
3391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392   (eval "$ac_try") 2>&5
3393   ac_status=$?
3394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); }; }; then
3396   ac_cv_prog_cc_c89=$ac_arg
3397 else
3398   echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3400
3401
3402 fi
3403
3404 rm -f core conftest.err conftest.$ac_objext
3405   test "x$ac_cv_prog_cc_c89" != "xno" && break
3406 done
3407 rm -f conftest.$ac_ext
3408 CC=$ac_save_CC
3409
3410 fi
3411 # AC_CACHE_VAL
3412 case "x$ac_cv_prog_cc_c89" in
3413   x)
3414     { echo "$as_me:$LINENO: result: none needed" >&5
3415 echo "${ECHO_T}none needed" >&6; } ;;
3416   xno)
3417     { echo "$as_me:$LINENO: result: unsupported" >&5
3418 echo "${ECHO_T}unsupported" >&6; } ;;
3419   *)
3420     CC="$CC $ac_cv_prog_cc_c89"
3421     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3422 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3423 esac
3424
3425
3426 ac_ext=c
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431
3432
3433 ac_ext=c
3434 ac_cpp='$CPP $CPPFLAGS'
3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3439 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3440 # On Suns, sometimes $CPP names a directory.
3441 if test -n "$CPP" && test -d "$CPP"; then
3442   CPP=
3443 fi
3444 if test -z "$CPP"; then
3445   if test "${ac_cv_prog_CPP+set}" = set; then
3446   echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448       # Double quotes because CPP needs to be expanded
3449     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3450     do
3451       ac_preproc_ok=false
3452 for ac_c_preproc_warn_flag in '' yes
3453 do
3454   # Use a header file that comes with gcc, so configuring glibc
3455   # with a fresh cross-compiler works.
3456   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3457   # <limits.h> exists even on freestanding compilers.
3458   # On the NeXT, cc -E runs the code through the compiler's parser,
3459   # not just through cpp. "Syntax error" is here to catch this case.
3460   cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h.  */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h.  */
3466 #ifdef __STDC__
3467 # include <limits.h>
3468 #else
3469 # include <assert.h>
3470 #endif
3471                      Syntax error
3472 _ACEOF
3473 if { (ac_try="$ac_cpp conftest.$ac_ext"
3474 case "(($ac_try" in
3475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476   *) ac_try_echo=$ac_try;;
3477 esac
3478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3480   ac_status=$?
3481   grep -v '^ *+' conftest.er1 >conftest.err
3482   rm -f conftest.er1
3483   cat conftest.err >&5
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); } >/dev/null; then
3486   if test -s conftest.err; then
3487     ac_cpp_err=$ac_c_preproc_warn_flag
3488     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3489   else
3490     ac_cpp_err=
3491   fi
3492 else
3493   ac_cpp_err=yes
3494 fi
3495 if test -z "$ac_cpp_err"; then
3496   :
3497 else
3498   echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501   # Broken: fails on valid input.
3502 continue
3503 fi
3504
3505 rm -f conftest.err conftest.$ac_ext
3506
3507   # OK, works on sane cases.  Now check whether nonexistent headers
3508   # can be detected and how.
3509   cat >conftest.$ac_ext <<_ACEOF
3510 /* confdefs.h.  */
3511 _ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h.  */
3515 #include <ac_nonexistent.h>
3516 _ACEOF
3517 if { (ac_try="$ac_cpp conftest.$ac_ext"
3518 case "(($ac_try" in
3519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520   *) ac_try_echo=$ac_try;;
3521 esac
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3524   ac_status=$?
3525   grep -v '^ *+' conftest.er1 >conftest.err
3526   rm -f conftest.er1
3527   cat conftest.err >&5
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); } >/dev/null; then
3530   if test -s conftest.err; then
3531     ac_cpp_err=$ac_c_preproc_warn_flag
3532     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3533   else
3534     ac_cpp_err=
3535   fi
3536 else
3537   ac_cpp_err=yes
3538 fi
3539 if test -z "$ac_cpp_err"; then
3540   # Broken: success on invalid input.
3541 continue
3542 else
3543   echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3545
3546   # Passes both tests.
3547 ac_preproc_ok=:
3548 break
3549 fi
3550
3551 rm -f conftest.err conftest.$ac_ext
3552
3553 done
3554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3555 rm -f conftest.err conftest.$ac_ext
3556 if $ac_preproc_ok; then
3557   break
3558 fi
3559
3560     done
3561     ac_cv_prog_CPP=$CPP
3562
3563 fi
3564   CPP=$ac_cv_prog_CPP
3565 else
3566   ac_cv_prog_CPP=$CPP
3567 fi
3568 { echo "$as_me:$LINENO: result: $CPP" >&5
3569 echo "${ECHO_T}$CPP" >&6; }
3570 ac_preproc_ok=false
3571 for ac_c_preproc_warn_flag in '' yes
3572 do
3573   # Use a header file that comes with gcc, so configuring glibc
3574   # with a fresh cross-compiler works.
3575   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3576   # <limits.h> exists even on freestanding compilers.
3577   # On the NeXT, cc -E runs the code through the compiler's parser,
3578   # not just through cpp. "Syntax error" is here to catch this case.
3579   cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h.  */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h.  */
3585 #ifdef __STDC__
3586 # include <limits.h>
3587 #else
3588 # include <assert.h>
3589 #endif
3590                      Syntax error
3591 _ACEOF
3592 if { (ac_try="$ac_cpp conftest.$ac_ext"
3593 case "(($ac_try" in
3594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595   *) ac_try_echo=$ac_try;;
3596 esac
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3599   ac_status=$?
3600   grep -v '^ *+' conftest.er1 >conftest.err
3601   rm -f conftest.er1
3602   cat conftest.err >&5
3603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604   (exit $ac_status); } >/dev/null; then
3605   if test -s conftest.err; then
3606     ac_cpp_err=$ac_c_preproc_warn_flag
3607     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3608   else
3609     ac_cpp_err=
3610   fi
3611 else
3612   ac_cpp_err=yes
3613 fi
3614 if test -z "$ac_cpp_err"; then
3615   :
3616 else
3617   echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3619
3620   # Broken: fails on valid input.
3621 continue
3622 fi
3623
3624 rm -f conftest.err conftest.$ac_ext
3625
3626   # OK, works on sane cases.  Now check whether nonexistent headers
3627   # can be detected and how.
3628   cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h.  */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h.  */
3634 #include <ac_nonexistent.h>
3635 _ACEOF
3636 if { (ac_try="$ac_cpp conftest.$ac_ext"
3637 case "(($ac_try" in
3638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639   *) ac_try_echo=$ac_try;;
3640 esac
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3643   ac_status=$?
3644   grep -v '^ *+' conftest.er1 >conftest.err
3645   rm -f conftest.er1
3646   cat conftest.err >&5
3647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); } >/dev/null; then
3649   if test -s conftest.err; then
3650     ac_cpp_err=$ac_c_preproc_warn_flag
3651     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3652   else
3653     ac_cpp_err=
3654   fi
3655 else
3656   ac_cpp_err=yes
3657 fi
3658 if test -z "$ac_cpp_err"; then
3659   # Broken: success on invalid input.
3660 continue
3661 else
3662   echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.$ac_ext >&5
3664
3665   # Passes both tests.
3666 ac_preproc_ok=:
3667 break
3668 fi
3669
3670 rm -f conftest.err conftest.$ac_ext
3671
3672 done
3673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3674 rm -f conftest.err conftest.$ac_ext
3675 if $ac_preproc_ok; then
3676   :
3677 else
3678   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3679 See \`config.log' for more details." >&5
3680 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3681 See \`config.log' for more details." >&2;}
3682    { (exit 1); exit 1; }; }
3683 fi
3684
3685 ac_ext=c
3686 ac_cpp='$CPP $CPPFLAGS'
3687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690
3691
3692 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3693 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3694 if test "${ac_cv_path_GREP+set}" = set; then
3695   echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697   # Extract the first word of "grep ggrep" to use in msg output
3698 if test -z "$GREP"; then
3699 set dummy grep ggrep; ac_prog_name=$2
3700 if test "${ac_cv_path_GREP+set}" = set; then
3701   echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703   ac_path_GREP_found=false
3704 # Loop through the user's path and test for each of PROGNAME-LIST
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3707 do
3708   IFS=$as_save_IFS
3709   test -z "$as_dir" && as_dir=.
3710   for ac_prog in grep ggrep; do
3711   for ac_exec_ext in '' $ac_executable_extensions; do
3712     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3713     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3714     # Check for GNU ac_path_GREP and select it if it is found.
3715   # Check for GNU $ac_path_GREP
3716 case `"$ac_path_GREP" --version 2>&1` in
3717 *GNU*)
3718   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3719 *)
3720   ac_count=0
3721   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3722   while :
3723   do
3724     cat "conftest.in" "conftest.in" >"conftest.tmp"
3725     mv "conftest.tmp" "conftest.in"
3726     cp "conftest.in" "conftest.nl"
3727     echo 'GREP' >> "conftest.nl"
3728     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3729     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3730     ac_count=`expr $ac_count + 1`
3731     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3732       # Best one so far, save it but keep looking for a better one
3733       ac_cv_path_GREP="$ac_path_GREP"
3734       ac_path_GREP_max=$ac_count
3735     fi
3736     # 10*(2^10) chars as input seems more than enough
3737     test $ac_count -gt 10 && break
3738   done
3739   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3740 esac
3741
3742
3743     $ac_path_GREP_found && break 3
3744   done
3745 done
3746
3747 done
3748 IFS=$as_save_IFS
3749
3750
3751 fi
3752
3753 GREP="$ac_cv_path_GREP"
3754 if test -z "$GREP"; then
3755   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3756 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3757    { (exit 1); exit 1; }; }
3758 fi
3759
3760 else
3761   ac_cv_path_GREP=$GREP
3762 fi
3763
3764
3765 fi
3766 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3767 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3768  GREP="$ac_cv_path_GREP"
3769
3770
3771 { echo "$as_me:$LINENO: checking for egrep" >&5
3772 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3773 if test "${ac_cv_path_EGREP+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3777    then ac_cv_path_EGREP="$GREP -E"
3778    else
3779      # Extract the first word of "egrep" to use in msg output
3780 if test -z "$EGREP"; then
3781 set dummy egrep; ac_prog_name=$2
3782 if test "${ac_cv_path_EGREP+set}" = set; then
3783   echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785   ac_path_EGREP_found=false
3786 # Loop through the user's path and test for each of PROGNAME-LIST
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3789 do
3790   IFS=$as_save_IFS
3791   test -z "$as_dir" && as_dir=.
3792   for ac_prog in egrep; do
3793   for ac_exec_ext in '' $ac_executable_extensions; do
3794     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3795     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3796     # Check for GNU ac_path_EGREP and select it if it is found.
3797   # Check for GNU $ac_path_EGREP
3798 case `"$ac_path_EGREP" --version 2>&1` in
3799 *GNU*)
3800   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3801 *)
3802   ac_count=0
3803   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3804   while :
3805   do
3806     cat "conftest.in" "conftest.in" >"conftest.tmp"
3807     mv "conftest.tmp" "conftest.in"
3808     cp "conftest.in" "conftest.nl"
3809     echo 'EGREP' >> "conftest.nl"
3810     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3811     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3812     ac_count=`expr $ac_count + 1`
3813     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3814       # Best one so far, save it but keep looking for a better one
3815       ac_cv_path_EGREP="$ac_path_EGREP"
3816       ac_path_EGREP_max=$ac_count
3817     fi
3818     # 10*(2^10) chars as input seems more than enough
3819     test $ac_count -gt 10 && break
3820   done
3821   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3822 esac
3823
3824
3825     $ac_path_EGREP_found && break 3
3826   done
3827 done
3828
3829 done
3830 IFS=$as_save_IFS
3831
3832
3833 fi
3834
3835 EGREP="$ac_cv_path_EGREP"
3836 if test -z "$EGREP"; then
3837   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3838 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3839    { (exit 1); exit 1; }; }
3840 fi
3841
3842 else
3843   ac_cv_path_EGREP=$EGREP
3844 fi
3845
3846
3847    fi
3848 fi
3849 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3850 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3851  EGREP="$ac_cv_path_EGREP"
3852
3853
3854 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3855 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3856 if test "${ac_cv_header_stdc+set}" = set; then
3857   echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859   cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h.  */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h.  */
3865 #include <stdlib.h>
3866 #include <stdarg.h>
3867 #include <string.h>
3868 #include <float.h>
3869
3870 int
3871 main ()
3872 {
3873
3874   ;
3875   return 0;
3876 }
3877 _ACEOF
3878 rm -f conftest.$ac_objext
3879 if { (ac_try="$ac_compile"
3880 case "(($ac_try" in
3881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882   *) ac_try_echo=$ac_try;;
3883 esac
3884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885   (eval "$ac_compile") 2>conftest.er1
3886   ac_status=$?
3887   grep -v '^ *+' conftest.er1 >conftest.err
3888   rm -f conftest.er1
3889   cat conftest.err >&5
3890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891   (exit $ac_status); } &&
3892          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3893   { (case "(($ac_try" in
3894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895   *) ac_try_echo=$ac_try;;
3896 esac
3897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3898   (eval "$ac_try") 2>&5
3899   ac_status=$?
3900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901   (exit $ac_status); }; } &&
3902          { ac_try='test -s conftest.$ac_objext'
3903   { (case "(($ac_try" in
3904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905   *) ac_try_echo=$ac_try;;
3906 esac
3907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3908   (eval "$ac_try") 2>&5
3909   ac_status=$?
3910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911   (exit $ac_status); }; }; then
3912   ac_cv_header_stdc=yes
3913 else
3914   echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3916
3917         ac_cv_header_stdc=no
3918 fi
3919
3920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921
3922 if test $ac_cv_header_stdc = yes; then
3923   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3924   cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h.  */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h.  */
3930 #include <string.h>
3931
3932 _ACEOF
3933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3934   $EGREP "memchr" >/dev/null 2>&1; then
3935   :
3936 else
3937   ac_cv_header_stdc=no
3938 fi
3939 rm -f conftest*
3940
3941 fi
3942
3943 if test $ac_cv_header_stdc = yes; then
3944   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3945   cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h.  */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h.  */
3951 #include <stdlib.h>
3952
3953 _ACEOF
3954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3955   $EGREP "free" >/dev/null 2>&1; then
3956   :
3957 else
3958   ac_cv_header_stdc=no
3959 fi
3960 rm -f conftest*
3961
3962 fi
3963
3964 if test $ac_cv_header_stdc = yes; then
3965   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3966   if test "$cross_compiling" = yes; then
3967   :
3968 else
3969   cat >conftest.$ac_ext <<_ACEOF
3970 /* confdefs.h.  */
3971 _ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h.  */
3975 #include <ctype.h>
3976 #include <stdlib.h>
3977 #if ((' ' & 0x0FF) == 0x020)
3978 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3979 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3980 #else
3981 # define ISLOWER(c) \
3982                    (('a' <= (c) && (c) <= 'i') \
3983                      || ('j' <= (c) && (c) <= 'r') \
3984                      || ('s' <= (c) && (c) <= 'z'))
3985 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3986 #endif
3987
3988 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3989 int
3990 main ()
3991 {
3992   int i;
3993   for (i = 0; i < 256; i++)
3994     if (XOR (islower (i), ISLOWER (i))
3995         || toupper (i) != TOUPPER (i))
3996       return 2;
3997   return 0;
3998 }
3999 _ACEOF
4000 rm -f conftest$ac_exeext
4001 if { (ac_try="$ac_link"
4002 case "(($ac_try" in
4003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004   *) ac_try_echo=$ac_try;;
4005 esac
4006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007   (eval "$ac_link") 2>&5
4008   ac_status=$?
4009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4011   { (case "(($ac_try" in
4012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013   *) ac_try_echo=$ac_try;;
4014 esac
4015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016   (eval "$ac_try") 2>&5
4017   ac_status=$?
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); }; }; then
4020   :
4021 else
4022   echo "$as_me: program exited with status $ac_status" >&5
4023 echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4025
4026 ( exit $ac_status )
4027 ac_cv_header_stdc=no
4028 fi
4029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4030 fi
4031
4032
4033 fi
4034 fi
4035 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4036 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4037 if test $ac_cv_header_stdc = yes; then
4038
4039 cat >>confdefs.h <<\_ACEOF
4040 #define STDC_HEADERS 1
4041 _ACEOF
4042
4043 fi
4044
4045 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4056                   inttypes.h stdint.h unistd.h
4057 do
4058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4062   echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064   cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h.  */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h.  */
4070 $ac_includes_default
4071
4072 #include <$ac_header>
4073 _ACEOF
4074 rm -f conftest.$ac_objext
4075 if { (ac_try="$ac_compile"
4076 case "(($ac_try" in
4077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078   *) ac_try_echo=$ac_try;;
4079 esac
4080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081   (eval "$ac_compile") 2>conftest.er1
4082   ac_status=$?
4083   grep -v '^ *+' conftest.er1 >conftest.err
4084   rm -f conftest.er1
4085   cat conftest.err >&5
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); } &&
4088          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4089   { (case "(($ac_try" in
4090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091   *) ac_try_echo=$ac_try;;
4092 esac
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094   (eval "$ac_try") 2>&5
4095   ac_status=$?
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); }; } &&
4098          { ac_try='test -s conftest.$ac_objext'
4099   { (case "(($ac_try" in
4100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101   *) ac_try_echo=$ac_try;;
4102 esac
4103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4104   (eval "$ac_try") 2>&5
4105   ac_status=$?
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); }; }; then
4108   eval "$as_ac_Header=yes"
4109 else
4110   echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113         eval "$as_ac_Header=no"
4114 fi
4115
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 fi
4118 ac_res=`eval echo '${'$as_ac_Header'}'`
4119                { echo "$as_me:$LINENO: result: $ac_res" >&5
4120 echo "${ECHO_T}$ac_res" >&6; }
4121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4122   cat >>confdefs.h <<_ACEOF
4123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4124 _ACEOF
4125
4126 fi
4127
4128 done
4129
4130
4131 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4132 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4133 if test "${ac_cv_c_bigendian+set}" = set; then
4134   echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136   # See if sys/param.h defines the BYTE_ORDER macro.
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h.  */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h.  */
4143 #include <sys/types.h>
4144 #include <sys/param.h>
4145
4146 int
4147 main ()
4148 {
4149 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4150  bogus endian macros
4151 #endif
4152
4153   ;
4154   return 0;
4155 }
4156 _ACEOF
4157 rm -f conftest.$ac_objext
4158 if { (ac_try="$ac_compile"
4159 case "(($ac_try" in
4160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161   *) ac_try_echo=$ac_try;;
4162 esac
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164   (eval "$ac_compile") 2>conftest.er1
4165   ac_status=$?
4166   grep -v '^ *+' conftest.er1 >conftest.err
4167   rm -f conftest.er1
4168   cat conftest.err >&5
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); } &&
4171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4172   { (case "(($ac_try" in
4173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174   *) ac_try_echo=$ac_try;;
4175 esac
4176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4177   (eval "$ac_try") 2>&5
4178   ac_status=$?
4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); }; } &&
4181          { ac_try='test -s conftest.$ac_objext'
4182   { (case "(($ac_try" in
4183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184   *) ac_try_echo=$ac_try;;
4185 esac
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187   (eval "$ac_try") 2>&5
4188   ac_status=$?
4189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190   (exit $ac_status); }; }; then
4191   # It does; now see whether it defined to BIG_ENDIAN or not.
4192 cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h.  */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h.  */
4198 #include <sys/types.h>
4199 #include <sys/param.h>
4200
4201 int
4202 main ()
4203 {
4204 #if BYTE_ORDER != BIG_ENDIAN
4205  not big endian
4206 #endif
4207
4208   ;
4209   return 0;
4210 }
4211 _ACEOF
4212 rm -f conftest.$ac_objext
4213 if { (ac_try="$ac_compile"
4214 case "(($ac_try" in
4215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216   *) ac_try_echo=$ac_try;;
4217 esac
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219   (eval "$ac_compile") 2>conftest.er1
4220   ac_status=$?
4221   grep -v '^ *+' conftest.er1 >conftest.err
4222   rm -f conftest.er1
4223   cat conftest.err >&5
4224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); } &&
4226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4227   { (case "(($ac_try" in
4228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229   *) ac_try_echo=$ac_try;;
4230 esac
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232   (eval "$ac_try") 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); }; } &&
4236          { ac_try='test -s conftest.$ac_objext'
4237   { (case "(($ac_try" in
4238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239   *) ac_try_echo=$ac_try;;
4240 esac
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242   (eval "$ac_try") 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); }; }; then
4246   ac_cv_c_bigendian=yes
4247 else
4248   echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4250
4251         ac_cv_c_bigendian=no
4252 fi
4253
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 else
4256   echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4258
4259         # It does not; compile a test program.
4260 if test "$cross_compiling" = yes; then
4261   # try to guess the endianness by grepping values into an object file
4262   ac_cv_c_bigendian=unknown
4263   cat >conftest.$ac_ext <<_ACEOF
4264 /* confdefs.h.  */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h.  */
4269 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4270 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4271 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4272 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4273 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4274 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4275 int
4276 main ()
4277 {
4278  _ascii (); _ebcdic ();
4279   ;
4280   return 0;
4281 }
4282 _ACEOF
4283 rm -f conftest.$ac_objext
4284 if { (ac_try="$ac_compile"
4285 case "(($ac_try" in
4286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287   *) ac_try_echo=$ac_try;;
4288 esac
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290   (eval "$ac_compile") 2>conftest.er1
4291   ac_status=$?
4292   grep -v '^ *+' conftest.er1 >conftest.err
4293   rm -f conftest.er1
4294   cat conftest.err >&5
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); } &&
4297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4298   { (case "(($ac_try" in
4299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300   *) ac_try_echo=$ac_try;;
4301 esac
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303   (eval "$ac_try") 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); }; } &&
4307          { ac_try='test -s conftest.$ac_objext'
4308   { (case "(($ac_try" in
4309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310   *) ac_try_echo=$ac_try;;
4311 esac
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313   (eval "$ac_try") 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); }; }; then
4317   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4318   ac_cv_c_bigendian=yes
4319 fi
4320 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4321   if test "$ac_cv_c_bigendian" = unknown; then
4322     ac_cv_c_bigendian=no
4323   else
4324     # finding both strings is unlikely to happen, but who knows?
4325     ac_cv_c_bigendian=unknown
4326   fi
4327 fi
4328 else
4329   echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4331
4332
4333 fi
4334
4335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336 else
4337   cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h.  */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h.  */
4343 $ac_includes_default
4344 int
4345 main ()
4346 {
4347
4348   /* Are we little or big endian?  From Harbison&Steele.  */
4349   union
4350   {
4351     long int l;
4352     char c[sizeof (long int)];
4353   } u;
4354   u.l = 1;
4355   return u.c[sizeof (long int) - 1] == 1;
4356
4357   ;
4358   return 0;
4359 }
4360 _ACEOF
4361 rm -f conftest$ac_exeext
4362 if { (ac_try="$ac_link"
4363 case "(($ac_try" in
4364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365   *) ac_try_echo=$ac_try;;
4366 esac
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368   (eval "$ac_link") 2>&5
4369   ac_status=$?
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4372   { (case "(($ac_try" in
4373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374   *) ac_try_echo=$ac_try;;
4375 esac
4376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377   (eval "$ac_try") 2>&5
4378   ac_status=$?
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); }; }; then
4381   ac_cv_c_bigendian=no
4382 else
4383   echo "$as_me: program exited with status $ac_status" >&5
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4386
4387 ( exit $ac_status )
4388 ac_cv_c_bigendian=yes
4389 fi
4390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4391 fi
4392
4393
4394 fi
4395
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 fi
4398 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4399 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4400 case $ac_cv_c_bigendian in
4401   yes)
4402     ENDIAN=big
4403  ;;
4404   no)
4405     ENDIAN=little
4406  ;;
4407   *)
4408     { { echo "$as_me:$LINENO: error: unknown endianness
4409 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4410 echo "$as_me: error: unknown endianness
4411 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4412    { (exit 1); exit 1; }; } ;;
4413 esac
4414
4415
4416 if test "$cross_compiling" = yes; then
4417   LLVM_CROSS_COMPILING=1
4418
4419
4420 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4421 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4422 if test "${ac_cv_build_exeext+set}" = set; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4426   ac_cv_build_exeext=.exe
4427 else
4428   ac_build_prefix=${build_alias}-
4429
4430   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4431 set dummy ${ac_build_prefix}gcc; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4435   echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437   if test -n "$BUILD_CC"; then
4438   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4439 else
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443   IFS=$as_save_IFS
4444   test -z "$as_dir" && as_dir=.
4445   for ac_exec_ext in '' $ac_executable_extensions; do
4446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4447     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449     break 2
4450   fi
4451 done
4452 done
4453 IFS=$as_save_IFS
4454
4455 fi
4456 fi
4457 BUILD_CC=$ac_cv_prog_BUILD_CC
4458 if test -n "$BUILD_CC"; then
4459   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4460 echo "${ECHO_T}$BUILD_CC" >&6; }
4461 else
4462   { echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6; }
4464 fi
4465
4466
4467   if test -z "$BUILD_CC"; then
4468      # Extract the first word of "gcc", so it can be a program name with args.
4469 set dummy gcc; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475   if test -n "$BUILD_CC"; then
4476   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4480 do
4481   IFS=$as_save_IFS
4482   test -z "$as_dir" && as_dir=.
4483   for ac_exec_ext in '' $ac_executable_extensions; do
4484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4485     ac_cv_prog_BUILD_CC="gcc"
4486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487     break 2
4488   fi
4489 done
4490 done
4491 IFS=$as_save_IFS
4492
4493 fi
4494 fi
4495 BUILD_CC=$ac_cv_prog_BUILD_CC
4496 if test -n "$BUILD_CC"; then
4497   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4498 echo "${ECHO_T}$BUILD_CC" >&6; }
4499 else
4500   { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4502 fi
4503
4504
4505      if test -z "$BUILD_CC"; then
4506        # Extract the first word of "cc", so it can be a program name with args.
4507 set dummy cc; ac_word=$2
4508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4510 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4511   echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513   if test -n "$BUILD_CC"; then
4514   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4515 else
4516   ac_prog_rejected=no
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520   IFS=$as_save_IFS
4521   test -z "$as_dir" && as_dir=.
4522   for ac_exec_ext in '' $ac_executable_extensions; do
4523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4524     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4525        ac_prog_rejected=yes
4526        continue
4527      fi
4528     ac_cv_prog_BUILD_CC="cc"
4529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530     break 2
4531   fi
4532 done
4533 done
4534 IFS=$as_save_IFS
4535
4536 if test $ac_prog_rejected = yes; then
4537   # We found a bogon in the path, so make sure we never use it.
4538   set dummy $ac_cv_prog_BUILD_CC
4539   shift
4540   if test $# != 0; then
4541     # We chose a different compiler from the bogus one.
4542     # However, it has the same basename, so the bogon will be chosen
4543     # first if we set BUILD_CC to just the basename; use the full file name.
4544     shift
4545     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4546   fi
4547 fi
4548 fi
4549 fi
4550 BUILD_CC=$ac_cv_prog_BUILD_CC
4551 if test -n "$BUILD_CC"; then
4552   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4553 echo "${ECHO_T}$BUILD_CC" >&6; }
4554 else
4555   { echo "$as_me:$LINENO: result: no" >&5
4556 echo "${ECHO_T}no" >&6; }
4557 fi
4558
4559
4560      fi
4561   fi
4562   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4563 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4564    { (exit 1); exit 1; }; }
4565   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4566   rm -f conftest*
4567   echo 'int main () { return 0; }' > conftest.$ac_ext
4568   ac_cv_build_exeext=
4569   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4570   (eval $ac_build_link) 2>&5
4571   ac_status=$?
4572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573   (exit $ac_status); }; then
4574     for file in conftest.*; do
4575       case $file in
4576       *.c | *.o | *.obj | *.dSYM) ;;
4577       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4578       esac
4579     done
4580   else
4581     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4582 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4583    { (exit 1); exit 1; }; }
4584   fi
4585   rm -f conftest*
4586   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4587 fi
4588 fi
4589
4590 BUILD_EXEEXT=""
4591 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4592 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4593 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4594 ac_build_exeext=$BUILD_EXEEXT
4595
4596   ac_build_prefix=${build_alias}-
4597   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4598 set dummy ${ac_build_prefix}g++; ac_word=$2
4599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4601 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4602   echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604   if test -n "$BUILD_CXX"; then
4605   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4609 do
4610   IFS=$as_save_IFS
4611   test -z "$as_dir" && as_dir=.
4612   for ac_exec_ext in '' $ac_executable_extensions; do
4613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4614     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616     break 2
4617   fi
4618 done
4619 done
4620 IFS=$as_save_IFS
4621
4622 fi
4623 fi
4624 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4625 if test -n "$BUILD_CXX"; then
4626   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4627 echo "${ECHO_T}$BUILD_CXX" >&6; }
4628 else
4629   { echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6; }
4631 fi
4632
4633
4634   if test -z "$BUILD_CXX"; then
4635      # Extract the first word of "g++", so it can be a program name with args.
4636 set dummy g++; ac_word=$2
4637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4639 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4640   echo $ECHO_N "(cached) $ECHO_C" >&6
4641 else
4642   if test -n "$BUILD_CXX"; then
4643   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4644 else
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648   IFS=$as_save_IFS
4649   test -z "$as_dir" && as_dir=.
4650   for ac_exec_ext in '' $ac_executable_extensions; do
4651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4652     ac_cv_prog_BUILD_CXX="g++"
4653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654     break 2
4655   fi
4656 done
4657 done
4658 IFS=$as_save_IFS
4659
4660 fi
4661 fi
4662 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4663 if test -n "$BUILD_CXX"; then
4664   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4665 echo "${ECHO_T}$BUILD_CXX" >&6; }
4666 else
4667   { echo "$as_me:$LINENO: result: no" >&5
4668 echo "${ECHO_T}no" >&6; }
4669 fi
4670
4671
4672      if test -z "$BUILD_CXX"; then
4673        # Extract the first word of "c++", so it can be a program name with args.
4674 set dummy c++; ac_word=$2
4675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4678   echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680   if test -n "$BUILD_CXX"; then
4681   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4682 else
4683   ac_prog_rejected=no
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4686 do
4687   IFS=$as_save_IFS
4688   test -z "$as_dir" && as_dir=.
4689   for ac_exec_ext in '' $ac_executable_extensions; do
4690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4691     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4692        ac_prog_rejected=yes
4693        continue
4694      fi
4695     ac_cv_prog_BUILD_CXX="c++"
4696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4697     break 2
4698   fi
4699 done
4700 done
4701 IFS=$as_save_IFS
4702
4703 if test $ac_prog_rejected = yes; then
4704   # We found a bogon in the path, so make sure we never use it.
4705   set dummy $ac_cv_prog_BUILD_CXX
4706   shift
4707   if test $# != 0; then
4708     # We chose a different compiler from the bogus one.
4709     # However, it has the same basename, so the bogon will be chosen
4710     # first if we set BUILD_CXX to just the basename; use the full file name.
4711     shift
4712     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4713   fi
4714 fi
4715 fi
4716 fi
4717 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4718 if test -n "$BUILD_CXX"; then
4719   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4720 echo "${ECHO_T}$BUILD_CXX" >&6; }
4721 else
4722   { echo "$as_me:$LINENO: result: no" >&5
4723 echo "${ECHO_T}no" >&6; }
4724 fi
4725
4726
4727      fi
4728   fi
4729 else
4730   LLVM_CROSS_COMPILING=0
4731
4732 fi
4733
4734 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4735   cvsbuild="yes"
4736   optimize="no"
4737   CVSBUILD=CVSBUILD=1
4738
4739 else
4740   cvsbuild="no"
4741   optimize="yes"
4742 fi
4743
4744
4745 # Check whether --enable-optimized was given.
4746 if test "${enable_optimized+set}" = set; then
4747   enableval=$enable_optimized;
4748 else
4749   enableval=$optimize
4750 fi
4751
4752 if test ${enableval} = "no" ; then
4753   ENABLE_OPTIMIZED=
4754
4755 else
4756   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4757
4758 fi
4759
4760 # Check whether --enable-profiling was given.
4761 if test "${enable_profiling+set}" = set; then
4762   enableval=$enable_profiling;
4763 else
4764   enableval="no"
4765 fi
4766
4767 if test ${enableval} = "no" ; then
4768   ENABLE_PROFILING=
4769
4770 else
4771   ENABLE_PROFILING=ENABLE_PROFILING=1
4772
4773 fi
4774
4775 # Check whether --enable-assertions was given.
4776 if test "${enable_assertions+set}" = set; then
4777   enableval=$enable_assertions;
4778 else
4779   enableval="yes"
4780 fi
4781
4782 if test ${enableval} = "yes" ; then
4783   DISABLE_ASSERTIONS=
4784
4785 else
4786   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4787
4788 fi
4789
4790 if test ${ENABLE_OPTIMIZED},${DISABLE_ASSERTIONS} = "ENABLE_OPTIMIZED=1,DISABLE_ASSERTIONS=1" ; then
4791   LLVM_COMPACT_SENTINELS=1
4792
4793 else
4794   LLVM_COMPACT_SENTINELS=0
4795
4796 fi
4797
4798
4799 cat >>confdefs.h <<_ACEOF
4800 #define LLVM_COMPACT_SENTINELS $LLVM_COMPACT_SENTINELS
4801 _ACEOF
4802
4803
4804
4805 # Check whether --enable-expensive-checks was given.
4806 if test "${enable_expensive_checks+set}" = set; then
4807   enableval=$enable_expensive_checks;
4808 else
4809   enableval="no"
4810 fi
4811
4812 if test ${enableval} = "yes" ; then
4813   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4814
4815   EXPENSIVE_CHECKS=yes
4816
4817 else
4818   ENABLE_EXPENSIVE_CHECKS=
4819
4820   EXPENSIVE_CHECKS=no
4821
4822 fi
4823
4824 # Check whether --enable-debug-runtime was given.
4825 if test "${enable_debug_runtime+set}" = set; then
4826   enableval=$enable_debug_runtime;
4827 else
4828   enableval=no
4829 fi
4830
4831 if test ${enableval} = "no" ; then
4832   DEBUG_RUNTIME=
4833
4834 else
4835   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4836
4837 fi
4838
4839 # Check whether --enable-jit was given.
4840 if test "${enable_jit+set}" = set; then
4841   enableval=$enable_jit;
4842 else
4843   enableval=default
4844 fi
4845
4846 if test ${enableval} = "no"
4847 then
4848   JIT=
4849
4850 else
4851   case "$llvm_cv_target_arch" in
4852     x86)         TARGET_HAS_JIT=1
4853  ;;
4854     Sparc)       TARGET_HAS_JIT=0
4855  ;;
4856     PowerPC)     TARGET_HAS_JIT=1
4857  ;;
4858     x86_64)      TARGET_HAS_JIT=1
4859  ;;
4860     Alpha)       TARGET_HAS_JIT=1
4861  ;;
4862     ARM)         TARGET_HAS_JIT=0
4863  ;;
4864     Mips)        TARGET_HAS_JIT=0
4865  ;;
4866     PIC16)       TARGET_HAS_JIT=0
4867  ;;
4868     XCore)       TARGET_HAS_JIT=0
4869  ;;
4870     MSP430)      TARGET_HAS_JIT=0
4871  ;;
4872     SystemZ)     TARGET_HAS_JIT=0
4873  ;;
4874     Blackfin)    TARGET_HAS_JIT=0
4875  ;;
4876     *)           TARGET_HAS_JIT=0
4877  ;;
4878   esac
4879 fi
4880
4881 # Check whether --enable-doxygen was given.
4882 if test "${enable_doxygen+set}" = set; then
4883   enableval=$enable_doxygen;
4884 else
4885   enableval=default
4886 fi
4887
4888 case "$enableval" in
4889   yes) ENABLE_DOXYGEN=1
4890  ;;
4891   no)  ENABLE_DOXYGEN=0
4892  ;;
4893   default) ENABLE_DOXYGEN=0
4894  ;;
4895   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4896 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4897    { (exit 1); exit 1; }; } ;;
4898 esac
4899
4900 # Check whether --enable-threads was given.
4901 if test "${enable_threads+set}" = set; then
4902   enableval=$enable_threads;
4903 else
4904   enableval=default
4905 fi
4906
4907 case "$enableval" in
4908   yes) ENABLE_THREADS=1
4909  ;;
4910   no)  ENABLE_THREADS=0
4911  ;;
4912   default) ENABLE_THREADS=1
4913  ;;
4914   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4915 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4916    { (exit 1); exit 1; }; } ;;
4917 esac
4918
4919 cat >>confdefs.h <<_ACEOF
4920 #define ENABLE_THREADS $ENABLE_THREADS
4921 _ACEOF
4922
4923
4924 # Check whether --enable-pic was given.
4925 if test "${enable_pic+set}" = set; then
4926   enableval=$enable_pic;
4927 else
4928   enableval=default
4929 fi
4930
4931 case "$enableval" in
4932   yes) ENABLE_PIC=1
4933  ;;
4934   no)  ENABLE_PIC=0
4935  ;;
4936   default) ENABLE_PIC=1
4937  ;;
4938   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4939 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4940    { (exit 1); exit 1; }; } ;;
4941 esac
4942
4943 cat >>confdefs.h <<_ACEOF
4944 #define ENABLE_PIC $ENABLE_PIC
4945 _ACEOF
4946
4947
4948 TARGETS_TO_BUILD=""
4949 # Check whether --enable-targets was given.
4950 if test "${enable_targets+set}" = set; then
4951   enableval=$enable_targets;
4952 else
4953   enableval=all
4954 fi
4955
4956 case "$enableval" in
4957   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
4958   host-only)
4959     case "$llvm_cv_target_arch" in
4960       x86)         TARGETS_TO_BUILD="X86" ;;
4961       x86_64)      TARGETS_TO_BUILD="X86" ;;
4962       Sparc)       TARGETS_TO_BUILD="Sparc" ;;
4963       PowerPC)     TARGETS_TO_BUILD="PowerPC" ;;
4964       Alpha)       TARGETS_TO_BUILD="Alpha" ;;
4965       ARM)         TARGETS_TO_BUILD="ARM" ;;
4966       Mips)        TARGETS_TO_BUILD="Mips" ;;
4967       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4968       PIC16)       TARGETS_TO_BUILD="PIC16" ;;
4969       XCore)       TARGETS_TO_BUILD="XCore" ;;
4970       MSP430)      TARGETS_TO_BUILD="MSP430" ;;
4971       SystemZ)     TARGETS_TO_BUILD="SystemZ" ;;
4972       Blackfin)    TARGETS_TO_BUILD="Blackfin" ;;
4973       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4974 echo "$as_me: error: Can not set target to build" >&2;}
4975    { (exit 1); exit 1; }; } ;;
4976     esac
4977     ;;
4978   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4979       case "$a_target" in
4980         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4981         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4982         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4983         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4984         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4985         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4986         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4987         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4988         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4989         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4990         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4991         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4992         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4993         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4994         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4995         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4996         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4997 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4998    { (exit 1); exit 1; }; } ;;
4999       esac
5000   done
5001   ;;
5002 esac
5003 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5004
5005
5006 # Determine whether we are building LLVM support for the native architecture.
5007 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5008 for a_target in $TARGETS_TO_BUILD; do
5009   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5010     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5011
5012 cat >>confdefs.h <<_ACEOF
5013 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5014 _ACEOF
5015
5016   fi
5017 done
5018
5019 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5020 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5021 LLVM_ENUM_TARGETS=""
5022 LLVM_ENUM_ASM_PRINTERS=""
5023 LLVM_ENUM_ASM_PARSERS=""
5024 for target_to_build in $TARGETS_TO_BUILD; do
5025   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5026   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5027     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5028   fi
5029   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5030     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5031   fi
5032 done
5033
5034
5035
5036
5037 # Check whether --enable-cbe-printf-a was given.
5038 if test "${enable_cbe_printf_a+set}" = set; then
5039   enableval=$enable_cbe_printf_a;
5040 else
5041   enableval=default
5042 fi
5043
5044 case "$enableval" in
5045   yes) ENABLE_CBE_PRINTF_A=1
5046  ;;
5047   no)  ENABLE_CBE_PRINTF_A=0
5048  ;;
5049   default)  ENABLE_CBE_PRINTF_A=1
5050  ;;
5051   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5052 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5053    { (exit 1); exit 1; }; } ;;
5054 esac
5055
5056 cat >>confdefs.h <<_ACEOF
5057 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5058 _ACEOF
5059
5060
5061
5062 # Check whether --with-llvmgccdir was given.
5063 if test "${with_llvmgccdir+set}" = set; then
5064   withval=$with_llvmgccdir;
5065 else
5066   withval=default
5067 fi
5068
5069 case "$withval" in
5070   default) WITH_LLVMGCCDIR=default ;;
5071   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5072   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5073 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5074    { (exit 1); exit 1; }; } ;;
5075 esac
5076
5077
5078 # Check whether --with-llvmgcc was given.
5079 if test "${with_llvmgcc+set}" = set; then
5080   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5081       WITH_LLVMGCCDIR=""
5082 fi
5083
5084
5085
5086 # Check whether --with-llvmgxx was given.
5087 if test "${with_llvmgxx+set}" = set; then
5088   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5089     WITH_LLVMGCCDIR=""
5090 fi
5091
5092
5093 if test -n "$LLVMGCC"; then
5094    LLVMGCCCOMMAND="$LLVMGCC"
5095 fi
5096
5097 if test -n "$LLVMGXX"; then
5098    LLVMGXXCOMMAND="$LLVMGXX"
5099 fi
5100
5101 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5102    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5103 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5104    { (exit 1); exit 1; }; };
5105 fi
5106
5107 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5108    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5109 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5110    { (exit 1); exit 1; }; };
5111 fi
5112
5113
5114 # Check whether --with-extra-options was given.
5115 if test "${with_extra_options+set}" = set; then
5116   withval=$with_extra_options;
5117 else
5118   withval=default
5119 fi
5120
5121 case "$withval" in
5122   default) EXTRA_OPTIONS= ;;
5123   *) EXTRA_OPTIONS=$withval ;;
5124 esac
5125 EXTRA_OPTIONS=$EXTRA_OPTIONS
5126
5127
5128 # Check whether --enable-bindings was given.
5129 if test "${enable_bindings+set}" = set; then
5130   enableval=$enable_bindings;
5131 else
5132   enableval=default
5133 fi
5134
5135 BINDINGS_TO_BUILD=""
5136 case "$enableval" in
5137   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5138   all ) BINDINGS_TO_BUILD="ocaml" ;;
5139   none | no) BINDINGS_TO_BUILD="" ;;
5140   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5141       case "$a_binding" in
5142         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5143         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5144 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5145    { (exit 1); exit 1; }; } ;;
5146       esac
5147   done
5148   ;;
5149 esac
5150
5151
5152 # Check whether --with-ocaml-libdir was given.
5153 if test "${with_ocaml_libdir+set}" = set; then
5154   withval=$with_ocaml_libdir;
5155 else
5156   withval=auto
5157 fi
5158
5159 case "$withval" in
5160   auto) with_ocaml_libdir="$withval" ;;
5161   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5162   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5163 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5164    { (exit 1); exit 1; }; } ;;
5165 esac
5166
5167
5168 # Check whether --with-binutils-include was given.
5169 if test "${with_binutils_include+set}" = set; then
5170   withval=$with_binutils_include;
5171 else
5172   withval=default
5173 fi
5174
5175 case "$withval" in
5176   default) WITH_BINUTILS_INCDIR=default ;;
5177   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5178   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5179 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5180    { (exit 1); exit 1; }; } ;;
5181 esac
5182 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5183   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5184
5185   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5186      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5187      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5188 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5189    { (exit 1); exit 1; }; };
5190   fi
5191 fi
5192
5193 # Check whether --enable-libffi was given.
5194 if test "${enable_libffi+set}" = set; then
5195   enableval=$enable_libffi;
5196 else
5197   enableval=yes
5198 fi
5199
5200 case "$enableval" in
5201   yes) llvm_cv_enable_libffi="yes" ;;
5202   no)  llvm_cv_enable_libffi="no"  ;;
5203   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5205    { (exit 1); exit 1; }; } ;;
5206 esac
5207
5208 if test "$llvm_cv_os_type" = "Win32" ; then
5209    llvmc_dynamic="yes"
5210 else
5211    llvmc_dynamic="no"
5212 fi
5213
5214 # Check whether --enable-llvmc-dynamic was given.
5215 if test "${enable_llvmc_dynamic+set}" = set; then
5216   enableval=$enable_llvmc_dynamic;
5217 else
5218   enableval=$llvmc_dynamic
5219 fi
5220
5221 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5222    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5223
5224 else
5225    ENABLE_LLVMC_DYNAMIC=
5226
5227 fi
5228
5229 # Check whether --enable-llvmc-dynamic-plugins was given.
5230 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5231   enableval=$enable_llvmc_dynamic_plugins;
5232 else
5233   enableval=yes
5234 fi
5235
5236 if test ${enableval} = "yes" ; then
5237    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5238
5239 else
5240    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5241
5242 fi
5243
5244
5245 ac_ext=c
5246 ac_cpp='$CPP $CPPFLAGS'
5247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5250 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5251 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5252 # On Suns, sometimes $CPP names a directory.
5253 if test -n "$CPP" && test -d "$CPP"; then
5254   CPP=
5255 fi
5256 if test -z "$CPP"; then
5257   if test "${ac_cv_prog_CPP+set}" = set; then
5258   echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260       # Double quotes because CPP needs to be expanded
5261     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5262     do
5263       ac_preproc_ok=false
5264 for ac_c_preproc_warn_flag in '' yes
5265 do
5266   # Use a header file that comes with gcc, so configuring glibc
5267   # with a fresh cross-compiler works.
5268   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5269   # <limits.h> exists even on freestanding compilers.
5270   # On the NeXT, cc -E runs the code through the compiler's parser,
5271   # not just through cpp. "Syntax error" is here to catch this case.
5272   cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h.  */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h.  */
5278 #ifdef __STDC__
5279 # include <limits.h>
5280 #else
5281 # include <assert.h>
5282 #endif
5283                      Syntax error
5284 _ACEOF
5285 if { (ac_try="$ac_cpp conftest.$ac_ext"
5286 case "(($ac_try" in
5287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288   *) ac_try_echo=$ac_try;;
5289 esac
5290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5292   ac_status=$?
5293   grep -v '^ *+' conftest.er1 >conftest.err
5294   rm -f conftest.er1
5295   cat conftest.err >&5
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); } >/dev/null; then
5298   if test -s conftest.err; then
5299     ac_cpp_err=$ac_c_preproc_warn_flag
5300     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5301   else
5302     ac_cpp_err=
5303   fi
5304 else
5305   ac_cpp_err=yes
5306 fi
5307 if test -z "$ac_cpp_err"; then
5308   :
5309 else
5310   echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5312
5313   # Broken: fails on valid input.
5314 continue
5315 fi
5316
5317 rm -f conftest.err conftest.$ac_ext
5318
5319   # OK, works on sane cases.  Now check whether nonexistent headers
5320   # can be detected and how.
5321   cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h.  */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h.  */
5327 #include <ac_nonexistent.h>
5328 _ACEOF
5329 if { (ac_try="$ac_cpp conftest.$ac_ext"
5330 case "(($ac_try" in
5331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332   *) ac_try_echo=$ac_try;;
5333 esac
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5336   ac_status=$?
5337   grep -v '^ *+' conftest.er1 >conftest.err
5338   rm -f conftest.er1
5339   cat conftest.err >&5
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); } >/dev/null; then
5342   if test -s conftest.err; then
5343     ac_cpp_err=$ac_c_preproc_warn_flag
5344     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5345   else
5346     ac_cpp_err=
5347   fi
5348 else
5349   ac_cpp_err=yes
5350 fi
5351 if test -z "$ac_cpp_err"; then
5352   # Broken: success on invalid input.
5353 continue
5354 else
5355   echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5357
5358   # Passes both tests.
5359 ac_preproc_ok=:
5360 break
5361 fi
5362
5363 rm -f conftest.err conftest.$ac_ext
5364
5365 done
5366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5367 rm -f conftest.err conftest.$ac_ext
5368 if $ac_preproc_ok; then
5369   break
5370 fi
5371
5372     done
5373     ac_cv_prog_CPP=$CPP
5374
5375 fi
5376   CPP=$ac_cv_prog_CPP
5377 else
5378   ac_cv_prog_CPP=$CPP
5379 fi
5380 { echo "$as_me:$LINENO: result: $CPP" >&5
5381 echo "${ECHO_T}$CPP" >&6; }
5382 ac_preproc_ok=false
5383 for ac_c_preproc_warn_flag in '' yes
5384 do
5385   # Use a header file that comes with gcc, so configuring glibc
5386   # with a fresh cross-compiler works.
5387   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5388   # <limits.h> exists even on freestanding compilers.
5389   # On the NeXT, cc -E runs the code through the compiler's parser,
5390   # not just through cpp. "Syntax error" is here to catch this case.
5391   cat >conftest.$ac_ext <<_ACEOF
5392 /* confdefs.h.  */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h.  */
5397 #ifdef __STDC__
5398 # include <limits.h>
5399 #else
5400 # include <assert.h>
5401 #endif
5402                      Syntax error
5403 _ACEOF
5404 if { (ac_try="$ac_cpp conftest.$ac_ext"
5405 case "(($ac_try" in
5406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407   *) ac_try_echo=$ac_try;;
5408 esac
5409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5411   ac_status=$?
5412   grep -v '^ *+' conftest.er1 >conftest.err
5413   rm -f conftest.er1
5414   cat conftest.err >&5
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); } >/dev/null; then
5417   if test -s conftest.err; then
5418     ac_cpp_err=$ac_c_preproc_warn_flag
5419     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5420   else
5421     ac_cpp_err=
5422   fi
5423 else
5424   ac_cpp_err=yes
5425 fi
5426 if test -z "$ac_cpp_err"; then
5427   :
5428 else
5429   echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.$ac_ext >&5
5431
5432   # Broken: fails on valid input.
5433 continue
5434 fi
5435
5436 rm -f conftest.err conftest.$ac_ext
5437
5438   # OK, works on sane cases.  Now check whether nonexistent headers
5439   # can be detected and how.
5440   cat >conftest.$ac_ext <<_ACEOF
5441 /* confdefs.h.  */
5442 _ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h.  */
5446 #include <ac_nonexistent.h>
5447 _ACEOF
5448 if { (ac_try="$ac_cpp conftest.$ac_ext"
5449 case "(($ac_try" in
5450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451   *) ac_try_echo=$ac_try;;
5452 esac
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5455   ac_status=$?
5456   grep -v '^ *+' conftest.er1 >conftest.err
5457   rm -f conftest.er1
5458   cat conftest.err >&5
5459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460   (exit $ac_status); } >/dev/null; then
5461   if test -s conftest.err; then
5462     ac_cpp_err=$ac_c_preproc_warn_flag
5463     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5464   else
5465     ac_cpp_err=
5466   fi
5467 else
5468   ac_cpp_err=yes
5469 fi
5470 if test -z "$ac_cpp_err"; then
5471   # Broken: success on invalid input.
5472 continue
5473 else
5474   echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5476
5477   # Passes both tests.
5478 ac_preproc_ok=:
5479 break
5480 fi
5481
5482 rm -f conftest.err conftest.$ac_ext
5483
5484 done
5485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5486 rm -f conftest.err conftest.$ac_ext
5487 if $ac_preproc_ok; then
5488   :
5489 else
5490   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5491 See \`config.log' for more details." >&5
5492 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5493 See \`config.log' for more details." >&2;}
5494    { (exit 1); exit 1; }; }
5495 fi
5496
5497 ac_ext=c
5498 ac_cpp='$CPP $CPPFLAGS'
5499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5502
5503 ac_ext=c
5504 ac_cpp='$CPP $CPPFLAGS'
5505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508 if test -n "$ac_tool_prefix"; then
5509   for ac_prog in gcc
5510   do
5511     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5515 if test "${ac_cv_prog_CC+set}" = set; then
5516   echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518   if test -n "$CC"; then
5519   ac_cv_prog_CC="$CC" # Let the user override the test.
5520 else
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5523 do
5524   IFS=$as_save_IFS
5525   test -z "$as_dir" && as_dir=.
5526   for ac_exec_ext in '' $ac_executable_extensions; do
5527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5528     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530     break 2
5531   fi
5532 done
5533 done
5534 IFS=$as_save_IFS
5535
5536 fi
5537 fi
5538 CC=$ac_cv_prog_CC
5539 if test -n "$CC"; then
5540   { echo "$as_me:$LINENO: result: $CC" >&5
5541 echo "${ECHO_T}$CC" >&6; }
5542 else
5543   { echo "$as_me:$LINENO: result: no" >&5
5544 echo "${ECHO_T}no" >&6; }
5545 fi
5546
5547
5548     test -n "$CC" && break
5549   done
5550 fi
5551 if test -z "$CC"; then
5552   ac_ct_CC=$CC
5553   for ac_prog in gcc
5554 do
5555   # Extract the first word of "$ac_prog", so it can be a program name with args.
5556 set dummy $ac_prog; ac_word=$2
5557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5560   echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562   if test -n "$ac_ct_CC"; then
5563   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5564 else
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5567 do
5568   IFS=$as_save_IFS
5569   test -z "$as_dir" && as_dir=.
5570   for ac_exec_ext in '' $ac_executable_extensions; do
5571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5572     ac_cv_prog_ac_ct_CC="$ac_prog"
5573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5574     break 2
5575   fi
5576 done
5577 done
5578 IFS=$as_save_IFS
5579
5580 fi
5581 fi
5582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5583 if test -n "$ac_ct_CC"; then
5584   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5585 echo "${ECHO_T}$ac_ct_CC" >&6; }
5586 else
5587   { echo "$as_me:$LINENO: result: no" >&5
5588 echo "${ECHO_T}no" >&6; }
5589 fi
5590
5591
5592   test -n "$ac_ct_CC" && break
5593 done
5594
5595   if test "x$ac_ct_CC" = x; then
5596     CC=""
5597   else
5598     case $cross_compiling:$ac_tool_warned in
5599 yes:)
5600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5601 whose name does not start with the host triplet.  If you think this
5602 configuration is useful to you, please write to autoconf@gnu.org." >&5
5603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5604 whose name does not start with the host triplet.  If you think this
5605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5606 ac_tool_warned=yes ;;
5607 esac
5608     CC=$ac_ct_CC
5609   fi
5610 fi
5611
5612
5613 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5614 See \`config.log' for more details." >&5
5615 echo "$as_me: error: no acceptable C compiler found in \$PATH
5616 See \`config.log' for more details." >&2;}
5617    { (exit 1); exit 1; }; }
5618
5619 # Provide some information about the compiler.
5620 echo "$as_me:$LINENO: checking for C compiler version" >&5
5621 ac_compiler=`set X $ac_compile; echo $2`
5622 { (ac_try="$ac_compiler --version >&5"
5623 case "(($ac_try" in
5624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625   *) ac_try_echo=$ac_try;;
5626 esac
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628   (eval "$ac_compiler --version >&5") 2>&5
5629   ac_status=$?
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); }
5632 { (ac_try="$ac_compiler -v >&5"
5633 case "(($ac_try" in
5634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635   *) ac_try_echo=$ac_try;;
5636 esac
5637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638   (eval "$ac_compiler -v >&5") 2>&5
5639   ac_status=$?
5640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641   (exit $ac_status); }
5642 { (ac_try="$ac_compiler -V >&5"
5643 case "(($ac_try" in
5644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645   *) ac_try_echo=$ac_try;;
5646 esac
5647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5648   (eval "$ac_compiler -V >&5") 2>&5
5649   ac_status=$?
5650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651   (exit $ac_status); }
5652
5653 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5654 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5655 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5656   echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658   cat >conftest.$ac_ext <<_ACEOF
5659 /* confdefs.h.  */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h.  */
5664
5665 int
5666 main ()
5667 {
5668 #ifndef __GNUC__
5669        choke me
5670 #endif
5671
5672   ;
5673   return 0;
5674 }
5675 _ACEOF
5676 rm -f conftest.$ac_objext
5677 if { (ac_try="$ac_compile"
5678 case "(($ac_try" in
5679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680   *) ac_try_echo=$ac_try;;
5681 esac
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683   (eval "$ac_compile") 2>conftest.er1
5684   ac_status=$?
5685   grep -v '^ *+' conftest.er1 >conftest.err
5686   rm -f conftest.er1
5687   cat conftest.err >&5
5688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689   (exit $ac_status); } &&
5690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5691   { (case "(($ac_try" in
5692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693   *) ac_try_echo=$ac_try;;
5694 esac
5695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696   (eval "$ac_try") 2>&5
5697   ac_status=$?
5698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699   (exit $ac_status); }; } &&
5700          { ac_try='test -s conftest.$ac_objext'
5701   { (case "(($ac_try" in
5702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703   *) ac_try_echo=$ac_try;;
5704 esac
5705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706   (eval "$ac_try") 2>&5
5707   ac_status=$?
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); }; }; then
5710   ac_compiler_gnu=yes
5711 else
5712   echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5714
5715         ac_compiler_gnu=no
5716 fi
5717
5718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5720
5721 fi
5722 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5723 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5724 GCC=`test $ac_compiler_gnu = yes && echo yes`
5725 ac_test_CFLAGS=${CFLAGS+set}
5726 ac_save_CFLAGS=$CFLAGS
5727 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5728 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5729 if test "${ac_cv_prog_cc_g+set}" = set; then
5730   echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732   ac_save_c_werror_flag=$ac_c_werror_flag
5733    ac_c_werror_flag=yes
5734    ac_cv_prog_cc_g=no
5735    CFLAGS="-g"
5736    cat >conftest.$ac_ext <<_ACEOF
5737 /* confdefs.h.  */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h.  */
5742
5743 int
5744 main ()
5745 {
5746
5747   ;
5748   return 0;
5749 }
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (ac_try="$ac_compile"
5753 case "(($ac_try" in
5754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755   *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758   (eval "$ac_compile") 2>conftest.er1
5759   ac_status=$?
5760   grep -v '^ *+' conftest.er1 >conftest.err
5761   rm -f conftest.er1
5762   cat conftest.err >&5
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); } &&
5765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5766   { (case "(($ac_try" in
5767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768   *) ac_try_echo=$ac_try;;
5769 esac
5770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771   (eval "$ac_try") 2>&5
5772   ac_status=$?
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); }; } &&
5775          { ac_try='test -s conftest.$ac_objext'
5776   { (case "(($ac_try" in
5777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778   *) ac_try_echo=$ac_try;;
5779 esac
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781   (eval "$ac_try") 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; }; then
5785   ac_cv_prog_cc_g=yes
5786 else
5787   echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5789
5790         CFLAGS=""
5791       cat >conftest.$ac_ext <<_ACEOF
5792 /* confdefs.h.  */
5793 _ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h.  */
5797
5798 int
5799 main ()
5800 {
5801
5802   ;
5803   return 0;
5804 }
5805 _ACEOF
5806 rm -f conftest.$ac_objext
5807 if { (ac_try="$ac_compile"
5808 case "(($ac_try" in
5809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810   *) ac_try_echo=$ac_try;;
5811 esac
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813   (eval "$ac_compile") 2>conftest.er1
5814   ac_status=$?
5815   grep -v '^ *+' conftest.er1 >conftest.err
5816   rm -f conftest.er1
5817   cat conftest.err >&5
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); } &&
5820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5821   { (case "(($ac_try" in
5822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823   *) ac_try_echo=$ac_try;;
5824 esac
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826   (eval "$ac_try") 2>&5
5827   ac_status=$?
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); }; } &&
5830          { ac_try='test -s conftest.$ac_objext'
5831   { (case "(($ac_try" in
5832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833   *) ac_try_echo=$ac_try;;
5834 esac
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836   (eval "$ac_try") 2>&5
5837   ac_status=$?
5838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); }; }; then
5840   :
5841 else
5842   echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5844
5845         ac_c_werror_flag=$ac_save_c_werror_flag
5846          CFLAGS="-g"
5847          cat >conftest.$ac_ext <<_ACEOF
5848 /* confdefs.h.  */
5849 _ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h.  */
5853
5854 int
5855 main ()
5856 {
5857
5858   ;
5859   return 0;
5860 }
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (ac_try="$ac_compile"
5864 case "(($ac_try" in
5865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866   *) ac_try_echo=$ac_try;;
5867 esac
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869   (eval "$ac_compile") 2>conftest.er1
5870   ac_status=$?
5871   grep -v '^ *+' conftest.er1 >conftest.err
5872   rm -f conftest.er1
5873   cat conftest.err >&5
5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); } &&
5876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5877   { (case "(($ac_try" in
5878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879   *) ac_try_echo=$ac_try;;
5880 esac
5881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882   (eval "$ac_try") 2>&5
5883   ac_status=$?
5884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885   (exit $ac_status); }; } &&
5886          { ac_try='test -s conftest.$ac_objext'
5887   { (case "(($ac_try" in
5888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889   *) ac_try_echo=$ac_try;;
5890 esac
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892   (eval "$ac_try") 2>&5
5893   ac_status=$?
5894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895   (exit $ac_status); }; }; then
5896   ac_cv_prog_cc_g=yes
5897 else
5898   echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5900
5901
5902 fi
5903
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 fi
5906
5907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908 fi
5909
5910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911    ac_c_werror_flag=$ac_save_c_werror_flag
5912 fi
5913 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5914 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5915 if test "$ac_test_CFLAGS" = set; then
5916   CFLAGS=$ac_save_CFLAGS
5917 elif test $ac_cv_prog_cc_g = yes; then
5918   if test "$GCC" = yes; then
5919     CFLAGS="-g -O2"
5920   else
5921     CFLAGS="-g"
5922   fi
5923 else
5924   if test "$GCC" = yes; then
5925     CFLAGS="-O2"
5926   else
5927     CFLAGS=
5928   fi
5929 fi
5930 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5931 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5932 if test "${ac_cv_prog_cc_c89+set}" = set; then
5933   echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935   ac_cv_prog_cc_c89=no
5936 ac_save_CC=$CC
5937 cat >conftest.$ac_ext <<_ACEOF
5938 /* confdefs.h.  */
5939 _ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h.  */
5943 #include <stdarg.h>
5944 #include <stdio.h>
5945 #include <sys/types.h>
5946 #include <sys/stat.h>
5947 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5948 struct buf { int x; };
5949 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5950 static char *e (p, i)
5951      char **p;
5952      int i;
5953 {
5954   return p[i];
5955 }
5956 static char *f (char * (*g) (char **, int), char **p, ...)
5957 {
5958   char *s;
5959   va_list v;
5960   va_start (v,p);
5961   s = g (p, va_arg (v,int));
5962   va_end (v);
5963   return s;
5964 }
5965
5966 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5967    function prototypes and stuff, but not '\xHH' hex character constants.
5968    These don't provoke an error unfortunately, instead are silently treated
5969    as 'x'.  The following induces an error, until -std is added to get
5970    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5971    array size at least.  It's necessary to write '\x00'==0 to get something
5972    that's true only with -std.  */
5973 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5974
5975 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5976    inside strings and character constants.  */
5977 #define FOO(x) 'x'
5978 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5979
5980 int test (int i, double x);
5981 struct s1 {int (*f) (int a);};
5982 struct s2 {int (*f) (double a);};
5983 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5984 int argc;
5985 char **argv;
5986 int
5987 main ()
5988 {
5989 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5990   ;
5991   return 0;
5992 }
5993 _ACEOF
5994 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5995         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5996 do
5997   CC="$ac_save_CC $ac_arg"
5998   rm -f conftest.$ac_objext
5999 if { (ac_try="$ac_compile"
6000 case "(($ac_try" in
6001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002   *) ac_try_echo=$ac_try;;
6003 esac
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005   (eval "$ac_compile") 2>conftest.er1
6006   ac_status=$?
6007   grep -v '^ *+' conftest.er1 >conftest.err
6008   rm -f conftest.er1
6009   cat conftest.err >&5
6010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011   (exit $ac_status); } &&
6012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6013   { (case "(($ac_try" in
6014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015   *) ac_try_echo=$ac_try;;
6016 esac
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018   (eval "$ac_try") 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; } &&
6022          { ac_try='test -s conftest.$ac_objext'
6023   { (case "(($ac_try" in
6024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025   *) ac_try_echo=$ac_try;;
6026 esac
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028   (eval "$ac_try") 2>&5
6029   ac_status=$?
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); }; }; then
6032   ac_cv_prog_cc_c89=$ac_arg
6033 else
6034   echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6036
6037
6038 fi
6039
6040 rm -f core conftest.err conftest.$ac_objext
6041   test "x$ac_cv_prog_cc_c89" != "xno" && break
6042 done
6043 rm -f conftest.$ac_ext
6044 CC=$ac_save_CC
6045
6046 fi
6047 # AC_CACHE_VAL
6048 case "x$ac_cv_prog_cc_c89" in
6049   x)
6050     { echo "$as_me:$LINENO: result: none needed" >&5
6051 echo "${ECHO_T}none needed" >&6; } ;;
6052   xno)
6053     { echo "$as_me:$LINENO: result: unsupported" >&5
6054 echo "${ECHO_T}unsupported" >&6; } ;;
6055   *)
6056     CC="$CC $ac_cv_prog_cc_c89"
6057     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6058 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6059 esac
6060
6061
6062 ac_ext=c
6063 ac_cpp='$CPP $CPPFLAGS'
6064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6067
6068 ac_ext=cpp
6069 ac_cpp='$CXXCPP $CPPFLAGS'
6070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6073 if test -z "$CXX"; then
6074   if test -n "$CCC"; then
6075     CXX=$CCC
6076   else
6077     if test -n "$ac_tool_prefix"; then
6078   for ac_prog in g++
6079   do
6080     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6084 if test "${ac_cv_prog_CXX+set}" = set; then
6085   echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087   if test -n "$CXX"; then
6088   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6089 else
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 for as_dir in $PATH
6092 do
6093   IFS=$as_save_IFS
6094   test -z "$as_dir" && as_dir=.
6095   for ac_exec_ext in '' $ac_executable_extensions; do
6096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6097     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099     break 2
6100   fi
6101 done
6102 done
6103 IFS=$as_save_IFS
6104
6105 fi
6106 fi
6107 CXX=$ac_cv_prog_CXX
6108 if test -n "$CXX"; then
6109   { echo "$as_me:$LINENO: result: $CXX" >&5
6110 echo "${ECHO_T}$CXX" >&6; }
6111 else
6112   { echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6; }
6114 fi
6115
6116
6117     test -n "$CXX" && break
6118   done
6119 fi
6120 if test -z "$CXX"; then
6121   ac_ct_CXX=$CXX
6122   for ac_prog in g++
6123 do
6124   # Extract the first word of "$ac_prog", so it can be a program name with args.
6125 set dummy $ac_prog; ac_word=$2
6126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6128 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6129   echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131   if test -n "$ac_ct_CXX"; then
6132   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137   IFS=$as_save_IFS
6138   test -z "$as_dir" && as_dir=.
6139   for ac_exec_ext in '' $ac_executable_extensions; do
6140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6141     ac_cv_prog_ac_ct_CXX="$ac_prog"
6142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143     break 2
6144   fi
6145 done
6146 done
6147 IFS=$as_save_IFS
6148
6149 fi
6150 fi
6151 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6152 if test -n "$ac_ct_CXX"; then
6153   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6154 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6155 else
6156   { echo "$as_me:$LINENO: result: no" >&5
6157 echo "${ECHO_T}no" >&6; }
6158 fi
6159
6160
6161   test -n "$ac_ct_CXX" && break
6162 done
6163
6164   if test "x$ac_ct_CXX" = x; then
6165     CXX="g++"
6166   else
6167     case $cross_compiling:$ac_tool_warned in
6168 yes:)
6169 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6170 whose name does not start with the host triplet.  If you think this
6171 configuration is useful to you, please write to autoconf@gnu.org." >&5
6172 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6173 whose name does not start with the host triplet.  If you think this
6174 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6175 ac_tool_warned=yes ;;
6176 esac
6177     CXX=$ac_ct_CXX
6178   fi
6179 fi
6180
6181   fi
6182 fi
6183 # Provide some information about the compiler.
6184 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6185 ac_compiler=`set X $ac_compile; echo $2`
6186 { (ac_try="$ac_compiler --version >&5"
6187 case "(($ac_try" in
6188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189   *) ac_try_echo=$ac_try;;
6190 esac
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192   (eval "$ac_compiler --version >&5") 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); }
6196 { (ac_try="$ac_compiler -v >&5"
6197 case "(($ac_try" in
6198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199   *) ac_try_echo=$ac_try;;
6200 esac
6201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202   (eval "$ac_compiler -v >&5") 2>&5
6203   ac_status=$?
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); }
6206 { (ac_try="$ac_compiler -V >&5"
6207 case "(($ac_try" in
6208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209   *) ac_try_echo=$ac_try;;
6210 esac
6211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212   (eval "$ac_compiler -V >&5") 2>&5
6213   ac_status=$?
6214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215   (exit $ac_status); }
6216
6217 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6218 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6219 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6220   echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222   cat >conftest.$ac_ext <<_ACEOF
6223 /* confdefs.h.  */
6224 _ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h.  */
6228
6229 int
6230 main ()
6231 {
6232 #ifndef __GNUC__
6233        choke me
6234 #endif
6235
6236   ;
6237   return 0;
6238 }
6239 _ACEOF
6240 rm -f conftest.$ac_objext
6241 if { (ac_try="$ac_compile"
6242 case "(($ac_try" in
6243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244   *) ac_try_echo=$ac_try;;
6245 esac
6246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247   (eval "$ac_compile") 2>conftest.er1
6248   ac_status=$?
6249   grep -v '^ *+' conftest.er1 >conftest.err
6250   rm -f conftest.er1
6251   cat conftest.err >&5
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); } &&
6254          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6255   { (case "(($ac_try" in
6256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257   *) ac_try_echo=$ac_try;;
6258 esac
6259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260   (eval "$ac_try") 2>&5
6261   ac_status=$?
6262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); }; } &&
6264          { ac_try='test -s conftest.$ac_objext'
6265   { (case "(($ac_try" in
6266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267   *) ac_try_echo=$ac_try;;
6268 esac
6269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270   (eval "$ac_try") 2>&5
6271   ac_status=$?
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); }; }; then
6274   ac_compiler_gnu=yes
6275 else
6276   echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6278
6279         ac_compiler_gnu=no
6280 fi
6281
6282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6283 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6284
6285 fi
6286 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6287 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6288 GXX=`test $ac_compiler_gnu = yes && echo yes`
6289 ac_test_CXXFLAGS=${CXXFLAGS+set}
6290 ac_save_CXXFLAGS=$CXXFLAGS
6291 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6292 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6293 if test "${ac_cv_prog_cxx_g+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6297    ac_cxx_werror_flag=yes
6298    ac_cv_prog_cxx_g=no
6299    CXXFLAGS="-g"
6300    cat >conftest.$ac_ext <<_ACEOF
6301 /* confdefs.h.  */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h.  */
6306
6307 int
6308 main ()
6309 {
6310
6311   ;
6312   return 0;
6313 }
6314 _ACEOF
6315 rm -f conftest.$ac_objext
6316 if { (ac_try="$ac_compile"
6317 case "(($ac_try" in
6318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319   *) ac_try_echo=$ac_try;;
6320 esac
6321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322   (eval "$ac_compile") 2>conftest.er1
6323   ac_status=$?
6324   grep -v '^ *+' conftest.er1 >conftest.err
6325   rm -f conftest.er1
6326   cat conftest.err >&5
6327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328   (exit $ac_status); } &&
6329          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6330   { (case "(($ac_try" in
6331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332   *) ac_try_echo=$ac_try;;
6333 esac
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335   (eval "$ac_try") 2>&5
6336   ac_status=$?
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); }; } &&
6339          { ac_try='test -s conftest.$ac_objext'
6340   { (case "(($ac_try" in
6341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342   *) ac_try_echo=$ac_try;;
6343 esac
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345   (eval "$ac_try") 2>&5
6346   ac_status=$?
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); }; }; then
6349   ac_cv_prog_cxx_g=yes
6350 else
6351   echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6353
6354         CXXFLAGS=""
6355       cat >conftest.$ac_ext <<_ACEOF
6356 /* confdefs.h.  */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h.  */
6361
6362 int
6363 main ()
6364 {
6365
6366   ;
6367   return 0;
6368 }
6369 _ACEOF
6370 rm -f conftest.$ac_objext
6371 if { (ac_try="$ac_compile"
6372 case "(($ac_try" in
6373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374   *) ac_try_echo=$ac_try;;
6375 esac
6376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377   (eval "$ac_compile") 2>conftest.er1
6378   ac_status=$?
6379   grep -v '^ *+' conftest.er1 >conftest.err
6380   rm -f conftest.er1
6381   cat conftest.err >&5
6382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383   (exit $ac_status); } &&
6384          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6385   { (case "(($ac_try" in
6386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387   *) ac_try_echo=$ac_try;;
6388 esac
6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390   (eval "$ac_try") 2>&5
6391   ac_status=$?
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); }; } &&
6394          { ac_try='test -s conftest.$ac_objext'
6395   { (case "(($ac_try" in
6396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397   *) ac_try_echo=$ac_try;;
6398 esac
6399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400   (eval "$ac_try") 2>&5
6401   ac_status=$?
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); }; }; then
6404   :
6405 else
6406   echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6408
6409         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6410          CXXFLAGS="-g"
6411          cat >conftest.$ac_ext <<_ACEOF
6412 /* confdefs.h.  */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h.  */
6417
6418 int
6419 main ()
6420 {
6421
6422   ;
6423   return 0;
6424 }
6425 _ACEOF
6426 rm -f conftest.$ac_objext
6427 if { (ac_try="$ac_compile"
6428 case "(($ac_try" in
6429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430   *) ac_try_echo=$ac_try;;
6431 esac
6432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433   (eval "$ac_compile") 2>conftest.er1
6434   ac_status=$?
6435   grep -v '^ *+' conftest.er1 >conftest.err
6436   rm -f conftest.er1
6437   cat conftest.err >&5
6438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439   (exit $ac_status); } &&
6440          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6441   { (case "(($ac_try" in
6442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6443   *) ac_try_echo=$ac_try;;
6444 esac
6445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6446   (eval "$ac_try") 2>&5
6447   ac_status=$?
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); }; } &&
6450          { ac_try='test -s conftest.$ac_objext'
6451   { (case "(($ac_try" in
6452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6453   *) ac_try_echo=$ac_try;;
6454 esac
6455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6456   (eval "$ac_try") 2>&5
6457   ac_status=$?
6458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); }; }; then
6460   ac_cv_prog_cxx_g=yes
6461 else
6462   echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6464
6465
6466 fi
6467
6468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6469 fi
6470
6471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6472 fi
6473
6474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6476 fi
6477 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6478 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6479 if test "$ac_test_CXXFLAGS" = set; then
6480   CXXFLAGS=$ac_save_CXXFLAGS
6481 elif test $ac_cv_prog_cxx_g = yes; then
6482   if test "$GXX" = yes; then
6483     CXXFLAGS="-g -O2"
6484   else
6485     CXXFLAGS="-g"
6486   fi
6487 else
6488   if test "$GXX" = yes; then
6489     CXXFLAGS="-O2"
6490   else
6491     CXXFLAGS=
6492   fi
6493 fi
6494 ac_ext=c
6495 ac_cpp='$CPP $CPPFLAGS'
6496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6499
6500
6501 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6502 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6503 if test "${lt_cv_path_NM+set}" = set; then
6504   echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506   if test -n "$NM"; then
6507   # Let the user override the test.
6508   lt_cv_path_NM="$NM"
6509 else
6510   lt_nm_to_check="${ac_tool_prefix}nm"
6511   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6512     lt_nm_to_check="$lt_nm_to_check nm"
6513   fi
6514   for lt_tmp_nm in $lt_nm_to_check; do
6515     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6516     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6517       IFS="$lt_save_ifs"
6518       test -z "$ac_dir" && ac_dir=.
6519       tmp_nm="$ac_dir/$lt_tmp_nm"
6520       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6521         # Check to see if the nm accepts a BSD-compat flag.
6522         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6523         #   nm: unknown option "B" ignored
6524         # Tru64's nm complains that /dev/null is an invalid object file
6525         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6526         */dev/null* | *'Invalid file or object type'*)
6527           lt_cv_path_NM="$tmp_nm -B"
6528           break
6529           ;;
6530         *)
6531           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6532           */dev/null*)
6533             lt_cv_path_NM="$tmp_nm -p"
6534             break
6535             ;;
6536           *)
6537             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6538             continue # so that we can try to find one that supports BSD flags
6539             ;;
6540           esac
6541           ;;
6542         esac
6543       fi
6544     done
6545     IFS="$lt_save_ifs"
6546   done
6547   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6548 fi
6549 fi
6550 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6551 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6552 NM="$lt_cv_path_NM"
6553
6554
6555
6556 { echo "$as_me:$LINENO: checking for GNU make" >&5
6557 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6558 if test "${llvm_cv_gnu_make_command+set}" = set; then
6559   echo $ECHO_N "(cached) $ECHO_C" >&6
6560 else
6561   llvm_cv_gnu_make_command=''
6562  for a in "$MAKE" make gmake gnumake ; do
6563   if test -z "$a" ; then continue ; fi ;
6564   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6565   then
6566    llvm_cv_gnu_make_command=$a ;
6567    break;
6568   fi
6569  done
6570 fi
6571 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6572 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6573  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6574    ifGNUmake='' ;
6575  else
6576    ifGNUmake='#' ;
6577    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6578 echo "${ECHO_T}\"Not found\"" >&6; };
6579  fi
6580
6581
6582 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6583 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6584 LN_S=$as_ln_s
6585 if test "$LN_S" = "ln -s"; then
6586   { echo "$as_me:$LINENO: result: yes" >&5
6587 echo "${ECHO_T}yes" >&6; }
6588 else
6589   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6590 echo "${ECHO_T}no, using $LN_S" >&6; }
6591 fi
6592
6593 # Extract the first word of "cmp", so it can be a program name with args.
6594 set dummy cmp; ac_word=$2
6595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6597 if test "${ac_cv_path_CMP+set}" = set; then
6598   echo $ECHO_N "(cached) $ECHO_C" >&6
6599 else
6600   case $CMP in
6601   [\\/]* | ?:[\\/]*)
6602   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6603   ;;
6604   *)
6605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608   IFS=$as_save_IFS
6609   test -z "$as_dir" && as_dir=.
6610   for ac_exec_ext in '' $ac_executable_extensions; do
6611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6612     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614     break 2
6615   fi
6616 done
6617 done
6618 IFS=$as_save_IFS
6619
6620   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6621   ;;
6622 esac
6623 fi
6624 CMP=$ac_cv_path_CMP
6625 if test -n "$CMP"; then
6626   { echo "$as_me:$LINENO: result: $CMP" >&5
6627 echo "${ECHO_T}$CMP" >&6; }
6628 else
6629   { echo "$as_me:$LINENO: result: no" >&5
6630 echo "${ECHO_T}no" >&6; }
6631 fi
6632
6633
6634 # Extract the first word of "cp", so it can be a program name with args.
6635 set dummy cp; ac_word=$2
6636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638 if test "${ac_cv_path_CP+set}" = set; then
6639   echo $ECHO_N "(cached) $ECHO_C" >&6
6640 else
6641   case $CP in
6642   [\\/]* | ?:[\\/]*)
6643   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6644   ;;
6645   *)
6646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649   IFS=$as_save_IFS
6650   test -z "$as_dir" && as_dir=.
6651   for ac_exec_ext in '' $ac_executable_extensions; do
6652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6653     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655     break 2
6656   fi
6657 done
6658 done
6659 IFS=$as_save_IFS
6660
6661   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6662   ;;
6663 esac
6664 fi
6665 CP=$ac_cv_path_CP
6666 if test -n "$CP"; then
6667   { echo "$as_me:$LINENO: result: $CP" >&5
6668 echo "${ECHO_T}$CP" >&6; }
6669 else
6670   { echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6; }
6672 fi
6673
6674
6675 # Extract the first word of "date", so it can be a program name with args.
6676 set dummy date; ac_word=$2
6677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6679 if test "${ac_cv_path_DATE+set}" = set; then
6680   echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682   case $DATE in
6683   [\\/]* | ?:[\\/]*)
6684   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6685   ;;
6686   *)
6687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690   IFS=$as_save_IFS
6691   test -z "$as_dir" && as_dir=.
6692   for ac_exec_ext in '' $ac_executable_extensions; do
6693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6694     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696     break 2
6697   fi
6698 done
6699 done
6700 IFS=$as_save_IFS
6701
6702   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6703   ;;
6704 esac
6705 fi
6706 DATE=$ac_cv_path_DATE
6707 if test -n "$DATE"; then
6708   { echo "$as_me:$LINENO: result: $DATE" >&5
6709 echo "${ECHO_T}$DATE" >&6; }
6710 else
6711   { echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6; }
6713 fi
6714
6715
6716 # Extract the first word of "find", so it can be a program name with args.
6717 set dummy find; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_path_FIND+set}" = set; then
6721   echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723   case $FIND in
6724   [\\/]* | ?:[\\/]*)
6725   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6726   ;;
6727   *)
6728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731   IFS=$as_save_IFS
6732   test -z "$as_dir" && as_dir=.
6733   for ac_exec_ext in '' $ac_executable_extensions; do
6734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6735     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737     break 2
6738   fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6744   ;;
6745 esac
6746 fi
6747 FIND=$ac_cv_path_FIND
6748 if test -n "$FIND"; then
6749   { echo "$as_me:$LINENO: result: $FIND" >&5
6750 echo "${ECHO_T}$FIND" >&6; }
6751 else
6752   { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6754 fi
6755
6756
6757 # Extract the first word of "grep", so it can be a program name with args.
6758 set dummy grep; ac_word=$2
6759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761 if test "${ac_cv_path_GREP+set}" = set; then
6762   echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764   case $GREP in
6765   [\\/]* | ?:[\\/]*)
6766   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6767   ;;
6768   *)
6769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772   IFS=$as_save_IFS
6773   test -z "$as_dir" && as_dir=.
6774   for ac_exec_ext in '' $ac_executable_extensions; do
6775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6776     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778     break 2
6779   fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6785   ;;
6786 esac
6787 fi
6788 GREP=$ac_cv_path_GREP
6789 if test -n "$GREP"; then
6790   { echo "$as_me:$LINENO: result: $GREP" >&5
6791 echo "${ECHO_T}$GREP" >&6; }
6792 else
6793   { echo "$as_me:$LINENO: result: no" >&5
6794 echo "${ECHO_T}no" >&6; }
6795 fi
6796
6797
6798 # Extract the first word of "mkdir", so it can be a program name with args.
6799 set dummy mkdir; ac_word=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_path_MKDIR+set}" = set; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805   case $MKDIR in
6806   [\\/]* | ?:[\\/]*)
6807   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6808   ;;
6809   *)
6810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813   IFS=$as_save_IFS
6814   test -z "$as_dir" && as_dir=.
6815   for ac_exec_ext in '' $ac_executable_extensions; do
6816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6817     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819     break 2
6820   fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6826   ;;
6827 esac
6828 fi
6829 MKDIR=$ac_cv_path_MKDIR
6830 if test -n "$MKDIR"; then
6831   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6832 echo "${ECHO_T}$MKDIR" >&6; }
6833 else
6834   { echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6; }
6836 fi
6837
6838
6839 # Extract the first word of "mv", so it can be a program name with args.
6840 set dummy mv; ac_word=$2
6841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843 if test "${ac_cv_path_MV+set}" = set; then
6844   echo $ECHO_N "(cached) $ECHO_C" >&6
6845 else
6846   case $MV in
6847   [\\/]* | ?:[\\/]*)
6848   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6849   ;;
6850   *)
6851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 for as_dir in $PATH
6853 do
6854   IFS=$as_save_IFS
6855   test -z "$as_dir" && as_dir=.
6856   for ac_exec_ext in '' $ac_executable_extensions; do
6857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6858     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860     break 2
6861   fi
6862 done
6863 done
6864 IFS=$as_save_IFS
6865
6866   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6867   ;;
6868 esac
6869 fi
6870 MV=$ac_cv_path_MV
6871 if test -n "$MV"; then
6872   { echo "$as_me:$LINENO: result: $MV" >&5
6873 echo "${ECHO_T}$MV" >&6; }
6874 else
6875   { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6877 fi
6878
6879
6880 if test -n "$ac_tool_prefix"; then
6881   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6882 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6885 if test "${ac_cv_prog_RANLIB+set}" = set; then
6886   echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888   if test -n "$RANLIB"; then
6889   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6890 else
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 for as_dir in $PATH
6893 do
6894   IFS=$as_save_IFS
6895   test -z "$as_dir" && as_dir=.
6896   for ac_exec_ext in '' $ac_executable_extensions; do
6897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6898     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900     break 2
6901   fi
6902 done
6903 done
6904 IFS=$as_save_IFS
6905
6906 fi
6907 fi
6908 RANLIB=$ac_cv_prog_RANLIB
6909 if test -n "$RANLIB"; then
6910   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6911 echo "${ECHO_T}$RANLIB" >&6; }
6912 else
6913   { echo "$as_me:$LINENO: result: no" >&5
6914 echo "${ECHO_T}no" >&6; }
6915 fi
6916
6917
6918 fi
6919 if test -z "$ac_cv_prog_RANLIB"; then
6920   ac_ct_RANLIB=$RANLIB
6921   # Extract the first word of "ranlib", so it can be a program name with args.
6922 set dummy ranlib; ac_word=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6926   echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928   if test -n "$ac_ct_RANLIB"; then
6929   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6930 else
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6933 do
6934   IFS=$as_save_IFS
6935   test -z "$as_dir" && as_dir=.
6936   for ac_exec_ext in '' $ac_executable_extensions; do
6937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6938     ac_cv_prog_ac_ct_RANLIB="ranlib"
6939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940     break 2
6941   fi
6942 done
6943 done
6944 IFS=$as_save_IFS
6945
6946 fi
6947 fi
6948 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6949 if test -n "$ac_ct_RANLIB"; then
6950   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6951 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6952 else
6953   { echo "$as_me:$LINENO: result: no" >&5
6954 echo "${ECHO_T}no" >&6; }
6955 fi
6956
6957   if test "x$ac_ct_RANLIB" = x; then
6958     RANLIB=":"
6959   else
6960     case $cross_compiling:$ac_tool_warned in
6961 yes:)
6962 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6963 whose name does not start with the host triplet.  If you think this
6964 configuration is useful to you, please write to autoconf@gnu.org." >&5
6965 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6966 whose name does not start with the host triplet.  If you think this
6967 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6968 ac_tool_warned=yes ;;
6969 esac
6970     RANLIB=$ac_ct_RANLIB
6971   fi
6972 else
6973   RANLIB="$ac_cv_prog_RANLIB"
6974 fi
6975
6976 # Extract the first word of "rm", so it can be a program name with args.
6977 set dummy rm; ac_word=$2
6978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980 if test "${ac_cv_path_RM+set}" = set; then
6981   echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983   case $RM in
6984   [\\/]* | ?:[\\/]*)
6985   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6986   ;;
6987   *)
6988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6990 do
6991   IFS=$as_save_IFS
6992   test -z "$as_dir" && as_dir=.
6993   for ac_exec_ext in '' $ac_executable_extensions; do
6994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6995     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997     break 2
6998   fi
6999 done
7000 done
7001 IFS=$as_save_IFS
7002
7003   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7004   ;;
7005 esac
7006 fi
7007 RM=$ac_cv_path_RM
7008 if test -n "$RM"; then
7009   { echo "$as_me:$LINENO: result: $RM" >&5
7010 echo "${ECHO_T}$RM" >&6; }
7011 else
7012   { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7014 fi
7015
7016
7017 # Extract the first word of "sed", so it can be a program name with args.
7018 set dummy sed; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_SED+set}" = set; then
7022   echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024   case $SED in
7025   [\\/]* | ?:[\\/]*)
7026   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7027   ;;
7028   *)
7029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032   IFS=$as_save_IFS
7033   test -z "$as_dir" && as_dir=.
7034   for ac_exec_ext in '' $ac_executable_extensions; do
7035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7036     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038     break 2
7039   fi
7040 done
7041 done
7042 IFS=$as_save_IFS
7043
7044   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7045   ;;
7046 esac
7047 fi
7048 SED=$ac_cv_path_SED
7049 if test -n "$SED"; then
7050   { echo "$as_me:$LINENO: result: $SED" >&5
7051 echo "${ECHO_T}$SED" >&6; }
7052 else
7053   { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7055 fi
7056
7057
7058 # Extract the first word of "tar", so it can be a program name with args.
7059 set dummy tar; ac_word=$2
7060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062 if test "${ac_cv_path_TAR+set}" = set; then
7063   echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065   case $TAR in
7066   [\\/]* | ?:[\\/]*)
7067   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7068   ;;
7069   *)
7070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7072 do
7073   IFS=$as_save_IFS
7074   test -z "$as_dir" && as_dir=.
7075   for ac_exec_ext in '' $ac_executable_extensions; do
7076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7077     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079     break 2
7080   fi
7081 done
7082 done
7083 IFS=$as_save_IFS
7084
7085   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7086   ;;
7087 esac
7088 fi
7089 TAR=$ac_cv_path_TAR
7090 if test -n "$TAR"; then
7091   { echo "$as_me:$LINENO: result: $TAR" >&5
7092 echo "${ECHO_T}$TAR" >&6; }
7093 else
7094   { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7096 fi
7097
7098
7099 # Extract the first word of "pwd", so it can be a program name with args.
7100 set dummy pwd; ac_word=$2
7101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7103 if test "${ac_cv_path_BINPWD+set}" = set; then
7104   echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106   case $BINPWD in
7107   [\\/]* | ?:[\\/]*)
7108   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7109   ;;
7110   *)
7111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7113 do
7114   IFS=$as_save_IFS
7115   test -z "$as_dir" && as_dir=.
7116   for ac_exec_ext in '' $ac_executable_extensions; do
7117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7118     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120     break 2
7121   fi
7122 done
7123 done
7124 IFS=$as_save_IFS
7125
7126   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7127   ;;
7128 esac
7129 fi
7130 BINPWD=$ac_cv_path_BINPWD
7131 if test -n "$BINPWD"; then
7132   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7133 echo "${ECHO_T}$BINPWD" >&6; }
7134 else
7135   { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7137 fi
7138
7139
7140
7141 # Extract the first word of "Graphviz", so it can be a program name with args.
7142 set dummy Graphviz; ac_word=$2
7143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7145 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7146   echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148   case $GRAPHVIZ in
7149   [\\/]* | ?:[\\/]*)
7150   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7151   ;;
7152   *)
7153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH
7155 do
7156   IFS=$as_save_IFS
7157   test -z "$as_dir" && as_dir=.
7158   for ac_exec_ext in '' $ac_executable_extensions; do
7159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7160     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162     break 2
7163   fi
7164 done
7165 done
7166 IFS=$as_save_IFS
7167
7168   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7169   ;;
7170 esac
7171 fi
7172 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7173 if test -n "$GRAPHVIZ"; then
7174   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7175 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7176 else
7177   { echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6; }
7179 fi
7180
7181
7182 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7183
7184 cat >>confdefs.h <<\_ACEOF
7185 #define HAVE_GRAPHVIZ 1
7186 _ACEOF
7187
7188     if test "$llvm_cv_os_type" = "MingW" ; then
7189     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7190   fi
7191
7192 cat >>confdefs.h <<_ACEOF
7193 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7194 _ACEOF
7195
7196 fi
7197 # Extract the first word of "dot", so it can be a program name with args.
7198 set dummy dot; ac_word=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_path_DOT+set}" = set; then
7202   echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204   case $DOT in
7205   [\\/]* | ?:[\\/]*)
7206   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7207   ;;
7208   *)
7209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212   IFS=$as_save_IFS
7213   test -z "$as_dir" && as_dir=.
7214   for ac_exec_ext in '' $ac_executable_extensions; do
7215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7216     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218     break 2
7219   fi
7220 done
7221 done
7222 IFS=$as_save_IFS
7223
7224   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7225   ;;
7226 esac
7227 fi
7228 DOT=$ac_cv_path_DOT
7229 if test -n "$DOT"; then
7230   { echo "$as_me:$LINENO: result: $DOT" >&5
7231 echo "${ECHO_T}$DOT" >&6; }
7232 else
7233   { echo "$as_me:$LINENO: result: no" >&5
7234 echo "${ECHO_T}no" >&6; }
7235 fi
7236
7237
7238 if test "$DOT" != "echo dot" ; then
7239
7240 cat >>confdefs.h <<\_ACEOF
7241 #define HAVE_DOT 1
7242 _ACEOF
7243
7244     if test "$llvm_cv_os_type" = "MingW" ; then
7245     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7246   fi
7247
7248 cat >>confdefs.h <<_ACEOF
7249 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7250 _ACEOF
7251
7252 fi
7253 # Extract the first word of "fdp", so it can be a program name with args.
7254 set dummy fdp; ac_word=$2
7255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257 if test "${ac_cv_path_FDP+set}" = set; then
7258   echo $ECHO_N "(cached) $ECHO_C" >&6
7259 else
7260   case $FDP in
7261   [\\/]* | ?:[\\/]*)
7262   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7263   ;;
7264   *)
7265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7267 do
7268   IFS=$as_save_IFS
7269   test -z "$as_dir" && as_dir=.
7270   for ac_exec_ext in '' $ac_executable_extensions; do
7271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7272     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274     break 2
7275   fi
7276 done
7277 done
7278 IFS=$as_save_IFS
7279
7280   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7281   ;;
7282 esac
7283 fi
7284 FDP=$ac_cv_path_FDP
7285 if test -n "$FDP"; then
7286   { echo "$as_me:$LINENO: result: $FDP" >&5
7287 echo "${ECHO_T}$FDP" >&6; }
7288 else
7289   { echo "$as_me:$LINENO: result: no" >&5
7290 echo "${ECHO_T}no" >&6; }
7291 fi
7292
7293
7294 if test "$FDP" != "echo fdp" ; then
7295
7296 cat >>confdefs.h <<\_ACEOF
7297 #define HAVE_FDP 1
7298 _ACEOF
7299
7300     if test "$llvm_cv_os_type" = "MingW" ; then
7301     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7302   fi
7303
7304 cat >>confdefs.h <<_ACEOF
7305 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7306 _ACEOF
7307
7308 fi
7309 # Extract the first word of "neato", so it can be a program name with args.
7310 set dummy neato; ac_word=$2
7311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7313 if test "${ac_cv_path_NEATO+set}" = set; then
7314   echo $ECHO_N "(cached) $ECHO_C" >&6
7315 else
7316   case $NEATO in
7317   [\\/]* | ?:[\\/]*)
7318   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7319   ;;
7320   *)
7321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7323 do
7324   IFS=$as_save_IFS
7325   test -z "$as_dir" && as_dir=.
7326   for ac_exec_ext in '' $ac_executable_extensions; do
7327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7328     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7330     break 2
7331   fi
7332 done
7333 done
7334 IFS=$as_save_IFS
7335
7336   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7337   ;;
7338 esac
7339 fi
7340 NEATO=$ac_cv_path_NEATO
7341 if test -n "$NEATO"; then
7342   { echo "$as_me:$LINENO: result: $NEATO" >&5
7343 echo "${ECHO_T}$NEATO" >&6; }
7344 else
7345   { echo "$as_me:$LINENO: result: no" >&5
7346 echo "${ECHO_T}no" >&6; }
7347 fi
7348
7349
7350 if test "$NEATO" != "echo neato" ; then
7351
7352 cat >>confdefs.h <<\_ACEOF
7353 #define HAVE_NEATO 1
7354 _ACEOF
7355
7356     if test "$llvm_cv_os_type" = "MingW" ; then
7357     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7358   fi
7359
7360 cat >>confdefs.h <<_ACEOF
7361 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7362 _ACEOF
7363
7364 fi
7365 # Extract the first word of "twopi", so it can be a program name with args.
7366 set dummy twopi; ac_word=$2
7367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7369 if test "${ac_cv_path_TWOPI+set}" = set; then
7370   echo $ECHO_N "(cached) $ECHO_C" >&6
7371 else
7372   case $TWOPI in
7373   [\\/]* | ?:[\\/]*)
7374   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7375   ;;
7376   *)
7377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 for as_dir in $PATH
7379 do
7380   IFS=$as_save_IFS
7381   test -z "$as_dir" && as_dir=.
7382   for ac_exec_ext in '' $ac_executable_extensions; do
7383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7384     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7386     break 2
7387   fi
7388 done
7389 done
7390 IFS=$as_save_IFS
7391
7392   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7393   ;;
7394 esac
7395 fi
7396 TWOPI=$ac_cv_path_TWOPI
7397 if test -n "$TWOPI"; then
7398   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7399 echo "${ECHO_T}$TWOPI" >&6; }
7400 else
7401   { echo "$as_me:$LINENO: result: no" >&5
7402 echo "${ECHO_T}no" >&6; }
7403 fi
7404
7405
7406 if test "$TWOPI" != "echo twopi" ; then
7407
7408 cat >>confdefs.h <<\_ACEOF
7409 #define HAVE_TWOPI 1
7410 _ACEOF
7411
7412     if test "$llvm_cv_os_type" = "MingW" ; then
7413     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7414   fi
7415
7416 cat >>confdefs.h <<_ACEOF
7417 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7418 _ACEOF
7419
7420 fi
7421 # Extract the first word of "circo", so it can be a program name with args.
7422 set dummy circo; ac_word=$2
7423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7425 if test "${ac_cv_path_CIRCO+set}" = set; then
7426   echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428   case $CIRCO in
7429   [\\/]* | ?:[\\/]*)
7430   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7431   ;;
7432   *)
7433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 for as_dir in $PATH
7435 do
7436   IFS=$as_save_IFS
7437   test -z "$as_dir" && as_dir=.
7438   for ac_exec_ext in '' $ac_executable_extensions; do
7439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7440     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442     break 2
7443   fi
7444 done
7445 done
7446 IFS=$as_save_IFS
7447
7448   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7449   ;;
7450 esac
7451 fi
7452 CIRCO=$ac_cv_path_CIRCO
7453 if test -n "$CIRCO"; then
7454   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7455 echo "${ECHO_T}$CIRCO" >&6; }
7456 else
7457   { echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6; }
7459 fi
7460
7461
7462 if test "$CIRCO" != "echo circo" ; then
7463
7464 cat >>confdefs.h <<\_ACEOF
7465 #define HAVE_CIRCO 1
7466 _ACEOF
7467
7468     if test "$llvm_cv_os_type" = "MingW" ; then
7469     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7470   fi
7471
7472 cat >>confdefs.h <<_ACEOF
7473 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7474 _ACEOF
7475
7476 fi
7477 for ac_prog in gv gsview32
7478 do
7479   # Extract the first word of "$ac_prog", so it can be a program name with args.
7480 set dummy $ac_prog; ac_word=$2
7481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7483 if test "${ac_cv_path_GV+set}" = set; then
7484   echo $ECHO_N "(cached) $ECHO_C" >&6
7485 else
7486   case $GV in
7487   [\\/]* | ?:[\\/]*)
7488   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7489   ;;
7490   *)
7491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494   IFS=$as_save_IFS
7495   test -z "$as_dir" && as_dir=.
7496   for ac_exec_ext in '' $ac_executable_extensions; do
7497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7498     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500     break 2
7501   fi
7502 done
7503 done
7504 IFS=$as_save_IFS
7505
7506   ;;
7507 esac
7508 fi
7509 GV=$ac_cv_path_GV
7510 if test -n "$GV"; then
7511   { echo "$as_me:$LINENO: result: $GV" >&5
7512 echo "${ECHO_T}$GV" >&6; }
7513 else
7514   { echo "$as_me:$LINENO: result: no" >&5
7515 echo "${ECHO_T}no" >&6; }
7516 fi
7517
7518
7519   test -n "$GV" && break
7520 done
7521 test -n "$GV" || GV="echo gv"
7522
7523 if test "$GV" != "echo gv" ; then
7524
7525 cat >>confdefs.h <<\_ACEOF
7526 #define HAVE_GV 1
7527 _ACEOF
7528
7529     if test "$llvm_cv_os_type" = "MingW" ; then
7530     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7531   fi
7532
7533 cat >>confdefs.h <<_ACEOF
7534 #define LLVM_PATH_GV "$GV${EXEEXT}"
7535 _ACEOF
7536
7537 fi
7538 # Extract the first word of "dotty", so it can be a program name with args.
7539 set dummy dotty; ac_word=$2
7540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7542 if test "${ac_cv_path_DOTTY+set}" = set; then
7543   echo $ECHO_N "(cached) $ECHO_C" >&6
7544 else
7545   case $DOTTY in
7546   [\\/]* | ?:[\\/]*)
7547   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7548   ;;
7549   *)
7550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in $PATH
7552 do
7553   IFS=$as_save_IFS
7554   test -z "$as_dir" && as_dir=.
7555   for ac_exec_ext in '' $ac_executable_extensions; do
7556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7557     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7559     break 2
7560   fi
7561 done
7562 done
7563 IFS=$as_save_IFS
7564
7565   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7566   ;;
7567 esac
7568 fi
7569 DOTTY=$ac_cv_path_DOTTY
7570 if test -n "$DOTTY"; then
7571   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7572 echo "${ECHO_T}$DOTTY" >&6; }
7573 else
7574   { echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6; }
7576 fi
7577
7578
7579 if test "$DOTTY" != "echo dotty" ; then
7580
7581 cat >>confdefs.h <<\_ACEOF
7582 #define HAVE_DOTTY 1
7583 _ACEOF
7584
7585     if test "$llvm_cv_os_type" = "MingW" ; then
7586     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7587   fi
7588
7589 cat >>confdefs.h <<_ACEOF
7590 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7591 _ACEOF
7592
7593 fi
7594
7595
7596 # Extract the first word of "perl", so it can be a program name with args.
7597 set dummy perl; ac_word=$2
7598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7600 if test "${ac_cv_path_PERL+set}" = set; then
7601   echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603   case $PERL in
7604   [\\/]* | ?:[\\/]*)
7605   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7606   ;;
7607   *)
7608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 for as_dir in $PATH
7610 do
7611   IFS=$as_save_IFS
7612   test -z "$as_dir" && as_dir=.
7613   for ac_exec_ext in '' $ac_executable_extensions; do
7614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7615     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7617     break 2
7618   fi
7619 done
7620 done
7621 IFS=$as_save_IFS
7622
7623   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7624   ;;
7625 esac
7626 fi
7627 PERL=$ac_cv_path_PERL
7628 if test -n "$PERL"; then
7629   { echo "$as_me:$LINENO: result: $PERL" >&5
7630 echo "${ECHO_T}$PERL" >&6; }
7631 else
7632   { echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6; }
7634 fi
7635
7636
7637 if test "$PERL" != "none"; then
7638   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7639 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7640   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7641     { echo "$as_me:$LINENO: result: yes" >&5
7642 echo "${ECHO_T}yes" >&6; }
7643   else
7644     PERL=none
7645     { echo "$as_me:$LINENO: result: not found" >&5
7646 echo "${ECHO_T}not found" >&6; }
7647   fi
7648 fi
7649
7650
7651 if test x"$PERL" = xnone; then
7652    HAVE_PERL=0
7653
7654    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7655 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7656    { (exit 1); exit 1; }; }
7657 else
7658    HAVE_PERL=1
7659
7660 fi
7661
7662 # Find a good install program.  We prefer a C program (faster),
7663 # so one script is as good as another.  But avoid the broken or
7664 # incompatible versions:
7665 # SysV /etc/install, /usr/sbin/install
7666 # SunOS /usr/etc/install
7667 # IRIX /sbin/install
7668 # AIX /bin/install
7669 # AmigaOS /C/install, which installs bootblocks on floppy discs
7670 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7673 # OS/2's system install, which has a completely different semantic
7674 # ./install, which can be erroneously created by make from ./install.sh.
7675 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7676 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7677 if test -z "$INSTALL"; then
7678 if test "${ac_cv_path_install+set}" = set; then
7679   echo $ECHO_N "(cached) $ECHO_C" >&6
7680 else
7681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7683 do
7684   IFS=$as_save_IFS
7685   test -z "$as_dir" && as_dir=.
7686   # Account for people who put trailing slashes in PATH elements.
7687 case $as_dir/ in
7688   ./ | .// | /cC/* | \
7689   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7690   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7691   /usr/ucb/* ) ;;
7692   *)
7693     # OSF1 and SCO ODT 3.0 have their own names for install.
7694     # Don't use installbsd from OSF since it installs stuff as root
7695     # by default.
7696     for ac_prog in ginstall scoinst install; do
7697       for ac_exec_ext in '' $ac_executable_extensions; do
7698         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7699           if test $ac_prog = install &&
7700             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7701             # AIX install.  It has an incompatible calling convention.
7702             :
7703           elif test $ac_prog = install &&
7704             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7705             # program-specific install script used by HP pwplus--don't use.
7706             :
7707           else
7708             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7709             break 3
7710           fi
7711         fi
7712       done
7713     done
7714     ;;
7715 esac
7716 done
7717 IFS=$as_save_IFS
7718
7719
7720 fi
7721   if test "${ac_cv_path_install+set}" = set; then
7722     INSTALL=$ac_cv_path_install
7723   else
7724     # As a last resort, use the slow shell script.  Don't cache a
7725     # value for INSTALL within a source directory, because that will
7726     # break other packages using the cache if that directory is
7727     # removed, or if the value is a relative name.
7728     INSTALL=$ac_install_sh
7729   fi
7730 fi
7731 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7732 echo "${ECHO_T}$INSTALL" >&6; }
7733
7734 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7735 # It thinks the first close brace ends the variable substitution.
7736 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7737
7738 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7739
7740 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7741
7742
7743 # Extract the first word of "bzip2", so it can be a program name with args.
7744 set dummy bzip2; ac_word=$2
7745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7747 if test "${ac_cv_path_BZIP2+set}" = set; then
7748   echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750   case $BZIP2 in
7751   [\\/]* | ?:[\\/]*)
7752   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7753   ;;
7754   *)
7755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 for as_dir in $PATH
7757 do
7758   IFS=$as_save_IFS
7759   test -z "$as_dir" && as_dir=.
7760   for ac_exec_ext in '' $ac_executable_extensions; do
7761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7762     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7764     break 2
7765   fi
7766 done
7767 done
7768 IFS=$as_save_IFS
7769
7770   ;;
7771 esac
7772 fi
7773 BZIP2=$ac_cv_path_BZIP2
7774 if test -n "$BZIP2"; then
7775   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7776 echo "${ECHO_T}$BZIP2" >&6; }
7777 else
7778   { echo "$as_me:$LINENO: result: no" >&5
7779 echo "${ECHO_T}no" >&6; }
7780 fi
7781
7782
7783 # Extract the first word of "doxygen", so it can be a program name with args.
7784 set dummy doxygen; ac_word=$2
7785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7787 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7788   echo $ECHO_N "(cached) $ECHO_C" >&6
7789 else
7790   case $DOXYGEN in
7791   [\\/]* | ?:[\\/]*)
7792   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7793   ;;
7794   *)
7795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in $PATH
7797 do
7798   IFS=$as_save_IFS
7799   test -z "$as_dir" && as_dir=.
7800   for ac_exec_ext in '' $ac_executable_extensions; do
7801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7802     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7804     break 2
7805   fi
7806 done
7807 done
7808 IFS=$as_save_IFS
7809
7810   ;;
7811 esac
7812 fi
7813 DOXYGEN=$ac_cv_path_DOXYGEN
7814 if test -n "$DOXYGEN"; then
7815   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7816 echo "${ECHO_T}$DOXYGEN" >&6; }
7817 else
7818   { echo "$as_me:$LINENO: result: no" >&5
7819 echo "${ECHO_T}no" >&6; }
7820 fi
7821
7822
7823 # Extract the first word of "groff", so it can be a program name with args.
7824 set dummy groff; ac_word=$2
7825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7827 if test "${ac_cv_path_GROFF+set}" = set; then
7828   echo $ECHO_N "(cached) $ECHO_C" >&6
7829 else
7830   case $GROFF in
7831   [\\/]* | ?:[\\/]*)
7832   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7833   ;;
7834   *)
7835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7837 do
7838   IFS=$as_save_IFS
7839   test -z "$as_dir" && as_dir=.
7840   for ac_exec_ext in '' $ac_executable_extensions; do
7841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7842     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844     break 2
7845   fi
7846 done
7847 done
7848 IFS=$as_save_IFS
7849
7850   ;;
7851 esac
7852 fi
7853 GROFF=$ac_cv_path_GROFF
7854 if test -n "$GROFF"; then
7855   { echo "$as_me:$LINENO: result: $GROFF" >&5
7856 echo "${ECHO_T}$GROFF" >&6; }
7857 else
7858   { echo "$as_me:$LINENO: result: no" >&5
7859 echo "${ECHO_T}no" >&6; }
7860 fi
7861
7862
7863 # Extract the first word of "gzip", so it can be a program name with args.
7864 set dummy gzip; ac_word=$2
7865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7867 if test "${ac_cv_path_GZIP+set}" = set; then
7868   echo $ECHO_N "(cached) $ECHO_C" >&6
7869 else
7870   case $GZIP in
7871   [\\/]* | ?:[\\/]*)
7872   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7873   ;;
7874   *)
7875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 for as_dir in $PATH
7877 do
7878   IFS=$as_save_IFS
7879   test -z "$as_dir" && as_dir=.
7880   for ac_exec_ext in '' $ac_executable_extensions; do
7881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7882     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7884     break 2
7885   fi
7886 done
7887 done
7888 IFS=$as_save_IFS
7889
7890   ;;
7891 esac
7892 fi
7893 GZIP=$ac_cv_path_GZIP
7894 if test -n "$GZIP"; then
7895   { echo "$as_me:$LINENO: result: $GZIP" >&5
7896 echo "${ECHO_T}$GZIP" >&6; }
7897 else
7898   { echo "$as_me:$LINENO: result: no" >&5
7899 echo "${ECHO_T}no" >&6; }
7900 fi
7901
7902
7903 # Extract the first word of "pod2html", so it can be a program name with args.
7904 set dummy pod2html; ac_word=$2
7905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7907 if test "${ac_cv_path_POD2HTML+set}" = set; then
7908   echo $ECHO_N "(cached) $ECHO_C" >&6
7909 else
7910   case $POD2HTML in
7911   [\\/]* | ?:[\\/]*)
7912   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7913   ;;
7914   *)
7915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 for as_dir in $PATH
7917 do
7918   IFS=$as_save_IFS
7919   test -z "$as_dir" && as_dir=.
7920   for ac_exec_ext in '' $ac_executable_extensions; do
7921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7922     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7924     break 2
7925   fi
7926 done
7927 done
7928 IFS=$as_save_IFS
7929
7930   ;;
7931 esac
7932 fi
7933 POD2HTML=$ac_cv_path_POD2HTML
7934 if test -n "$POD2HTML"; then
7935   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7936 echo "${ECHO_T}$POD2HTML" >&6; }
7937 else
7938   { echo "$as_me:$LINENO: result: no" >&5
7939 echo "${ECHO_T}no" >&6; }
7940 fi
7941
7942
7943 # Extract the first word of "pod2man", so it can be a program name with args.
7944 set dummy pod2man; ac_word=$2
7945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7947 if test "${ac_cv_path_POD2MAN+set}" = set; then
7948   echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950   case $POD2MAN in
7951   [\\/]* | ?:[\\/]*)
7952   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7953   ;;
7954   *)
7955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958   IFS=$as_save_IFS
7959   test -z "$as_dir" && as_dir=.
7960   for ac_exec_ext in '' $ac_executable_extensions; do
7961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7962     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7964     break 2
7965   fi
7966 done
7967 done
7968 IFS=$as_save_IFS
7969
7970   ;;
7971 esac
7972 fi
7973 POD2MAN=$ac_cv_path_POD2MAN
7974 if test -n "$POD2MAN"; then
7975   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7976 echo "${ECHO_T}$POD2MAN" >&6; }
7977 else
7978   { echo "$as_me:$LINENO: result: no" >&5
7979 echo "${ECHO_T}no" >&6; }
7980 fi
7981
7982
7983 # Extract the first word of "runtest", so it can be a program name with args.
7984 set dummy runtest; ac_word=$2
7985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7987 if test "${ac_cv_path_RUNTEST+set}" = set; then
7988   echo $ECHO_N "(cached) $ECHO_C" >&6
7989 else
7990   case $RUNTEST in
7991   [\\/]* | ?:[\\/]*)
7992   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7993   ;;
7994   *)
7995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 for as_dir in $PATH
7997 do
7998   IFS=$as_save_IFS
7999   test -z "$as_dir" && as_dir=.
8000   for ac_exec_ext in '' $ac_executable_extensions; do
8001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8002     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8004     break 2
8005   fi
8006 done
8007 done
8008 IFS=$as_save_IFS
8009
8010   ;;
8011 esac
8012 fi
8013 RUNTEST=$ac_cv_path_RUNTEST
8014 if test -n "$RUNTEST"; then
8015   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8016 echo "${ECHO_T}$RUNTEST" >&6; }
8017 else
8018   { echo "$as_me:$LINENO: result: no" >&5
8019 echo "${ECHO_T}no" >&6; }
8020 fi
8021
8022
8023
8024 no_itcl=true
8025 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8026 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8027
8028 # Check whether --with-tclinclude was given.
8029 if test "${with_tclinclude+set}" = set; then
8030   withval=$with_tclinclude; with_tclinclude=${withval}
8031 else
8032   with_tclinclude=''
8033 fi
8034
8035 if test "${ac_cv_path_tclsh+set}" = set; then
8036   echo $ECHO_N "(cached) $ECHO_C" >&6
8037 else
8038
8039 if test x"${with_tclinclude}" != x ; then
8040   if test -f ${with_tclinclude}/tclsh ; then
8041     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8042   elif test -f ${with_tclinclude}/src/tclsh ; then
8043     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8044   else
8045     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8046 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8047    { (exit 1); exit 1; }; }
8048   fi
8049 fi
8050
8051 if test x"${ac_cv_path_tclsh}" = x ; then
8052   { echo "$as_me:$LINENO: result: none" >&5
8053 echo "${ECHO_T}none" >&6; }
8054   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
8055 do
8056   # Extract the first word of "$ac_prog", so it can be a program name with args.
8057 set dummy $ac_prog; ac_word=$2
8058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8060 if test "${ac_cv_path_TCLSH+set}" = set; then
8061   echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063   case $TCLSH in
8064   [\\/]* | ?:[\\/]*)
8065   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8066   ;;
8067   *)
8068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069 for as_dir in $PATH
8070 do
8071   IFS=$as_save_IFS
8072   test -z "$as_dir" && as_dir=.
8073   for ac_exec_ext in '' $ac_executable_extensions; do
8074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8075     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8077     break 2
8078   fi
8079 done
8080 done
8081 IFS=$as_save_IFS
8082
8083   ;;
8084 esac
8085 fi
8086 TCLSH=$ac_cv_path_TCLSH
8087 if test -n "$TCLSH"; then
8088   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8089 echo "${ECHO_T}$TCLSH" >&6; }
8090 else
8091   { echo "$as_me:$LINENO: result: no" >&5
8092 echo "${ECHO_T}no" >&6; }
8093 fi
8094
8095
8096   test -n "$TCLSH" && break
8097 done
8098
8099   if test x"${TCLSH}" = x ; then
8100     ac_cv_path_tclsh='';
8101   else
8102     ac_cv_path_tclsh="${TCLSH}";
8103   fi
8104 else
8105   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8106 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8107   TCLSH="${ac_cv_path_tclsh}"
8108
8109 fi
8110
8111 fi
8112
8113 # Extract the first word of "zip", so it can be a program name with args.
8114 set dummy zip; ac_word=$2
8115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8117 if test "${ac_cv_path_ZIP+set}" = set; then
8118   echo $ECHO_N "(cached) $ECHO_C" >&6
8119 else
8120   case $ZIP in
8121   [\\/]* | ?:[\\/]*)
8122   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8123   ;;
8124   *)
8125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8127 do
8128   IFS=$as_save_IFS
8129   test -z "$as_dir" && as_dir=.
8130   for ac_exec_ext in '' $ac_executable_extensions; do
8131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8132     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8134     break 2
8135   fi
8136 done
8137 done
8138 IFS=$as_save_IFS
8139
8140   ;;
8141 esac
8142 fi
8143 ZIP=$ac_cv_path_ZIP
8144 if test -n "$ZIP"; then
8145   { echo "$as_me:$LINENO: result: $ZIP" >&5
8146 echo "${ECHO_T}$ZIP" >&6; }
8147 else
8148   { echo "$as_me:$LINENO: result: no" >&5
8149 echo "${ECHO_T}no" >&6; }
8150 fi
8151
8152
8153 for ac_prog in ocamlc
8154 do
8155   # Extract the first word of "$ac_prog", so it can be a program name with args.
8156 set dummy $ac_prog; ac_word=$2
8157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8159 if test "${ac_cv_path_OCAMLC+set}" = set; then
8160   echo $ECHO_N "(cached) $ECHO_C" >&6
8161 else
8162   case $OCAMLC in
8163   [\\/]* | ?:[\\/]*)
8164   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8165   ;;
8166   *)
8167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8169 do
8170   IFS=$as_save_IFS
8171   test -z "$as_dir" && as_dir=.
8172   for ac_exec_ext in '' $ac_executable_extensions; do
8173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8174     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8176     break 2
8177   fi
8178 done
8179 done
8180 IFS=$as_save_IFS
8181
8182   ;;
8183 esac
8184 fi
8185 OCAMLC=$ac_cv_path_OCAMLC
8186 if test -n "$OCAMLC"; then
8187   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8188 echo "${ECHO_T}$OCAMLC" >&6; }
8189 else
8190   { echo "$as_me:$LINENO: result: no" >&5
8191 echo "${ECHO_T}no" >&6; }
8192 fi
8193
8194
8195   test -n "$OCAMLC" && break
8196 done
8197
8198 for ac_prog in ocamlopt
8199 do
8200   # Extract the first word of "$ac_prog", so it can be a program name with args.
8201 set dummy $ac_prog; ac_word=$2
8202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8204 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8205   echo $ECHO_N "(cached) $ECHO_C" >&6
8206 else
8207   case $OCAMLOPT in
8208   [\\/]* | ?:[\\/]*)
8209   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8210   ;;
8211   *)
8212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH
8214 do
8215   IFS=$as_save_IFS
8216   test -z "$as_dir" && as_dir=.
8217   for ac_exec_ext in '' $ac_executable_extensions; do
8218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8219     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8221     break 2
8222   fi
8223 done
8224 done
8225 IFS=$as_save_IFS
8226
8227   ;;
8228 esac
8229 fi
8230 OCAMLOPT=$ac_cv_path_OCAMLOPT
8231 if test -n "$OCAMLOPT"; then
8232   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8233 echo "${ECHO_T}$OCAMLOPT" >&6; }
8234 else
8235   { echo "$as_me:$LINENO: result: no" >&5
8236 echo "${ECHO_T}no" >&6; }
8237 fi
8238
8239
8240   test -n "$OCAMLOPT" && break
8241 done
8242
8243 for ac_prog in ocamldep
8244 do
8245   # Extract the first word of "$ac_prog", so it can be a program name with args.
8246 set dummy $ac_prog; ac_word=$2
8247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8249 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8250   echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252   case $OCAMLDEP in
8253   [\\/]* | ?:[\\/]*)
8254   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8255   ;;
8256   *)
8257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8259 do
8260   IFS=$as_save_IFS
8261   test -z "$as_dir" && as_dir=.
8262   for ac_exec_ext in '' $ac_executable_extensions; do
8263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8264     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8266     break 2
8267   fi
8268 done
8269 done
8270 IFS=$as_save_IFS
8271
8272   ;;
8273 esac
8274 fi
8275 OCAMLDEP=$ac_cv_path_OCAMLDEP
8276 if test -n "$OCAMLDEP"; then
8277   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8278 echo "${ECHO_T}$OCAMLDEP" >&6; }
8279 else
8280   { echo "$as_me:$LINENO: result: no" >&5
8281 echo "${ECHO_T}no" >&6; }
8282 fi
8283
8284
8285   test -n "$OCAMLDEP" && break
8286 done
8287
8288 for ac_prog in ocamldoc
8289 do
8290   # Extract the first word of "$ac_prog", so it can be a program name with args.
8291 set dummy $ac_prog; ac_word=$2
8292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8294 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8295   echo $ECHO_N "(cached) $ECHO_C" >&6
8296 else
8297   case $OCAMLDOC in
8298   [\\/]* | ?:[\\/]*)
8299   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8300   ;;
8301   *)
8302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303 for as_dir in $PATH
8304 do
8305   IFS=$as_save_IFS
8306   test -z "$as_dir" && as_dir=.
8307   for ac_exec_ext in '' $ac_executable_extensions; do
8308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8309     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8311     break 2
8312   fi
8313 done
8314 done
8315 IFS=$as_save_IFS
8316
8317   ;;
8318 esac
8319 fi
8320 OCAMLDOC=$ac_cv_path_OCAMLDOC
8321 if test -n "$OCAMLDOC"; then
8322   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8323 echo "${ECHO_T}$OCAMLDOC" >&6; }
8324 else
8325   { echo "$as_me:$LINENO: result: no" >&5
8326 echo "${ECHO_T}no" >&6; }
8327 fi
8328
8329
8330   test -n "$OCAMLDOC" && break
8331 done
8332
8333 for ac_prog in gas as
8334 do
8335   # Extract the first word of "$ac_prog", so it can be a program name with args.
8336 set dummy $ac_prog; ac_word=$2
8337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8339 if test "${ac_cv_path_GAS+set}" = set; then
8340   echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342   case $GAS in
8343   [\\/]* | ?:[\\/]*)
8344   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8345   ;;
8346   *)
8347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8349 do
8350   IFS=$as_save_IFS
8351   test -z "$as_dir" && as_dir=.
8352   for ac_exec_ext in '' $ac_executable_extensions; do
8353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8354     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8356     break 2
8357   fi
8358 done
8359 done
8360 IFS=$as_save_IFS
8361
8362   ;;
8363 esac
8364 fi
8365 GAS=$ac_cv_path_GAS
8366 if test -n "$GAS"; then
8367   { echo "$as_me:$LINENO: result: $GAS" >&5
8368 echo "${ECHO_T}$GAS" >&6; }
8369 else
8370   { echo "$as_me:$LINENO: result: no" >&5
8371 echo "${ECHO_T}no" >&6; }
8372 fi
8373
8374
8375   test -n "$GAS" && break
8376 done
8377
8378
8379 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8380 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8381 if test "${llvm_cv_link_use_r+set}" = set; then
8382   echo $ECHO_N "(cached) $ECHO_C" >&6
8383 else
8384    ac_ext=c
8385 ac_cpp='$CPP $CPPFLAGS'
8386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8389
8390   oldcflags="$CFLAGS"
8391   CFLAGS="$CFLAGS -Wl,-R."
8392   cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h.  */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h.  */
8398
8399 int
8400 main ()
8401 {
8402 int main() { return 0; }
8403   ;
8404   return 0;
8405 }
8406 _ACEOF
8407 rm -f conftest.$ac_objext conftest$ac_exeext
8408 if { (ac_try="$ac_link"
8409 case "(($ac_try" in
8410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411   *) ac_try_echo=$ac_try;;
8412 esac
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414   (eval "$ac_link") 2>conftest.er1
8415   ac_status=$?
8416   grep -v '^ *+' conftest.er1 >conftest.err
8417   rm -f conftest.er1
8418   cat conftest.err >&5
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); } &&
8421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8422   { (case "(($ac_try" in
8423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424   *) ac_try_echo=$ac_try;;
8425 esac
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427   (eval "$ac_try") 2>&5
8428   ac_status=$?
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); }; } &&
8431          { ac_try='test -s conftest$ac_exeext'
8432   { (case "(($ac_try" in
8433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434   *) ac_try_echo=$ac_try;;
8435 esac
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437   (eval "$ac_try") 2>&5
8438   ac_status=$?
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); }; }; then
8441   llvm_cv_link_use_r=yes
8442 else
8443   echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8445
8446         llvm_cv_link_use_r=no
8447 fi
8448
8449 rm -f core conftest.err conftest.$ac_objext \
8450       conftest$ac_exeext conftest.$ac_ext
8451   CFLAGS="$oldcflags"
8452   ac_ext=c
8453 ac_cpp='$CPP $CPPFLAGS'
8454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8457
8458
8459 fi
8460 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8461 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8462 if test "$llvm_cv_link_use_r" = yes ; then
8463
8464 cat >>confdefs.h <<\_ACEOF
8465 #define HAVE_LINK_R 1
8466 _ACEOF
8467
8468   fi
8469
8470
8471 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8472 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8473 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8474   echo $ECHO_N "(cached) $ECHO_C" >&6
8475 else
8476    ac_ext=c
8477 ac_cpp='$CPP $CPPFLAGS'
8478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8481
8482   oldcflags="$CFLAGS"
8483   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8484   cat >conftest.$ac_ext <<_ACEOF
8485 /* confdefs.h.  */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h.  */
8490
8491 int
8492 main ()
8493 {
8494 int main() { return 0; }
8495   ;
8496   return 0;
8497 }
8498 _ACEOF
8499 rm -f conftest.$ac_objext conftest$ac_exeext
8500 if { (ac_try="$ac_link"
8501 case "(($ac_try" in
8502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503   *) ac_try_echo=$ac_try;;
8504 esac
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506   (eval "$ac_link") 2>conftest.er1
8507   ac_status=$?
8508   grep -v '^ *+' conftest.er1 >conftest.err
8509   rm -f conftest.er1
8510   cat conftest.err >&5
8511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512   (exit $ac_status); } &&
8513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8514   { (case "(($ac_try" in
8515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516   *) ac_try_echo=$ac_try;;
8517 esac
8518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519   (eval "$ac_try") 2>&5
8520   ac_status=$?
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); }; } &&
8523          { ac_try='test -s conftest$ac_exeext'
8524   { (case "(($ac_try" in
8525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526   *) ac_try_echo=$ac_try;;
8527 esac
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529   (eval "$ac_try") 2>&5
8530   ac_status=$?
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); }; }; then
8533   llvm_cv_link_use_export_dynamic=yes
8534 else
8535   echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8537
8538         llvm_cv_link_use_export_dynamic=no
8539 fi
8540
8541 rm -f core conftest.err conftest.$ac_objext \
8542       conftest$ac_exeext conftest.$ac_ext
8543   CFLAGS="$oldcflags"
8544   ac_ext=c
8545 ac_cpp='$CPP $CPPFLAGS'
8546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8549
8550
8551 fi
8552 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8553 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8554 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8555
8556 cat >>confdefs.h <<\_ACEOF
8557 #define HAVE_LINK_EXPORT_DYNAMIC 1
8558 _ACEOF
8559
8560   fi
8561
8562
8563
8564
8565 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8566 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8567 if test "${ac_cv_c_const+set}" = set; then
8568   echo $ECHO_N "(cached) $ECHO_C" >&6
8569 else
8570   cat >conftest.$ac_ext <<_ACEOF
8571 /* confdefs.h.  */
8572 _ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h.  */
8576
8577 int
8578 main ()
8579 {
8580 /* FIXME: Include the comments suggested by Paul. */
8581 #ifndef __cplusplus
8582   /* Ultrix mips cc rejects this.  */
8583   typedef int charset[2];
8584   const charset x;
8585   /* SunOS 4.1.1 cc rejects this.  */
8586   char const *const *ccp;
8587   char **p;
8588   /* NEC SVR4.0.2 mips cc rejects this.  */
8589   struct point {int x, y;};
8590   static struct point const zero = {0,0};
8591   /* AIX XL C 1.02.0.0 rejects this.
8592      It does not let you subtract one const X* pointer from another in
8593      an arm of an if-expression whose if-part is not a constant
8594      expression */
8595   const char *g = "string";
8596   ccp = &g + (g ? g-g : 0);
8597   /* HPUX 7.0 cc rejects these. */
8598   ++ccp;
8599   p = (char**) ccp;
8600   ccp = (char const *const *) p;
8601   { /* SCO 3.2v4 cc rejects this.  */
8602     char *t;
8603     char const *s = 0 ? (char *) 0 : (char const *) 0;
8604
8605     *t++ = 0;
8606     if (s) return 0;
8607   }
8608   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8609     int x[] = {25, 17};
8610     const int *foo = &x[0];
8611     ++foo;
8612   }
8613   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8614     typedef const int *iptr;
8615     iptr p = 0;
8616     ++p;
8617   }
8618   { /* AIX XL C 1.02.0.0 rejects this saying
8619        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8620     struct s { int j; const int *ap[3]; };
8621     struct s *b; b->j = 5;
8622   }
8623   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8624     const int foo = 10;
8625     if (!foo) return 0;
8626   }
8627   return !x[0] && !zero.x;
8628 #endif
8629
8630   ;
8631   return 0;
8632 }
8633 _ACEOF
8634 rm -f conftest.$ac_objext
8635 if { (ac_try="$ac_compile"
8636 case "(($ac_try" in
8637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638   *) ac_try_echo=$ac_try;;
8639 esac
8640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641   (eval "$ac_compile") 2>conftest.er1
8642   ac_status=$?
8643   grep -v '^ *+' conftest.er1 >conftest.err
8644   rm -f conftest.er1
8645   cat conftest.err >&5
8646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647   (exit $ac_status); } &&
8648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8649   { (case "(($ac_try" in
8650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651   *) ac_try_echo=$ac_try;;
8652 esac
8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654   (eval "$ac_try") 2>&5
8655   ac_status=$?
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); }; } &&
8658          { ac_try='test -s conftest.$ac_objext'
8659   { (case "(($ac_try" in
8660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661   *) ac_try_echo=$ac_try;;
8662 esac
8663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664   (eval "$ac_try") 2>&5
8665   ac_status=$?
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); }; }; then
8668   ac_cv_c_const=yes
8669 else
8670   echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8672
8673         ac_cv_c_const=no
8674 fi
8675
8676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677 fi
8678 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8679 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8680 if test $ac_cv_c_const = no; then
8681
8682 cat >>confdefs.h <<\_ACEOF
8683 #define const
8684 _ACEOF
8685
8686 fi
8687
8688
8689
8690
8691
8692
8693 ac_header_dirent=no
8694 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8695   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8696 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8697 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8699   echo $ECHO_N "(cached) $ECHO_C" >&6
8700 else
8701   cat >conftest.$ac_ext <<_ACEOF
8702 /* confdefs.h.  */
8703 _ACEOF
8704 cat confdefs.h >>conftest.$ac_ext
8705 cat >>conftest.$ac_ext <<_ACEOF
8706 /* end confdefs.h.  */
8707 #include <sys/types.h>
8708 #include <$ac_hdr>
8709
8710 int
8711 main ()
8712 {
8713 if ((DIR *) 0)
8714 return 0;
8715   ;
8716   return 0;
8717 }
8718 _ACEOF
8719 rm -f conftest.$ac_objext
8720 if { (ac_try="$ac_compile"
8721 case "(($ac_try" in
8722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723   *) ac_try_echo=$ac_try;;
8724 esac
8725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726   (eval "$ac_compile") 2>conftest.er1
8727   ac_status=$?
8728   grep -v '^ *+' conftest.er1 >conftest.err
8729   rm -f conftest.er1
8730   cat conftest.err >&5
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); } &&
8733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8734   { (case "(($ac_try" in
8735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736   *) ac_try_echo=$ac_try;;
8737 esac
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739   (eval "$ac_try") 2>&5
8740   ac_status=$?
8741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742   (exit $ac_status); }; } &&
8743          { ac_try='test -s conftest.$ac_objext'
8744   { (case "(($ac_try" in
8745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746   *) ac_try_echo=$ac_try;;
8747 esac
8748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8749   (eval "$ac_try") 2>&5
8750   ac_status=$?
8751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752   (exit $ac_status); }; }; then
8753   eval "$as_ac_Header=yes"
8754 else
8755   echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8757
8758         eval "$as_ac_Header=no"
8759 fi
8760
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8762 fi
8763 ac_res=`eval echo '${'$as_ac_Header'}'`
8764                { echo "$as_me:$LINENO: result: $ac_res" >&5
8765 echo "${ECHO_T}$ac_res" >&6; }
8766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8767   cat >>confdefs.h <<_ACEOF
8768 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8769 _ACEOF
8770
8771 ac_header_dirent=$ac_hdr; break
8772 fi
8773
8774 done
8775 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8776 if test $ac_header_dirent = dirent.h; then
8777   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8778 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8779 if test "${ac_cv_search_opendir+set}" = set; then
8780   echo $ECHO_N "(cached) $ECHO_C" >&6
8781 else
8782   ac_func_search_save_LIBS=$LIBS
8783 cat >conftest.$ac_ext <<_ACEOF
8784 /* confdefs.h.  */
8785 _ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h.  */
8789
8790 /* Override any GCC internal prototype to avoid an error.
8791    Use char because int might match the return type of a GCC
8792    builtin and then its argument prototype would still apply.  */
8793 #ifdef __cplusplus
8794 extern "C"
8795 #endif
8796 char opendir ();
8797 int
8798 main ()
8799 {
8800 return opendir ();
8801   ;
8802   return 0;
8803 }
8804 _ACEOF
8805 for ac_lib in '' dir; do
8806   if test -z "$ac_lib"; then
8807     ac_res="none required"
8808   else
8809     ac_res=-l$ac_lib
8810     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8811   fi
8812   rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (ac_try="$ac_link"
8814 case "(($ac_try" in
8815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8816   *) ac_try_echo=$ac_try;;
8817 esac
8818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8819   (eval "$ac_link") 2>conftest.er1
8820   ac_status=$?
8821   grep -v '^ *+' conftest.er1 >conftest.err
8822   rm -f conftest.er1
8823   cat conftest.err >&5
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); } &&
8826          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8827   { (case "(($ac_try" in
8828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829   *) ac_try_echo=$ac_try;;
8830 esac
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832   (eval "$ac_try") 2>&5
8833   ac_status=$?
8834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835   (exit $ac_status); }; } &&
8836          { ac_try='test -s conftest$ac_exeext'
8837   { (case "(($ac_try" in
8838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839   *) ac_try_echo=$ac_try;;
8840 esac
8841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842   (eval "$ac_try") 2>&5
8843   ac_status=$?
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); }; }; then
8846   ac_cv_search_opendir=$ac_res
8847 else
8848   echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.$ac_ext >&5
8850
8851
8852 fi
8853
8854 rm -f core conftest.err conftest.$ac_objext \
8855       conftest$ac_exeext
8856   if test "${ac_cv_search_opendir+set}" = set; then
8857   break
8858 fi
8859 done
8860 if test "${ac_cv_search_opendir+set}" = set; then
8861   :
8862 else
8863   ac_cv_search_opendir=no
8864 fi
8865 rm conftest.$ac_ext
8866 LIBS=$ac_func_search_save_LIBS
8867 fi
8868 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8869 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8870 ac_res=$ac_cv_search_opendir
8871 if test "$ac_res" != no; then
8872   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8873
8874 fi
8875
8876 else
8877   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8878 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8879 if test "${ac_cv_search_opendir+set}" = set; then
8880   echo $ECHO_N "(cached) $ECHO_C" >&6
8881 else
8882   ac_func_search_save_LIBS=$LIBS
8883 cat >conftest.$ac_ext <<_ACEOF
8884 /* confdefs.h.  */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h.  */
8889
8890 /* Override any GCC internal prototype to avoid an error.
8891    Use char because int might match the return type of a GCC
8892    builtin and then its argument prototype would still apply.  */
8893 #ifdef __cplusplus
8894 extern "C"
8895 #endif
8896 char opendir ();
8897 int
8898 main ()
8899 {
8900 return opendir ();
8901   ;
8902   return 0;
8903 }
8904 _ACEOF
8905 for ac_lib in '' x; do
8906   if test -z "$ac_lib"; then
8907     ac_res="none required"
8908   else
8909     ac_res=-l$ac_lib
8910     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8911   fi
8912   rm -f conftest.$ac_objext conftest$ac_exeext
8913 if { (ac_try="$ac_link"
8914 case "(($ac_try" in
8915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916   *) ac_try_echo=$ac_try;;
8917 esac
8918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919   (eval "$ac_link") 2>conftest.er1
8920   ac_status=$?
8921   grep -v '^ *+' conftest.er1 >conftest.err
8922   rm -f conftest.er1
8923   cat conftest.err >&5
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); } &&
8926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8927   { (case "(($ac_try" in
8928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929   *) ac_try_echo=$ac_try;;
8930 esac
8931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932   (eval "$ac_try") 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; } &&
8936          { ac_try='test -s conftest$ac_exeext'
8937   { (case "(($ac_try" in
8938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939   *) ac_try_echo=$ac_try;;
8940 esac
8941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942   (eval "$ac_try") 2>&5
8943   ac_status=$?
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); }; }; then
8946   ac_cv_search_opendir=$ac_res
8947 else
8948   echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8950
8951
8952 fi
8953
8954 rm -f core conftest.err conftest.$ac_objext \
8955       conftest$ac_exeext
8956   if test "${ac_cv_search_opendir+set}" = set; then
8957   break
8958 fi
8959 done
8960 if test "${ac_cv_search_opendir+set}" = set; then
8961   :
8962 else
8963   ac_cv_search_opendir=no
8964 fi
8965 rm conftest.$ac_ext
8966 LIBS=$ac_func_search_save_LIBS
8967 fi
8968 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8969 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8970 ac_res=$ac_cv_search_opendir
8971 if test "$ac_res" != no; then
8972   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8973
8974 fi
8975
8976 fi
8977
8978
8979 for ac_header in dlfcn.h
8980 do
8981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8983   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8986   echo $ECHO_N "(cached) $ECHO_C" >&6
8987 fi
8988 ac_res=`eval echo '${'$as_ac_Header'}'`
8989                { echo "$as_me:$LINENO: result: $ac_res" >&5
8990 echo "${ECHO_T}$ac_res" >&6; }
8991 else
8992   # Is the header compilable?
8993 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8995 cat >conftest.$ac_ext <<_ACEOF
8996 /* confdefs.h.  */
8997 _ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h.  */
9001 $ac_includes_default
9002 #include <$ac_header>
9003 _ACEOF
9004 rm -f conftest.$ac_objext
9005 if { (ac_try="$ac_compile"
9006 case "(($ac_try" in
9007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9008   *) ac_try_echo=$ac_try;;
9009 esac
9010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9011   (eval "$ac_compile") 2>conftest.er1
9012   ac_status=$?
9013   grep -v '^ *+' conftest.er1 >conftest.err
9014   rm -f conftest.er1
9015   cat conftest.err >&5
9016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017   (exit $ac_status); } &&
9018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9019   { (case "(($ac_try" in
9020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021   *) ac_try_echo=$ac_try;;
9022 esac
9023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9024   (eval "$ac_try") 2>&5
9025   ac_status=$?
9026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   (exit $ac_status); }; } &&
9028          { ac_try='test -s conftest.$ac_objext'
9029   { (case "(($ac_try" in
9030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031   *) ac_try_echo=$ac_try;;
9032 esac
9033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9034   (eval "$ac_try") 2>&5
9035   ac_status=$?
9036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037   (exit $ac_status); }; }; then
9038   ac_header_compiler=yes
9039 else
9040   echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9042
9043         ac_header_compiler=no
9044 fi
9045
9046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9048 echo "${ECHO_T}$ac_header_compiler" >&6; }
9049
9050 # Is the header present?
9051 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9053 cat >conftest.$ac_ext <<_ACEOF
9054 /* confdefs.h.  */
9055 _ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h.  */
9059 #include <$ac_header>
9060 _ACEOF
9061 if { (ac_try="$ac_cpp conftest.$ac_ext"
9062 case "(($ac_try" in
9063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9064   *) ac_try_echo=$ac_try;;
9065 esac
9066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9067   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9068   ac_status=$?
9069   grep -v '^ *+' conftest.er1 >conftest.err
9070   rm -f conftest.er1
9071   cat conftest.err >&5
9072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073   (exit $ac_status); } >/dev/null; then
9074   if test -s conftest.err; then
9075     ac_cpp_err=$ac_c_preproc_warn_flag
9076     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9077   else
9078     ac_cpp_err=
9079   fi
9080 else
9081   ac_cpp_err=yes
9082 fi
9083 if test -z "$ac_cpp_err"; then
9084   ac_header_preproc=yes
9085 else
9086   echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9088
9089   ac_header_preproc=no
9090 fi
9091
9092 rm -f conftest.err conftest.$ac_ext
9093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9094 echo "${ECHO_T}$ac_header_preproc" >&6; }
9095
9096 # So?  What about this header?
9097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9098   yes:no: )
9099     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9103     ac_header_preproc=yes
9104     ;;
9105   no:yes:* )
9106     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9108     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9109 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9110     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9112     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9113 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9116     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9118     ( cat <<\_ASBOX
9119 ## ----------------------------------- ##
9120 ## Report this to llvmbugs@cs.uiuc.edu ##
9121 ## ----------------------------------- ##
9122 _ASBOX
9123      ) | sed "s/^/$as_me: WARNING:     /" >&2
9124     ;;
9125 esac
9126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9129   echo $ECHO_N "(cached) $ECHO_C" >&6
9130 else
9131   eval "$as_ac_Header=\$ac_header_preproc"
9132 fi
9133 ac_res=`eval echo '${'$as_ac_Header'}'`
9134                { echo "$as_me:$LINENO: result: $ac_res" >&5
9135 echo "${ECHO_T}$ac_res" >&6; }
9136
9137 fi
9138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9139   cat >>confdefs.h <<_ACEOF
9140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9141 _ACEOF
9142
9143 fi
9144
9145 done
9146
9147 # Check whether --enable-ltdl-install was given.
9148 if test "${enable_ltdl_install+set}" = set; then
9149   enableval=$enable_ltdl_install;
9150 fi
9151
9152
9153
9154
9155 if test x"${enable_ltdl_install-no}" != xno; then
9156   INSTALL_LTDL_TRUE=
9157   INSTALL_LTDL_FALSE='#'
9158 else
9159   INSTALL_LTDL_TRUE='#'
9160   INSTALL_LTDL_FALSE=
9161 fi
9162
9163
9164
9165 if test x"${enable_ltdl_convenience-no}" != xno; then
9166   CONVENIENCE_LTDL_TRUE=
9167   CONVENIENCE_LTDL_FALSE='#'
9168 else
9169   CONVENIENCE_LTDL_TRUE='#'
9170   CONVENIENCE_LTDL_FALSE=
9171 fi
9172
9173
9174 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9175 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9176 library_names_spec=
9177 libname_spec='lib$name'
9178 soname_spec=
9179 shrext_cmds=".so"
9180 postinstall_cmds=
9181 postuninstall_cmds=
9182 finish_cmds=
9183 finish_eval=
9184 shlibpath_var=
9185 shlibpath_overrides_runpath=unknown
9186 version_type=none
9187 dynamic_linker="$host_os ld.so"
9188 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9189 if test "$GCC" = yes; then
9190   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9191   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9192     # if the path contains ";" then we assume it to be the separator
9193     # otherwise default to the standard path separator (i.e. ":") - it is
9194     # assumed that no part of a normal pathname contains ";" but that should
9195     # okay in the real world where ";" in dirpaths is itself problematic.
9196     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9197   else
9198     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9199   fi
9200 else
9201   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9202 fi
9203 need_lib_prefix=unknown
9204 hardcode_into_libs=no
9205
9206 # when you set need_version to no, make sure it does not cause -set_version
9207 # flags to be left without arguments
9208 need_version=unknown
9209
9210 case $host_os in
9211 aix3*)
9212   version_type=linux
9213   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9214   shlibpath_var=LIBPATH
9215
9216   # AIX 3 has no versioning support, so we append a major version to the name.
9217   soname_spec='${libname}${release}${shared_ext}$major'
9218   ;;
9219
9220 aix4* | aix5*)
9221   version_type=linux
9222   need_lib_prefix=no
9223   need_version=no
9224   hardcode_into_libs=yes
9225   if test "$host_cpu" = ia64; then
9226     # AIX 5 supports IA64
9227     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9228     shlibpath_var=LD_LIBRARY_PATH
9229   else
9230     # With GCC up to 2.95.x, collect2 would create an import file
9231     # for dependence libraries.  The import file would start with
9232     # the line `#! .'.  This would cause the generated library to
9233     # depend on `.', always an invalid library.  This was fixed in
9234     # development snapshots of GCC prior to 3.0.
9235     case $host_os in
9236       aix4 | aix4.[01] | aix4.[01].*)
9237       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9238            echo ' yes '
9239            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9240         :
9241       else
9242         can_build_shared=no
9243       fi
9244       ;;
9245     esac
9246     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9247     # soname into executable. Probably we can add versioning support to
9248     # collect2, so additional links can be useful in future.
9249     if test "$aix_use_runtimelinking" = yes; then
9250       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9251       # instead of lib<name>.a to let people know that these are not
9252       # typical AIX shared libraries.
9253       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9254     else
9255       # We preserve .a as extension for shared libraries through AIX4.2
9256       # and later when we are not doing run time linking.
9257       library_names_spec='${libname}${release}.a $libname.a'
9258       soname_spec='${libname}${release}${shared_ext}$major'
9259     fi
9260     shlibpath_var=LIBPATH
9261   fi
9262   ;;
9263
9264 amigaos*)
9265   library_names_spec='$libname.ixlibrary $libname.a'
9266   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9267   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'
9268   ;;
9269
9270 beos*)
9271   library_names_spec='${libname}${shared_ext}'
9272   dynamic_linker="$host_os ld.so"
9273   shlibpath_var=LIBRARY_PATH
9274   ;;
9275
9276 bsdi[45]*)
9277   version_type=linux
9278   need_version=no
9279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280   soname_spec='${libname}${release}${shared_ext}$major'
9281   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9282   shlibpath_var=LD_LIBRARY_PATH
9283   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9284   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9285   # the default ld.so.conf also contains /usr/contrib/lib and
9286   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9287   # libtool to hard-code these into programs
9288   ;;
9289
9290 cygwin* | mingw* | pw32*)
9291   version_type=windows
9292   shrext_cmds=".dll"
9293   need_version=no
9294   need_lib_prefix=no
9295
9296   case $GCC,$host_os in
9297   yes,cygwin* | yes,mingw* | yes,pw32*)
9298     library_names_spec='$libname.dll.a'
9299     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9300     postinstall_cmds='base_file=`basename \${file}`~
9301       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9302       dldir=$destdir/`dirname \$dlpath`~
9303       test -d \$dldir || mkdir -p \$dldir~
9304       $install_prog $dir/$dlname \$dldir/$dlname~
9305       chmod a+x \$dldir/$dlname'
9306     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9307       dlpath=$dir/\$dldll~
9308        $rm \$dlpath'
9309     shlibpath_overrides_runpath=yes
9310
9311     case $host_os in
9312     cygwin*)
9313       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9314       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9315       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9316       ;;
9317     mingw*)
9318       # MinGW DLLs use traditional 'lib' prefix
9319       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9320       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9321       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9322         # It is most probably a Windows format PATH printed by
9323         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9324         # path with ; separators, and with drive letters. We can handle the
9325         # drive letters (cygwin fileutils understands them), so leave them,
9326         # especially as we might pass files found there to a mingw objdump,
9327         # which wouldn't understand a cygwinified path. Ahh.
9328         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9329       else
9330         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9331       fi
9332       ;;
9333     pw32*)
9334       # pw32 DLLs use 'pw' prefix rather than 'lib'
9335       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9336       ;;
9337     esac
9338     ;;
9339
9340   *)
9341     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9342     ;;
9343   esac
9344   dynamic_linker='Win32 ld.exe'
9345   # FIXME: first we should search . and the directory the executable is in
9346   shlibpath_var=PATH
9347   ;;
9348
9349 darwin* | rhapsody*)
9350   dynamic_linker="$host_os dyld"
9351   version_type=darwin
9352   need_lib_prefix=no
9353   need_version=no
9354   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9355   soname_spec='${libname}${release}${major}$shared_ext'
9356   shlibpath_overrides_runpath=yes
9357   shlibpath_var=DYLD_LIBRARY_PATH
9358   shrext_cmds='.dylib'
9359   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9360   if test "$GCC" = yes; then
9361     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"`
9362   else
9363     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9364   fi
9365   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9366   ;;
9367
9368 dgux*)
9369   version_type=linux
9370   need_lib_prefix=no
9371   need_version=no
9372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9373   soname_spec='${libname}${release}${shared_ext}$major'
9374   shlibpath_var=LD_LIBRARY_PATH
9375   ;;
9376
9377 freebsd1*)
9378   dynamic_linker=no
9379   ;;
9380
9381 kfreebsd*-gnu)
9382   version_type=linux
9383   need_lib_prefix=no
9384   need_version=no
9385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9386   soname_spec='${libname}${release}${shared_ext}$major'
9387   shlibpath_var=LD_LIBRARY_PATH
9388   shlibpath_overrides_runpath=no
9389   hardcode_into_libs=yes
9390   dynamic_linker='GNU ld.so'
9391   ;;
9392
9393 freebsd* | dragonfly*)
9394   # DragonFly does not have aout.  When/if they implement a new
9395   # versioning mechanism, adjust this.
9396   if test -x /usr/bin/objformat; then
9397     objformat=`/usr/bin/objformat`
9398   else
9399     case $host_os in
9400     freebsd[123]*) objformat=aout ;;
9401     *) objformat=elf ;;
9402     esac
9403   fi
9404   version_type=freebsd-$objformat
9405   case $version_type in
9406     freebsd-elf*)
9407       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9408       need_version=no
9409       need_lib_prefix=no
9410       ;;
9411     freebsd-*)
9412       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9413       need_version=yes
9414       ;;
9415   esac
9416   shlibpath_var=LD_LIBRARY_PATH
9417   case $host_os in
9418   freebsd2*)
9419     shlibpath_overrides_runpath=yes
9420     ;;
9421   freebsd3.[01]* | freebsdelf3.[01]*)
9422     shlibpath_overrides_runpath=yes
9423     hardcode_into_libs=yes
9424     ;;
9425   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9426   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9427     shlibpath_overrides_runpath=no
9428     hardcode_into_libs=yes
9429     ;;
9430   freebsd*) # from 4.6 on
9431     shlibpath_overrides_runpath=yes
9432     hardcode_into_libs=yes
9433     ;;
9434   esac
9435   ;;
9436
9437 gnu*)
9438   version_type=linux
9439   need_lib_prefix=no
9440   need_version=no
9441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9442   soname_spec='${libname}${release}${shared_ext}$major'
9443   shlibpath_var=LD_LIBRARY_PATH
9444   hardcode_into_libs=yes
9445   ;;
9446
9447 hpux9* | hpux10* | hpux11*)
9448   # Give a soname corresponding to the major version so that dld.sl refuses to
9449   # link against other versions.
9450   version_type=sunos
9451   need_lib_prefix=no
9452   need_version=no
9453   case $host_cpu in
9454   ia64*)
9455     shrext_cmds='.so'
9456     hardcode_into_libs=yes
9457     dynamic_linker="$host_os dld.so"
9458     shlibpath_var=LD_LIBRARY_PATH
9459     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9460     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461     soname_spec='${libname}${release}${shared_ext}$major'
9462     if test "X$HPUX_IA64_MODE" = X32; then
9463       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9464     else
9465       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9466     fi
9467     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9468     ;;
9469    hppa*64*)
9470      shrext_cmds='.sl'
9471      hardcode_into_libs=yes
9472      dynamic_linker="$host_os dld.sl"
9473      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9474      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9475      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9476      soname_spec='${libname}${release}${shared_ext}$major'
9477      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9478      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9479      ;;
9480    *)
9481     shrext_cmds='.sl'
9482     dynamic_linker="$host_os dld.sl"
9483     shlibpath_var=SHLIB_PATH
9484     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9485     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486     soname_spec='${libname}${release}${shared_ext}$major'
9487     ;;
9488   esac
9489   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9490   postinstall_cmds='chmod 555 $lib'
9491   ;;
9492
9493 interix3*)
9494   version_type=linux
9495   need_lib_prefix=no
9496   need_version=no
9497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9498   soname_spec='${libname}${release}${shared_ext}$major'
9499   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9500   shlibpath_var=LD_LIBRARY_PATH
9501   shlibpath_overrides_runpath=no
9502   hardcode_into_libs=yes
9503   ;;
9504
9505 irix5* | irix6* | nonstopux*)
9506   case $host_os in
9507     nonstopux*) version_type=nonstopux ;;
9508     *)
9509         if test "$lt_cv_prog_gnu_ld" = yes; then
9510                 version_type=linux
9511         else
9512                 version_type=irix
9513         fi ;;
9514   esac
9515   need_lib_prefix=no
9516   need_version=no
9517   soname_spec='${libname}${release}${shared_ext}$major'
9518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9519   case $host_os in
9520   irix5* | nonstopux*)
9521     libsuff= shlibsuff=
9522     ;;
9523   *)
9524     case $LD in # libtool.m4 will add one of these switches to LD
9525     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9526       libsuff= shlibsuff= libmagic=32-bit;;
9527     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9528       libsuff=32 shlibsuff=N32 libmagic=N32;;
9529     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9530       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9531     *) libsuff= shlibsuff= libmagic=never-match;;
9532     esac
9533     ;;
9534   esac
9535   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9536   shlibpath_overrides_runpath=no
9537   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9538   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9539   hardcode_into_libs=yes
9540   ;;
9541
9542 # No shared lib support for Linux oldld, aout, or coff.
9543 linux*oldld* | linux*aout* | linux*coff*)
9544   dynamic_linker=no
9545   ;;
9546
9547 # This must be Linux ELF.
9548 linux*)
9549   version_type=linux
9550   need_lib_prefix=no
9551   need_version=no
9552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553   soname_spec='${libname}${release}${shared_ext}$major'
9554   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9555   shlibpath_var=LD_LIBRARY_PATH
9556   shlibpath_overrides_runpath=no
9557   # This implies no fast_install, which is unacceptable.
9558   # Some rework will be needed to allow for fast_install
9559   # before this can be enabled.
9560   hardcode_into_libs=yes
9561
9562   # Append ld.so.conf contents to the search path
9563   if test -f /etc/ld.so.conf; then
9564     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' ' '`
9565     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9566   fi
9567
9568   # We used to test for /lib/ld.so.1 and disable shared libraries on
9569   # powerpc, because MkLinux only supported shared libraries with the
9570   # GNU dynamic linker.  Since this was broken with cross compilers,
9571   # most powerpc-linux boxes support dynamic linking these days and
9572   # people can always --disable-shared, the test was removed, and we
9573   # assume the GNU/Linux dynamic linker is in use.
9574   dynamic_linker='GNU/Linux ld.so'
9575   ;;
9576
9577 knetbsd*-gnu)
9578   version_type=linux
9579   need_lib_prefix=no
9580   need_version=no
9581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9582   soname_spec='${libname}${release}${shared_ext}$major'
9583   shlibpath_var=LD_LIBRARY_PATH
9584   shlibpath_overrides_runpath=no
9585   hardcode_into_libs=yes
9586   dynamic_linker='GNU ld.so'
9587   ;;
9588
9589 netbsd*)
9590   version_type=sunos
9591   need_lib_prefix=no
9592   need_version=no
9593   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9594     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9595     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9596     dynamic_linker='NetBSD (a.out) ld.so'
9597   else
9598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9599     soname_spec='${libname}${release}${shared_ext}$major'
9600     dynamic_linker='NetBSD ld.elf_so'
9601   fi
9602   shlibpath_var=LD_LIBRARY_PATH
9603   shlibpath_overrides_runpath=yes
9604   hardcode_into_libs=yes
9605   ;;
9606
9607 newsos6)
9608   version_type=linux
9609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9610   shlibpath_var=LD_LIBRARY_PATH
9611   shlibpath_overrides_runpath=yes
9612   ;;
9613
9614 nto-qnx*)
9615   version_type=linux
9616   need_lib_prefix=no
9617   need_version=no
9618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9619   soname_spec='${libname}${release}${shared_ext}$major'
9620   shlibpath_var=LD_LIBRARY_PATH
9621   shlibpath_overrides_runpath=yes
9622   ;;
9623
9624 openbsd*)
9625   version_type=sunos
9626   sys_lib_dlsearch_path_spec="/usr/lib"
9627   need_lib_prefix=no
9628   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9629   case $host_os in
9630     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9631     *)                         need_version=no  ;;
9632   esac
9633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9634   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9635   shlibpath_var=LD_LIBRARY_PATH
9636   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9637     case $host_os in
9638       openbsd2.[89] | openbsd2.[89].*)
9639         shlibpath_overrides_runpath=no
9640         ;;
9641       *)
9642         shlibpath_overrides_runpath=yes
9643         ;;
9644       esac
9645   else
9646     shlibpath_overrides_runpath=yes
9647   fi
9648   ;;
9649
9650 os2*)
9651   libname_spec='$name'
9652   shrext_cmds=".dll"
9653   need_lib_prefix=no
9654   library_names_spec='$libname${shared_ext} $libname.a'
9655   dynamic_linker='OS/2 ld.exe'
9656   shlibpath_var=LIBPATH
9657   ;;
9658
9659 osf3* | osf4* | osf5*)
9660   version_type=osf
9661   need_lib_prefix=no
9662   need_version=no
9663   soname_spec='${libname}${release}${shared_ext}$major'
9664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9665   shlibpath_var=LD_LIBRARY_PATH
9666   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9667   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9668   ;;
9669
9670 solaris*)
9671   version_type=linux
9672   need_lib_prefix=no
9673   need_version=no
9674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675   soname_spec='${libname}${release}${shared_ext}$major'
9676   shlibpath_var=LD_LIBRARY_PATH
9677   shlibpath_overrides_runpath=yes
9678   hardcode_into_libs=yes
9679   # ldd complains unless libraries are executable
9680   postinstall_cmds='chmod +x $lib'
9681   ;;
9682
9683 sunos4*)
9684   version_type=sunos
9685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9686   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9687   shlibpath_var=LD_LIBRARY_PATH
9688   shlibpath_overrides_runpath=yes
9689   if test "$with_gnu_ld" = yes; then
9690     need_lib_prefix=no
9691   fi
9692   need_version=yes
9693   ;;
9694
9695 sysv4 | sysv4.3*)
9696   version_type=linux
9697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9698   soname_spec='${libname}${release}${shared_ext}$major'
9699   shlibpath_var=LD_LIBRARY_PATH
9700   case $host_vendor in
9701     sni)
9702       shlibpath_overrides_runpath=no
9703       need_lib_prefix=no
9704       export_dynamic_flag_spec='${wl}-Blargedynsym'
9705       runpath_var=LD_RUN_PATH
9706       ;;
9707     siemens)
9708       need_lib_prefix=no
9709       ;;
9710     motorola)
9711       need_lib_prefix=no
9712       need_version=no
9713       shlibpath_overrides_runpath=no
9714       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9715       ;;
9716   esac
9717   ;;
9718
9719 sysv4*MP*)
9720   if test -d /usr/nec ;then
9721     version_type=linux
9722     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9723     soname_spec='$libname${shared_ext}.$major'
9724     shlibpath_var=LD_LIBRARY_PATH
9725   fi
9726   ;;
9727
9728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9729   version_type=freebsd-elf
9730   need_lib_prefix=no
9731   need_version=no
9732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9733   soname_spec='${libname}${release}${shared_ext}$major'
9734   shlibpath_var=LD_LIBRARY_PATH
9735   hardcode_into_libs=yes
9736   if test "$with_gnu_ld" = yes; then
9737     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9738     shlibpath_overrides_runpath=no
9739   else
9740     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9741     shlibpath_overrides_runpath=yes
9742     case $host_os in
9743       sco3.2v5*)
9744         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9745         ;;
9746     esac
9747   fi
9748   sys_lib_dlsearch_path_spec='/usr/lib'
9749   ;;
9750
9751 uts4*)
9752   version_type=linux
9753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9754   soname_spec='${libname}${release}${shared_ext}$major'
9755   shlibpath_var=LD_LIBRARY_PATH
9756   ;;
9757
9758 *)
9759   dynamic_linker=no
9760   ;;
9761 esac
9762 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9763 echo "${ECHO_T}$dynamic_linker" >&6; }
9764 test "$dynamic_linker" = no && can_build_shared=no
9765
9766 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9767 if test "$GCC" = yes; then
9768   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9769 fi
9770
9771
9772 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9773 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9774 if test "${libltdl_cv_shlibext+set}" = set; then
9775   echo $ECHO_N "(cached) $ECHO_C" >&6
9776 else
9777
9778 module=yes
9779 eval libltdl_cv_shlibext=$shrext_cmds
9780
9781 fi
9782 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9783 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9784 if test -n "$libltdl_cv_shlibext"; then
9785
9786 cat >>confdefs.h <<_ACEOF
9787 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9788 _ACEOF
9789
9790 fi
9791
9792
9793 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9794 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9795 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9796   echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798   libltdl_cv_shlibpath_var="$shlibpath_var"
9799 fi
9800 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9801 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9802 if test -n "$libltdl_cv_shlibpath_var"; then
9803
9804 cat >>confdefs.h <<_ACEOF
9805 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9806 _ACEOF
9807
9808 fi
9809
9810
9811 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9812 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9813 if test "${libltdl_cv_sys_search_path+set}" = set; then
9814   echo $ECHO_N "(cached) $ECHO_C" >&6
9815 else
9816   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9817 fi
9818 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9819 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9820 if test -n "$libltdl_cv_sys_search_path"; then
9821   sys_search_path=
9822   for dir in $libltdl_cv_sys_search_path; do
9823     if test -z "$sys_search_path"; then
9824       sys_search_path="$dir"
9825     else
9826       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9827     fi
9828   done
9829
9830 cat >>confdefs.h <<_ACEOF
9831 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9832 _ACEOF
9833
9834 fi
9835
9836 { echo "$as_me:$LINENO: checking for objdir" >&5
9837 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9838 if test "${libltdl_cv_objdir+set}" = set; then
9839   echo $ECHO_N "(cached) $ECHO_C" >&6
9840 else
9841   libltdl_cv_objdir="$objdir"
9842   if test -n "$objdir"; then
9843     :
9844   else
9845     rm -f .libs 2>/dev/null
9846     mkdir .libs 2>/dev/null
9847     if test -d .libs; then
9848       libltdl_cv_objdir=.libs
9849     else
9850       # MS-DOS does not allow filenames that begin with a dot.
9851       libltdl_cv_objdir=_libs
9852     fi
9853   rmdir .libs 2>/dev/null
9854   fi
9855
9856 fi
9857 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9858 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9859
9860 cat >>confdefs.h <<_ACEOF
9861 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9862 _ACEOF
9863
9864
9865
9866
9867
9868
9869 # Check for command to grab the raw symbol name followed by C symbol from nm.
9870 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9871 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9872 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9873   echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875
9876 # These are sane defaults that work on at least a few old systems.
9877 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9878
9879 # Character class describing NM global symbol codes.
9880 symcode='[BCDEGRST]'
9881
9882 # Regexp to match symbols that can be accessed directly from C.
9883 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9884
9885 # Transform an extracted symbol line into a proper C declaration
9886 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9887
9888 # Transform an extracted symbol line into symbol name and symbol address
9889 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'"
9890
9891 # Define system-specific variables.
9892 case $host_os in
9893 aix*)
9894   symcode='[BCDT]'
9895   ;;
9896 cygwin* | mingw* | pw32*)
9897   symcode='[ABCDGISTW]'
9898   ;;
9899 hpux*) # Its linker distinguishes data from code symbols
9900   if test "$host_cpu" = ia64; then
9901     symcode='[ABCDEGRST]'
9902   fi
9903   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9904   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'"
9905   ;;
9906 linux*)
9907   if test "$host_cpu" = ia64; then
9908     symcode='[ABCDGIRSTW]'
9909     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9910     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'"
9911   fi
9912   ;;
9913 irix* | nonstopux*)
9914   symcode='[BCDEGRST]'
9915   ;;
9916 osf*)
9917   symcode='[BCDEGQRST]'
9918   ;;
9919 solaris*)
9920   symcode='[BDRT]'
9921   ;;
9922 sco3.2v5*)
9923   symcode='[DT]'
9924   ;;
9925 sysv4.2uw2*)
9926   symcode='[DT]'
9927   ;;
9928 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9929   symcode='[ABDT]'
9930   ;;
9931 sysv4)
9932   symcode='[DFNSTU]'
9933   ;;
9934 esac
9935
9936 # Handle CRLF in mingw tool chain
9937 opt_cr=
9938 case $build_os in
9939 mingw*)
9940   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9941   ;;
9942 esac
9943
9944 # If we're using GNU nm, then use its standard symbol codes.
9945 case `$NM -V 2>&1` in
9946 *GNU* | *'with BFD'*)
9947   symcode='[ABCDGIRSTW]' ;;
9948 esac
9949
9950 # Try without a prefix undercore, then with it.
9951 for ac_symprfx in "" "_"; do
9952
9953   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9954   symxfrm="\\1 $ac_symprfx\\2 \\2"
9955
9956   # Write the raw and C identifiers.
9957   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9958
9959   # Check to see that the pipe works correctly.
9960   pipe_works=no
9961
9962   rm -f conftest*
9963   cat > conftest.$ac_ext <<EOF
9964 #ifdef __cplusplus
9965 extern "C" {
9966 #endif
9967 char nm_test_var;
9968 void nm_test_func(){}
9969 #ifdef __cplusplus
9970 }
9971 #endif
9972 int main(){nm_test_var='a';nm_test_func();return(0);}
9973 EOF
9974
9975   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9976   (eval $ac_compile) 2>&5
9977   ac_status=$?
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); }; then
9980     # Now try to grab the symbols.
9981     nlist=conftest.nm
9982     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9983   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9984   ac_status=$?
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); } && test -s "$nlist"; then
9987       # Try sorting and uniquifying the output.
9988       if sort "$nlist" | uniq > "$nlist"T; then
9989         mv -f "$nlist"T "$nlist"
9990       else
9991         rm -f "$nlist"T
9992       fi
9993
9994       # Make sure that we snagged all the symbols we need.
9995       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9996         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9997           cat <<EOF > conftest.$ac_ext
9998 #ifdef __cplusplus
9999 extern "C" {
10000 #endif
10001
10002 EOF
10003           # Now generate the symbol file.
10004           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10005
10006           cat <<EOF >> conftest.$ac_ext
10007 #if defined (__STDC__) && __STDC__
10008 # define lt_ptr_t void *
10009 #else
10010 # define lt_ptr_t char *
10011 # define const
10012 #endif
10013
10014 /* The mapping between symbol names and symbols. */
10015 const struct {
10016   const char *name;
10017   lt_ptr_t address;
10018 }
10019 lt_preloaded_symbols[] =
10020 {
10021 EOF
10022           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10023           cat <<\EOF >> conftest.$ac_ext
10024   {0, (lt_ptr_t) 0}
10025 };
10026
10027 #ifdef __cplusplus
10028 }
10029 #endif
10030 EOF
10031           # Now try linking the two files.
10032           mv conftest.$ac_objext conftstm.$ac_objext
10033           lt_save_LIBS="$LIBS"
10034           lt_save_CFLAGS="$CFLAGS"
10035           LIBS="conftstm.$ac_objext"
10036           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10037           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10038   (eval $ac_link) 2>&5
10039   ac_status=$?
10040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10042             pipe_works=yes
10043           fi
10044           LIBS="$lt_save_LIBS"
10045           CFLAGS="$lt_save_CFLAGS"
10046         else
10047           echo "cannot find nm_test_func in $nlist" >&5
10048         fi
10049       else
10050         echo "cannot find nm_test_var in $nlist" >&5
10051       fi
10052     else
10053       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10054     fi
10055   else
10056     echo "$progname: failed program was:" >&5
10057     cat conftest.$ac_ext >&5
10058   fi
10059   rm -f conftest* conftst*
10060
10061   # Do not use the global_symbol_pipe unless it works.
10062   if test "$pipe_works" = yes; then
10063     break
10064   else
10065     lt_cv_sys_global_symbol_pipe=
10066   fi
10067 done
10068
10069 fi
10070
10071 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10072   lt_cv_sys_global_symbol_to_cdecl=
10073 fi
10074 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10075   { echo "$as_me:$LINENO: result: failed" >&5
10076 echo "${ECHO_T}failed" >&6; }
10077 else
10078   { echo "$as_me:$LINENO: result: ok" >&5
10079 echo "${ECHO_T}ok" >&6; }
10080 fi
10081
10082
10083 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10084 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10085 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10086   echo $ECHO_N "(cached) $ECHO_C" >&6
10087 else
10088   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10089     libltdl_cv_preloaded_symbols=yes
10090   else
10091     libltdl_cv_preloaded_symbols=no
10092   fi
10093
10094 fi
10095 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10096 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10097 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10098
10099 cat >>confdefs.h <<\_ACEOF
10100 #define HAVE_PRELOADED_SYMBOLS 1
10101 _ACEOF
10102
10103 fi
10104
10105 LIBADD_DL=
10106
10107 ac_ext=c
10108 ac_cpp='$CPP $CPPFLAGS'
10109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10112
10113
10114 { echo "$as_me:$LINENO: checking for shl_load" >&5
10115 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10116 if test "${ac_cv_func_shl_load+set}" = set; then
10117   echo $ECHO_N "(cached) $ECHO_C" >&6
10118 else
10119   cat >conftest.$ac_ext <<_ACEOF
10120 /* confdefs.h.  */
10121 _ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h.  */
10125 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10127 #define shl_load innocuous_shl_load
10128
10129 /* System header to define __stub macros and hopefully few prototypes,
10130     which can conflict with char shl_load (); below.
10131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10132     <limits.h> exists even on freestanding compilers.  */
10133
10134 #ifdef __STDC__
10135 # include <limits.h>
10136 #else
10137 # include <assert.h>
10138 #endif
10139
10140 #undef shl_load
10141
10142 /* Override any GCC internal prototype to avoid an error.
10143    Use char because int might match the return type of a GCC
10144    builtin and then its argument prototype would still apply.  */
10145 #ifdef __cplusplus
10146 extern "C"
10147 #endif
10148 char shl_load ();
10149 /* The GNU C library defines this for functions which it implements
10150     to always fail with ENOSYS.  Some functions are actually named
10151     something starting with __ and the normal name is an alias.  */
10152 #if defined __stub_shl_load || defined __stub___shl_load
10153 choke me
10154 #endif
10155
10156 int
10157 main ()
10158 {
10159 return shl_load ();
10160   ;
10161   return 0;
10162 }
10163 _ACEOF
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (ac_try="$ac_link"
10166 case "(($ac_try" in
10167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168   *) ac_try_echo=$ac_try;;
10169 esac
10170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171   (eval "$ac_link") 2>conftest.er1
10172   ac_status=$?
10173   grep -v '^ *+' conftest.er1 >conftest.err
10174   rm -f conftest.er1
10175   cat conftest.err >&5
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); } &&
10178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10179   { (case "(($ac_try" in
10180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181   *) ac_try_echo=$ac_try;;
10182 esac
10183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10184   (eval "$ac_try") 2>&5
10185   ac_status=$?
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); }; } &&
10188          { ac_try='test -s conftest$ac_exeext'
10189   { (case "(($ac_try" in
10190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191   *) ac_try_echo=$ac_try;;
10192 esac
10193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194   (eval "$ac_try") 2>&5
10195   ac_status=$?
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); }; }; then
10198   ac_cv_func_shl_load=yes
10199 else
10200   echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10202
10203         ac_cv_func_shl_load=no
10204 fi
10205
10206 rm -f core conftest.err conftest.$ac_objext \
10207       conftest$ac_exeext conftest.$ac_ext
10208 fi
10209 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10210 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10211 if test $ac_cv_func_shl_load = yes; then
10212
10213 cat >>confdefs.h <<\_ACEOF
10214 #define HAVE_SHL_LOAD 1
10215 _ACEOF
10216
10217 else
10218   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10219 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10220 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10221   echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223   ac_check_lib_save_LIBS=$LIBS
10224 LIBS="-ldld  $LIBS"
10225 cat >conftest.$ac_ext <<_ACEOF
10226 /* confdefs.h.  */
10227 _ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h.  */
10231
10232 /* Override any GCC internal prototype to avoid an error.
10233    Use char because int might match the return type of a GCC
10234    builtin and then its argument prototype would still apply.  */
10235 #ifdef __cplusplus
10236 extern "C"
10237 #endif
10238 char shl_load ();
10239 int
10240 main ()
10241 {
10242 return shl_load ();
10243   ;
10244   return 0;
10245 }
10246 _ACEOF
10247 rm -f conftest.$ac_objext conftest$ac_exeext
10248 if { (ac_try="$ac_link"
10249 case "(($ac_try" in
10250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251   *) ac_try_echo=$ac_try;;
10252 esac
10253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254   (eval "$ac_link") 2>conftest.er1
10255   ac_status=$?
10256   grep -v '^ *+' conftest.er1 >conftest.err
10257   rm -f conftest.er1
10258   cat conftest.err >&5
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); } &&
10261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10262   { (case "(($ac_try" in
10263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264   *) ac_try_echo=$ac_try;;
10265 esac
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267   (eval "$ac_try") 2>&5
10268   ac_status=$?
10269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270   (exit $ac_status); }; } &&
10271          { ac_try='test -s conftest$ac_exeext'
10272   { (case "(($ac_try" in
10273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274   *) ac_try_echo=$ac_try;;
10275 esac
10276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277   (eval "$ac_try") 2>&5
10278   ac_status=$?
10279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280   (exit $ac_status); }; }; then
10281   ac_cv_lib_dld_shl_load=yes
10282 else
10283   echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10285
10286         ac_cv_lib_dld_shl_load=no
10287 fi
10288
10289 rm -f core conftest.err conftest.$ac_objext \
10290       conftest$ac_exeext conftest.$ac_ext
10291 LIBS=$ac_check_lib_save_LIBS
10292 fi
10293 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10294 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10295 if test $ac_cv_lib_dld_shl_load = yes; then
10296
10297 cat >>confdefs.h <<\_ACEOF
10298 #define HAVE_SHL_LOAD 1
10299 _ACEOF
10300
10301         LIBADD_DL="$LIBADD_DL -ldld"
10302 else
10303   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10304 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10305 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10306   echo $ECHO_N "(cached) $ECHO_C" >&6
10307 else
10308   ac_check_lib_save_LIBS=$LIBS
10309 LIBS="-ldl  $LIBS"
10310 cat >conftest.$ac_ext <<_ACEOF
10311 /* confdefs.h.  */
10312 _ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h.  */
10316
10317 /* Override any GCC internal prototype to avoid an error.
10318    Use char because int might match the return type of a GCC
10319    builtin and then its argument prototype would still apply.  */
10320 #ifdef __cplusplus
10321 extern "C"
10322 #endif
10323 char dlopen ();
10324 int
10325 main ()
10326 {
10327 return dlopen ();
10328   ;
10329   return 0;
10330 }
10331 _ACEOF
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (ac_try="$ac_link"
10334 case "(($ac_try" in
10335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336   *) ac_try_echo=$ac_try;;
10337 esac
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339   (eval "$ac_link") 2>conftest.er1
10340   ac_status=$?
10341   grep -v '^ *+' conftest.er1 >conftest.err
10342   rm -f conftest.er1
10343   cat conftest.err >&5
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); } &&
10346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10347   { (case "(($ac_try" in
10348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349   *) ac_try_echo=$ac_try;;
10350 esac
10351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352   (eval "$ac_try") 2>&5
10353   ac_status=$?
10354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355   (exit $ac_status); }; } &&
10356          { ac_try='test -s conftest$ac_exeext'
10357   { (case "(($ac_try" in
10358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10359   *) ac_try_echo=$ac_try;;
10360 esac
10361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10362   (eval "$ac_try") 2>&5
10363   ac_status=$?
10364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365   (exit $ac_status); }; }; then
10366   ac_cv_lib_dl_dlopen=yes
10367 else
10368   echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10370
10371         ac_cv_lib_dl_dlopen=no
10372 fi
10373
10374 rm -f core conftest.err conftest.$ac_objext \
10375       conftest$ac_exeext conftest.$ac_ext
10376 LIBS=$ac_check_lib_save_LIBS
10377 fi
10378 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10379 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10380 if test $ac_cv_lib_dl_dlopen = yes; then
10381
10382 cat >>confdefs.h <<\_ACEOF
10383 #define HAVE_LIBDL 1
10384 _ACEOF
10385
10386                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10387 else
10388   cat >conftest.$ac_ext <<_ACEOF
10389 /* confdefs.h.  */
10390 _ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h.  */
10394 #if HAVE_DLFCN_H
10395 #  include <dlfcn.h>
10396 #endif
10397
10398 int
10399 main ()
10400 {
10401 dlopen(0, 0);
10402   ;
10403   return 0;
10404 }
10405 _ACEOF
10406 rm -f conftest.$ac_objext conftest$ac_exeext
10407 if { (ac_try="$ac_link"
10408 case "(($ac_try" in
10409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410   *) ac_try_echo=$ac_try;;
10411 esac
10412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10413   (eval "$ac_link") 2>conftest.er1
10414   ac_status=$?
10415   grep -v '^ *+' conftest.er1 >conftest.err
10416   rm -f conftest.er1
10417   cat conftest.err >&5
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); } &&
10420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10421   { (case "(($ac_try" in
10422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423   *) ac_try_echo=$ac_try;;
10424 esac
10425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426   (eval "$ac_try") 2>&5
10427   ac_status=$?
10428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429   (exit $ac_status); }; } &&
10430          { ac_try='test -s conftest$ac_exeext'
10431   { (case "(($ac_try" in
10432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433   *) ac_try_echo=$ac_try;;
10434 esac
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436   (eval "$ac_try") 2>&5
10437   ac_status=$?
10438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439   (exit $ac_status); }; }; then
10440
10441 cat >>confdefs.h <<\_ACEOF
10442 #define HAVE_LIBDL 1
10443 _ACEOF
10444  libltdl_cv_func_dlopen="yes"
10445 else
10446   echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10448
10449         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10450 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10451 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10452   echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454   ac_check_lib_save_LIBS=$LIBS
10455 LIBS="-lsvld  $LIBS"
10456 cat >conftest.$ac_ext <<_ACEOF
10457 /* confdefs.h.  */
10458 _ACEOF
10459 cat confdefs.h >>conftest.$ac_ext
10460 cat >>conftest.$ac_ext <<_ACEOF
10461 /* end confdefs.h.  */
10462
10463 /* Override any GCC internal prototype to avoid an error.
10464    Use char because int might match the return type of a GCC
10465    builtin and then its argument prototype would still apply.  */
10466 #ifdef __cplusplus
10467 extern "C"
10468 #endif
10469 char dlopen ();
10470 int
10471 main ()
10472 {
10473 return dlopen ();
10474   ;
10475   return 0;
10476 }
10477 _ACEOF
10478 rm -f conftest.$ac_objext conftest$ac_exeext
10479 if { (ac_try="$ac_link"
10480 case "(($ac_try" in
10481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482   *) ac_try_echo=$ac_try;;
10483 esac
10484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485   (eval "$ac_link") 2>conftest.er1
10486   ac_status=$?
10487   grep -v '^ *+' conftest.er1 >conftest.err
10488   rm -f conftest.er1
10489   cat conftest.err >&5
10490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491   (exit $ac_status); } &&
10492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10493   { (case "(($ac_try" in
10494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495   *) ac_try_echo=$ac_try;;
10496 esac
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498   (eval "$ac_try") 2>&5
10499   ac_status=$?
10500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501   (exit $ac_status); }; } &&
10502          { ac_try='test -s conftest$ac_exeext'
10503   { (case "(($ac_try" in
10504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10505   *) ac_try_echo=$ac_try;;
10506 esac
10507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10508   (eval "$ac_try") 2>&5
10509   ac_status=$?
10510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511   (exit $ac_status); }; }; then
10512   ac_cv_lib_svld_dlopen=yes
10513 else
10514   echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.$ac_ext >&5
10516
10517         ac_cv_lib_svld_dlopen=no
10518 fi
10519
10520 rm -f core conftest.err conftest.$ac_objext \
10521       conftest$ac_exeext conftest.$ac_ext
10522 LIBS=$ac_check_lib_save_LIBS
10523 fi
10524 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10525 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10526 if test $ac_cv_lib_svld_dlopen = yes; then
10527
10528 cat >>confdefs.h <<\_ACEOF
10529 #define HAVE_LIBDL 1
10530 _ACEOF
10531
10532                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10533 else
10534   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10535 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10536 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10537   echo $ECHO_N "(cached) $ECHO_C" >&6
10538 else
10539   ac_check_lib_save_LIBS=$LIBS
10540 LIBS="-ldld  $LIBS"
10541 cat >conftest.$ac_ext <<_ACEOF
10542 /* confdefs.h.  */
10543 _ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h.  */
10547
10548 /* Override any GCC internal prototype to avoid an error.
10549    Use char because int might match the return type of a GCC
10550    builtin and then its argument prototype would still apply.  */
10551 #ifdef __cplusplus
10552 extern "C"
10553 #endif
10554 char dld_link ();
10555 int
10556 main ()
10557 {
10558 return dld_link ();
10559   ;
10560   return 0;
10561 }
10562 _ACEOF
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (ac_try="$ac_link"
10565 case "(($ac_try" in
10566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567   *) ac_try_echo=$ac_try;;
10568 esac
10569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10570   (eval "$ac_link") 2>conftest.er1
10571   ac_status=$?
10572   grep -v '^ *+' conftest.er1 >conftest.err
10573   rm -f conftest.er1
10574   cat conftest.err >&5
10575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576   (exit $ac_status); } &&
10577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10578   { (case "(($ac_try" in
10579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10580   *) ac_try_echo=$ac_try;;
10581 esac
10582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10583   (eval "$ac_try") 2>&5
10584   ac_status=$?
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); }; } &&
10587          { ac_try='test -s conftest$ac_exeext'
10588   { (case "(($ac_try" in
10589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590   *) ac_try_echo=$ac_try;;
10591 esac
10592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10593   (eval "$ac_try") 2>&5
10594   ac_status=$?
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); }; }; then
10597   ac_cv_lib_dld_dld_link=yes
10598 else
10599   echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10601
10602         ac_cv_lib_dld_dld_link=no
10603 fi
10604
10605 rm -f core conftest.err conftest.$ac_objext \
10606       conftest$ac_exeext conftest.$ac_ext
10607 LIBS=$ac_check_lib_save_LIBS
10608 fi
10609 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10610 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10611 if test $ac_cv_lib_dld_dld_link = yes; then
10612
10613 cat >>confdefs.h <<\_ACEOF
10614 #define HAVE_DLD 1
10615 _ACEOF
10616
10617                 LIBADD_DL="$LIBADD_DL -ldld"
10618 else
10619   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10620 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10621 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10622   echo $ECHO_N "(cached) $ECHO_C" >&6
10623 else
10624   cat >conftest.$ac_ext <<_ACEOF
10625 /* confdefs.h.  */
10626 _ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h.  */
10630 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10631    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10632 #define _dyld_func_lookup innocuous__dyld_func_lookup
10633
10634 /* System header to define __stub macros and hopefully few prototypes,
10635     which can conflict with char _dyld_func_lookup (); below.
10636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10637     <limits.h> exists even on freestanding compilers.  */
10638
10639 #ifdef __STDC__
10640 # include <limits.h>
10641 #else
10642 # include <assert.h>
10643 #endif
10644
10645 #undef _dyld_func_lookup
10646
10647 /* Override any GCC internal prototype to avoid an error.
10648    Use char because int might match the return type of a GCC
10649    builtin and then its argument prototype would still apply.  */
10650 #ifdef __cplusplus
10651 extern "C"
10652 #endif
10653 char _dyld_func_lookup ();
10654 /* The GNU C library defines this for functions which it implements
10655     to always fail with ENOSYS.  Some functions are actually named
10656     something starting with __ and the normal name is an alias.  */
10657 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10658 choke me
10659 #endif
10660
10661 int
10662 main ()
10663 {
10664 return _dyld_func_lookup ();
10665   ;
10666   return 0;
10667 }
10668 _ACEOF
10669 rm -f conftest.$ac_objext conftest$ac_exeext
10670 if { (ac_try="$ac_link"
10671 case "(($ac_try" in
10672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673   *) ac_try_echo=$ac_try;;
10674 esac
10675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10676   (eval "$ac_link") 2>conftest.er1
10677   ac_status=$?
10678   grep -v '^ *+' conftest.er1 >conftest.err
10679   rm -f conftest.er1
10680   cat conftest.err >&5
10681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682   (exit $ac_status); } &&
10683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10684   { (case "(($ac_try" in
10685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686   *) ac_try_echo=$ac_try;;
10687 esac
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689   (eval "$ac_try") 2>&5
10690   ac_status=$?
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   (exit $ac_status); }; } &&
10693          { ac_try='test -s conftest$ac_exeext'
10694   { (case "(($ac_try" in
10695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696   *) ac_try_echo=$ac_try;;
10697 esac
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699   (eval "$ac_try") 2>&5
10700   ac_status=$?
10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); }; }; then
10703   ac_cv_func__dyld_func_lookup=yes
10704 else
10705   echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10707
10708         ac_cv_func__dyld_func_lookup=no
10709 fi
10710
10711 rm -f core conftest.err conftest.$ac_objext \
10712       conftest$ac_exeext conftest.$ac_ext
10713 fi
10714 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10715 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10716 if test $ac_cv_func__dyld_func_lookup = yes; then
10717
10718 cat >>confdefs.h <<\_ACEOF
10719 #define HAVE_DYLD 1
10720 _ACEOF
10721
10722 fi
10723
10724
10725 fi
10726
10727
10728 fi
10729
10730
10731 fi
10732
10733 rm -f core conftest.err conftest.$ac_objext \
10734       conftest$ac_exeext conftest.$ac_ext
10735
10736 fi
10737
10738
10739 fi
10740
10741
10742 fi
10743
10744
10745 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10746 then
10747   lt_save_LIBS="$LIBS"
10748   LIBS="$LIBS $LIBADD_DL"
10749
10750 for ac_func in dlerror
10751 do
10752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10756   echo $ECHO_N "(cached) $ECHO_C" >&6
10757 else
10758   cat >conftest.$ac_ext <<_ACEOF
10759 /* confdefs.h.  */
10760 _ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h.  */
10764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10766 #define $ac_func innocuous_$ac_func
10767
10768 /* System header to define __stub macros and hopefully few prototypes,
10769     which can conflict with char $ac_func (); below.
10770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10771     <limits.h> exists even on freestanding compilers.  */
10772
10773 #ifdef __STDC__
10774 # include <limits.h>
10775 #else
10776 # include <assert.h>
10777 #endif
10778
10779 #undef $ac_func
10780
10781 /* Override any GCC internal prototype to avoid an error.
10782    Use char because int might match the return type of a GCC
10783    builtin and then its argument prototype would still apply.  */
10784 #ifdef __cplusplus
10785 extern "C"
10786 #endif
10787 char $ac_func ();
10788 /* The GNU C library defines this for functions which it implements
10789     to always fail with ENOSYS.  Some functions are actually named
10790     something starting with __ and the normal name is an alias.  */
10791 #if defined __stub_$ac_func || defined __stub___$ac_func
10792 choke me
10793 #endif
10794
10795 int
10796 main ()
10797 {
10798 return $ac_func ();
10799   ;
10800   return 0;
10801 }
10802 _ACEOF
10803 rm -f conftest.$ac_objext conftest$ac_exeext
10804 if { (ac_try="$ac_link"
10805 case "(($ac_try" in
10806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807   *) ac_try_echo=$ac_try;;
10808 esac
10809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810   (eval "$ac_link") 2>conftest.er1
10811   ac_status=$?
10812   grep -v '^ *+' conftest.er1 >conftest.err
10813   rm -f conftest.er1
10814   cat conftest.err >&5
10815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816   (exit $ac_status); } &&
10817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10818   { (case "(($ac_try" in
10819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820   *) ac_try_echo=$ac_try;;
10821 esac
10822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823   (eval "$ac_try") 2>&5
10824   ac_status=$?
10825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826   (exit $ac_status); }; } &&
10827          { ac_try='test -s conftest$ac_exeext'
10828   { (case "(($ac_try" in
10829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830   *) ac_try_echo=$ac_try;;
10831 esac
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833   (eval "$ac_try") 2>&5
10834   ac_status=$?
10835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836   (exit $ac_status); }; }; then
10837   eval "$as_ac_var=yes"
10838 else
10839   echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10841
10842         eval "$as_ac_var=no"
10843 fi
10844
10845 rm -f core conftest.err conftest.$ac_objext \
10846       conftest$ac_exeext conftest.$ac_ext
10847 fi
10848 ac_res=`eval echo '${'$as_ac_var'}'`
10849                { echo "$as_me:$LINENO: result: $ac_res" >&5
10850 echo "${ECHO_T}$ac_res" >&6; }
10851 if test `eval echo '${'$as_ac_var'}'` = yes; then
10852   cat >>confdefs.h <<_ACEOF
10853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10854 _ACEOF
10855
10856 fi
10857 done
10858
10859   LIBS="$lt_save_LIBS"
10860 fi
10861 ac_ext=c
10862 ac_cpp='$CPP $CPPFLAGS'
10863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10866
10867
10868
10869 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10870 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10871 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10872   echo $ECHO_N "(cached) $ECHO_C" >&6
10873 else
10874   ac_cv_sys_symbol_underscore=no
10875   cat > conftest.$ac_ext <<EOF
10876 void nm_test_func(){}
10877 int main(){nm_test_func;return 0;}
10878 EOF
10879   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10880   (eval $ac_compile) 2>&5
10881   ac_status=$?
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); }; then
10884     # Now try to grab the symbols.
10885     ac_nlist=conftest.nm
10886     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10887   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10888   ac_status=$?
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); } && test -s "$ac_nlist"; then
10891       # See whether the symbols have a leading underscore.
10892       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10893         ac_cv_sys_symbol_underscore=yes
10894       else
10895         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10896           :
10897         else
10898           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10899         fi
10900       fi
10901     else
10902       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10903     fi
10904   else
10905     echo "configure: failed program was:" >&5
10906     cat conftest.c >&5
10907   fi
10908   rm -rf conftest*
10909
10910 fi
10911 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10912 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10913
10914
10915 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10916   if test x"$libltdl_cv_func_dlopen" = xyes ||
10917      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10918         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10919 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10920 if test "${libltdl_cv_need_uscore+set}" = set; then
10921   echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923   libltdl_cv_need_uscore=unknown
10924           save_LIBS="$LIBS"
10925           LIBS="$LIBS $LIBADD_DL"
10926           if test "$cross_compiling" = yes; then :
10927   libltdl_cv_need_uscore=cross
10928 else
10929   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10930   lt_status=$lt_dlunknown
10931   cat > conftest.$ac_ext <<EOF
10932 #line 10932 "configure"
10933 #include "confdefs.h"
10934
10935 #if HAVE_DLFCN_H
10936 #include <dlfcn.h>
10937 #endif
10938
10939 #include <stdio.h>
10940
10941 #ifdef RTLD_GLOBAL
10942 #  define LT_DLGLOBAL           RTLD_GLOBAL
10943 #else
10944 #  ifdef DL_GLOBAL
10945 #    define LT_DLGLOBAL         DL_GLOBAL
10946 #  else
10947 #    define LT_DLGLOBAL         0
10948 #  endif
10949 #endif
10950
10951 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10952    find out it does not work in some platform. */
10953 #ifndef LT_DLLAZY_OR_NOW
10954 #  ifdef RTLD_LAZY
10955 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10956 #  else
10957 #    ifdef DL_LAZY
10958 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10959 #    else
10960 #      ifdef RTLD_NOW
10961 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10962 #      else
10963 #        ifdef DL_NOW
10964 #          define LT_DLLAZY_OR_NOW      DL_NOW
10965 #        else
10966 #          define LT_DLLAZY_OR_NOW      0
10967 #        endif
10968 #      endif
10969 #    endif
10970 #  endif
10971 #endif
10972
10973 #ifdef __cplusplus
10974 extern "C" void exit (int);
10975 #endif
10976
10977 void fnord() { int i=42;}
10978 int main ()
10979 {
10980   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10981   int status = $lt_dlunknown;
10982
10983   if (self)
10984     {
10985       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10986       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10987       /* dlclose (self); */
10988     }
10989   else
10990     puts (dlerror ());
10991
10992     exit (status);
10993 }
10994 EOF
10995   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10996   (eval $ac_link) 2>&5
10997   ac_status=$?
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11000     (./conftest; exit; ) >&5 2>/dev/null
11001     lt_status=$?
11002     case x$lt_status in
11003       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11004       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11005       x$lt_dlunknown|x*)  ;;
11006     esac
11007   else :
11008     # compilation failed
11009
11010   fi
11011 fi
11012 rm -fr conftest*
11013
11014           LIBS="$save_LIBS"
11015
11016 fi
11017 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11018 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11019   fi
11020 fi
11021
11022 if test x"$libltdl_cv_need_uscore" = xyes; then
11023
11024 cat >>confdefs.h <<\_ACEOF
11025 #define NEED_USCORE 1
11026 _ACEOF
11027
11028 fi
11029
11030
11031 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11032 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11033 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11034   echo $ECHO_N "(cached) $ECHO_C" >&6
11035 else
11036   # PORTME does your system automatically load deplibs for dlopen?
11037   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11038   # For now, we just catch OSes we know something about -- in the
11039   # future, we'll try test this programmatically.
11040   libltdl_cv_sys_dlopen_deplibs=unknown
11041   case "$host_os" in
11042   aix3*|aix4.1.*|aix4.2.*)
11043     # Unknown whether this is true for these versions of AIX, but
11044     # we want this `case' here to explicitly catch those versions.
11045     libltdl_cv_sys_dlopen_deplibs=unknown
11046     ;;
11047   aix[45]*)
11048     libltdl_cv_sys_dlopen_deplibs=yes
11049     ;;
11050   darwin*)
11051     # Assuming the user has installed a libdl from somewhere, this is true
11052     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11053     libltdl_cv_sys_dlopen_deplibs=yes
11054     ;;
11055   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11056     # GNU and its variants, using gnu ld.so (Glibc)
11057     libltdl_cv_sys_dlopen_deplibs=yes
11058     ;;
11059   hpux10*|hpux11*)
11060     libltdl_cv_sys_dlopen_deplibs=yes
11061     ;;
11062   interix*)
11063     libltdl_cv_sys_dlopen_deplibs=yes
11064     ;;
11065   irix[12345]*|irix6.[01]*)
11066     # Catch all versions of IRIX before 6.2, and indicate that we don't
11067     # know how it worked for any of those versions.
11068     libltdl_cv_sys_dlopen_deplibs=unknown
11069     ;;
11070   irix*)
11071     # The case above catches anything before 6.2, and it's known that
11072     # at 6.2 and later dlopen does load deplibs.
11073     libltdl_cv_sys_dlopen_deplibs=yes
11074     ;;
11075   netbsd*)
11076     libltdl_cv_sys_dlopen_deplibs=yes
11077     ;;
11078   openbsd*)
11079     libltdl_cv_sys_dlopen_deplibs=yes
11080     ;;
11081   osf[1234]*)
11082     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11083     # it did *not* use an RPATH in a shared library to find objects the
11084     # library depends on, so we explictly say `no'.
11085     libltdl_cv_sys_dlopen_deplibs=no
11086     ;;
11087   osf5.0|osf5.0a|osf5.1)
11088     # dlopen *does* load deplibs and with the right loader patch applied
11089     # it even uses RPATH in a shared library to search for shared objects
11090     # that the library depends on, but there's no easy way to know if that
11091     # patch is installed.  Since this is the case, all we can really
11092     # say is unknown -- it depends on the patch being installed.  If
11093     # it is, this changes to `yes'.  Without it, it would be `no'.
11094     libltdl_cv_sys_dlopen_deplibs=unknown
11095     ;;
11096   osf*)
11097     # the two cases above should catch all versions of osf <= 5.1.  Read
11098     # the comments above for what we know about them.
11099     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11100     # is used to find them so we can finally say `yes'.
11101     libltdl_cv_sys_dlopen_deplibs=yes
11102     ;;
11103   solaris*)
11104     libltdl_cv_sys_dlopen_deplibs=yes
11105     ;;
11106   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11107     libltdl_cv_sys_dlopen_deplibs=yes
11108     ;;
11109   esac
11110
11111 fi
11112 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11113 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11114 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11115
11116 cat >>confdefs.h <<\_ACEOF
11117 #define LTDL_DLOPEN_DEPLIBS 1
11118 _ACEOF
11119
11120 fi
11121
11122
11123 for ac_header in argz.h
11124 do
11125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11130   echo $ECHO_N "(cached) $ECHO_C" >&6
11131 fi
11132 ac_res=`eval echo '${'$as_ac_Header'}'`
11133                { echo "$as_me:$LINENO: result: $ac_res" >&5
11134 echo "${ECHO_T}$ac_res" >&6; }
11135 else
11136   # Is the header compilable?
11137 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11139 cat >conftest.$ac_ext <<_ACEOF
11140 /* confdefs.h.  */
11141 _ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h.  */
11145 $ac_includes_default
11146 #include <$ac_header>
11147 _ACEOF
11148 rm -f conftest.$ac_objext
11149 if { (ac_try="$ac_compile"
11150 case "(($ac_try" in
11151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152   *) ac_try_echo=$ac_try;;
11153 esac
11154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155   (eval "$ac_compile") 2>conftest.er1
11156   ac_status=$?
11157   grep -v '^ *+' conftest.er1 >conftest.err
11158   rm -f conftest.er1
11159   cat conftest.err >&5
11160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161   (exit $ac_status); } &&
11162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11163   { (case "(($ac_try" in
11164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165   *) ac_try_echo=$ac_try;;
11166 esac
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168   (eval "$ac_try") 2>&5
11169   ac_status=$?
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); }; } &&
11172          { ac_try='test -s conftest.$ac_objext'
11173   { (case "(($ac_try" in
11174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175   *) ac_try_echo=$ac_try;;
11176 esac
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178   (eval "$ac_try") 2>&5
11179   ac_status=$?
11180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181   (exit $ac_status); }; }; then
11182   ac_header_compiler=yes
11183 else
11184   echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11186
11187         ac_header_compiler=no
11188 fi
11189
11190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11191 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11192 echo "${ECHO_T}$ac_header_compiler" >&6; }
11193
11194 # Is the header present?
11195 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11197 cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h.  */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h.  */
11203 #include <$ac_header>
11204 _ACEOF
11205 if { (ac_try="$ac_cpp conftest.$ac_ext"
11206 case "(($ac_try" in
11207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208   *) ac_try_echo=$ac_try;;
11209 esac
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11212   ac_status=$?
11213   grep -v '^ *+' conftest.er1 >conftest.err
11214   rm -f conftest.er1
11215   cat conftest.err >&5
11216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217   (exit $ac_status); } >/dev/null; then
11218   if test -s conftest.err; then
11219     ac_cpp_err=$ac_c_preproc_warn_flag
11220     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11221   else
11222     ac_cpp_err=
11223   fi
11224 else
11225   ac_cpp_err=yes
11226 fi
11227 if test -z "$ac_cpp_err"; then
11228   ac_header_preproc=yes
11229 else
11230   echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11232
11233   ac_header_preproc=no
11234 fi
11235
11236 rm -f conftest.err conftest.$ac_ext
11237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11238 echo "${ECHO_T}$ac_header_preproc" >&6; }
11239
11240 # So?  What about this header?
11241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11242   yes:no: )
11243     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11247     ac_header_preproc=yes
11248     ;;
11249   no:yes:* )
11250     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11252     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11253 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11254     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11256     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11257 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11260     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11262     ( cat <<\_ASBOX
11263 ## ----------------------------------- ##
11264 ## Report this to llvmbugs@cs.uiuc.edu ##
11265 ## ----------------------------------- ##
11266 _ASBOX
11267      ) | sed "s/^/$as_me: WARNING:     /" >&2
11268     ;;
11269 esac
11270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11273   echo $ECHO_N "(cached) $ECHO_C" >&6
11274 else
11275   eval "$as_ac_Header=\$ac_header_preproc"
11276 fi
11277 ac_res=`eval echo '${'$as_ac_Header'}'`
11278                { echo "$as_me:$LINENO: result: $ac_res" >&5
11279 echo "${ECHO_T}$ac_res" >&6; }
11280
11281 fi
11282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11283   cat >>confdefs.h <<_ACEOF
11284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11285 _ACEOF
11286
11287 fi
11288
11289 done
11290
11291
11292 { echo "$as_me:$LINENO: checking for error_t" >&5
11293 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11294 if test "${ac_cv_type_error_t+set}" = set; then
11295   echo $ECHO_N "(cached) $ECHO_C" >&6
11296 else
11297   cat >conftest.$ac_ext <<_ACEOF
11298 /* confdefs.h.  */
11299 _ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h.  */
11303 #if HAVE_ARGZ_H
11304 #  include <argz.h>
11305 #endif
11306
11307 typedef error_t ac__type_new_;
11308 int
11309 main ()
11310 {
11311 if ((ac__type_new_ *) 0)
11312   return 0;
11313 if (sizeof (ac__type_new_))
11314   return 0;
11315   ;
11316   return 0;
11317 }
11318 _ACEOF
11319 rm -f conftest.$ac_objext
11320 if { (ac_try="$ac_compile"
11321 case "(($ac_try" in
11322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11323   *) ac_try_echo=$ac_try;;
11324 esac
11325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11326   (eval "$ac_compile") 2>conftest.er1
11327   ac_status=$?
11328   grep -v '^ *+' conftest.er1 >conftest.err
11329   rm -f conftest.er1
11330   cat conftest.err >&5
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); } &&
11333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11334   { (case "(($ac_try" in
11335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336   *) ac_try_echo=$ac_try;;
11337 esac
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339   (eval "$ac_try") 2>&5
11340   ac_status=$?
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); }; } &&
11343          { ac_try='test -s conftest.$ac_objext'
11344   { (case "(($ac_try" in
11345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346   *) ac_try_echo=$ac_try;;
11347 esac
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349   (eval "$ac_try") 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); }; }; then
11353   ac_cv_type_error_t=yes
11354 else
11355   echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11357
11358         ac_cv_type_error_t=no
11359 fi
11360
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11362 fi
11363 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11364 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11365 if test $ac_cv_type_error_t = yes; then
11366
11367 cat >>confdefs.h <<_ACEOF
11368 #define HAVE_ERROR_T 1
11369 _ACEOF
11370
11371
11372 else
11373
11374 cat >>confdefs.h <<\_ACEOF
11375 #define error_t int
11376 _ACEOF
11377
11378 fi
11379
11380
11381
11382
11383
11384
11385
11386 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11387 do
11388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11389 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11392   echo $ECHO_N "(cached) $ECHO_C" >&6
11393 else
11394   cat >conftest.$ac_ext <<_ACEOF
11395 /* confdefs.h.  */
11396 _ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h.  */
11400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11401    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11402 #define $ac_func innocuous_$ac_func
11403
11404 /* System header to define __stub macros and hopefully few prototypes,
11405     which can conflict with char $ac_func (); below.
11406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11407     <limits.h> exists even on freestanding compilers.  */
11408
11409 #ifdef __STDC__
11410 # include <limits.h>
11411 #else
11412 # include <assert.h>
11413 #endif
11414
11415 #undef $ac_func
11416
11417 /* Override any GCC internal prototype to avoid an error.
11418    Use char because int might match the return type of a GCC
11419    builtin and then its argument prototype would still apply.  */
11420 #ifdef __cplusplus
11421 extern "C"
11422 #endif
11423 char $ac_func ();
11424 /* The GNU C library defines this for functions which it implements
11425     to always fail with ENOSYS.  Some functions are actually named
11426     something starting with __ and the normal name is an alias.  */
11427 #if defined __stub_$ac_func || defined __stub___$ac_func
11428 choke me
11429 #endif
11430
11431 int
11432 main ()
11433 {
11434 return $ac_func ();
11435   ;
11436   return 0;
11437 }
11438 _ACEOF
11439 rm -f conftest.$ac_objext conftest$ac_exeext
11440 if { (ac_try="$ac_link"
11441 case "(($ac_try" in
11442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443   *) ac_try_echo=$ac_try;;
11444 esac
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446   (eval "$ac_link") 2>conftest.er1
11447   ac_status=$?
11448   grep -v '^ *+' conftest.er1 >conftest.err
11449   rm -f conftest.er1
11450   cat conftest.err >&5
11451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452   (exit $ac_status); } &&
11453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11454   { (case "(($ac_try" in
11455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456   *) ac_try_echo=$ac_try;;
11457 esac
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459   (eval "$ac_try") 2>&5
11460   ac_status=$?
11461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462   (exit $ac_status); }; } &&
11463          { ac_try='test -s conftest$ac_exeext'
11464   { (case "(($ac_try" in
11465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466   *) ac_try_echo=$ac_try;;
11467 esac
11468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11469   (eval "$ac_try") 2>&5
11470   ac_status=$?
11471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472   (exit $ac_status); }; }; then
11473   eval "$as_ac_var=yes"
11474 else
11475   echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11477
11478         eval "$as_ac_var=no"
11479 fi
11480
11481 rm -f core conftest.err conftest.$ac_objext \
11482       conftest$ac_exeext conftest.$ac_ext
11483 fi
11484 ac_res=`eval echo '${'$as_ac_var'}'`
11485                { echo "$as_me:$LINENO: result: $ac_res" >&5
11486 echo "${ECHO_T}$ac_res" >&6; }
11487 if test `eval echo '${'$as_ac_var'}'` = yes; then
11488   cat >>confdefs.h <<_ACEOF
11489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11490 _ACEOF
11491
11492 fi
11493 done
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11523                   stdio.h unistd.h
11524 do
11525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11527   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11530   echo $ECHO_N "(cached) $ECHO_C" >&6
11531 fi
11532 ac_res=`eval echo '${'$as_ac_Header'}'`
11533                { echo "$as_me:$LINENO: result: $ac_res" >&5
11534 echo "${ECHO_T}$ac_res" >&6; }
11535 else
11536   # Is the header compilable?
11537 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11539 cat >conftest.$ac_ext <<_ACEOF
11540 /* confdefs.h.  */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h.  */
11545 $ac_includes_default
11546 #include <$ac_header>
11547 _ACEOF
11548 rm -f conftest.$ac_objext
11549 if { (ac_try="$ac_compile"
11550 case "(($ac_try" in
11551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552   *) ac_try_echo=$ac_try;;
11553 esac
11554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555   (eval "$ac_compile") 2>conftest.er1
11556   ac_status=$?
11557   grep -v '^ *+' conftest.er1 >conftest.err
11558   rm -f conftest.er1
11559   cat conftest.err >&5
11560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561   (exit $ac_status); } &&
11562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11563   { (case "(($ac_try" in
11564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565   *) ac_try_echo=$ac_try;;
11566 esac
11567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568   (eval "$ac_try") 2>&5
11569   ac_status=$?
11570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); }; } &&
11572          { ac_try='test -s conftest.$ac_objext'
11573   { (case "(($ac_try" in
11574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575   *) ac_try_echo=$ac_try;;
11576 esac
11577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578   (eval "$ac_try") 2>&5
11579   ac_status=$?
11580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581   (exit $ac_status); }; }; then
11582   ac_header_compiler=yes
11583 else
11584   echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11586
11587         ac_header_compiler=no
11588 fi
11589
11590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11592 echo "${ECHO_T}$ac_header_compiler" >&6; }
11593
11594 # Is the header present?
11595 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11597 cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h.  */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h.  */
11603 #include <$ac_header>
11604 _ACEOF
11605 if { (ac_try="$ac_cpp conftest.$ac_ext"
11606 case "(($ac_try" in
11607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608   *) ac_try_echo=$ac_try;;
11609 esac
11610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11611   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11612   ac_status=$?
11613   grep -v '^ *+' conftest.er1 >conftest.err
11614   rm -f conftest.er1
11615   cat conftest.err >&5
11616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); } >/dev/null; then
11618   if test -s conftest.err; then
11619     ac_cpp_err=$ac_c_preproc_warn_flag
11620     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11621   else
11622     ac_cpp_err=
11623   fi
11624 else
11625   ac_cpp_err=yes
11626 fi
11627 if test -z "$ac_cpp_err"; then
11628   ac_header_preproc=yes
11629 else
11630   echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11632
11633   ac_header_preproc=no
11634 fi
11635
11636 rm -f conftest.err conftest.$ac_ext
11637 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11638 echo "${ECHO_T}$ac_header_preproc" >&6; }
11639
11640 # So?  What about this header?
11641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11642   yes:no: )
11643     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11647     ac_header_preproc=yes
11648     ;;
11649   no:yes:* )
11650     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11652     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11653 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11654     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11656     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11657 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11658     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11660     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11662     ( cat <<\_ASBOX
11663 ## ----------------------------------- ##
11664 ## Report this to llvmbugs@cs.uiuc.edu ##
11665 ## ----------------------------------- ##
11666 _ASBOX
11667      ) | sed "s/^/$as_me: WARNING:     /" >&2
11668     ;;
11669 esac
11670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11673   echo $ECHO_N "(cached) $ECHO_C" >&6
11674 else
11675   eval "$as_ac_Header=\$ac_header_preproc"
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
11681 fi
11682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11683   cat >>confdefs.h <<_ACEOF
11684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11685 _ACEOF
11686
11687 fi
11688
11689 done
11690
11691
11692
11693
11694
11695 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11696 do
11697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11699   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11702   echo $ECHO_N "(cached) $ECHO_C" >&6
11703 fi
11704 ac_res=`eval echo '${'$as_ac_Header'}'`
11705                { echo "$as_me:$LINENO: result: $ac_res" >&5
11706 echo "${ECHO_T}$ac_res" >&6; }
11707 else
11708   # Is the header compilable?
11709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11711 cat >conftest.$ac_ext <<_ACEOF
11712 /* confdefs.h.  */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h.  */
11717 $ac_includes_default
11718 #include <$ac_header>
11719 _ACEOF
11720 rm -f conftest.$ac_objext
11721 if { (ac_try="$ac_compile"
11722 case "(($ac_try" in
11723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724   *) ac_try_echo=$ac_try;;
11725 esac
11726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727   (eval "$ac_compile") 2>conftest.er1
11728   ac_status=$?
11729   grep -v '^ *+' conftest.er1 >conftest.err
11730   rm -f conftest.er1
11731   cat conftest.err >&5
11732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733   (exit $ac_status); } &&
11734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11735   { (case "(($ac_try" in
11736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737   *) ac_try_echo=$ac_try;;
11738 esac
11739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740   (eval "$ac_try") 2>&5
11741   ac_status=$?
11742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743   (exit $ac_status); }; } &&
11744          { ac_try='test -s conftest.$ac_objext'
11745   { (case "(($ac_try" in
11746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747   *) ac_try_echo=$ac_try;;
11748 esac
11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750   (eval "$ac_try") 2>&5
11751   ac_status=$?
11752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753   (exit $ac_status); }; }; then
11754   ac_header_compiler=yes
11755 else
11756   echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11758
11759         ac_header_compiler=no
11760 fi
11761
11762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11764 echo "${ECHO_T}$ac_header_compiler" >&6; }
11765
11766 # Is the header present?
11767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11769 cat >conftest.$ac_ext <<_ACEOF
11770 /* confdefs.h.  */
11771 _ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h.  */
11775 #include <$ac_header>
11776 _ACEOF
11777 if { (ac_try="$ac_cpp conftest.$ac_ext"
11778 case "(($ac_try" in
11779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780   *) ac_try_echo=$ac_try;;
11781 esac
11782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11783   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11784   ac_status=$?
11785   grep -v '^ *+' conftest.er1 >conftest.err
11786   rm -f conftest.er1
11787   cat conftest.err >&5
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); } >/dev/null; then
11790   if test -s conftest.err; then
11791     ac_cpp_err=$ac_c_preproc_warn_flag
11792     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11793   else
11794     ac_cpp_err=
11795   fi
11796 else
11797   ac_cpp_err=yes
11798 fi
11799 if test -z "$ac_cpp_err"; then
11800   ac_header_preproc=yes
11801 else
11802   echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11804
11805   ac_header_preproc=no
11806 fi
11807
11808 rm -f conftest.err conftest.$ac_ext
11809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11810 echo "${ECHO_T}$ac_header_preproc" >&6; }
11811
11812 # So?  What about this header?
11813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11814   yes:no: )
11815     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11819     ac_header_preproc=yes
11820     ;;
11821   no:yes:* )
11822     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11824     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11825 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11826     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11828     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11829 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11832     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11834     ( cat <<\_ASBOX
11835 ## ----------------------------------- ##
11836 ## Report this to llvmbugs@cs.uiuc.edu ##
11837 ## ----------------------------------- ##
11838 _ASBOX
11839      ) | sed "s/^/$as_me: WARNING:     /" >&2
11840     ;;
11841 esac
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 else
11847   eval "$as_ac_Header=\$ac_header_preproc"
11848 fi
11849 ac_res=`eval echo '${'$as_ac_Header'}'`
11850                { echo "$as_me:$LINENO: result: $ac_res" >&5
11851 echo "${ECHO_T}$ac_res" >&6; }
11852
11853 fi
11854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11855   cat >>confdefs.h <<_ACEOF
11856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11857 _ACEOF
11858
11859 fi
11860
11861 done
11862
11863
11864
11865 for ac_header in string.h strings.h
11866 do
11867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11869   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11872   echo $ECHO_N "(cached) $ECHO_C" >&6
11873 fi
11874 ac_res=`eval echo '${'$as_ac_Header'}'`
11875                { echo "$as_me:$LINENO: result: $ac_res" >&5
11876 echo "${ECHO_T}$ac_res" >&6; }
11877 else
11878   # Is the header compilable?
11879 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11881 cat >conftest.$ac_ext <<_ACEOF
11882 /* confdefs.h.  */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h.  */
11887 $ac_includes_default
11888 #include <$ac_header>
11889 _ACEOF
11890 rm -f conftest.$ac_objext
11891 if { (ac_try="$ac_compile"
11892 case "(($ac_try" in
11893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894   *) ac_try_echo=$ac_try;;
11895 esac
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897   (eval "$ac_compile") 2>conftest.er1
11898   ac_status=$?
11899   grep -v '^ *+' conftest.er1 >conftest.err
11900   rm -f conftest.er1
11901   cat conftest.err >&5
11902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903   (exit $ac_status); } &&
11904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11905   { (case "(($ac_try" in
11906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907   *) ac_try_echo=$ac_try;;
11908 esac
11909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910   (eval "$ac_try") 2>&5
11911   ac_status=$?
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); }; } &&
11914          { ac_try='test -s conftest.$ac_objext'
11915   { (case "(($ac_try" in
11916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917   *) ac_try_echo=$ac_try;;
11918 esac
11919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11920   (eval "$ac_try") 2>&5
11921   ac_status=$?
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); }; }; then
11924   ac_header_compiler=yes
11925 else
11926   echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11928
11929         ac_header_compiler=no
11930 fi
11931
11932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11934 echo "${ECHO_T}$ac_header_compiler" >&6; }
11935
11936 # Is the header present?
11937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11939 cat >conftest.$ac_ext <<_ACEOF
11940 /* confdefs.h.  */
11941 _ACEOF
11942 cat confdefs.h >>conftest.$ac_ext
11943 cat >>conftest.$ac_ext <<_ACEOF
11944 /* end confdefs.h.  */
11945 #include <$ac_header>
11946 _ACEOF
11947 if { (ac_try="$ac_cpp conftest.$ac_ext"
11948 case "(($ac_try" in
11949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950   *) ac_try_echo=$ac_try;;
11951 esac
11952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11953   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11954   ac_status=$?
11955   grep -v '^ *+' conftest.er1 >conftest.err
11956   rm -f conftest.er1
11957   cat conftest.err >&5
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); } >/dev/null; then
11960   if test -s conftest.err; then
11961     ac_cpp_err=$ac_c_preproc_warn_flag
11962     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11963   else
11964     ac_cpp_err=
11965   fi
11966 else
11967   ac_cpp_err=yes
11968 fi
11969 if test -z "$ac_cpp_err"; then
11970   ac_header_preproc=yes
11971 else
11972   echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11974
11975   ac_header_preproc=no
11976 fi
11977
11978 rm -f conftest.err conftest.$ac_ext
11979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11980 echo "${ECHO_T}$ac_header_preproc" >&6; }
11981
11982 # So?  What about this header?
11983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11984   yes:no: )
11985     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11987     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11989     ac_header_preproc=yes
11990     ;;
11991   no:yes:* )
11992     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11994     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11995 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11996     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11998     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11999 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12002     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12004     ( cat <<\_ASBOX
12005 ## ----------------------------------- ##
12006 ## Report this to llvmbugs@cs.uiuc.edu ##
12007 ## ----------------------------------- ##
12008 _ASBOX
12009      ) | sed "s/^/$as_me: WARNING:     /" >&2
12010     ;;
12011 esac
12012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12015   echo $ECHO_N "(cached) $ECHO_C" >&6
12016 else
12017   eval "$as_ac_Header=\$ac_header_preproc"
12018 fi
12019 ac_res=`eval echo '${'$as_ac_Header'}'`
12020                { echo "$as_me:$LINENO: result: $ac_res" >&5
12021 echo "${ECHO_T}$ac_res" >&6; }
12022
12023 fi
12024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12025   cat >>confdefs.h <<_ACEOF
12026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12027 _ACEOF
12028  break
12029 fi
12030
12031 done
12032
12033
12034
12035
12036 for ac_func in strchr index
12037 do
12038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12042   echo $ECHO_N "(cached) $ECHO_C" >&6
12043 else
12044   cat >conftest.$ac_ext <<_ACEOF
12045 /* confdefs.h.  */
12046 _ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h.  */
12050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12052 #define $ac_func innocuous_$ac_func
12053
12054 /* System header to define __stub macros and hopefully few prototypes,
12055     which can conflict with char $ac_func (); below.
12056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12057     <limits.h> exists even on freestanding compilers.  */
12058
12059 #ifdef __STDC__
12060 # include <limits.h>
12061 #else
12062 # include <assert.h>
12063 #endif
12064
12065 #undef $ac_func
12066
12067 /* Override any GCC internal prototype to avoid an error.
12068    Use char because int might match the return type of a GCC
12069    builtin and then its argument prototype would still apply.  */
12070 #ifdef __cplusplus
12071 extern "C"
12072 #endif
12073 char $ac_func ();
12074 /* The GNU C library defines this for functions which it implements
12075     to always fail with ENOSYS.  Some functions are actually named
12076     something starting with __ and the normal name is an alias.  */
12077 #if defined __stub_$ac_func || defined __stub___$ac_func
12078 choke me
12079 #endif
12080
12081 int
12082 main ()
12083 {
12084 return $ac_func ();
12085   ;
12086   return 0;
12087 }
12088 _ACEOF
12089 rm -f conftest.$ac_objext conftest$ac_exeext
12090 if { (ac_try="$ac_link"
12091 case "(($ac_try" in
12092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093   *) ac_try_echo=$ac_try;;
12094 esac
12095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12096   (eval "$ac_link") 2>conftest.er1
12097   ac_status=$?
12098   grep -v '^ *+' conftest.er1 >conftest.err
12099   rm -f conftest.er1
12100   cat conftest.err >&5
12101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102   (exit $ac_status); } &&
12103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12104   { (case "(($ac_try" in
12105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106   *) ac_try_echo=$ac_try;;
12107 esac
12108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109   (eval "$ac_try") 2>&5
12110   ac_status=$?
12111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112   (exit $ac_status); }; } &&
12113          { ac_try='test -s conftest$ac_exeext'
12114   { (case "(($ac_try" in
12115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116   *) ac_try_echo=$ac_try;;
12117 esac
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119   (eval "$ac_try") 2>&5
12120   ac_status=$?
12121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122   (exit $ac_status); }; }; then
12123   eval "$as_ac_var=yes"
12124 else
12125   echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12127
12128         eval "$as_ac_var=no"
12129 fi
12130
12131 rm -f core conftest.err conftest.$ac_objext \
12132       conftest$ac_exeext conftest.$ac_ext
12133 fi
12134 ac_res=`eval echo '${'$as_ac_var'}'`
12135                { echo "$as_me:$LINENO: result: $ac_res" >&5
12136 echo "${ECHO_T}$ac_res" >&6; }
12137 if test `eval echo '${'$as_ac_var'}'` = yes; then
12138   cat >>confdefs.h <<_ACEOF
12139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12140 _ACEOF
12141  break
12142 fi
12143 done
12144
12145
12146
12147 for ac_func in strrchr rindex
12148 do
12149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12153   echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155   cat >conftest.$ac_ext <<_ACEOF
12156 /* confdefs.h.  */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h.  */
12161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12163 #define $ac_func innocuous_$ac_func
12164
12165 /* System header to define __stub macros and hopefully few prototypes,
12166     which can conflict with char $ac_func (); below.
12167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12168     <limits.h> exists even on freestanding compilers.  */
12169
12170 #ifdef __STDC__
12171 # include <limits.h>
12172 #else
12173 # include <assert.h>
12174 #endif
12175
12176 #undef $ac_func
12177
12178 /* Override any GCC internal prototype to avoid an error.
12179    Use char because int might match the return type of a GCC
12180    builtin and then its argument prototype would still apply.  */
12181 #ifdef __cplusplus
12182 extern "C"
12183 #endif
12184 char $ac_func ();
12185 /* The GNU C library defines this for functions which it implements
12186     to always fail with ENOSYS.  Some functions are actually named
12187     something starting with __ and the normal name is an alias.  */
12188 #if defined __stub_$ac_func || defined __stub___$ac_func
12189 choke me
12190 #endif
12191
12192 int
12193 main ()
12194 {
12195 return $ac_func ();
12196   ;
12197   return 0;
12198 }
12199 _ACEOF
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (ac_try="$ac_link"
12202 case "(($ac_try" in
12203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204   *) ac_try_echo=$ac_try;;
12205 esac
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207   (eval "$ac_link") 2>conftest.er1
12208   ac_status=$?
12209   grep -v '^ *+' conftest.er1 >conftest.err
12210   rm -f conftest.er1
12211   cat conftest.err >&5
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); } &&
12214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12215   { (case "(($ac_try" in
12216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217   *) ac_try_echo=$ac_try;;
12218 esac
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220   (eval "$ac_try") 2>&5
12221   ac_status=$?
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); }; } &&
12224          { ac_try='test -s conftest$ac_exeext'
12225   { (case "(($ac_try" in
12226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227   *) ac_try_echo=$ac_try;;
12228 esac
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230   (eval "$ac_try") 2>&5
12231   ac_status=$?
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); }; }; then
12234   eval "$as_ac_var=yes"
12235 else
12236   echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239         eval "$as_ac_var=no"
12240 fi
12241
12242 rm -f core conftest.err conftest.$ac_objext \
12243       conftest$ac_exeext conftest.$ac_ext
12244 fi
12245 ac_res=`eval echo '${'$as_ac_var'}'`
12246                { echo "$as_me:$LINENO: result: $ac_res" >&5
12247 echo "${ECHO_T}$ac_res" >&6; }
12248 if test `eval echo '${'$as_ac_var'}'` = yes; then
12249   cat >>confdefs.h <<_ACEOF
12250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12251 _ACEOF
12252  break
12253 fi
12254 done
12255
12256
12257
12258 for ac_func in memcpy bcopy
12259 do
12260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12261 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12263 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12264   echo $ECHO_N "(cached) $ECHO_C" >&6
12265 else
12266   cat >conftest.$ac_ext <<_ACEOF
12267 /* confdefs.h.  */
12268 _ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h.  */
12272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12273    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12274 #define $ac_func innocuous_$ac_func
12275
12276 /* System header to define __stub macros and hopefully few prototypes,
12277     which can conflict with char $ac_func (); below.
12278     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12279     <limits.h> exists even on freestanding compilers.  */
12280
12281 #ifdef __STDC__
12282 # include <limits.h>
12283 #else
12284 # include <assert.h>
12285 #endif
12286
12287 #undef $ac_func
12288
12289 /* Override any GCC internal prototype to avoid an error.
12290    Use char because int might match the return type of a GCC
12291    builtin and then its argument prototype would still apply.  */
12292 #ifdef __cplusplus
12293 extern "C"
12294 #endif
12295 char $ac_func ();
12296 /* The GNU C library defines this for functions which it implements
12297     to always fail with ENOSYS.  Some functions are actually named
12298     something starting with __ and the normal name is an alias.  */
12299 #if defined __stub_$ac_func || defined __stub___$ac_func
12300 choke me
12301 #endif
12302
12303 int
12304 main ()
12305 {
12306 return $ac_func ();
12307   ;
12308   return 0;
12309 }
12310 _ACEOF
12311 rm -f conftest.$ac_objext conftest$ac_exeext
12312 if { (ac_try="$ac_link"
12313 case "(($ac_try" in
12314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315   *) ac_try_echo=$ac_try;;
12316 esac
12317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318   (eval "$ac_link") 2>conftest.er1
12319   ac_status=$?
12320   grep -v '^ *+' conftest.er1 >conftest.err
12321   rm -f conftest.er1
12322   cat conftest.err >&5
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); } &&
12325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12326   { (case "(($ac_try" in
12327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328   *) ac_try_echo=$ac_try;;
12329 esac
12330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331   (eval "$ac_try") 2>&5
12332   ac_status=$?
12333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334   (exit $ac_status); }; } &&
12335          { ac_try='test -s conftest$ac_exeext'
12336   { (case "(($ac_try" in
12337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338   *) ac_try_echo=$ac_try;;
12339 esac
12340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341   (eval "$ac_try") 2>&5
12342   ac_status=$?
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); }; }; then
12345   eval "$as_ac_var=yes"
12346 else
12347   echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12349
12350         eval "$as_ac_var=no"
12351 fi
12352
12353 rm -f core conftest.err conftest.$ac_objext \
12354       conftest$ac_exeext conftest.$ac_ext
12355 fi
12356 ac_res=`eval echo '${'$as_ac_var'}'`
12357                { echo "$as_me:$LINENO: result: $ac_res" >&5
12358 echo "${ECHO_T}$ac_res" >&6; }
12359 if test `eval echo '${'$as_ac_var'}'` = yes; then
12360   cat >>confdefs.h <<_ACEOF
12361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12362 _ACEOF
12363  break
12364 fi
12365 done
12366
12367
12368
12369 for ac_func in memmove strcmp
12370 do
12371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12375   echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377   cat >conftest.$ac_ext <<_ACEOF
12378 /* confdefs.h.  */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h.  */
12383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12385 #define $ac_func innocuous_$ac_func
12386
12387 /* System header to define __stub macros and hopefully few prototypes,
12388     which can conflict with char $ac_func (); below.
12389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12390     <limits.h> exists even on freestanding compilers.  */
12391
12392 #ifdef __STDC__
12393 # include <limits.h>
12394 #else
12395 # include <assert.h>
12396 #endif
12397
12398 #undef $ac_func
12399
12400 /* Override any GCC internal prototype to avoid an error.
12401    Use char because int might match the return type of a GCC
12402    builtin and then its argument prototype would still apply.  */
12403 #ifdef __cplusplus
12404 extern "C"
12405 #endif
12406 char $ac_func ();
12407 /* The GNU C library defines this for functions which it implements
12408     to always fail with ENOSYS.  Some functions are actually named
12409     something starting with __ and the normal name is an alias.  */
12410 #if defined __stub_$ac_func || defined __stub___$ac_func
12411 choke me
12412 #endif
12413
12414 int
12415 main ()
12416 {
12417 return $ac_func ();
12418   ;
12419   return 0;
12420 }
12421 _ACEOF
12422 rm -f conftest.$ac_objext conftest$ac_exeext
12423 if { (ac_try="$ac_link"
12424 case "(($ac_try" in
12425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426   *) ac_try_echo=$ac_try;;
12427 esac
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429   (eval "$ac_link") 2>conftest.er1
12430   ac_status=$?
12431   grep -v '^ *+' conftest.er1 >conftest.err
12432   rm -f conftest.er1
12433   cat conftest.err >&5
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); } &&
12436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12437   { (case "(($ac_try" in
12438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439   *) ac_try_echo=$ac_try;;
12440 esac
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442   (eval "$ac_try") 2>&5
12443   ac_status=$?
12444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445   (exit $ac_status); }; } &&
12446          { ac_try='test -s conftest$ac_exeext'
12447   { (case "(($ac_try" in
12448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449   *) ac_try_echo=$ac_try;;
12450 esac
12451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452   (eval "$ac_try") 2>&5
12453   ac_status=$?
12454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455   (exit $ac_status); }; }; then
12456   eval "$as_ac_var=yes"
12457 else
12458   echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12460
12461         eval "$as_ac_var=no"
12462 fi
12463
12464 rm -f core conftest.err conftest.$ac_objext \
12465       conftest$ac_exeext conftest.$ac_ext
12466 fi
12467 ac_res=`eval echo '${'$as_ac_var'}'`
12468                { echo "$as_me:$LINENO: result: $ac_res" >&5
12469 echo "${ECHO_T}$ac_res" >&6; }
12470 if test `eval echo '${'$as_ac_var'}'` = yes; then
12471   cat >>confdefs.h <<_ACEOF
12472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12473 _ACEOF
12474
12475 fi
12476 done
12477
12478
12479
12480
12481 for ac_func in closedir opendir readdir
12482 do
12483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12487   echo $ECHO_N "(cached) $ECHO_C" >&6
12488 else
12489   cat >conftest.$ac_ext <<_ACEOF
12490 /* confdefs.h.  */
12491 _ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h.  */
12495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12497 #define $ac_func innocuous_$ac_func
12498
12499 /* System header to define __stub macros and hopefully few prototypes,
12500     which can conflict with char $ac_func (); below.
12501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12502     <limits.h> exists even on freestanding compilers.  */
12503
12504 #ifdef __STDC__
12505 # include <limits.h>
12506 #else
12507 # include <assert.h>
12508 #endif
12509
12510 #undef $ac_func
12511
12512 /* Override any GCC internal prototype to avoid an error.
12513    Use char because int might match the return type of a GCC
12514    builtin and then its argument prototype would still apply.  */
12515 #ifdef __cplusplus
12516 extern "C"
12517 #endif
12518 char $ac_func ();
12519 /* The GNU C library defines this for functions which it implements
12520     to always fail with ENOSYS.  Some functions are actually named
12521     something starting with __ and the normal name is an alias.  */
12522 #if defined __stub_$ac_func || defined __stub___$ac_func
12523 choke me
12524 #endif
12525
12526 int
12527 main ()
12528 {
12529 return $ac_func ();
12530   ;
12531   return 0;
12532 }
12533 _ACEOF
12534 rm -f conftest.$ac_objext conftest$ac_exeext
12535 if { (ac_try="$ac_link"
12536 case "(($ac_try" in
12537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538   *) ac_try_echo=$ac_try;;
12539 esac
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541   (eval "$ac_link") 2>conftest.er1
12542   ac_status=$?
12543   grep -v '^ *+' conftest.er1 >conftest.err
12544   rm -f conftest.er1
12545   cat conftest.err >&5
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); } &&
12548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12549   { (case "(($ac_try" in
12550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551   *) ac_try_echo=$ac_try;;
12552 esac
12553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554   (eval "$ac_try") 2>&5
12555   ac_status=$?
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); }; } &&
12558          { ac_try='test -s conftest$ac_exeext'
12559   { (case "(($ac_try" in
12560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561   *) ac_try_echo=$ac_try;;
12562 esac
12563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564   (eval "$ac_try") 2>&5
12565   ac_status=$?
12566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567   (exit $ac_status); }; }; then
12568   eval "$as_ac_var=yes"
12569 else
12570   echo "$as_me: failed program was:" >&5
12571 sed 's/^/| /' conftest.$ac_ext >&5
12572
12573         eval "$as_ac_var=no"
12574 fi
12575
12576 rm -f core conftest.err conftest.$ac_objext \
12577       conftest$ac_exeext conftest.$ac_ext
12578 fi
12579 ac_res=`eval echo '${'$as_ac_var'}'`
12580                { echo "$as_me:$LINENO: result: $ac_res" >&5
12581 echo "${ECHO_T}$ac_res" >&6; }
12582 if test `eval echo '${'$as_ac_var'}'` = yes; then
12583   cat >>confdefs.h <<_ACEOF
12584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12585 _ACEOF
12586
12587 fi
12588 done
12589
12590
12591 # Check whether --enable-shared was given.
12592 if test "${enable_shared+set}" = set; then
12593   enableval=$enable_shared; p=${PACKAGE-default}
12594     case $enableval in
12595     yes) enable_shared=yes ;;
12596     no) enable_shared=no ;;
12597     *)
12598       enable_shared=no
12599       # Look at the argument we got.  We use all the common list separators.
12600       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12601       for pkg in $enableval; do
12602         IFS="$lt_save_ifs"
12603         if test "X$pkg" = "X$p"; then
12604           enable_shared=yes
12605         fi
12606       done
12607       IFS="$lt_save_ifs"
12608       ;;
12609     esac
12610 else
12611   enable_shared=yes
12612 fi
12613
12614
12615 # Check whether --enable-static was given.
12616 if test "${enable_static+set}" = set; then
12617   enableval=$enable_static; p=${PACKAGE-default}
12618     case $enableval in
12619     yes) enable_static=yes ;;
12620     no) enable_static=no ;;
12621     *)
12622      enable_static=no
12623       # Look at the argument we got.  We use all the common list separators.
12624       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12625       for pkg in $enableval; do
12626         IFS="$lt_save_ifs"
12627         if test "X$pkg" = "X$p"; then
12628           enable_static=yes
12629         fi
12630       done
12631       IFS="$lt_save_ifs"
12632       ;;
12633     esac
12634 else
12635   enable_static=yes
12636 fi
12637
12638
12639 # Check whether --enable-fast-install was given.
12640 if test "${enable_fast_install+set}" = set; then
12641   enableval=$enable_fast_install; p=${PACKAGE-default}
12642     case $enableval in
12643     yes) enable_fast_install=yes ;;
12644     no) enable_fast_install=no ;;
12645     *)
12646       enable_fast_install=no
12647       # Look at the argument we got.  We use all the common list separators.
12648       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12649       for pkg in $enableval; do
12650         IFS="$lt_save_ifs"
12651         if test "X$pkg" = "X$p"; then
12652           enable_fast_install=yes
12653         fi
12654       done
12655       IFS="$lt_save_ifs"
12656       ;;
12657     esac
12658 else
12659   enable_fast_install=yes
12660 fi
12661
12662
12663 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12664 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12665 if test "${lt_cv_path_SED+set}" = set; then
12666   echo $ECHO_N "(cached) $ECHO_C" >&6
12667 else
12668   # Loop through the user's path and test for sed and gsed.
12669 # Then use that list of sed's as ones to test for truncation.
12670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12671 for as_dir in $PATH
12672 do
12673   IFS=$as_save_IFS
12674   test -z "$as_dir" && as_dir=.
12675   for lt_ac_prog in sed gsed; do
12676     for ac_exec_ext in '' $ac_executable_extensions; do
12677       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12678         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12679       fi
12680     done
12681   done
12682 done
12683 lt_ac_max=0
12684 lt_ac_count=0
12685 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12686 # along with /bin/sed that truncates output.
12687 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12688   test ! -f $lt_ac_sed && continue
12689   cat /dev/null > conftest.in
12690   lt_ac_count=0
12691   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12692   # Check for GNU sed and select it if it is found.
12693   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12694     lt_cv_path_SED=$lt_ac_sed
12695     break
12696   fi
12697   while true; do
12698     cat conftest.in conftest.in >conftest.tmp
12699     mv conftest.tmp conftest.in
12700     cp conftest.in conftest.nl
12701     echo >>conftest.nl
12702     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12703     cmp -s conftest.out conftest.nl || break
12704     # 10000 chars as input seems more than enough
12705     test $lt_ac_count -gt 10 && break
12706     lt_ac_count=`expr $lt_ac_count + 1`
12707     if test $lt_ac_count -gt $lt_ac_max; then
12708       lt_ac_max=$lt_ac_count
12709       lt_cv_path_SED=$lt_ac_sed
12710     fi
12711   done
12712 done
12713
12714 fi
12715
12716 SED=$lt_cv_path_SED
12717 { echo "$as_me:$LINENO: result: $SED" >&5
12718 echo "${ECHO_T}$SED" >&6; }
12719
12720
12721 # Check whether --with-gnu-ld was given.
12722 if test "${with_gnu_ld+set}" = set; then
12723   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12724 else
12725   with_gnu_ld=no
12726 fi
12727
12728 ac_prog=ld
12729 if test "$GCC" = yes; then
12730   # Check if gcc -print-prog-name=ld gives a path.
12731   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12732 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12733   case $host in
12734   *-*-mingw*)
12735     # gcc leaves a trailing carriage return which upsets mingw
12736     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12737   *)
12738     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12739   esac
12740   case $ac_prog in
12741     # Accept absolute paths.
12742     [\\/]* | ?:[\\/]*)
12743       re_direlt='/[^/][^/]*/\.\./'
12744       # Canonicalize the pathname of ld
12745       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12746       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12747         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12748       done
12749       test -z "$LD" && LD="$ac_prog"
12750       ;;
12751   "")
12752     # If it fails, then pretend we aren't using GCC.
12753     ac_prog=ld
12754     ;;
12755   *)
12756     # If it is relative, then search for the first ld in PATH.
12757     with_gnu_ld=unknown
12758     ;;
12759   esac
12760 elif test "$with_gnu_ld" = yes; then
12761   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12762 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12763 else
12764   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12765 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12766 fi
12767 if test "${lt_cv_path_LD+set}" = set; then
12768   echo $ECHO_N "(cached) $ECHO_C" >&6
12769 else
12770   if test -z "$LD"; then
12771   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12772   for ac_dir in $PATH; do
12773     IFS="$lt_save_ifs"
12774     test -z "$ac_dir" && ac_dir=.
12775     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12776       lt_cv_path_LD="$ac_dir/$ac_prog"
12777       # Check to see if the program is GNU ld.  I'd rather use --version,
12778       # but apparently some variants of GNU ld only accept -v.
12779       # Break only if it was the GNU/non-GNU ld that we prefer.
12780       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12781       *GNU* | *'with BFD'*)
12782         test "$with_gnu_ld" != no && break
12783         ;;
12784       *)
12785         test "$with_gnu_ld" != yes && break
12786         ;;
12787       esac
12788     fi
12789   done
12790   IFS="$lt_save_ifs"
12791 else
12792   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12793 fi
12794 fi
12795
12796 LD="$lt_cv_path_LD"
12797 if test -n "$LD"; then
12798   { echo "$as_me:$LINENO: result: $LD" >&5
12799 echo "${ECHO_T}$LD" >&6; }
12800 else
12801   { echo "$as_me:$LINENO: result: no" >&5
12802 echo "${ECHO_T}no" >&6; }
12803 fi
12804 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12805 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12806    { (exit 1); exit 1; }; }
12807 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12808 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12809 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12810   echo $ECHO_N "(cached) $ECHO_C" >&6
12811 else
12812   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12813 case `$LD -v 2>&1 </dev/null` in
12814 *GNU* | *'with BFD'*)
12815   lt_cv_prog_gnu_ld=yes
12816   ;;
12817 *)
12818   lt_cv_prog_gnu_ld=no
12819   ;;
12820 esac
12821 fi
12822 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12823 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12824 with_gnu_ld=$lt_cv_prog_gnu_ld
12825
12826
12827 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12828 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12829 if test "${lt_cv_ld_reload_flag+set}" = set; then
12830   echo $ECHO_N "(cached) $ECHO_C" >&6
12831 else
12832   lt_cv_ld_reload_flag='-r'
12833 fi
12834 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12835 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12836 reload_flag=$lt_cv_ld_reload_flag
12837 case $reload_flag in
12838 "" | " "*) ;;
12839 *) reload_flag=" $reload_flag" ;;
12840 esac
12841 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12842 case $host_os in
12843   darwin*)
12844     if test "$GCC" = yes; then
12845       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12846     else
12847       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12848     fi
12849     ;;
12850 esac
12851
12852 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12853 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12854 if test "${lt_cv_deplibs_check_method+set}" = set; then
12855   echo $ECHO_N "(cached) $ECHO_C" >&6
12856 else
12857   lt_cv_file_magic_cmd='$MAGIC_CMD'
12858 lt_cv_file_magic_test_file=
12859 lt_cv_deplibs_check_method='unknown'
12860 # Need to set the preceding variable on all platforms that support
12861 # interlibrary dependencies.
12862 # 'none' -- dependencies not supported.
12863 # `unknown' -- same as none, but documents that we really don't know.
12864 # 'pass_all' -- all dependencies passed with no checks.
12865 # 'test_compile' -- check by making test program.
12866 # 'file_magic [[regex]]' -- check by looking for files in library path
12867 # which responds to the $file_magic_cmd with a given extended regex.
12868 # If you have `file' or equivalent on your system and you're not sure
12869 # whether `pass_all' will *always* work, you probably want this one.
12870
12871 case $host_os in
12872 aix4* | aix5*)
12873   lt_cv_deplibs_check_method=pass_all
12874   ;;
12875
12876 beos*)
12877   lt_cv_deplibs_check_method=pass_all
12878   ;;
12879
12880 bsdi[45]*)
12881   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12882   lt_cv_file_magic_cmd='/usr/bin/file -L'
12883   lt_cv_file_magic_test_file=/shlib/libc.so
12884   ;;
12885
12886 cygwin*)
12887   # func_win32_libid is a shell function defined in ltmain.sh
12888   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12889   lt_cv_file_magic_cmd='func_win32_libid'
12890   ;;
12891
12892 mingw* | pw32*)
12893   # Base MSYS/MinGW do not provide the 'file' command needed by
12894   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12895   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12896   lt_cv_file_magic_cmd='$OBJDUMP -f'
12897   ;;
12898
12899 darwin* | rhapsody*)
12900   lt_cv_deplibs_check_method=pass_all
12901   ;;
12902
12903 freebsd* | kfreebsd*-gnu | dragonfly*)
12904   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12905     case $host_cpu in
12906     i*86 )
12907       # Not sure whether the presence of OpenBSD here was a mistake.
12908       # Let's accept both of them until this is cleared up.
12909       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12910       lt_cv_file_magic_cmd=/usr/bin/file
12911       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12912       ;;
12913     esac
12914   else
12915     lt_cv_deplibs_check_method=pass_all
12916   fi
12917   ;;
12918
12919 gnu*)
12920   lt_cv_deplibs_check_method=pass_all
12921   ;;
12922
12923 hpux10.20* | hpux11*)
12924   lt_cv_file_magic_cmd=/usr/bin/file
12925   case $host_cpu in
12926   ia64*)
12927     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12928     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12929     ;;
12930   hppa*64*)
12931     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]'
12932     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12933     ;;
12934   *)
12935     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12936     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12937     ;;
12938   esac
12939   ;;
12940
12941 interix3*)
12942   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12943   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12944   ;;
12945
12946 irix5* | irix6* | nonstopux*)
12947   case $LD in
12948   *-32|*"-32 ") libmagic=32-bit;;
12949   *-n32|*"-n32 ") libmagic=N32;;
12950   *-64|*"-64 ") libmagic=64-bit;;
12951   *) libmagic=never-match;;
12952   esac
12953   lt_cv_deplibs_check_method=pass_all
12954   ;;
12955
12956 # This must be Linux ELF.
12957 linux*)
12958   lt_cv_deplibs_check_method=pass_all
12959   ;;
12960
12961 netbsd*)
12962   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12963     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12964   else
12965     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12966   fi
12967   ;;
12968
12969 newos6*)
12970   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12971   lt_cv_file_magic_cmd=/usr/bin/file
12972   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12973   ;;
12974
12975 nto-qnx*)
12976   lt_cv_deplibs_check_method=unknown
12977   ;;
12978
12979 openbsd*)
12980   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12981     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12982   else
12983     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12984   fi
12985   ;;
12986
12987 osf3* | osf4* | osf5*)
12988   lt_cv_deplibs_check_method=pass_all
12989   ;;
12990
12991 solaris*)
12992   lt_cv_deplibs_check_method=pass_all
12993   ;;
12994
12995 sysv4 | sysv4.3*)
12996   case $host_vendor in
12997   motorola)
12998     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]'
12999     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13000     ;;
13001   ncr)
13002     lt_cv_deplibs_check_method=pass_all
13003     ;;
13004   sequent)
13005     lt_cv_file_magic_cmd='/bin/file'
13006     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13007     ;;
13008   sni)
13009     lt_cv_file_magic_cmd='/bin/file'
13010     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13011     lt_cv_file_magic_test_file=/lib/libc.so
13012     ;;
13013   siemens)
13014     lt_cv_deplibs_check_method=pass_all
13015     ;;
13016   pc)
13017     lt_cv_deplibs_check_method=pass_all
13018     ;;
13019   esac
13020   ;;
13021
13022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13023   lt_cv_deplibs_check_method=pass_all
13024   ;;
13025 esac
13026
13027 fi
13028 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13029 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13030 file_magic_cmd=$lt_cv_file_magic_cmd
13031 deplibs_check_method=$lt_cv_deplibs_check_method
13032 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13033
13034
13035
13036 # If no C compiler was specified, use CC.
13037 LTCC=${LTCC-"$CC"}
13038
13039 # If no C compiler flags were specified, use CFLAGS.
13040 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13041
13042 # Allow CC to be a program name with arguments.
13043 compiler=$CC
13044
13045 # Check whether --enable-libtool-lock was given.
13046 if test "${enable_libtool_lock+set}" = set; then
13047   enableval=$enable_libtool_lock;
13048 fi
13049
13050 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13051
13052 # Some flags need to be propagated to the compiler or linker for good
13053 # libtool support.
13054 case $host in
13055 ia64-*-hpux*)
13056   # Find out which ABI we are using.
13057   echo 'int i;' > conftest.$ac_ext
13058   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13059   (eval $ac_compile) 2>&5
13060   ac_status=$?
13061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); }; then
13063     case `/usr/bin/file conftest.$ac_objext` in
13064     *ELF-32*)
13065       HPUX_IA64_MODE="32"
13066       ;;
13067     *ELF-64*)
13068       HPUX_IA64_MODE="64"
13069       ;;
13070     esac
13071   fi
13072   rm -rf conftest*
13073   ;;
13074 *-*-irix6*)
13075   # Find out which ABI we are using.
13076   echo '#line 13076 "configure"' > conftest.$ac_ext
13077   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13078   (eval $ac_compile) 2>&5
13079   ac_status=$?
13080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081   (exit $ac_status); }; then
13082    if test "$lt_cv_prog_gnu_ld" = yes; then
13083     case `/usr/bin/file conftest.$ac_objext` in
13084     *32-bit*)
13085       LD="${LD-ld} -melf32bsmip"
13086       ;;
13087     *N32*)
13088       LD="${LD-ld} -melf32bmipn32"
13089       ;;
13090     *64-bit*)
13091       LD="${LD-ld} -melf64bmip"
13092       ;;
13093     esac
13094    else
13095     case `/usr/bin/file conftest.$ac_objext` in
13096     *32-bit*)
13097       LD="${LD-ld} -32"
13098       ;;
13099     *N32*)
13100       LD="${LD-ld} -n32"
13101       ;;
13102     *64-bit*)
13103       LD="${LD-ld} -64"
13104       ;;
13105     esac
13106    fi
13107   fi
13108   rm -rf conftest*
13109   ;;
13110
13111 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13112   # Find out which ABI we are using.
13113   echo 'int i;' > conftest.$ac_ext
13114   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13115   (eval $ac_compile) 2>&5
13116   ac_status=$?
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); }; then
13119     case `/usr/bin/file conftest.o` in
13120     *32-bit*)
13121       case $host in
13122         x86_64-*linux*)
13123           LD="${LD-ld} -m elf_i386"
13124           ;;
13125         ppc64-*linux*|powerpc64-*linux*)
13126           LD="${LD-ld} -m elf32ppclinux"
13127           ;;
13128         s390x-*linux*)
13129           LD="${LD-ld} -m elf_s390"
13130           ;;
13131         sparc64-*linux*)
13132           LD="${LD-ld} -m elf32_sparc"
13133           ;;
13134       esac
13135       ;;
13136     *64-bit*)
13137       case $host in
13138         x86_64-*linux*)
13139           LD="${LD-ld} -m elf_x86_64"
13140           ;;
13141         ppc*-*linux*|powerpc*-*linux*)
13142           LD="${LD-ld} -m elf64ppc"
13143           ;;
13144         s390*-*linux*)
13145           LD="${LD-ld} -m elf64_s390"
13146           ;;
13147         sparc*-*linux*)
13148           LD="${LD-ld} -m elf64_sparc"
13149           ;;
13150       esac
13151       ;;
13152     esac
13153   fi
13154   rm -rf conftest*
13155   ;;
13156
13157 *-*-sco3.2v5*)
13158   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13159   SAVE_CFLAGS="$CFLAGS"
13160   CFLAGS="$CFLAGS -belf"
13161   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13162 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13163 if test "${lt_cv_cc_needs_belf+set}" = set; then
13164   echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166   ac_ext=c
13167 ac_cpp='$CPP $CPPFLAGS'
13168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13171
13172      cat >conftest.$ac_ext <<_ACEOF
13173 /* confdefs.h.  */
13174 _ACEOF
13175 cat confdefs.h >>conftest.$ac_ext
13176 cat >>conftest.$ac_ext <<_ACEOF
13177 /* end confdefs.h.  */
13178
13179 int
13180 main ()
13181 {
13182
13183   ;
13184   return 0;
13185 }
13186 _ACEOF
13187 rm -f conftest.$ac_objext conftest$ac_exeext
13188 if { (ac_try="$ac_link"
13189 case "(($ac_try" in
13190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191   *) ac_try_echo=$ac_try;;
13192 esac
13193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13194   (eval "$ac_link") 2>conftest.er1
13195   ac_status=$?
13196   grep -v '^ *+' conftest.er1 >conftest.err
13197   rm -f conftest.er1
13198   cat conftest.err >&5
13199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); } &&
13201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13202   { (case "(($ac_try" in
13203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204   *) ac_try_echo=$ac_try;;
13205 esac
13206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207   (eval "$ac_try") 2>&5
13208   ac_status=$?
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); }; } &&
13211          { ac_try='test -s conftest$ac_exeext'
13212   { (case "(($ac_try" in
13213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214   *) ac_try_echo=$ac_try;;
13215 esac
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217   (eval "$ac_try") 2>&5
13218   ac_status=$?
13219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); }; }; then
13221   lt_cv_cc_needs_belf=yes
13222 else
13223   echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13225
13226         lt_cv_cc_needs_belf=no
13227 fi
13228
13229 rm -f core conftest.err conftest.$ac_objext \
13230       conftest$ac_exeext conftest.$ac_ext
13231      ac_ext=c
13232 ac_cpp='$CPP $CPPFLAGS'
13233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13236
13237 fi
13238 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13239 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13240   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13241     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13242     CFLAGS="$SAVE_CFLAGS"
13243   fi
13244   ;;
13245 sparc*-*solaris*)
13246   # Find out which ABI we are using.
13247   echo 'int i;' > conftest.$ac_ext
13248   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13249   (eval $ac_compile) 2>&5
13250   ac_status=$?
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); }; then
13253     case `/usr/bin/file conftest.o` in
13254     *64-bit*)
13255       case $lt_cv_prog_gnu_ld in
13256       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13257       *)    LD="${LD-ld} -64" ;;
13258       esac
13259       ;;
13260     esac
13261   fi
13262   rm -rf conftest*
13263   ;;
13264
13265
13266 esac
13267
13268 need_locks="$enable_libtool_lock"
13269
13270
13271
13272
13273 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13274     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13275     (test "X$CXX" != "Xg++"))) ; then
13276   ac_ext=cpp
13277 ac_cpp='$CXXCPP $CPPFLAGS'
13278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13281 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13282 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13283 if test -z "$CXXCPP"; then
13284   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13285   echo $ECHO_N "(cached) $ECHO_C" >&6
13286 else
13287       # Double quotes because CXXCPP needs to be expanded
13288     for CXXCPP in "$CXX -E" "/lib/cpp"
13289     do
13290       ac_preproc_ok=false
13291 for ac_cxx_preproc_warn_flag in '' yes
13292 do
13293   # Use a header file that comes with gcc, so configuring glibc
13294   # with a fresh cross-compiler works.
13295   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13296   # <limits.h> exists even on freestanding compilers.
13297   # On the NeXT, cc -E runs the code through the compiler's parser,
13298   # not just through cpp. "Syntax error" is here to catch this case.
13299   cat >conftest.$ac_ext <<_ACEOF
13300 /* confdefs.h.  */
13301 _ACEOF
13302 cat confdefs.h >>conftest.$ac_ext
13303 cat >>conftest.$ac_ext <<_ACEOF
13304 /* end confdefs.h.  */
13305 #ifdef __STDC__
13306 # include <limits.h>
13307 #else
13308 # include <assert.h>
13309 #endif
13310                      Syntax error
13311 _ACEOF
13312 if { (ac_try="$ac_cpp conftest.$ac_ext"
13313 case "(($ac_try" in
13314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13315   *) ac_try_echo=$ac_try;;
13316 esac
13317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13318   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13319   ac_status=$?
13320   grep -v '^ *+' conftest.er1 >conftest.err
13321   rm -f conftest.er1
13322   cat conftest.err >&5
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); } >/dev/null; then
13325   if test -s conftest.err; then
13326     ac_cpp_err=$ac_cxx_preproc_warn_flag
13327     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13328   else
13329     ac_cpp_err=
13330   fi
13331 else
13332   ac_cpp_err=yes
13333 fi
13334 if test -z "$ac_cpp_err"; then
13335   :
13336 else
13337   echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13339
13340   # Broken: fails on valid input.
13341 continue
13342 fi
13343
13344 rm -f conftest.err conftest.$ac_ext
13345
13346   # OK, works on sane cases.  Now check whether nonexistent headers
13347   # can be detected and how.
13348   cat >conftest.$ac_ext <<_ACEOF
13349 /* confdefs.h.  */
13350 _ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h.  */
13354 #include <ac_nonexistent.h>
13355 _ACEOF
13356 if { (ac_try="$ac_cpp conftest.$ac_ext"
13357 case "(($ac_try" in
13358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359   *) ac_try_echo=$ac_try;;
13360 esac
13361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13362   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13363   ac_status=$?
13364   grep -v '^ *+' conftest.er1 >conftest.err
13365   rm -f conftest.er1
13366   cat conftest.err >&5
13367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368   (exit $ac_status); } >/dev/null; then
13369   if test -s conftest.err; then
13370     ac_cpp_err=$ac_cxx_preproc_warn_flag
13371     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13372   else
13373     ac_cpp_err=
13374   fi
13375 else
13376   ac_cpp_err=yes
13377 fi
13378 if test -z "$ac_cpp_err"; then
13379   # Broken: success on invalid input.
13380 continue
13381 else
13382   echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13384
13385   # Passes both tests.
13386 ac_preproc_ok=:
13387 break
13388 fi
13389
13390 rm -f conftest.err conftest.$ac_ext
13391
13392 done
13393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13394 rm -f conftest.err conftest.$ac_ext
13395 if $ac_preproc_ok; then
13396   break
13397 fi
13398
13399     done
13400     ac_cv_prog_CXXCPP=$CXXCPP
13401
13402 fi
13403   CXXCPP=$ac_cv_prog_CXXCPP
13404 else
13405   ac_cv_prog_CXXCPP=$CXXCPP
13406 fi
13407 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13408 echo "${ECHO_T}$CXXCPP" >&6; }
13409 ac_preproc_ok=false
13410 for ac_cxx_preproc_warn_flag in '' yes
13411 do
13412   # Use a header file that comes with gcc, so configuring glibc
13413   # with a fresh cross-compiler works.
13414   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13415   # <limits.h> exists even on freestanding compilers.
13416   # On the NeXT, cc -E runs the code through the compiler's parser,
13417   # not just through cpp. "Syntax error" is here to catch this case.
13418   cat >conftest.$ac_ext <<_ACEOF
13419 /* confdefs.h.  */
13420 _ACEOF
13421 cat confdefs.h >>conftest.$ac_ext
13422 cat >>conftest.$ac_ext <<_ACEOF
13423 /* end confdefs.h.  */
13424 #ifdef __STDC__
13425 # include <limits.h>
13426 #else
13427 # include <assert.h>
13428 #endif
13429                      Syntax error
13430 _ACEOF
13431 if { (ac_try="$ac_cpp conftest.$ac_ext"
13432 case "(($ac_try" in
13433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434   *) ac_try_echo=$ac_try;;
13435 esac
13436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13437   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13438   ac_status=$?
13439   grep -v '^ *+' conftest.er1 >conftest.err
13440   rm -f conftest.er1
13441   cat conftest.err >&5
13442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   (exit $ac_status); } >/dev/null; then
13444   if test -s conftest.err; then
13445     ac_cpp_err=$ac_cxx_preproc_warn_flag
13446     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13447   else
13448     ac_cpp_err=
13449   fi
13450 else
13451   ac_cpp_err=yes
13452 fi
13453 if test -z "$ac_cpp_err"; then
13454   :
13455 else
13456   echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13458
13459   # Broken: fails on valid input.
13460 continue
13461 fi
13462
13463 rm -f conftest.err conftest.$ac_ext
13464
13465   # OK, works on sane cases.  Now check whether nonexistent headers
13466   # can be detected and how.
13467   cat >conftest.$ac_ext <<_ACEOF
13468 /* confdefs.h.  */
13469 _ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h.  */
13473 #include <ac_nonexistent.h>
13474 _ACEOF
13475 if { (ac_try="$ac_cpp conftest.$ac_ext"
13476 case "(($ac_try" in
13477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478   *) ac_try_echo=$ac_try;;
13479 esac
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13482   ac_status=$?
13483   grep -v '^ *+' conftest.er1 >conftest.err
13484   rm -f conftest.er1
13485   cat conftest.err >&5
13486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487   (exit $ac_status); } >/dev/null; then
13488   if test -s conftest.err; then
13489     ac_cpp_err=$ac_cxx_preproc_warn_flag
13490     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13491   else
13492     ac_cpp_err=
13493   fi
13494 else
13495   ac_cpp_err=yes
13496 fi
13497 if test -z "$ac_cpp_err"; then
13498   # Broken: success on invalid input.
13499 continue
13500 else
13501   echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13503
13504   # Passes both tests.
13505 ac_preproc_ok=:
13506 break
13507 fi
13508
13509 rm -f conftest.err conftest.$ac_ext
13510
13511 done
13512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13513 rm -f conftest.err conftest.$ac_ext
13514 if $ac_preproc_ok; then
13515   :
13516 else
13517   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13518 See \`config.log' for more details." >&5
13519 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13520 See \`config.log' for more details." >&2;}
13521    { (exit 1); exit 1; }; }
13522 fi
13523
13524 ac_ext=cpp
13525 ac_cpp='$CXXCPP $CPPFLAGS'
13526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13529
13530 fi
13531
13532
13533 ac_ext=f
13534 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13535 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13536 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13537 if test -n "$ac_tool_prefix"; then
13538   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
13539   do
13540     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13544 if test "${ac_cv_prog_F77+set}" = set; then
13545   echo $ECHO_N "(cached) $ECHO_C" >&6
13546 else
13547   if test -n "$F77"; then
13548   ac_cv_prog_F77="$F77" # Let the user override the test.
13549 else
13550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13551 for as_dir in $PATH
13552 do
13553   IFS=$as_save_IFS
13554   test -z "$as_dir" && as_dir=.
13555   for ac_exec_ext in '' $ac_executable_extensions; do
13556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13557     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13559     break 2
13560   fi
13561 done
13562 done
13563 IFS=$as_save_IFS
13564
13565 fi
13566 fi
13567 F77=$ac_cv_prog_F77
13568 if test -n "$F77"; then
13569   { echo "$as_me:$LINENO: result: $F77" >&5
13570 echo "${ECHO_T}$F77" >&6; }
13571 else
13572   { echo "$as_me:$LINENO: result: no" >&5
13573 echo "${ECHO_T}no" >&6; }
13574 fi
13575
13576
13577     test -n "$F77" && break
13578   done
13579 fi
13580 if test -z "$F77"; then
13581   ac_ct_F77=$F77
13582   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
13583 do
13584   # Extract the first word of "$ac_prog", so it can be a program name with args.
13585 set dummy $ac_prog; ac_word=$2
13586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13588 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13589   echo $ECHO_N "(cached) $ECHO_C" >&6
13590 else
13591   if test -n "$ac_ct_F77"; then
13592   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13593 else
13594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13595 for as_dir in $PATH
13596 do
13597   IFS=$as_save_IFS
13598   test -z "$as_dir" && as_dir=.
13599   for ac_exec_ext in '' $ac_executable_extensions; do
13600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13601     ac_cv_prog_ac_ct_F77="$ac_prog"
13602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13603     break 2
13604   fi
13605 done
13606 done
13607 IFS=$as_save_IFS
13608
13609 fi
13610 fi
13611 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13612 if test -n "$ac_ct_F77"; then
13613   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13614 echo "${ECHO_T}$ac_ct_F77" >&6; }
13615 else
13616   { echo "$as_me:$LINENO: result: no" >&5
13617 echo "${ECHO_T}no" >&6; }
13618 fi
13619
13620
13621   test -n "$ac_ct_F77" && break
13622 done
13623
13624   if test "x$ac_ct_F77" = x; then
13625     F77=""
13626   else
13627     case $cross_compiling:$ac_tool_warned in
13628 yes:)
13629 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13630 whose name does not start with the host triplet.  If you think this
13631 configuration is useful to you, please write to autoconf@gnu.org." >&5
13632 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13633 whose name does not start with the host triplet.  If you think this
13634 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13635 ac_tool_warned=yes ;;
13636 esac
13637     F77=$ac_ct_F77
13638   fi
13639 fi
13640
13641
13642 # Provide some information about the compiler.
13643 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13644 ac_compiler=`set X $ac_compile; echo $2`
13645 { (ac_try="$ac_compiler --version >&5"
13646 case "(($ac_try" in
13647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648   *) ac_try_echo=$ac_try;;
13649 esac
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651   (eval "$ac_compiler --version >&5") 2>&5
13652   ac_status=$?
13653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654   (exit $ac_status); }
13655 { (ac_try="$ac_compiler -v >&5"
13656 case "(($ac_try" in
13657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658   *) ac_try_echo=$ac_try;;
13659 esac
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661   (eval "$ac_compiler -v >&5") 2>&5
13662   ac_status=$?
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); }
13665 { (ac_try="$ac_compiler -V >&5"
13666 case "(($ac_try" in
13667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668   *) ac_try_echo=$ac_try;;
13669 esac
13670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671   (eval "$ac_compiler -V >&5") 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); }
13675 rm -f a.out
13676
13677 # If we don't use `.F' as extension, the preprocessor is not run on the
13678 # input file.  (Note that this only needs to work for GNU compilers.)
13679 ac_save_ext=$ac_ext
13680 ac_ext=F
13681 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13682 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13683 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13684   echo $ECHO_N "(cached) $ECHO_C" >&6
13685 else
13686   cat >conftest.$ac_ext <<_ACEOF
13687       program main
13688 #ifndef __GNUC__
13689        choke me
13690 #endif
13691
13692       end
13693 _ACEOF
13694 rm -f conftest.$ac_objext
13695 if { (ac_try="$ac_compile"
13696 case "(($ac_try" in
13697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698   *) ac_try_echo=$ac_try;;
13699 esac
13700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13701   (eval "$ac_compile") 2>conftest.er1
13702   ac_status=$?
13703   grep -v '^ *+' conftest.er1 >conftest.err
13704   rm -f conftest.er1
13705   cat conftest.err >&5
13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); } &&
13708          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13709   { (case "(($ac_try" in
13710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711   *) ac_try_echo=$ac_try;;
13712 esac
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714   (eval "$ac_try") 2>&5
13715   ac_status=$?
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); }; } &&
13718          { ac_try='test -s conftest.$ac_objext'
13719   { (case "(($ac_try" in
13720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721   *) ac_try_echo=$ac_try;;
13722 esac
13723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13724   (eval "$ac_try") 2>&5
13725   ac_status=$?
13726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727   (exit $ac_status); }; }; then
13728   ac_compiler_gnu=yes
13729 else
13730   echo "$as_me: failed program was:" >&5
13731 sed 's/^/| /' conftest.$ac_ext >&5
13732
13733         ac_compiler_gnu=no
13734 fi
13735
13736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13737 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13738
13739 fi
13740 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13741 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13742 ac_ext=$ac_save_ext
13743 ac_test_FFLAGS=${FFLAGS+set}
13744 ac_save_FFLAGS=$FFLAGS
13745 FFLAGS=
13746 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13747 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13748 if test "${ac_cv_prog_f77_g+set}" = set; then
13749   echo $ECHO_N "(cached) $ECHO_C" >&6
13750 else
13751   FFLAGS=-g
13752 cat >conftest.$ac_ext <<_ACEOF
13753       program main
13754
13755       end
13756 _ACEOF
13757 rm -f conftest.$ac_objext
13758 if { (ac_try="$ac_compile"
13759 case "(($ac_try" in
13760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13761   *) ac_try_echo=$ac_try;;
13762 esac
13763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13764   (eval "$ac_compile") 2>conftest.er1
13765   ac_status=$?
13766   grep -v '^ *+' conftest.er1 >conftest.err
13767   rm -f conftest.er1
13768   cat conftest.err >&5
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); } &&
13771          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13772   { (case "(($ac_try" in
13773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13774   *) ac_try_echo=$ac_try;;
13775 esac
13776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13777   (eval "$ac_try") 2>&5
13778   ac_status=$?
13779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780   (exit $ac_status); }; } &&
13781          { ac_try='test -s conftest.$ac_objext'
13782   { (case "(($ac_try" in
13783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13784   *) ac_try_echo=$ac_try;;
13785 esac
13786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787   (eval "$ac_try") 2>&5
13788   ac_status=$?
13789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790   (exit $ac_status); }; }; then
13791   ac_cv_prog_f77_g=yes
13792 else
13793   echo "$as_me: failed program was:" >&5
13794 sed 's/^/| /' conftest.$ac_ext >&5
13795
13796         ac_cv_prog_f77_g=no
13797 fi
13798
13799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13800
13801 fi
13802 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13803 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13804 if test "$ac_test_FFLAGS" = set; then
13805   FFLAGS=$ac_save_FFLAGS
13806 elif test $ac_cv_prog_f77_g = yes; then
13807   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13808     FFLAGS="-g -O2"
13809   else
13810     FFLAGS="-g"
13811   fi
13812 else
13813   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13814     FFLAGS="-O2"
13815   else
13816     FFLAGS=
13817   fi
13818 fi
13819
13820 G77=`test $ac_compiler_gnu = yes && echo yes`
13821 ac_ext=c
13822 ac_cpp='$CPP $CPPFLAGS'
13823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13826
13827
13828
13829 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13830
13831 # find the maximum length of command line arguments
13832 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13833 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13834 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13835   echo $ECHO_N "(cached) $ECHO_C" >&6
13836 else
13837     i=0
13838   teststring="ABCD"
13839
13840   case $build_os in
13841   msdosdjgpp*)
13842     # On DJGPP, this test can blow up pretty badly due to problems in libc
13843     # (any single argument exceeding 2000 bytes causes a buffer overrun
13844     # during glob expansion).  Even if it were fixed, the result of this
13845     # check would be larger than it should be.
13846     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13847     ;;
13848
13849   gnu*)
13850     # Under GNU Hurd, this test is not required because there is
13851     # no limit to the length of command line arguments.
13852     # Libtool will interpret -1 as no limit whatsoever
13853     lt_cv_sys_max_cmd_len=-1;
13854     ;;
13855
13856   cygwin* | mingw*)
13857     # On Win9x/ME, this test blows up -- it succeeds, but takes
13858     # about 5 minutes as the teststring grows exponentially.
13859     # Worse, since 9x/ME are not pre-emptively multitasking,
13860     # you end up with a "frozen" computer, even though with patience
13861     # the test eventually succeeds (with a max line length of 256k).
13862     # Instead, let's just punt: use the minimum linelength reported by
13863     # all of the supported platforms: 8192 (on NT/2K/XP).
13864     lt_cv_sys_max_cmd_len=8192;
13865     ;;
13866
13867   amigaos*)
13868     # On AmigaOS with pdksh, this test takes hours, literally.
13869     # So we just punt and use a minimum line length of 8192.
13870     lt_cv_sys_max_cmd_len=8192;
13871     ;;
13872
13873   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13874     # This has been around since 386BSD, at least.  Likely further.
13875     if test -x /sbin/sysctl; then
13876       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13877     elif test -x /usr/sbin/sysctl; then
13878       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13879     else
13880       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13881     fi
13882     # And add a safety zone
13883     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13884     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13885     ;;
13886
13887   interix*)
13888     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13889     lt_cv_sys_max_cmd_len=196608
13890     ;;
13891
13892   osf*)
13893     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13894     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13895     # nice to cause kernel panics so lets avoid the loop below.
13896     # First set a reasonable default.
13897     lt_cv_sys_max_cmd_len=16384
13898     #
13899     if test -x /sbin/sysconfig; then
13900       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13901         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13902       esac
13903     fi
13904     ;;
13905   sco3.2v5*)
13906     lt_cv_sys_max_cmd_len=102400
13907     ;;
13908   sysv5* | sco5v6* | sysv4.2uw2*)
13909     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13910     if test -n "$kargmax"; then
13911       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13912     else
13913       lt_cv_sys_max_cmd_len=32768
13914     fi
13915     ;;
13916   *)
13917     # If test is not a shell built-in, we'll probably end up computing a
13918     # maximum length that is only half of the actual maximum length, but
13919     # we can't tell.
13920     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13921     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13922                = "XX$teststring") >/dev/null 2>&1 &&
13923             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13924             lt_cv_sys_max_cmd_len=$new_result &&
13925             test $i != 17 # 1/2 MB should be enough
13926     do
13927       i=`expr $i + 1`
13928       teststring=$teststring$teststring
13929     done
13930     teststring=
13931     # Add a significant safety factor because C++ compilers can tack on massive
13932     # amounts of additional arguments before passing them to the linker.
13933     # It appears as though 1/2 is a usable value.
13934     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13935     ;;
13936   esac
13937
13938 fi
13939
13940 if test -n $lt_cv_sys_max_cmd_len ; then
13941   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13942 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13943 else
13944   { echo "$as_me:$LINENO: result: none" >&5
13945 echo "${ECHO_T}none" >&6; }
13946 fi
13947
13948
13949
13950
13951 # Check for command to grab the raw symbol name followed by C symbol from nm.
13952 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13953 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13954 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13955   echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957
13958 # These are sane defaults that work on at least a few old systems.
13959 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13960
13961 # Character class describing NM global symbol codes.
13962 symcode='[BCDEGRST]'
13963
13964 # Regexp to match symbols that can be accessed directly from C.
13965 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13966
13967 # Transform an extracted symbol line into a proper C declaration
13968 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13969
13970 # Transform an extracted symbol line into symbol name and symbol address
13971 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'"
13972
13973 # Define system-specific variables.
13974 case $host_os in
13975 aix*)
13976   symcode='[BCDT]'
13977   ;;
13978 cygwin* | mingw* | pw32*)
13979   symcode='[ABCDGISTW]'
13980   ;;
13981 hpux*) # Its linker distinguishes data from code symbols
13982   if test "$host_cpu" = ia64; then
13983     symcode='[ABCDEGRST]'
13984   fi
13985   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13986   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'"
13987   ;;
13988 linux*)
13989   if test "$host_cpu" = ia64; then
13990     symcode='[ABCDGIRSTW]'
13991     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13992     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'"
13993   fi
13994   ;;
13995 irix* | nonstopux*)
13996   symcode='[BCDEGRST]'
13997   ;;
13998 osf*)
13999   symcode='[BCDEGQRST]'
14000   ;;
14001 solaris*)
14002   symcode='[BDRT]'
14003   ;;
14004 sco3.2v5*)
14005   symcode='[DT]'
14006   ;;
14007 sysv4.2uw2*)
14008   symcode='[DT]'
14009   ;;
14010 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14011   symcode='[ABDT]'
14012   ;;
14013 sysv4)
14014   symcode='[DFNSTU]'
14015   ;;
14016 esac
14017
14018 # Handle CRLF in mingw tool chain
14019 opt_cr=
14020 case $build_os in
14021 mingw*)
14022   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14023   ;;
14024 esac
14025
14026 # If we're using GNU nm, then use its standard symbol codes.
14027 case `$NM -V 2>&1` in
14028 *GNU* | *'with BFD'*)
14029   symcode='[ABCDGIRSTW]' ;;
14030 esac
14031
14032 # Try without a prefix undercore, then with it.
14033 for ac_symprfx in "" "_"; do
14034
14035   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14036   symxfrm="\\1 $ac_symprfx\\2 \\2"
14037
14038   # Write the raw and C identifiers.
14039   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14040
14041   # Check to see that the pipe works correctly.
14042   pipe_works=no
14043
14044   rm -f conftest*
14045   cat > conftest.$ac_ext <<EOF
14046 #ifdef __cplusplus
14047 extern "C" {
14048 #endif
14049 char nm_test_var;
14050 void nm_test_func(){}
14051 #ifdef __cplusplus
14052 }
14053 #endif
14054 int main(){nm_test_var='a';nm_test_func();return(0);}
14055 EOF
14056
14057   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14058   (eval $ac_compile) 2>&5
14059   ac_status=$?
14060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061   (exit $ac_status); }; then
14062     # Now try to grab the symbols.
14063     nlist=conftest.nm
14064     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14065   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14066   ac_status=$?
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); } && test -s "$nlist"; then
14069       # Try sorting and uniquifying the output.
14070       if sort "$nlist" | uniq > "$nlist"T; then
14071         mv -f "$nlist"T "$nlist"
14072       else
14073         rm -f "$nlist"T
14074       fi
14075
14076       # Make sure that we snagged all the symbols we need.
14077       if grep ' nm_test_var$' "$nlist" >/dev/null; then
14078         if grep ' nm_test_func$' "$nlist" >/dev/null; then
14079           cat <<EOF > conftest.$ac_ext
14080 #ifdef __cplusplus
14081 extern "C" {
14082 #endif
14083
14084 EOF
14085           # Now generate the symbol file.
14086           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14087
14088           cat <<EOF >> conftest.$ac_ext
14089 #if defined (__STDC__) && __STDC__
14090 # define lt_ptr_t void *
14091 #else
14092 # define lt_ptr_t char *
14093 # define const
14094 #endif
14095
14096 /* The mapping between symbol names and symbols. */
14097 const struct {
14098   const char *name;
14099   lt_ptr_t address;
14100 }
14101 lt_preloaded_symbols[] =
14102 {
14103 EOF
14104           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14105           cat <<\EOF >> conftest.$ac_ext
14106   {0, (lt_ptr_t) 0}
14107 };
14108
14109 #ifdef __cplusplus
14110 }
14111 #endif
14112 EOF
14113           # Now try linking the two files.
14114           mv conftest.$ac_objext conftstm.$ac_objext
14115           lt_save_LIBS="$LIBS"
14116           lt_save_CFLAGS="$CFLAGS"
14117           LIBS="conftstm.$ac_objext"
14118           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14119           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14120   (eval $ac_link) 2>&5
14121   ac_status=$?
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); } && test -s conftest${ac_exeext}; then
14124             pipe_works=yes
14125           fi
14126           LIBS="$lt_save_LIBS"
14127           CFLAGS="$lt_save_CFLAGS"
14128         else
14129           echo "cannot find nm_test_func in $nlist" >&5
14130         fi
14131       else
14132         echo "cannot find nm_test_var in $nlist" >&5
14133       fi
14134     else
14135       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14136     fi
14137   else
14138     echo "$progname: failed program was:" >&5
14139     cat conftest.$ac_ext >&5
14140   fi
14141   rm -f conftest* conftst*
14142
14143   # Do not use the global_symbol_pipe unless it works.
14144   if test "$pipe_works" = yes; then
14145     break
14146   else
14147     lt_cv_sys_global_symbol_pipe=
14148   fi
14149 done
14150
14151 fi
14152
14153 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14154   lt_cv_sys_global_symbol_to_cdecl=
14155 fi
14156 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14157   { echo "$as_me:$LINENO: result: failed" >&5
14158 echo "${ECHO_T}failed" >&6; }
14159 else
14160   { echo "$as_me:$LINENO: result: ok" >&5
14161 echo "${ECHO_T}ok" >&6; }
14162 fi
14163
14164 { echo "$as_me:$LINENO: checking for objdir" >&5
14165 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14166 if test "${lt_cv_objdir+set}" = set; then
14167   echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169   rm -f .libs 2>/dev/null
14170 mkdir .libs 2>/dev/null
14171 if test -d .libs; then
14172   lt_cv_objdir=.libs
14173 else
14174   # MS-DOS does not allow filenames that begin with a dot.
14175   lt_cv_objdir=_libs
14176 fi
14177 rmdir .libs 2>/dev/null
14178 fi
14179 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14180 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14181 objdir=$lt_cv_objdir
14182
14183
14184
14185
14186
14187 case $host_os in
14188 aix3*)
14189   # AIX sometimes has problems with the GCC collect2 program.  For some
14190   # reason, if we set the COLLECT_NAMES environment variable, the problems
14191   # vanish in a puff of smoke.
14192   if test "X${COLLECT_NAMES+set}" != Xset; then
14193     COLLECT_NAMES=
14194     export COLLECT_NAMES
14195   fi
14196   ;;
14197 esac
14198
14199 # Sed substitution that helps us do robust quoting.  It backslashifies
14200 # metacharacters that are still active within double-quoted strings.
14201 Xsed='sed -e 1s/^X//'
14202 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14203
14204 # Same as above, but do not quote variable references.
14205 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14206
14207 # Sed substitution to delay expansion of an escaped shell variable in a
14208 # double_quote_subst'ed string.
14209 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14210
14211 # Sed substitution to avoid accidental globbing in evaled expressions
14212 no_glob_subst='s/\*/\\\*/g'
14213
14214 # Constants:
14215 rm="rm -f"
14216
14217 # Global variables:
14218 default_ofile=mklib
14219 can_build_shared=yes
14220
14221 # All known linkers require a `.a' archive for static linking (except MSVC,
14222 # which needs '.lib').
14223 libext=a
14224 ltmain="$ac_aux_dir/ltmain.sh"
14225 ofile="$default_ofile"
14226 with_gnu_ld="$lt_cv_prog_gnu_ld"
14227
14228 if test -n "$ac_tool_prefix"; then
14229   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14230 set dummy ${ac_tool_prefix}ar; ac_word=$2
14231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14233 if test "${ac_cv_prog_AR+set}" = set; then
14234   echo $ECHO_N "(cached) $ECHO_C" >&6
14235 else
14236   if test -n "$AR"; then
14237   ac_cv_prog_AR="$AR" # Let the user override the test.
14238 else
14239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14240 for as_dir in $PATH
14241 do
14242   IFS=$as_save_IFS
14243   test -z "$as_dir" && as_dir=.
14244   for ac_exec_ext in '' $ac_executable_extensions; do
14245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14246     ac_cv_prog_AR="${ac_tool_prefix}ar"
14247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14248     break 2
14249   fi
14250 done
14251 done
14252 IFS=$as_save_IFS
14253
14254 fi
14255 fi
14256 AR=$ac_cv_prog_AR
14257 if test -n "$AR"; then
14258   { echo "$as_me:$LINENO: result: $AR" >&5
14259 echo "${ECHO_T}$AR" >&6; }
14260 else
14261   { echo "$as_me:$LINENO: result: no" >&5
14262 echo "${ECHO_T}no" >&6; }
14263 fi
14264
14265
14266 fi
14267 if test -z "$ac_cv_prog_AR"; then
14268   ac_ct_AR=$AR
14269   # Extract the first word of "ar", so it can be a program name with args.
14270 set dummy ar; ac_word=$2
14271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14273 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14274   echo $ECHO_N "(cached) $ECHO_C" >&6
14275 else
14276   if test -n "$ac_ct_AR"; then
14277   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14278 else
14279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280 for as_dir in $PATH
14281 do
14282   IFS=$as_save_IFS
14283   test -z "$as_dir" && as_dir=.
14284   for ac_exec_ext in '' $ac_executable_extensions; do
14285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14286     ac_cv_prog_ac_ct_AR="ar"
14287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14288     break 2
14289   fi
14290 done
14291 done
14292 IFS=$as_save_IFS
14293
14294 fi
14295 fi
14296 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14297 if test -n "$ac_ct_AR"; then
14298   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14299 echo "${ECHO_T}$ac_ct_AR" >&6; }
14300 else
14301   { echo "$as_me:$LINENO: result: no" >&5
14302 echo "${ECHO_T}no" >&6; }
14303 fi
14304
14305   if test "x$ac_ct_AR" = x; then
14306     AR="false"
14307   else
14308     case $cross_compiling:$ac_tool_warned in
14309 yes:)
14310 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14311 whose name does not start with the host triplet.  If you think this
14312 configuration is useful to you, please write to autoconf@gnu.org." >&5
14313 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14314 whose name does not start with the host triplet.  If you think this
14315 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14316 ac_tool_warned=yes ;;
14317 esac
14318     AR=$ac_ct_AR
14319   fi
14320 else
14321   AR="$ac_cv_prog_AR"
14322 fi
14323
14324 if test -n "$ac_tool_prefix"; then
14325   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14326 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14329 if test "${ac_cv_prog_RANLIB+set}" = set; then
14330   echo $ECHO_N "(cached) $ECHO_C" >&6
14331 else
14332   if test -n "$RANLIB"; then
14333   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14334 else
14335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14336 for as_dir in $PATH
14337 do
14338   IFS=$as_save_IFS
14339   test -z "$as_dir" && as_dir=.
14340   for ac_exec_ext in '' $ac_executable_extensions; do
14341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14342     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14344     break 2
14345   fi
14346 done
14347 done
14348 IFS=$as_save_IFS
14349
14350 fi
14351 fi
14352 RANLIB=$ac_cv_prog_RANLIB
14353 if test -n "$RANLIB"; then
14354   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14355 echo "${ECHO_T}$RANLIB" >&6; }
14356 else
14357   { echo "$as_me:$LINENO: result: no" >&5
14358 echo "${ECHO_T}no" >&6; }
14359 fi
14360
14361
14362 fi
14363 if test -z "$ac_cv_prog_RANLIB"; then
14364   ac_ct_RANLIB=$RANLIB
14365   # Extract the first word of "ranlib", so it can be a program name with args.
14366 set dummy ranlib; ac_word=$2
14367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14369 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14370   echo $ECHO_N "(cached) $ECHO_C" >&6
14371 else
14372   if test -n "$ac_ct_RANLIB"; then
14373   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14374 else
14375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14376 for as_dir in $PATH
14377 do
14378   IFS=$as_save_IFS
14379   test -z "$as_dir" && as_dir=.
14380   for ac_exec_ext in '' $ac_executable_extensions; do
14381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14382     ac_cv_prog_ac_ct_RANLIB="ranlib"
14383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14384     break 2
14385   fi
14386 done
14387 done
14388 IFS=$as_save_IFS
14389
14390 fi
14391 fi
14392 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14393 if test -n "$ac_ct_RANLIB"; then
14394   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14395 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14396 else
14397   { echo "$as_me:$LINENO: result: no" >&5
14398 echo "${ECHO_T}no" >&6; }
14399 fi
14400
14401   if test "x$ac_ct_RANLIB" = x; then
14402     RANLIB=":"
14403   else
14404     case $cross_compiling:$ac_tool_warned in
14405 yes:)
14406 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14407 whose name does not start with the host triplet.  If you think this
14408 configuration is useful to you, please write to autoconf@gnu.org." >&5
14409 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14410 whose name does not start with the host triplet.  If you think this
14411 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14412 ac_tool_warned=yes ;;
14413 esac
14414     RANLIB=$ac_ct_RANLIB
14415   fi
14416 else
14417   RANLIB="$ac_cv_prog_RANLIB"
14418 fi
14419
14420 if test -n "$ac_tool_prefix"; then
14421   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14422 set dummy ${ac_tool_prefix}strip; ac_word=$2
14423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14425 if test "${ac_cv_prog_STRIP+set}" = set; then
14426   echo $ECHO_N "(cached) $ECHO_C" >&6
14427 else
14428   if test -n "$STRIP"; then
14429   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14430 else
14431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14432 for as_dir in $PATH
14433 do
14434   IFS=$as_save_IFS
14435   test -z "$as_dir" && as_dir=.
14436   for ac_exec_ext in '' $ac_executable_extensions; do
14437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14438     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14440     break 2
14441   fi
14442 done
14443 done
14444 IFS=$as_save_IFS
14445
14446 fi
14447 fi
14448 STRIP=$ac_cv_prog_STRIP
14449 if test -n "$STRIP"; then
14450   { echo "$as_me:$LINENO: result: $STRIP" >&5
14451 echo "${ECHO_T}$STRIP" >&6; }
14452 else
14453   { echo "$as_me:$LINENO: result: no" >&5
14454 echo "${ECHO_T}no" >&6; }
14455 fi
14456
14457
14458 fi
14459 if test -z "$ac_cv_prog_STRIP"; then
14460   ac_ct_STRIP=$STRIP
14461   # Extract the first word of "strip", so it can be a program name with args.
14462 set dummy strip; ac_word=$2
14463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14465 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14466   echo $ECHO_N "(cached) $ECHO_C" >&6
14467 else
14468   if test -n "$ac_ct_STRIP"; then
14469   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14470 else
14471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14472 for as_dir in $PATH
14473 do
14474   IFS=$as_save_IFS
14475   test -z "$as_dir" && as_dir=.
14476   for ac_exec_ext in '' $ac_executable_extensions; do
14477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14478     ac_cv_prog_ac_ct_STRIP="strip"
14479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14480     break 2
14481   fi
14482 done
14483 done
14484 IFS=$as_save_IFS
14485
14486 fi
14487 fi
14488 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14489 if test -n "$ac_ct_STRIP"; then
14490   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14491 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14492 else
14493   { echo "$as_me:$LINENO: result: no" >&5
14494 echo "${ECHO_T}no" >&6; }
14495 fi
14496
14497   if test "x$ac_ct_STRIP" = x; then
14498     STRIP=":"
14499   else
14500     case $cross_compiling:$ac_tool_warned in
14501 yes:)
14502 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14503 whose name does not start with the host triplet.  If you think this
14504 configuration is useful to you, please write to autoconf@gnu.org." >&5
14505 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14506 whose name does not start with the host triplet.  If you think this
14507 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14508 ac_tool_warned=yes ;;
14509 esac
14510     STRIP=$ac_ct_STRIP
14511   fi
14512 else
14513   STRIP="$ac_cv_prog_STRIP"
14514 fi
14515
14516
14517 old_CC="$CC"
14518 old_CFLAGS="$CFLAGS"
14519
14520 # Set sane defaults for various variables
14521 test -z "$AR" && AR=ar
14522 test -z "$AR_FLAGS" && AR_FLAGS=cru
14523 test -z "$AS" && AS=as
14524 test -z "$CC" && CC=cc
14525 test -z "$LTCC" && LTCC=$CC
14526 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14527 test -z "$DLLTOOL" && DLLTOOL=dlltool
14528 test -z "$LD" && LD=ld
14529 test -z "$LN_S" && LN_S="ln -s"
14530 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14531 test -z "$NM" && NM=nm
14532 test -z "$SED" && SED=sed
14533 test -z "$OBJDUMP" && OBJDUMP=objdump
14534 test -z "$RANLIB" && RANLIB=:
14535 test -z "$STRIP" && STRIP=:
14536 test -z "$ac_objext" && ac_objext=o
14537
14538 # Determine commands to create old-style static archives.
14539 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14540 old_postinstall_cmds='chmod 644 $oldlib'
14541 old_postuninstall_cmds=
14542
14543 if test -n "$RANLIB"; then
14544   case $host_os in
14545   openbsd*)
14546     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14547     ;;
14548   *)
14549     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14550     ;;
14551   esac
14552   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14553 fi
14554
14555 for cc_temp in $compiler""; do
14556   case $cc_temp in
14557     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14558     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14559     \-*) ;;
14560     *) break;;
14561   esac
14562 done
14563 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14564
14565
14566 # Only perform the check for file, if the check method requires it
14567 case $deplibs_check_method in
14568 file_magic*)
14569   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14570     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14571 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14572 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14573   echo $ECHO_N "(cached) $ECHO_C" >&6
14574 else
14575   case $MAGIC_CMD in
14576 [\\/*] |  ?:[\\/]*)
14577   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14578   ;;
14579 *)
14580   lt_save_MAGIC_CMD="$MAGIC_CMD"
14581   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14582   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14583   for ac_dir in $ac_dummy; do
14584     IFS="$lt_save_ifs"
14585     test -z "$ac_dir" && ac_dir=.
14586     if test -f $ac_dir/${ac_tool_prefix}file; then
14587       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14588       if test -n "$file_magic_test_file"; then
14589         case $deplibs_check_method in
14590         "file_magic "*)
14591           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14592           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14593           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14594             $EGREP "$file_magic_regex" > /dev/null; then
14595             :
14596           else
14597             cat <<EOF 1>&2
14598
14599 *** Warning: the command libtool uses to detect shared libraries,
14600 *** $file_magic_cmd, produces output that libtool cannot recognize.
14601 *** The result is that libtool may fail to recognize shared libraries
14602 *** as such.  This will affect the creation of libtool libraries that
14603 *** depend on shared libraries, but programs linked with such libtool
14604 *** libraries will work regardless of this problem.  Nevertheless, you
14605 *** may want to report the problem to your system manager and/or to
14606 *** bug-libtool@gnu.org
14607
14608 EOF
14609           fi ;;
14610         esac
14611       fi
14612       break
14613     fi
14614   done
14615   IFS="$lt_save_ifs"
14616   MAGIC_CMD="$lt_save_MAGIC_CMD"
14617   ;;
14618 esac
14619 fi
14620
14621 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14622 if test -n "$MAGIC_CMD"; then
14623   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14624 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14625 else
14626   { echo "$as_me:$LINENO: result: no" >&5
14627 echo "${ECHO_T}no" >&6; }
14628 fi
14629
14630 if test -z "$lt_cv_path_MAGIC_CMD"; then
14631   if test -n "$ac_tool_prefix"; then
14632     { echo "$as_me:$LINENO: checking for file" >&5
14633 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14634 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14635   echo $ECHO_N "(cached) $ECHO_C" >&6
14636 else
14637   case $MAGIC_CMD in
14638 [\\/*] |  ?:[\\/]*)
14639   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14640   ;;
14641 *)
14642   lt_save_MAGIC_CMD="$MAGIC_CMD"
14643   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14644   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14645   for ac_dir in $ac_dummy; do
14646     IFS="$lt_save_ifs"
14647     test -z "$ac_dir" && ac_dir=.
14648     if test -f $ac_dir/file; then
14649       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14650       if test -n "$file_magic_test_file"; then
14651         case $deplibs_check_method in
14652         "file_magic "*)
14653           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14654           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14655           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14656             $EGREP "$file_magic_regex" > /dev/null; then
14657             :
14658           else
14659             cat <<EOF 1>&2
14660
14661 *** Warning: the command libtool uses to detect shared libraries,
14662 *** $file_magic_cmd, produces output that libtool cannot recognize.
14663 *** The result is that libtool may fail to recognize shared libraries
14664 *** as such.  This will affect the creation of libtool libraries that
14665 *** depend on shared libraries, but programs linked with such libtool
14666 *** libraries will work regardless of this problem.  Nevertheless, you
14667 *** may want to report the problem to your system manager and/or to
14668 *** bug-libtool@gnu.org
14669
14670 EOF
14671           fi ;;
14672         esac
14673       fi
14674       break
14675     fi
14676   done
14677   IFS="$lt_save_ifs"
14678   MAGIC_CMD="$lt_save_MAGIC_CMD"
14679   ;;
14680 esac
14681 fi
14682
14683 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14684 if test -n "$MAGIC_CMD"; then
14685   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14686 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14687 else
14688   { echo "$as_me:$LINENO: result: no" >&5
14689 echo "${ECHO_T}no" >&6; }
14690 fi
14691
14692   else
14693     MAGIC_CMD=:
14694   fi
14695 fi
14696
14697   fi
14698   ;;
14699 esac
14700
14701 enable_dlopen=yes
14702 enable_win32_dll=no
14703
14704 # Check whether --enable-libtool-lock was given.
14705 if test "${enable_libtool_lock+set}" = set; then
14706   enableval=$enable_libtool_lock;
14707 fi
14708
14709 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14710
14711
14712 # Check whether --with-pic was given.
14713 if test "${with_pic+set}" = set; then
14714   withval=$with_pic; pic_mode="$withval"
14715 else
14716   pic_mode=default
14717 fi
14718
14719 test -z "$pic_mode" && pic_mode=default
14720
14721 # Use C for the default configuration in the libtool script
14722 tagname=
14723 lt_save_CC="$CC"
14724 ac_ext=c
14725 ac_cpp='$CPP $CPPFLAGS'
14726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14729
14730
14731 # Source file extension for C test sources.
14732 ac_ext=c
14733
14734 # Object file extension for compiled C test sources.
14735 objext=o
14736 objext=$objext
14737
14738 # Code to be used in simple compile tests
14739 lt_simple_compile_test_code="int some_variable = 0;\n"
14740
14741 # Code to be used in simple link tests
14742 lt_simple_link_test_code='int main(){return(0);}\n'
14743
14744
14745 # If no C compiler was specified, use CC.
14746 LTCC=${LTCC-"$CC"}
14747
14748 # If no C compiler flags were specified, use CFLAGS.
14749 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14750
14751 # Allow CC to be a program name with arguments.
14752 compiler=$CC
14753
14754
14755 # save warnings/boilerplate of simple test code
14756 ac_outfile=conftest.$ac_objext
14757 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14758 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14759 _lt_compiler_boilerplate=`cat conftest.err`
14760 $rm conftest*
14761
14762 ac_outfile=conftest.$ac_objext
14763 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14764 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14765 _lt_linker_boilerplate=`cat conftest.err`
14766 $rm conftest*
14767
14768
14769
14770 lt_prog_compiler_no_builtin_flag=
14771
14772 if test "$GCC" = yes; then
14773   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14774
14775
14776 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14777 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14778 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14779   echo $ECHO_N "(cached) $ECHO_C" >&6
14780 else
14781   lt_cv_prog_compiler_rtti_exceptions=no
14782   ac_outfile=conftest.$ac_objext
14783    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14784    lt_compiler_flag="-fno-rtti -fno-exceptions"
14785    # Insert the option either (1) after the last *FLAGS variable, or
14786    # (2) before a word containing "conftest.", or (3) at the end.
14787    # Note that $ac_compile itself does not contain backslashes and begins
14788    # with a dollar sign (not a hyphen), so the echo should work correctly.
14789    # The option is referenced via a variable to avoid confusing sed.
14790    lt_compile=`echo "$ac_compile" | $SED \
14791    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14792    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14793    -e 's:$: $lt_compiler_flag:'`
14794    (eval echo "\"\$as_me:14794: $lt_compile\"" >&5)
14795    (eval "$lt_compile" 2>conftest.err)
14796    ac_status=$?
14797    cat conftest.err >&5
14798    echo "$as_me:14798: \$? = $ac_status" >&5
14799    if (exit $ac_status) && test -s "$ac_outfile"; then
14800      # The compiler can only warn and ignore the option if not recognized
14801      # So say no if there are warnings other than the usual output.
14802      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14803      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14804      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14805        lt_cv_prog_compiler_rtti_exceptions=yes
14806      fi
14807    fi
14808    $rm conftest*
14809
14810 fi
14811 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14812 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14813
14814 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14815     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14816 else
14817     :
14818 fi
14819
14820 fi
14821
14822 lt_prog_compiler_wl=
14823 lt_prog_compiler_pic=
14824 lt_prog_compiler_static=
14825
14826 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14827 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14828
14829   if test "$GCC" = yes; then
14830     lt_prog_compiler_wl='-Wl,'
14831     lt_prog_compiler_static='-static'
14832
14833     case $host_os in
14834       aix*)
14835       # All AIX code is PIC.
14836       if test "$host_cpu" = ia64; then
14837         # AIX 5 now supports IA64 processor
14838         lt_prog_compiler_static='-Bstatic'
14839       fi
14840       ;;
14841
14842     amigaos*)
14843       # FIXME: we need at least 68020 code to build shared libraries, but
14844       # adding the `-m68020' flag to GCC prevents building anything better,
14845       # like `-m68040'.
14846       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14847       ;;
14848
14849     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14850       # PIC is the default for these OSes.
14851       ;;
14852
14853     mingw* | pw32* | os2*)
14854       # This hack is so that the source file can tell whether it is being
14855       # built for inclusion in a dll (and should export symbols for example).
14856       lt_prog_compiler_pic='-DDLL_EXPORT'
14857       ;;
14858
14859     darwin* | rhapsody*)
14860       # PIC is the default on this platform
14861       # Common symbols not allowed in MH_DYLIB files
14862       lt_prog_compiler_pic='-fno-common'
14863       ;;
14864
14865     interix3*)
14866       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14867       # Instead, we relocate shared libraries at runtime.
14868       ;;
14869
14870     msdosdjgpp*)
14871       # Just because we use GCC doesn't mean we suddenly get shared libraries
14872       # on systems that don't support them.
14873       lt_prog_compiler_can_build_shared=no
14874       enable_shared=no
14875       ;;
14876
14877     sysv4*MP*)
14878       if test -d /usr/nec; then
14879         lt_prog_compiler_pic=-Kconform_pic
14880       fi
14881       ;;
14882
14883     hpux*)
14884       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14885       # not for PA HP-UX.
14886       case $host_cpu in
14887       hppa*64*|ia64*)
14888         # +Z the default
14889         ;;
14890       *)
14891         lt_prog_compiler_pic='-fPIC'
14892         ;;
14893       esac
14894       ;;
14895
14896     *)
14897       lt_prog_compiler_pic='-fPIC'
14898       ;;
14899     esac
14900   else
14901     # PORTME Check for flag to pass linker flags through the system compiler.
14902     case $host_os in
14903     aix*)
14904       lt_prog_compiler_wl='-Wl,'
14905       if test "$host_cpu" = ia64; then
14906         # AIX 5 now supports IA64 processor
14907         lt_prog_compiler_static='-Bstatic'
14908       else
14909         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14910       fi
14911       ;;
14912       darwin*)
14913         # PIC is the default on this platform
14914         # Common symbols not allowed in MH_DYLIB files
14915        case $cc_basename in
14916          xlc*)
14917          lt_prog_compiler_pic='-qnocommon'
14918          lt_prog_compiler_wl='-Wl,'
14919          ;;
14920        esac
14921        ;;
14922
14923     mingw* | pw32* | os2*)
14924       # This hack is so that the source file can tell whether it is being
14925       # built for inclusion in a dll (and should export symbols for example).
14926       lt_prog_compiler_pic='-DDLL_EXPORT'
14927       ;;
14928
14929     hpux9* | hpux10* | hpux11*)
14930       lt_prog_compiler_wl='-Wl,'
14931       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14932       # not for PA HP-UX.
14933       case $host_cpu in
14934       hppa*64*|ia64*)
14935         # +Z the default
14936         ;;
14937       *)
14938         lt_prog_compiler_pic='+Z'
14939         ;;
14940       esac
14941       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14942       lt_prog_compiler_static='${wl}-a ${wl}archive'
14943       ;;
14944
14945     irix5* | irix6* | nonstopux*)
14946       lt_prog_compiler_wl='-Wl,'
14947       # PIC (with -KPIC) is the default.
14948       lt_prog_compiler_static='-non_shared'
14949       ;;
14950
14951     newsos6)
14952       lt_prog_compiler_pic='-KPIC'
14953       lt_prog_compiler_static='-Bstatic'
14954       ;;
14955
14956     linux*)
14957       case $cc_basename in
14958       icc* | ecc*)
14959         lt_prog_compiler_wl='-Wl,'
14960         lt_prog_compiler_pic='-KPIC'
14961         lt_prog_compiler_static='-static'
14962         ;;
14963       pgcc* | pgf77* | pgf90* | pgf95*)
14964         # Portland Group compilers (*not* the Pentium gcc compiler,
14965         # which looks to be a dead project)
14966         lt_prog_compiler_wl='-Wl,'
14967         lt_prog_compiler_pic='-fpic'
14968         lt_prog_compiler_static='-Bstatic'
14969         ;;
14970       ccc*)
14971         lt_prog_compiler_wl='-Wl,'
14972         # All Alpha code is PIC.
14973         lt_prog_compiler_static='-non_shared'
14974         ;;
14975       esac
14976       ;;
14977
14978     osf3* | osf4* | osf5*)
14979       lt_prog_compiler_wl='-Wl,'
14980       # All OSF/1 code is PIC.
14981       lt_prog_compiler_static='-non_shared'
14982       ;;
14983
14984     solaris*)
14985       lt_prog_compiler_pic='-KPIC'
14986       lt_prog_compiler_static='-Bstatic'
14987       case $cc_basename in
14988       f77* | f90* | f95*)
14989         lt_prog_compiler_wl='-Qoption ld ';;
14990       *)
14991         lt_prog_compiler_wl='-Wl,';;
14992       esac
14993       ;;
14994
14995     sunos4*)
14996       lt_prog_compiler_wl='-Qoption ld '
14997       lt_prog_compiler_pic='-PIC'
14998       lt_prog_compiler_static='-Bstatic'
14999       ;;
15000
15001     sysv4 | sysv4.2uw2* | sysv4.3*)
15002       lt_prog_compiler_wl='-Wl,'
15003       lt_prog_compiler_pic='-KPIC'
15004       lt_prog_compiler_static='-Bstatic'
15005       ;;
15006
15007     sysv4*MP*)
15008       if test -d /usr/nec ;then
15009         lt_prog_compiler_pic='-Kconform_pic'
15010         lt_prog_compiler_static='-Bstatic'
15011       fi
15012       ;;
15013
15014     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15015       lt_prog_compiler_wl='-Wl,'
15016       lt_prog_compiler_pic='-KPIC'
15017       lt_prog_compiler_static='-Bstatic'
15018       ;;
15019
15020     unicos*)
15021       lt_prog_compiler_wl='-Wl,'
15022       lt_prog_compiler_can_build_shared=no
15023       ;;
15024
15025     uts4*)
15026       lt_prog_compiler_pic='-pic'
15027       lt_prog_compiler_static='-Bstatic'
15028       ;;
15029
15030     *)
15031       lt_prog_compiler_can_build_shared=no
15032       ;;
15033     esac
15034   fi
15035
15036 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15037 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15038
15039 #
15040 # Check to make sure the PIC flag actually works.
15041 #
15042 if test -n "$lt_prog_compiler_pic"; then
15043
15044 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15045 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15046 if test "${lt_prog_compiler_pic_works+set}" = set; then
15047   echo $ECHO_N "(cached) $ECHO_C" >&6
15048 else
15049   lt_prog_compiler_pic_works=no
15050   ac_outfile=conftest.$ac_objext
15051    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15052    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15053    # Insert the option either (1) after the last *FLAGS variable, or
15054    # (2) before a word containing "conftest.", or (3) at the end.
15055    # Note that $ac_compile itself does not contain backslashes and begins
15056    # with a dollar sign (not a hyphen), so the echo should work correctly.
15057    # The option is referenced via a variable to avoid confusing sed.
15058    lt_compile=`echo "$ac_compile" | $SED \
15059    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15060    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15061    -e 's:$: $lt_compiler_flag:'`
15062    (eval echo "\"\$as_me:15062: $lt_compile\"" >&5)
15063    (eval "$lt_compile" 2>conftest.err)
15064    ac_status=$?
15065    cat conftest.err >&5
15066    echo "$as_me:15066: \$? = $ac_status" >&5
15067    if (exit $ac_status) && test -s "$ac_outfile"; then
15068      # The compiler can only warn and ignore the option if not recognized
15069      # So say no if there are warnings other than the usual output.
15070      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15071      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15072      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15073        lt_prog_compiler_pic_works=yes
15074      fi
15075    fi
15076    $rm conftest*
15077
15078 fi
15079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15080 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15081
15082 if test x"$lt_prog_compiler_pic_works" = xyes; then
15083     case $lt_prog_compiler_pic in
15084      "" | " "*) ;;
15085      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15086      esac
15087 else
15088     lt_prog_compiler_pic=
15089      lt_prog_compiler_can_build_shared=no
15090 fi
15091
15092 fi
15093 case $host_os in
15094   # For platforms which do not support PIC, -DPIC is meaningless:
15095   *djgpp*)
15096     lt_prog_compiler_pic=
15097     ;;
15098   *)
15099     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15100     ;;
15101 esac
15102
15103 #
15104 # Check to make sure the static flag actually works.
15105 #
15106 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15107 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15108 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15109 if test "${lt_prog_compiler_static_works+set}" = set; then
15110   echo $ECHO_N "(cached) $ECHO_C" >&6
15111 else
15112   lt_prog_compiler_static_works=no
15113    save_LDFLAGS="$LDFLAGS"
15114    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15115    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15116    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15117      # The linker can only warn and ignore the option if not recognized
15118      # So say no if there are warnings
15119      if test -s conftest.err; then
15120        # Append any errors to the config.log.
15121        cat conftest.err 1>&5
15122        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15123        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15124        if diff conftest.exp conftest.er2 >/dev/null; then
15125          lt_prog_compiler_static_works=yes
15126        fi
15127      else
15128        lt_prog_compiler_static_works=yes
15129      fi
15130    fi
15131    $rm conftest*
15132    LDFLAGS="$save_LDFLAGS"
15133
15134 fi
15135 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15136 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15137
15138 if test x"$lt_prog_compiler_static_works" = xyes; then
15139     :
15140 else
15141     lt_prog_compiler_static=
15142 fi
15143
15144
15145 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15146 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15147 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15148   echo $ECHO_N "(cached) $ECHO_C" >&6
15149 else
15150   lt_cv_prog_compiler_c_o=no
15151    $rm -r conftest 2>/dev/null
15152    mkdir conftest
15153    cd conftest
15154    mkdir out
15155    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15156
15157    lt_compiler_flag="-o out/conftest2.$ac_objext"
15158    # Insert the option either (1) after the last *FLAGS variable, or
15159    # (2) before a word containing "conftest.", or (3) at the end.
15160    # Note that $ac_compile itself does not contain backslashes and begins
15161    # with a dollar sign (not a hyphen), so the echo should work correctly.
15162    lt_compile=`echo "$ac_compile" | $SED \
15163    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15164    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15165    -e 's:$: $lt_compiler_flag:'`
15166    (eval echo "\"\$as_me:15166: $lt_compile\"" >&5)
15167    (eval "$lt_compile" 2>out/conftest.err)
15168    ac_status=$?
15169    cat out/conftest.err >&5
15170    echo "$as_me:15170: \$? = $ac_status" >&5
15171    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15172    then
15173      # The compiler can only warn and ignore the option if not recognized
15174      # So say no if there are warnings
15175      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15176      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15177      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15178        lt_cv_prog_compiler_c_o=yes
15179      fi
15180    fi
15181    chmod u+w . 2>&5
15182    $rm conftest*
15183    # SGI C++ compiler will create directory out/ii_files/ for
15184    # template instantiation
15185    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15186    $rm out/* && rmdir out
15187    cd ..
15188    rmdir conftest
15189    $rm conftest*
15190
15191 fi
15192 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15193 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15194
15195
15196 hard_links="nottested"
15197 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15198   # do not overwrite the value of need_locks provided by the user
15199   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15200 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15201   hard_links=yes
15202   $rm conftest*
15203   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15204   touch conftest.a
15205   ln conftest.a conftest.b 2>&5 || hard_links=no
15206   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15207   { echo "$as_me:$LINENO: result: $hard_links" >&5
15208 echo "${ECHO_T}$hard_links" >&6; }
15209   if test "$hard_links" = no; then
15210     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15211 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15212     need_locks=warn
15213   fi
15214 else
15215   need_locks=no
15216 fi
15217
15218 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15219 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15220
15221   runpath_var=
15222   allow_undefined_flag=
15223   enable_shared_with_static_runtimes=no
15224   archive_cmds=
15225   archive_expsym_cmds=
15226   old_archive_From_new_cmds=
15227   old_archive_from_expsyms_cmds=
15228   export_dynamic_flag_spec=
15229   whole_archive_flag_spec=
15230   thread_safe_flag_spec=
15231   hardcode_libdir_flag_spec=
15232   hardcode_libdir_flag_spec_ld=
15233   hardcode_libdir_separator=
15234   hardcode_direct=no
15235   hardcode_minus_L=no
15236   hardcode_shlibpath_var=unsupported
15237   link_all_deplibs=unknown
15238   hardcode_automatic=no
15239   module_cmds=
15240   module_expsym_cmds=
15241   always_export_symbols=no
15242   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15243   # include_expsyms should be a list of space-separated symbols to be *always*
15244   # included in the symbol list
15245   include_expsyms=
15246   # exclude_expsyms can be an extended regexp of symbols to exclude
15247   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15248   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15249   # as well as any symbol that contains `d'.
15250   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15251   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15252   # platforms (ab)use it in PIC code, but their linkers get confused if
15253   # the symbol is explicitly referenced.  Since portable code cannot
15254   # rely on this symbol name, it's probably fine to never include it in
15255   # preloaded symbol tables.
15256   extract_expsyms_cmds=
15257   # Just being paranoid about ensuring that cc_basename is set.
15258   for cc_temp in $compiler""; do
15259   case $cc_temp in
15260     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15261     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15262     \-*) ;;
15263     *) break;;
15264   esac
15265 done
15266 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15267
15268   case $host_os in
15269   cygwin* | mingw* | pw32*)
15270     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15271     # When not using gcc, we currently assume that we are using
15272     # Microsoft Visual C++.
15273     if test "$GCC" != yes; then
15274       with_gnu_ld=no
15275     fi
15276     ;;
15277   interix*)
15278     # we just hope/assume this is gcc and not c89 (= MSVC++)
15279     with_gnu_ld=yes
15280     ;;
15281   openbsd*)
15282     with_gnu_ld=no
15283     ;;
15284   esac
15285
15286   ld_shlibs=yes
15287   if test "$with_gnu_ld" = yes; then
15288     # If archive_cmds runs LD, not CC, wlarc should be empty
15289     wlarc='${wl}'
15290
15291     # Set some defaults for GNU ld with shared library support. These
15292     # are reset later if shared libraries are not supported. Putting them
15293     # here allows them to be overridden if necessary.
15294     runpath_var=LD_RUN_PATH
15295     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15296     export_dynamic_flag_spec='${wl}--export-dynamic'
15297     # ancient GNU ld didn't support --whole-archive et. al.
15298     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15299         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15300       else
15301         whole_archive_flag_spec=
15302     fi
15303     supports_anon_versioning=no
15304     case `$LD -v 2>/dev/null` in
15305       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15306       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15307       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15308       *\ 2.11.*) ;; # other 2.11 versions
15309       *) supports_anon_versioning=yes ;;
15310     esac
15311
15312     # See if GNU ld supports shared libraries.
15313     case $host_os in
15314     aix3* | aix4* | aix5*)
15315       # On AIX/PPC, the GNU linker is very broken
15316       if test "$host_cpu" != ia64; then
15317         ld_shlibs=no
15318         cat <<EOF 1>&2
15319
15320 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15321 *** to be unable to reliably create shared libraries on AIX.
15322 *** Therefore, libtool is disabling shared libraries support.  If you
15323 *** really care for shared libraries, you may want to modify your PATH
15324 *** so that a non-GNU linker is found, and then restart.
15325
15326 EOF
15327       fi
15328       ;;
15329
15330     amigaos*)
15331       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)'
15332       hardcode_libdir_flag_spec='-L$libdir'
15333       hardcode_minus_L=yes
15334
15335       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15336       # that the semantics of dynamic libraries on AmigaOS, at least up
15337       # to version 4, is to share data among multiple programs linked
15338       # with the same dynamic library.  Since this doesn't match the
15339       # behavior of shared libraries on other platforms, we can't use
15340       # them.
15341       ld_shlibs=no
15342       ;;
15343
15344     beos*)
15345       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15346         allow_undefined_flag=unsupported
15347         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15348         # support --undefined.  This deserves some investigation.  FIXME
15349         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15350       else
15351         ld_shlibs=no
15352       fi
15353       ;;
15354
15355     cygwin* | mingw* | pw32*)
15356       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15357       # as there is no search path for DLLs.
15358       hardcode_libdir_flag_spec='-L$libdir'
15359       allow_undefined_flag=unsupported
15360       always_export_symbols=no
15361       enable_shared_with_static_runtimes=yes
15362       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15363
15364       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15365         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15366         # If the export-symbols file already is a .def file (1st line
15367         # is EXPORTS), use it as is; otherwise, prepend...
15368         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15369           cp $export_symbols $output_objdir/$soname.def;
15370         else
15371           echo EXPORTS > $output_objdir/$soname.def;
15372           cat $export_symbols >> $output_objdir/$soname.def;
15373         fi~
15374         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15375       else
15376         ld_shlibs=no
15377       fi
15378       ;;
15379
15380     interix3*)
15381       hardcode_direct=no
15382       hardcode_shlibpath_var=no
15383       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15384       export_dynamic_flag_spec='${wl}-E'
15385       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15386       # Instead, shared libraries are loaded at an image base (0x10000000 by
15387       # default) and relocated if they conflict, which is a slow very memory
15388       # consuming and fragmenting process.  To avoid this, we pick a random,
15389       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15390       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15391       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15392       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'
15393       ;;
15394
15395     linux*)
15396       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15397         tmp_addflag=
15398         case $cc_basename,$host_cpu in
15399         pgcc*)                          # Portland Group C compiler
15400           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'
15401           tmp_addflag=' $pic_flag'
15402           ;;
15403         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15404           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'
15405           tmp_addflag=' $pic_flag -Mnomain' ;;
15406         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15407           tmp_addflag=' -i_dynamic' ;;
15408         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15409           tmp_addflag=' -i_dynamic -nofor_main' ;;
15410         ifc* | ifort*)                  # Intel Fortran compiler
15411           tmp_addflag=' -nofor_main' ;;
15412         esac
15413         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15414
15415         if test $supports_anon_versioning = yes; then
15416           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15417   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15418   $echo "local: *; };" >> $output_objdir/$libname.ver~
15419           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15420         fi
15421       else
15422         ld_shlibs=no
15423       fi
15424       ;;
15425
15426     netbsd*)
15427       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15428         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15429         wlarc=
15430       else
15431         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15432         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15433       fi
15434       ;;
15435
15436     solaris*)
15437       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15438         ld_shlibs=no
15439         cat <<EOF 1>&2
15440
15441 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15442 *** create shared libraries on Solaris systems.  Therefore, libtool
15443 *** is disabling shared libraries support.  We urge you to upgrade GNU
15444 *** binutils to release 2.9.1 or newer.  Another option is to modify
15445 *** your PATH or compiler configuration so that the native linker is
15446 *** used, and then restart.
15447
15448 EOF
15449       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15450         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15451         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15452       else
15453         ld_shlibs=no
15454       fi
15455       ;;
15456
15457     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15458       case `$LD -v 2>&1` in
15459         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15460         ld_shlibs=no
15461         cat <<_LT_EOF 1>&2
15462
15463 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15464 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15465 *** is disabling shared libraries support.  We urge you to upgrade GNU
15466 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15467 *** your PATH or compiler configuration so that the native linker is
15468 *** used, and then restart.
15469
15470 _LT_EOF
15471         ;;
15472         *)
15473           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15474             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15475             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15476             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15477           else
15478             ld_shlibs=no
15479           fi
15480         ;;
15481       esac
15482       ;;
15483
15484     sunos4*)
15485       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15486       wlarc=
15487       hardcode_direct=yes
15488       hardcode_shlibpath_var=no
15489       ;;
15490
15491     *)
15492       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15493         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15494         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15495       else
15496         ld_shlibs=no
15497       fi
15498       ;;
15499     esac
15500
15501     if test "$ld_shlibs" = no; then
15502       runpath_var=
15503       hardcode_libdir_flag_spec=
15504       export_dynamic_flag_spec=
15505       whole_archive_flag_spec=
15506     fi
15507   else
15508     # PORTME fill in a description of your system's linker (not GNU ld)
15509     case $host_os in
15510     aix3*)
15511       allow_undefined_flag=unsupported
15512       always_export_symbols=yes
15513       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'
15514       # Note: this linker hardcodes the directories in LIBPATH if there
15515       # are no directories specified by -L.
15516       hardcode_minus_L=yes
15517       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15518         # Neither direct hardcoding nor static linking is supported with a
15519         # broken collect2.
15520         hardcode_direct=unsupported
15521       fi
15522       ;;
15523
15524     aix4* | aix5*)
15525       if test "$host_cpu" = ia64; then
15526         # On IA64, the linker does run time linking by default, so we don't
15527         # have to do anything special.
15528         aix_use_runtimelinking=no
15529         exp_sym_flag='-Bexport'
15530         no_entry_flag=""
15531       else
15532         # If we're using GNU nm, then we don't want the "-C" option.
15533         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15534         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15535           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'
15536         else
15537           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'
15538         fi
15539         aix_use_runtimelinking=no
15540
15541         # Test if we are trying to use run time linking or normal
15542         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15543         # need to do runtime linking.
15544         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15545           for ld_flag in $LDFLAGS; do
15546           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15547             aix_use_runtimelinking=yes
15548             break
15549           fi
15550           done
15551           ;;
15552         esac
15553
15554         exp_sym_flag='-bexport'
15555         no_entry_flag='-bnoentry'
15556       fi
15557
15558       # When large executables or shared objects are built, AIX ld can
15559       # have problems creating the table of contents.  If linking a library
15560       # or program results in "error TOC overflow" add -mminimal-toc to
15561       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15562       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15563
15564       archive_cmds=''
15565       hardcode_direct=yes
15566       hardcode_libdir_separator=':'
15567       link_all_deplibs=yes
15568
15569       if test "$GCC" = yes; then
15570         case $host_os in aix4.[012]|aix4.[012].*)
15571         # We only want to do this on AIX 4.2 and lower, the check
15572         # below for broken collect2 doesn't work under 4.3+
15573           collect2name=`${CC} -print-prog-name=collect2`
15574           if test -f "$collect2name" && \
15575            strings "$collect2name" | grep resolve_lib_name >/dev/null
15576           then
15577           # We have reworked collect2
15578           hardcode_direct=yes
15579           else
15580           # We have old collect2
15581           hardcode_direct=unsupported
15582           # It fails to find uninstalled libraries when the uninstalled
15583           # path is not listed in the libpath.  Setting hardcode_minus_L
15584           # to unsupported forces relinking
15585           hardcode_minus_L=yes
15586           hardcode_libdir_flag_spec='-L$libdir'
15587           hardcode_libdir_separator=
15588           fi
15589           ;;
15590         esac
15591         shared_flag='-shared'
15592         if test "$aix_use_runtimelinking" = yes; then
15593           shared_flag="$shared_flag "'${wl}-G'
15594         fi
15595       else
15596         # not using gcc
15597         if test "$host_cpu" = ia64; then
15598         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15599         # chokes on -Wl,-G. The following line is correct:
15600           shared_flag='-G'
15601         else
15602           if test "$aix_use_runtimelinking" = yes; then
15603             shared_flag='${wl}-G'
15604           else
15605             shared_flag='${wl}-bM:SRE'
15606           fi
15607         fi
15608       fi
15609
15610       # It seems that -bexpall does not export symbols beginning with
15611       # underscore (_), so it is better to generate a list of symbols to export.
15612       always_export_symbols=yes
15613       if test "$aix_use_runtimelinking" = yes; then
15614         # Warning - without using the other runtime loading flags (-brtl),
15615         # -berok will link without error, but may produce a broken library.
15616         allow_undefined_flag='-berok'
15617        # Determine the default libpath from the value encoded in an empty executable.
15618        cat >conftest.$ac_ext <<_ACEOF
15619 /* confdefs.h.  */
15620 _ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h.  */
15624
15625 int
15626 main ()
15627 {
15628
15629   ;
15630   return 0;
15631 }
15632 _ACEOF
15633 rm -f conftest.$ac_objext conftest$ac_exeext
15634 if { (ac_try="$ac_link"
15635 case "(($ac_try" in
15636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637   *) ac_try_echo=$ac_try;;
15638 esac
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640   (eval "$ac_link") 2>conftest.er1
15641   ac_status=$?
15642   grep -v '^ *+' conftest.er1 >conftest.err
15643   rm -f conftest.er1
15644   cat conftest.err >&5
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); } &&
15647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15648   { (case "(($ac_try" in
15649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650   *) ac_try_echo=$ac_try;;
15651 esac
15652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653   (eval "$ac_try") 2>&5
15654   ac_status=$?
15655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); }; } &&
15657          { ac_try='test -s conftest$ac_exeext'
15658   { (case "(($ac_try" in
15659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660   *) ac_try_echo=$ac_try;;
15661 esac
15662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663   (eval "$ac_try") 2>&5
15664   ac_status=$?
15665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666   (exit $ac_status); }; }; then
15667
15668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15669 }'`
15670 # Check for a 64-bit object if we didn't find anything.
15671 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; }
15672 }'`; fi
15673 else
15674   echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15676
15677
15678 fi
15679
15680 rm -f core conftest.err conftest.$ac_objext \
15681       conftest$ac_exeext conftest.$ac_ext
15682 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15683
15684        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15685         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"
15686        else
15687         if test "$host_cpu" = ia64; then
15688           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15689           allow_undefined_flag="-z nodefs"
15690           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"
15691         else
15692          # Determine the default libpath from the value encoded in an empty executable.
15693          cat >conftest.$ac_ext <<_ACEOF
15694 /* confdefs.h.  */
15695 _ACEOF
15696 cat confdefs.h >>conftest.$ac_ext
15697 cat >>conftest.$ac_ext <<_ACEOF
15698 /* end confdefs.h.  */
15699
15700 int
15701 main ()
15702 {
15703
15704   ;
15705   return 0;
15706 }
15707 _ACEOF
15708 rm -f conftest.$ac_objext conftest$ac_exeext
15709 if { (ac_try="$ac_link"
15710 case "(($ac_try" in
15711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712   *) ac_try_echo=$ac_try;;
15713 esac
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715   (eval "$ac_link") 2>conftest.er1
15716   ac_status=$?
15717   grep -v '^ *+' conftest.er1 >conftest.err
15718   rm -f conftest.er1
15719   cat conftest.err >&5
15720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721   (exit $ac_status); } &&
15722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15723   { (case "(($ac_try" in
15724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725   *) ac_try_echo=$ac_try;;
15726 esac
15727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15728   (eval "$ac_try") 2>&5
15729   ac_status=$?
15730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); }; } &&
15732          { ac_try='test -s conftest$ac_exeext'
15733   { (case "(($ac_try" in
15734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735   *) ac_try_echo=$ac_try;;
15736 esac
15737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738   (eval "$ac_try") 2>&5
15739   ac_status=$?
15740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741   (exit $ac_status); }; }; then
15742
15743 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15744 }'`
15745 # Check for a 64-bit object if we didn't find anything.
15746 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; }
15747 }'`; fi
15748 else
15749   echo "$as_me: failed program was:" >&5
15750 sed 's/^/| /' conftest.$ac_ext >&5
15751
15752
15753 fi
15754
15755 rm -f core conftest.err conftest.$ac_objext \
15756       conftest$ac_exeext conftest.$ac_ext
15757 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15758
15759          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15760           # Warning - without using the other run time loading flags,
15761           # -berok will link without error, but may produce a broken library.
15762           no_undefined_flag=' ${wl}-bernotok'
15763           allow_undefined_flag=' ${wl}-berok'
15764           # Exported symbols can be pulled into shared objects from archives
15765           whole_archive_flag_spec='$convenience'
15766           archive_cmds_need_lc=yes
15767           # This is similar to how AIX traditionally builds its shared libraries.
15768           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'
15769         fi
15770       fi
15771       ;;
15772
15773     amigaos*)
15774       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)'
15775       hardcode_libdir_flag_spec='-L$libdir'
15776       hardcode_minus_L=yes
15777       # see comment about different semantics on the GNU ld section
15778       ld_shlibs=no
15779       ;;
15780
15781     bsdi[45]*)
15782       export_dynamic_flag_spec=-rdynamic
15783       ;;
15784
15785     cygwin* | mingw* | pw32*)
15786       # When not using gcc, we currently assume that we are using
15787       # Microsoft Visual C++.
15788       # hardcode_libdir_flag_spec is actually meaningless, as there is
15789       # no search path for DLLs.
15790       hardcode_libdir_flag_spec=' '
15791       allow_undefined_flag=unsupported
15792       # Tell ltmain to make .lib files, not .a files.
15793       libext=lib
15794       # Tell ltmain to make .dll files, not .so files.
15795       shrext_cmds=".dll"
15796       # FIXME: Setting linknames here is a bad hack.
15797       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15798       # The linker will automatically build a .lib file if we build a DLL.
15799       old_archive_From_new_cmds='true'
15800       # FIXME: Should let the user specify the lib program.
15801       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15802       fix_srcfile_path='`cygpath -w "$srcfile"`'
15803       enable_shared_with_static_runtimes=yes
15804       ;;
15805
15806     darwin* | rhapsody*)
15807       case $host_os in
15808         rhapsody* | darwin1.[012])
15809          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15810          ;;
15811        *) # Darwin 1.3 on
15812          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15813            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15814          else
15815            case ${MACOSX_DEPLOYMENT_TARGET} in
15816              10.[012])
15817                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15818                ;;
15819              10.*)
15820                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15821                ;;
15822            esac
15823          fi
15824          ;;
15825       esac
15826       archive_cmds_need_lc=no
15827       hardcode_direct=no
15828       hardcode_automatic=yes
15829       hardcode_shlibpath_var=unsupported
15830       whole_archive_flag_spec=''
15831       link_all_deplibs=yes
15832     if test "$GCC" = yes ; then
15833         output_verbose_link_cmd='echo'
15834         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15835       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15836       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15837       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}'
15838       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}'
15839     else
15840       case $cc_basename in
15841         xlc*)
15842          output_verbose_link_cmd='echo'
15843          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15844          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15845           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15846          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}'
15847           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}'
15848           ;;
15849        *)
15850          ld_shlibs=no
15851           ;;
15852       esac
15853     fi
15854       ;;
15855
15856     dgux*)
15857       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15858       hardcode_libdir_flag_spec='-L$libdir'
15859       hardcode_shlibpath_var=no
15860       ;;
15861
15862     freebsd1*)
15863       ld_shlibs=no
15864       ;;
15865
15866     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15867     # support.  Future versions do this automatically, but an explicit c++rt0.o
15868     # does not break anything, and helps significantly (at the cost of a little
15869     # extra space).
15870     freebsd2.2*)
15871       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15872       hardcode_libdir_flag_spec='-R$libdir'
15873       hardcode_direct=yes
15874       hardcode_shlibpath_var=no
15875       ;;
15876
15877     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15878     freebsd2*)
15879       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15880       hardcode_direct=yes
15881       hardcode_minus_L=yes
15882       hardcode_shlibpath_var=no
15883       ;;
15884
15885     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15886     freebsd* | kfreebsd*-gnu | dragonfly*)
15887       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15888       hardcode_libdir_flag_spec='-R$libdir'
15889       hardcode_direct=yes
15890       hardcode_shlibpath_var=no
15891       ;;
15892
15893     hpux9*)
15894       if test "$GCC" = yes; then
15895         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'
15896       else
15897         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'
15898       fi
15899       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15900       hardcode_libdir_separator=:
15901       hardcode_direct=yes
15902
15903       # hardcode_minus_L: Not really in the search PATH,
15904       # but as the default location of the library.
15905       hardcode_minus_L=yes
15906       export_dynamic_flag_spec='${wl}-E'
15907       ;;
15908
15909     hpux10*)
15910       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15911         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15912       else
15913         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15914       fi
15915       if test "$with_gnu_ld" = no; then
15916         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15917         hardcode_libdir_separator=:
15918
15919         hardcode_direct=yes
15920         export_dynamic_flag_spec='${wl}-E'
15921
15922         # hardcode_minus_L: Not really in the search PATH,
15923         # but as the default location of the library.
15924         hardcode_minus_L=yes
15925       fi
15926       ;;
15927
15928     hpux11*)
15929       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15930         case $host_cpu in
15931         hppa*64*)
15932           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15933           ;;
15934         ia64*)
15935           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15936           ;;
15937         *)
15938           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15939           ;;
15940         esac
15941       else
15942         case $host_cpu in
15943         hppa*64*)
15944           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15945           ;;
15946         ia64*)
15947           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15948           ;;
15949         *)
15950           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15951           ;;
15952         esac
15953       fi
15954       if test "$with_gnu_ld" = no; then
15955         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15956         hardcode_libdir_separator=:
15957
15958         case $host_cpu in
15959         hppa*64*|ia64*)
15960           hardcode_libdir_flag_spec_ld='+b $libdir'
15961           hardcode_direct=no
15962           hardcode_shlibpath_var=no
15963           ;;
15964         *)
15965           hardcode_direct=yes
15966           export_dynamic_flag_spec='${wl}-E'
15967
15968           # hardcode_minus_L: Not really in the search PATH,
15969           # but as the default location of the library.
15970           hardcode_minus_L=yes
15971           ;;
15972         esac
15973       fi
15974       ;;
15975
15976     irix5* | irix6* | nonstopux*)
15977       if test "$GCC" = yes; then
15978         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'
15979       else
15980         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'
15981         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15982       fi
15983       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15984       hardcode_libdir_separator=:
15985       link_all_deplibs=yes
15986       ;;
15987
15988     netbsd*)
15989       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15990         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15991       else
15992         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15993       fi
15994       hardcode_libdir_flag_spec='-R$libdir'
15995       hardcode_direct=yes
15996       hardcode_shlibpath_var=no
15997       ;;
15998
15999     newsos6)
16000       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16001       hardcode_direct=yes
16002       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16003       hardcode_libdir_separator=:
16004       hardcode_shlibpath_var=no
16005       ;;
16006
16007     openbsd*)
16008       hardcode_direct=yes
16009       hardcode_shlibpath_var=no
16010       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16011         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16012         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16013         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16014         export_dynamic_flag_spec='${wl}-E'
16015       else
16016        case $host_os in
16017          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16018            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16019            hardcode_libdir_flag_spec='-R$libdir'
16020            ;;
16021          *)
16022            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16023            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16024            ;;
16025        esac
16026       fi
16027       ;;
16028
16029     os2*)
16030       hardcode_libdir_flag_spec='-L$libdir'
16031       hardcode_minus_L=yes
16032       allow_undefined_flag=unsupported
16033       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'
16034       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16035       ;;
16036
16037     osf3*)
16038       if test "$GCC" = yes; then
16039         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16040         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'
16041       else
16042         allow_undefined_flag=' -expect_unresolved \*'
16043         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'
16044       fi
16045       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16046       hardcode_libdir_separator=:
16047       ;;
16048
16049     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16050       if test "$GCC" = yes; then
16051         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16052         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'
16053         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16054       else
16055         allow_undefined_flag=' -expect_unresolved \*'
16056         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'
16057         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16058         $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'
16059
16060         # Both c and cxx compiler support -rpath directly
16061         hardcode_libdir_flag_spec='-rpath $libdir'
16062       fi
16063       hardcode_libdir_separator=:
16064       ;;
16065
16066     solaris*)
16067       no_undefined_flag=' -z text'
16068       if test "$GCC" = yes; then
16069         wlarc='${wl}'
16070         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16071         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16072           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16073       else
16074         wlarc=''
16075         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16076         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16077         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16078       fi
16079       hardcode_libdir_flag_spec='-R$libdir'
16080       hardcode_shlibpath_var=no
16081       case $host_os in
16082       solaris2.[0-5] | solaris2.[0-5].*) ;;
16083       *)
16084         # The compiler driver will combine linker options so we
16085         # cannot just pass the convience library names through
16086         # without $wl, iff we do not link with $LD.
16087         # Luckily, gcc supports the same syntax we need for Sun Studio.
16088         # Supported since Solaris 2.6 (maybe 2.5.1?)
16089         case $wlarc in
16090         '')
16091           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16092         *)
16093           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' ;;
16094         esac ;;
16095       esac
16096       link_all_deplibs=yes
16097       ;;
16098
16099     sunos4*)
16100       if test "x$host_vendor" = xsequent; then
16101         # Use $CC to link under sequent, because it throws in some extra .o
16102         # files that make .init and .fini sections work.
16103         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16104       else
16105         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16106       fi
16107       hardcode_libdir_flag_spec='-L$libdir'
16108       hardcode_direct=yes
16109       hardcode_minus_L=yes
16110       hardcode_shlibpath_var=no
16111       ;;
16112
16113     sysv4)
16114       case $host_vendor in
16115         sni)
16116           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16117           hardcode_direct=yes # is this really true???
16118         ;;
16119         siemens)
16120           ## LD is ld it makes a PLAMLIB
16121           ## CC just makes a GrossModule.
16122           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16123           reload_cmds='$CC -r -o $output$reload_objs'
16124           hardcode_direct=no
16125         ;;
16126         motorola)
16127           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16128           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16129         ;;
16130       esac
16131       runpath_var='LD_RUN_PATH'
16132       hardcode_shlibpath_var=no
16133       ;;
16134
16135     sysv4.3*)
16136       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16137       hardcode_shlibpath_var=no
16138       export_dynamic_flag_spec='-Bexport'
16139       ;;
16140
16141     sysv4*MP*)
16142       if test -d /usr/nec; then
16143         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16144         hardcode_shlibpath_var=no
16145         runpath_var=LD_RUN_PATH
16146         hardcode_runpath_var=yes
16147         ld_shlibs=yes
16148       fi
16149       ;;
16150
16151     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16152       no_undefined_flag='${wl}-z,text'
16153       archive_cmds_need_lc=no
16154       hardcode_shlibpath_var=no
16155       runpath_var='LD_RUN_PATH'
16156
16157       if test "$GCC" = yes; then
16158         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16159         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16160       else
16161         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16162         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16163       fi
16164       ;;
16165
16166     sysv5* | sco3.2v5* | sco5v6*)
16167       # Note: We can NOT use -z defs as we might desire, because we do not
16168       # link with -lc, and that would cause any symbols used from libc to
16169       # always be unresolved, which means just about no library would
16170       # ever link correctly.  If we're not using GNU ld we use -z text
16171       # though, which does catch some bad symbols but isn't as heavy-handed
16172       # as -z defs.
16173       no_undefined_flag='${wl}-z,text'
16174       allow_undefined_flag='${wl}-z,nodefs'
16175       archive_cmds_need_lc=no
16176       hardcode_shlibpath_var=no
16177       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16178       hardcode_libdir_separator=':'
16179       link_all_deplibs=yes
16180       export_dynamic_flag_spec='${wl}-Bexport'
16181       runpath_var='LD_RUN_PATH'
16182
16183       if test "$GCC" = yes; then
16184         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16185         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16186       else
16187         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16188         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16189       fi
16190       ;;
16191
16192     uts4*)
16193       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16194       hardcode_libdir_flag_spec='-L$libdir'
16195       hardcode_shlibpath_var=no
16196       ;;
16197
16198     *)
16199       ld_shlibs=no
16200       ;;
16201     esac
16202   fi
16203
16204 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16205 echo "${ECHO_T}$ld_shlibs" >&6; }
16206 test "$ld_shlibs" = no && can_build_shared=no
16207
16208 #
16209 # Do we need to explicitly link libc?
16210 #
16211 case "x$archive_cmds_need_lc" in
16212 x|xyes)
16213   # Assume -lc should be added
16214   archive_cmds_need_lc=yes
16215
16216   if test "$enable_shared" = yes && test "$GCC" = yes; then
16217     case $archive_cmds in
16218     *'~'*)
16219       # FIXME: we may have to deal with multi-command sequences.
16220       ;;
16221     '$CC '*)
16222       # Test whether the compiler implicitly links with -lc since on some
16223       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16224       # to ld, don't add -lc before -lgcc.
16225       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16226 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16227       $rm conftest*
16228       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16229
16230       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16231   (eval $ac_compile) 2>&5
16232   ac_status=$?
16233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234   (exit $ac_status); } 2>conftest.err; then
16235         soname=conftest
16236         lib=conftest
16237         libobjs=conftest.$ac_objext
16238         deplibs=
16239         wl=$lt_prog_compiler_wl
16240         pic_flag=$lt_prog_compiler_pic
16241         compiler_flags=-v
16242         linker_flags=-v
16243         verstring=
16244         output_objdir=.
16245         libname=conftest
16246         lt_save_allow_undefined_flag=$allow_undefined_flag
16247         allow_undefined_flag=
16248         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16249   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16250   ac_status=$?
16251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252   (exit $ac_status); }
16253         then
16254           archive_cmds_need_lc=no
16255         else
16256           archive_cmds_need_lc=yes
16257         fi
16258         allow_undefined_flag=$lt_save_allow_undefined_flag
16259       else
16260         cat conftest.err 1>&5
16261       fi
16262       $rm conftest*
16263       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16264 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16265       ;;
16266     esac
16267   fi
16268   ;;
16269 esac
16270
16271 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16272 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16273 library_names_spec=
16274 libname_spec='lib$name'
16275 soname_spec=
16276 shrext_cmds=".so"
16277 postinstall_cmds=
16278 postuninstall_cmds=
16279 finish_cmds=
16280 finish_eval=
16281 shlibpath_var=
16282 shlibpath_overrides_runpath=unknown
16283 version_type=none
16284 dynamic_linker="$host_os ld.so"
16285 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16286 if test "$GCC" = yes; then
16287   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16288   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16289     # if the path contains ";" then we assume it to be the separator
16290     # otherwise default to the standard path separator (i.e. ":") - it is
16291     # assumed that no part of a normal pathname contains ";" but that should
16292     # okay in the real world where ";" in dirpaths is itself problematic.
16293     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16294   else
16295     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16296   fi
16297 else
16298   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16299 fi
16300 need_lib_prefix=unknown
16301 hardcode_into_libs=no
16302
16303 # when you set need_version to no, make sure it does not cause -set_version
16304 # flags to be left without arguments
16305 need_version=unknown
16306
16307 case $host_os in
16308 aix3*)
16309   version_type=linux
16310   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16311   shlibpath_var=LIBPATH
16312
16313   # AIX 3 has no versioning support, so we append a major version to the name.
16314   soname_spec='${libname}${release}${shared_ext}$major'
16315   ;;
16316
16317 aix4* | aix5*)
16318   version_type=linux
16319   need_lib_prefix=no
16320   need_version=no
16321   hardcode_into_libs=yes
16322   if test "$host_cpu" = ia64; then
16323     # AIX 5 supports IA64
16324     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16325     shlibpath_var=LD_LIBRARY_PATH
16326   else
16327     # With GCC up to 2.95.x, collect2 would create an import file
16328     # for dependence libraries.  The import file would start with
16329     # the line `#! .'.  This would cause the generated library to
16330     # depend on `.', always an invalid library.  This was fixed in
16331     # development snapshots of GCC prior to 3.0.
16332     case $host_os in
16333       aix4 | aix4.[01] | aix4.[01].*)
16334       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16335            echo ' yes '
16336            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16337         :
16338       else
16339         can_build_shared=no
16340       fi
16341       ;;
16342     esac
16343     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16344     # soname into executable. Probably we can add versioning support to
16345     # collect2, so additional links can be useful in future.
16346     if test "$aix_use_runtimelinking" = yes; then
16347       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16348       # instead of lib<name>.a to let people know that these are not
16349       # typical AIX shared libraries.
16350       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16351     else
16352       # We preserve .a as extension for shared libraries through AIX4.2
16353       # and later when we are not doing run time linking.
16354       library_names_spec='${libname}${release}.a $libname.a'
16355       soname_spec='${libname}${release}${shared_ext}$major'
16356     fi
16357     shlibpath_var=LIBPATH
16358   fi
16359   ;;
16360
16361 amigaos*)
16362   library_names_spec='$libname.ixlibrary $libname.a'
16363   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16364   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'
16365   ;;
16366
16367 beos*)
16368   library_names_spec='${libname}${shared_ext}'
16369   dynamic_linker="$host_os ld.so"
16370   shlibpath_var=LIBRARY_PATH
16371   ;;
16372
16373 bsdi[45]*)
16374   version_type=linux
16375   need_version=no
16376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16377   soname_spec='${libname}${release}${shared_ext}$major'
16378   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16379   shlibpath_var=LD_LIBRARY_PATH
16380   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16381   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16382   # the default ld.so.conf also contains /usr/contrib/lib and
16383   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16384   # libtool to hard-code these into programs
16385   ;;
16386
16387 cygwin* | mingw* | pw32*)
16388   version_type=windows
16389   shrext_cmds=".dll"
16390   need_version=no
16391   need_lib_prefix=no
16392
16393   case $GCC,$host_os in
16394   yes,cygwin* | yes,mingw* | yes,pw32*)
16395     library_names_spec='$libname.dll.a'
16396     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16397     postinstall_cmds='base_file=`basename \${file}`~
16398       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16399       dldir=$destdir/`dirname \$dlpath`~
16400       test -d \$dldir || mkdir -p \$dldir~
16401       $install_prog $dir/$dlname \$dldir/$dlname~
16402       chmod a+x \$dldir/$dlname'
16403     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16404       dlpath=$dir/\$dldll~
16405        $rm \$dlpath'
16406     shlibpath_overrides_runpath=yes
16407
16408     case $host_os in
16409     cygwin*)
16410       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16411       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16412       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16413       ;;
16414     mingw*)
16415       # MinGW DLLs use traditional 'lib' prefix
16416       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16417       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16418       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16419         # It is most probably a Windows format PATH printed by
16420         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16421         # path with ; separators, and with drive letters. We can handle the
16422         # drive letters (cygwin fileutils understands them), so leave them,
16423         # especially as we might pass files found there to a mingw objdump,
16424         # which wouldn't understand a cygwinified path. Ahh.
16425         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16426       else
16427         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16428       fi
16429       ;;
16430     pw32*)
16431       # pw32 DLLs use 'pw' prefix rather than 'lib'
16432       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16433       ;;
16434     esac
16435     ;;
16436
16437   *)
16438     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16439     ;;
16440   esac
16441   dynamic_linker='Win32 ld.exe'
16442   # FIXME: first we should search . and the directory the executable is in
16443   shlibpath_var=PATH
16444   ;;
16445
16446 darwin* | rhapsody*)
16447   dynamic_linker="$host_os dyld"
16448   version_type=darwin
16449   need_lib_prefix=no
16450   need_version=no
16451   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16452   soname_spec='${libname}${release}${major}$shared_ext'
16453   shlibpath_overrides_runpath=yes
16454   shlibpath_var=DYLD_LIBRARY_PATH
16455   shrext_cmds='.dylib'
16456   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16457   if test "$GCC" = yes; then
16458     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"`
16459   else
16460     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16461   fi
16462   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16463   ;;
16464
16465 dgux*)
16466   version_type=linux
16467   need_lib_prefix=no
16468   need_version=no
16469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16470   soname_spec='${libname}${release}${shared_ext}$major'
16471   shlibpath_var=LD_LIBRARY_PATH
16472   ;;
16473
16474 freebsd1*)
16475   dynamic_linker=no
16476   ;;
16477
16478 kfreebsd*-gnu)
16479   version_type=linux
16480   need_lib_prefix=no
16481   need_version=no
16482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16483   soname_spec='${libname}${release}${shared_ext}$major'
16484   shlibpath_var=LD_LIBRARY_PATH
16485   shlibpath_overrides_runpath=no
16486   hardcode_into_libs=yes
16487   dynamic_linker='GNU ld.so'
16488   ;;
16489
16490 freebsd* | dragonfly*)
16491   # DragonFly does not have aout.  When/if they implement a new
16492   # versioning mechanism, adjust this.
16493   if test -x /usr/bin/objformat; then
16494     objformat=`/usr/bin/objformat`
16495   else
16496     case $host_os in
16497     freebsd[123]*) objformat=aout ;;
16498     *) objformat=elf ;;
16499     esac
16500   fi
16501   version_type=freebsd-$objformat
16502   case $version_type in
16503     freebsd-elf*)
16504       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16505       need_version=no
16506       need_lib_prefix=no
16507       ;;
16508     freebsd-*)
16509       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16510       need_version=yes
16511       ;;
16512   esac
16513   shlibpath_var=LD_LIBRARY_PATH
16514   case $host_os in
16515   freebsd2*)
16516     shlibpath_overrides_runpath=yes
16517     ;;
16518   freebsd3.[01]* | freebsdelf3.[01]*)
16519     shlibpath_overrides_runpath=yes
16520     hardcode_into_libs=yes
16521     ;;
16522   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16523   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16524     shlibpath_overrides_runpath=no
16525     hardcode_into_libs=yes
16526     ;;
16527   freebsd*) # from 4.6 on
16528     shlibpath_overrides_runpath=yes
16529     hardcode_into_libs=yes
16530     ;;
16531   esac
16532   ;;
16533
16534 gnu*)
16535   version_type=linux
16536   need_lib_prefix=no
16537   need_version=no
16538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16539   soname_spec='${libname}${release}${shared_ext}$major'
16540   shlibpath_var=LD_LIBRARY_PATH
16541   hardcode_into_libs=yes
16542   ;;
16543
16544 hpux9* | hpux10* | hpux11*)
16545   # Give a soname corresponding to the major version so that dld.sl refuses to
16546   # link against other versions.
16547   version_type=sunos
16548   need_lib_prefix=no
16549   need_version=no
16550   case $host_cpu in
16551   ia64*)
16552     shrext_cmds='.so'
16553     hardcode_into_libs=yes
16554     dynamic_linker="$host_os dld.so"
16555     shlibpath_var=LD_LIBRARY_PATH
16556     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16558     soname_spec='${libname}${release}${shared_ext}$major'
16559     if test "X$HPUX_IA64_MODE" = X32; then
16560       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16561     else
16562       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16563     fi
16564     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16565     ;;
16566    hppa*64*)
16567      shrext_cmds='.sl'
16568      hardcode_into_libs=yes
16569      dynamic_linker="$host_os dld.sl"
16570      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16571      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16572      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16573      soname_spec='${libname}${release}${shared_ext}$major'
16574      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16575      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16576      ;;
16577    *)
16578     shrext_cmds='.sl'
16579     dynamic_linker="$host_os dld.sl"
16580     shlibpath_var=SHLIB_PATH
16581     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16582     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16583     soname_spec='${libname}${release}${shared_ext}$major'
16584     ;;
16585   esac
16586   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16587   postinstall_cmds='chmod 555 $lib'
16588   ;;
16589
16590 interix3*)
16591   version_type=linux
16592   need_lib_prefix=no
16593   need_version=no
16594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16595   soname_spec='${libname}${release}${shared_ext}$major'
16596   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16597   shlibpath_var=LD_LIBRARY_PATH
16598   shlibpath_overrides_runpath=no
16599   hardcode_into_libs=yes
16600   ;;
16601
16602 irix5* | irix6* | nonstopux*)
16603   case $host_os in
16604     nonstopux*) version_type=nonstopux ;;
16605     *)
16606         if test "$lt_cv_prog_gnu_ld" = yes; then
16607                 version_type=linux
16608         else
16609                 version_type=irix
16610         fi ;;
16611   esac
16612   need_lib_prefix=no
16613   need_version=no
16614   soname_spec='${libname}${release}${shared_ext}$major'
16615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16616   case $host_os in
16617   irix5* | nonstopux*)
16618     libsuff= shlibsuff=
16619     ;;
16620   *)
16621     case $LD in # libtool.m4 will add one of these switches to LD
16622     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16623       libsuff= shlibsuff= libmagic=32-bit;;
16624     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16625       libsuff=32 shlibsuff=N32 libmagic=N32;;
16626     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16627       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16628     *) libsuff= shlibsuff= libmagic=never-match;;
16629     esac
16630     ;;
16631   esac
16632   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16633   shlibpath_overrides_runpath=no
16634   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16635   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16636   hardcode_into_libs=yes
16637   ;;
16638
16639 # No shared lib support for Linux oldld, aout, or coff.
16640 linux*oldld* | linux*aout* | linux*coff*)
16641   dynamic_linker=no
16642   ;;
16643
16644 # This must be Linux ELF.
16645 linux*)
16646   version_type=linux
16647   need_lib_prefix=no
16648   need_version=no
16649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16650   soname_spec='${libname}${release}${shared_ext}$major'
16651   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16652   shlibpath_var=LD_LIBRARY_PATH
16653   shlibpath_overrides_runpath=no
16654   # This implies no fast_install, which is unacceptable.
16655   # Some rework will be needed to allow for fast_install
16656   # before this can be enabled.
16657   hardcode_into_libs=yes
16658
16659   # Append ld.so.conf contents to the search path
16660   if test -f /etc/ld.so.conf; then
16661     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' ' '`
16662     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16663   fi
16664
16665   # We used to test for /lib/ld.so.1 and disable shared libraries on
16666   # powerpc, because MkLinux only supported shared libraries with the
16667   # GNU dynamic linker.  Since this was broken with cross compilers,
16668   # most powerpc-linux boxes support dynamic linking these days and
16669   # people can always --disable-shared, the test was removed, and we
16670   # assume the GNU/Linux dynamic linker is in use.
16671   dynamic_linker='GNU/Linux ld.so'
16672   ;;
16673
16674 knetbsd*-gnu)
16675   version_type=linux
16676   need_lib_prefix=no
16677   need_version=no
16678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16679   soname_spec='${libname}${release}${shared_ext}$major'
16680   shlibpath_var=LD_LIBRARY_PATH
16681   shlibpath_overrides_runpath=no
16682   hardcode_into_libs=yes
16683   dynamic_linker='GNU ld.so'
16684   ;;
16685
16686 netbsd*)
16687   version_type=sunos
16688   need_lib_prefix=no
16689   need_version=no
16690   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16691     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16692     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16693     dynamic_linker='NetBSD (a.out) ld.so'
16694   else
16695     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16696     soname_spec='${libname}${release}${shared_ext}$major'
16697     dynamic_linker='NetBSD ld.elf_so'
16698   fi
16699   shlibpath_var=LD_LIBRARY_PATH
16700   shlibpath_overrides_runpath=yes
16701   hardcode_into_libs=yes
16702   ;;
16703
16704 newsos6)
16705   version_type=linux
16706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707   shlibpath_var=LD_LIBRARY_PATH
16708   shlibpath_overrides_runpath=yes
16709   ;;
16710
16711 nto-qnx*)
16712   version_type=linux
16713   need_lib_prefix=no
16714   need_version=no
16715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16716   soname_spec='${libname}${release}${shared_ext}$major'
16717   shlibpath_var=LD_LIBRARY_PATH
16718   shlibpath_overrides_runpath=yes
16719   ;;
16720
16721 openbsd*)
16722   version_type=sunos
16723   sys_lib_dlsearch_path_spec="/usr/lib"
16724   need_lib_prefix=no
16725   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16726   case $host_os in
16727     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16728     *)                         need_version=no  ;;
16729   esac
16730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16731   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16732   shlibpath_var=LD_LIBRARY_PATH
16733   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16734     case $host_os in
16735       openbsd2.[89] | openbsd2.[89].*)
16736         shlibpath_overrides_runpath=no
16737         ;;
16738       *)
16739         shlibpath_overrides_runpath=yes
16740         ;;
16741       esac
16742   else
16743     shlibpath_overrides_runpath=yes
16744   fi
16745   ;;
16746
16747 os2*)
16748   libname_spec='$name'
16749   shrext_cmds=".dll"
16750   need_lib_prefix=no
16751   library_names_spec='$libname${shared_ext} $libname.a'
16752   dynamic_linker='OS/2 ld.exe'
16753   shlibpath_var=LIBPATH
16754   ;;
16755
16756 osf3* | osf4* | osf5*)
16757   version_type=osf
16758   need_lib_prefix=no
16759   need_version=no
16760   soname_spec='${libname}${release}${shared_ext}$major'
16761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16762   shlibpath_var=LD_LIBRARY_PATH
16763   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16764   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16765   ;;
16766
16767 solaris*)
16768   version_type=linux
16769   need_lib_prefix=no
16770   need_version=no
16771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16772   soname_spec='${libname}${release}${shared_ext}$major'
16773   shlibpath_var=LD_LIBRARY_PATH
16774   shlibpath_overrides_runpath=yes
16775   hardcode_into_libs=yes
16776   # ldd complains unless libraries are executable
16777   postinstall_cmds='chmod +x $lib'
16778   ;;
16779
16780 sunos4*)
16781   version_type=sunos
16782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16783   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16784   shlibpath_var=LD_LIBRARY_PATH
16785   shlibpath_overrides_runpath=yes
16786   if test "$with_gnu_ld" = yes; then
16787     need_lib_prefix=no
16788   fi
16789   need_version=yes
16790   ;;
16791
16792 sysv4 | sysv4.3*)
16793   version_type=linux
16794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16795   soname_spec='${libname}${release}${shared_ext}$major'
16796   shlibpath_var=LD_LIBRARY_PATH
16797   case $host_vendor in
16798     sni)
16799       shlibpath_overrides_runpath=no
16800       need_lib_prefix=no
16801       export_dynamic_flag_spec='${wl}-Blargedynsym'
16802       runpath_var=LD_RUN_PATH
16803       ;;
16804     siemens)
16805       need_lib_prefix=no
16806       ;;
16807     motorola)
16808       need_lib_prefix=no
16809       need_version=no
16810       shlibpath_overrides_runpath=no
16811       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16812       ;;
16813   esac
16814   ;;
16815
16816 sysv4*MP*)
16817   if test -d /usr/nec ;then
16818     version_type=linux
16819     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16820     soname_spec='$libname${shared_ext}.$major'
16821     shlibpath_var=LD_LIBRARY_PATH
16822   fi
16823   ;;
16824
16825 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16826   version_type=freebsd-elf
16827   need_lib_prefix=no
16828   need_version=no
16829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16830   soname_spec='${libname}${release}${shared_ext}$major'
16831   shlibpath_var=LD_LIBRARY_PATH
16832   hardcode_into_libs=yes
16833   if test "$with_gnu_ld" = yes; then
16834     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16835     shlibpath_overrides_runpath=no
16836   else
16837     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16838     shlibpath_overrides_runpath=yes
16839     case $host_os in
16840       sco3.2v5*)
16841         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16842         ;;
16843     esac
16844   fi
16845   sys_lib_dlsearch_path_spec='/usr/lib'
16846   ;;
16847
16848 uts4*)
16849   version_type=linux
16850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851   soname_spec='${libname}${release}${shared_ext}$major'
16852   shlibpath_var=LD_LIBRARY_PATH
16853   ;;
16854
16855 *)
16856   dynamic_linker=no
16857   ;;
16858 esac
16859 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16860 echo "${ECHO_T}$dynamic_linker" >&6; }
16861 test "$dynamic_linker" = no && can_build_shared=no
16862
16863 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16864 if test "$GCC" = yes; then
16865   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16866 fi
16867
16868 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16869 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16870 hardcode_action=
16871 if test -n "$hardcode_libdir_flag_spec" || \
16872    test -n "$runpath_var" || \
16873    test "X$hardcode_automatic" = "Xyes" ; then
16874
16875   # We can hardcode non-existant directories.
16876   if test "$hardcode_direct" != no &&
16877      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16878      # have to relink, otherwise we might link with an installed library
16879      # when we should be linking with a yet-to-be-installed one
16880      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16881      test "$hardcode_minus_L" != no; then
16882     # Linking always hardcodes the temporary library directory.
16883     hardcode_action=relink
16884   else
16885     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16886     hardcode_action=immediate
16887   fi
16888 else
16889   # We cannot hardcode anything, or else we can only hardcode existing
16890   # directories.
16891   hardcode_action=unsupported
16892 fi
16893 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16894 echo "${ECHO_T}$hardcode_action" >&6; }
16895
16896 if test "$hardcode_action" = relink; then
16897   # Fast installation is not supported
16898   enable_fast_install=no
16899 elif test "$shlibpath_overrides_runpath" = yes ||
16900      test "$enable_shared" = no; then
16901   # Fast installation is not necessary
16902   enable_fast_install=needless
16903 fi
16904
16905 striplib=
16906 old_striplib=
16907 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16908 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16909 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16910   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16911   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16912   { echo "$as_me:$LINENO: result: yes" >&5
16913 echo "${ECHO_T}yes" >&6; }
16914 else
16915 # FIXME - insert some real tests, host_os isn't really good enough
16916   case $host_os in
16917    darwin*)
16918        if test -n "$STRIP" ; then
16919          striplib="$STRIP -x"
16920          { echo "$as_me:$LINENO: result: yes" >&5
16921 echo "${ECHO_T}yes" >&6; }
16922        else
16923   { echo "$as_me:$LINENO: result: no" >&5
16924 echo "${ECHO_T}no" >&6; }
16925 fi
16926        ;;
16927    *)
16928   { echo "$as_me:$LINENO: result: no" >&5
16929 echo "${ECHO_T}no" >&6; }
16930     ;;
16931   esac
16932 fi
16933
16934 if test "x$enable_dlopen" != xyes; then
16935   enable_dlopen=unknown
16936   enable_dlopen_self=unknown
16937   enable_dlopen_self_static=unknown
16938 else
16939   lt_cv_dlopen=no
16940   lt_cv_dlopen_libs=
16941
16942   case $host_os in
16943   beos*)
16944     lt_cv_dlopen="load_add_on"
16945     lt_cv_dlopen_libs=
16946     lt_cv_dlopen_self=yes
16947     ;;
16948
16949   mingw* | pw32*)
16950     lt_cv_dlopen="LoadLibrary"
16951     lt_cv_dlopen_libs=
16952    ;;
16953
16954   cygwin*)
16955     lt_cv_dlopen="dlopen"
16956     lt_cv_dlopen_libs=
16957    ;;
16958
16959   darwin*)
16960   # if libdl is installed we need to link against it
16961     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16962 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16963 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16964   echo $ECHO_N "(cached) $ECHO_C" >&6
16965 else
16966   ac_check_lib_save_LIBS=$LIBS
16967 LIBS="-ldl  $LIBS"
16968 cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h.  */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h.  */
16974
16975 /* Override any GCC internal prototype to avoid an error.
16976    Use char because int might match the return type of a GCC
16977    builtin and then its argument prototype would still apply.  */
16978 #ifdef __cplusplus
16979 extern "C"
16980 #endif
16981 char dlopen ();
16982 int
16983 main ()
16984 {
16985 return dlopen ();
16986   ;
16987   return 0;
16988 }
16989 _ACEOF
16990 rm -f conftest.$ac_objext conftest$ac_exeext
16991 if { (ac_try="$ac_link"
16992 case "(($ac_try" in
16993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16994   *) ac_try_echo=$ac_try;;
16995 esac
16996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997   (eval "$ac_link") 2>conftest.er1
16998   ac_status=$?
16999   grep -v '^ *+' conftest.er1 >conftest.err
17000   rm -f conftest.er1
17001   cat conftest.err >&5
17002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003   (exit $ac_status); } &&
17004          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17005   { (case "(($ac_try" in
17006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007   *) ac_try_echo=$ac_try;;
17008 esac
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010   (eval "$ac_try") 2>&5
17011   ac_status=$?
17012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013   (exit $ac_status); }; } &&
17014          { ac_try='test -s conftest$ac_exeext'
17015   { (case "(($ac_try" in
17016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017   *) ac_try_echo=$ac_try;;
17018 esac
17019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020   (eval "$ac_try") 2>&5
17021   ac_status=$?
17022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023   (exit $ac_status); }; }; then
17024   ac_cv_lib_dl_dlopen=yes
17025 else
17026   echo "$as_me: failed program was:" >&5
17027 sed 's/^/| /' conftest.$ac_ext >&5
17028
17029         ac_cv_lib_dl_dlopen=no
17030 fi
17031
17032 rm -f core conftest.err conftest.$ac_objext \
17033       conftest$ac_exeext conftest.$ac_ext
17034 LIBS=$ac_check_lib_save_LIBS
17035 fi
17036 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17037 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17038 if test $ac_cv_lib_dl_dlopen = yes; then
17039   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17040 else
17041
17042     lt_cv_dlopen="dyld"
17043     lt_cv_dlopen_libs=
17044     lt_cv_dlopen_self=yes
17045
17046 fi
17047
17048    ;;
17049
17050   *)
17051     { echo "$as_me:$LINENO: checking for shl_load" >&5
17052 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17053 if test "${ac_cv_func_shl_load+set}" = set; then
17054   echo $ECHO_N "(cached) $ECHO_C" >&6
17055 else
17056   cat >conftest.$ac_ext <<_ACEOF
17057 /* confdefs.h.  */
17058 _ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h.  */
17062 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17064 #define shl_load innocuous_shl_load
17065
17066 /* System header to define __stub macros and hopefully few prototypes,
17067     which can conflict with char shl_load (); below.
17068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17069     <limits.h> exists even on freestanding compilers.  */
17070
17071 #ifdef __STDC__
17072 # include <limits.h>
17073 #else
17074 # include <assert.h>
17075 #endif
17076
17077 #undef shl_load
17078
17079 /* Override any GCC internal prototype to avoid an error.
17080    Use char because int might match the return type of a GCC
17081    builtin and then its argument prototype would still apply.  */
17082 #ifdef __cplusplus
17083 extern "C"
17084 #endif
17085 char shl_load ();
17086 /* The GNU C library defines this for functions which it implements
17087     to always fail with ENOSYS.  Some functions are actually named
17088     something starting with __ and the normal name is an alias.  */
17089 #if defined __stub_shl_load || defined __stub___shl_load
17090 choke me
17091 #endif
17092
17093 int
17094 main ()
17095 {
17096 return shl_load ();
17097   ;
17098   return 0;
17099 }
17100 _ACEOF
17101 rm -f conftest.$ac_objext conftest$ac_exeext
17102 if { (ac_try="$ac_link"
17103 case "(($ac_try" in
17104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17105   *) ac_try_echo=$ac_try;;
17106 esac
17107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108   (eval "$ac_link") 2>conftest.er1
17109   ac_status=$?
17110   grep -v '^ *+' conftest.er1 >conftest.err
17111   rm -f conftest.er1
17112   cat conftest.err >&5
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); } &&
17115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17116   { (case "(($ac_try" in
17117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118   *) ac_try_echo=$ac_try;;
17119 esac
17120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121   (eval "$ac_try") 2>&5
17122   ac_status=$?
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); }; } &&
17125          { ac_try='test -s conftest$ac_exeext'
17126   { (case "(($ac_try" in
17127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128   *) ac_try_echo=$ac_try;;
17129 esac
17130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131   (eval "$ac_try") 2>&5
17132   ac_status=$?
17133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134   (exit $ac_status); }; }; then
17135   ac_cv_func_shl_load=yes
17136 else
17137   echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17139
17140         ac_cv_func_shl_load=no
17141 fi
17142
17143 rm -f core conftest.err conftest.$ac_objext \
17144       conftest$ac_exeext conftest.$ac_ext
17145 fi
17146 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17147 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17148 if test $ac_cv_func_shl_load = yes; then
17149   lt_cv_dlopen="shl_load"
17150 else
17151   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17152 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17153 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17154   echo $ECHO_N "(cached) $ECHO_C" >&6
17155 else
17156   ac_check_lib_save_LIBS=$LIBS
17157 LIBS="-ldld  $LIBS"
17158 cat >conftest.$ac_ext <<_ACEOF
17159 /* confdefs.h.  */
17160 _ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h.  */
17164
17165 /* Override any GCC internal prototype to avoid an error.
17166    Use char because int might match the return type of a GCC
17167    builtin and then its argument prototype would still apply.  */
17168 #ifdef __cplusplus
17169 extern "C"
17170 #endif
17171 char shl_load ();
17172 int
17173 main ()
17174 {
17175 return shl_load ();
17176   ;
17177   return 0;
17178 }
17179 _ACEOF
17180 rm -f conftest.$ac_objext conftest$ac_exeext
17181 if { (ac_try="$ac_link"
17182 case "(($ac_try" in
17183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184   *) ac_try_echo=$ac_try;;
17185 esac
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187   (eval "$ac_link") 2>conftest.er1
17188   ac_status=$?
17189   grep -v '^ *+' conftest.er1 >conftest.err
17190   rm -f conftest.er1
17191   cat conftest.err >&5
17192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193   (exit $ac_status); } &&
17194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17195   { (case "(($ac_try" in
17196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197   *) ac_try_echo=$ac_try;;
17198 esac
17199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200   (eval "$ac_try") 2>&5
17201   ac_status=$?
17202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203   (exit $ac_status); }; } &&
17204          { ac_try='test -s conftest$ac_exeext'
17205   { (case "(($ac_try" in
17206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207   *) ac_try_echo=$ac_try;;
17208 esac
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210   (eval "$ac_try") 2>&5
17211   ac_status=$?
17212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213   (exit $ac_status); }; }; then
17214   ac_cv_lib_dld_shl_load=yes
17215 else
17216   echo "$as_me: failed program was:" >&5
17217 sed 's/^/| /' conftest.$ac_ext >&5
17218
17219         ac_cv_lib_dld_shl_load=no
17220 fi
17221
17222 rm -f core conftest.err conftest.$ac_objext \
17223       conftest$ac_exeext conftest.$ac_ext
17224 LIBS=$ac_check_lib_save_LIBS
17225 fi
17226 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17227 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17228 if test $ac_cv_lib_dld_shl_load = yes; then
17229   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17230 else
17231   { echo "$as_me:$LINENO: checking for dlopen" >&5
17232 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17233 if test "${ac_cv_func_dlopen+set}" = set; then
17234   echo $ECHO_N "(cached) $ECHO_C" >&6
17235 else
17236   cat >conftest.$ac_ext <<_ACEOF
17237 /* confdefs.h.  */
17238 _ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h.  */
17242 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17244 #define dlopen innocuous_dlopen
17245
17246 /* System header to define __stub macros and hopefully few prototypes,
17247     which can conflict with char dlopen (); below.
17248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17249     <limits.h> exists even on freestanding compilers.  */
17250
17251 #ifdef __STDC__
17252 # include <limits.h>
17253 #else
17254 # include <assert.h>
17255 #endif
17256
17257 #undef dlopen
17258
17259 /* Override any GCC internal prototype to avoid an error.
17260    Use char because int might match the return type of a GCC
17261    builtin and then its argument prototype would still apply.  */
17262 #ifdef __cplusplus
17263 extern "C"
17264 #endif
17265 char dlopen ();
17266 /* The GNU C library defines this for functions which it implements
17267     to always fail with ENOSYS.  Some functions are actually named
17268     something starting with __ and the normal name is an alias.  */
17269 #if defined __stub_dlopen || defined __stub___dlopen
17270 choke me
17271 #endif
17272
17273 int
17274 main ()
17275 {
17276 return dlopen ();
17277   ;
17278   return 0;
17279 }
17280 _ACEOF
17281 rm -f conftest.$ac_objext conftest$ac_exeext
17282 if { (ac_try="$ac_link"
17283 case "(($ac_try" in
17284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285   *) ac_try_echo=$ac_try;;
17286 esac
17287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288   (eval "$ac_link") 2>conftest.er1
17289   ac_status=$?
17290   grep -v '^ *+' conftest.er1 >conftest.err
17291   rm -f conftest.er1
17292   cat conftest.err >&5
17293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294   (exit $ac_status); } &&
17295          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17296   { (case "(($ac_try" in
17297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298   *) ac_try_echo=$ac_try;;
17299 esac
17300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17301   (eval "$ac_try") 2>&5
17302   ac_status=$?
17303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); }; } &&
17305          { ac_try='test -s conftest$ac_exeext'
17306   { (case "(($ac_try" in
17307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308   *) ac_try_echo=$ac_try;;
17309 esac
17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311   (eval "$ac_try") 2>&5
17312   ac_status=$?
17313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314   (exit $ac_status); }; }; then
17315   ac_cv_func_dlopen=yes
17316 else
17317   echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17319
17320         ac_cv_func_dlopen=no
17321 fi
17322
17323 rm -f core conftest.err conftest.$ac_objext \
17324       conftest$ac_exeext conftest.$ac_ext
17325 fi
17326 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17327 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17328 if test $ac_cv_func_dlopen = yes; then
17329   lt_cv_dlopen="dlopen"
17330 else
17331   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17332 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17333 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17334   echo $ECHO_N "(cached) $ECHO_C" >&6
17335 else
17336   ac_check_lib_save_LIBS=$LIBS
17337 LIBS="-ldl  $LIBS"
17338 cat >conftest.$ac_ext <<_ACEOF
17339 /* confdefs.h.  */
17340 _ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h.  */
17344
17345 /* Override any GCC internal prototype to avoid an error.
17346    Use char because int might match the return type of a GCC
17347    builtin and then its argument prototype would still apply.  */
17348 #ifdef __cplusplus
17349 extern "C"
17350 #endif
17351 char dlopen ();
17352 int
17353 main ()
17354 {
17355 return dlopen ();
17356   ;
17357   return 0;
17358 }
17359 _ACEOF
17360 rm -f conftest.$ac_objext conftest$ac_exeext
17361 if { (ac_try="$ac_link"
17362 case "(($ac_try" in
17363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364   *) ac_try_echo=$ac_try;;
17365 esac
17366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367   (eval "$ac_link") 2>conftest.er1
17368   ac_status=$?
17369   grep -v '^ *+' conftest.er1 >conftest.err
17370   rm -f conftest.er1
17371   cat conftest.err >&5
17372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373   (exit $ac_status); } &&
17374          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17375   { (case "(($ac_try" in
17376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377   *) ac_try_echo=$ac_try;;
17378 esac
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380   (eval "$ac_try") 2>&5
17381   ac_status=$?
17382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383   (exit $ac_status); }; } &&
17384          { ac_try='test -s conftest$ac_exeext'
17385   { (case "(($ac_try" in
17386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387   *) ac_try_echo=$ac_try;;
17388 esac
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390   (eval "$ac_try") 2>&5
17391   ac_status=$?
17392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393   (exit $ac_status); }; }; then
17394   ac_cv_lib_dl_dlopen=yes
17395 else
17396   echo "$as_me: failed program was:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17398
17399         ac_cv_lib_dl_dlopen=no
17400 fi
17401
17402 rm -f core conftest.err conftest.$ac_objext \
17403       conftest$ac_exeext conftest.$ac_ext
17404 LIBS=$ac_check_lib_save_LIBS
17405 fi
17406 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17407 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17408 if test $ac_cv_lib_dl_dlopen = yes; then
17409   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17410 else
17411   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17412 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17413 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17414   echo $ECHO_N "(cached) $ECHO_C" >&6
17415 else
17416   ac_check_lib_save_LIBS=$LIBS
17417 LIBS="-lsvld  $LIBS"
17418 cat >conftest.$ac_ext <<_ACEOF
17419 /* confdefs.h.  */
17420 _ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h.  */
17424
17425 /* Override any GCC internal prototype to avoid an error.
17426    Use char because int might match the return type of a GCC
17427    builtin and then its argument prototype would still apply.  */
17428 #ifdef __cplusplus
17429 extern "C"
17430 #endif
17431 char dlopen ();
17432 int
17433 main ()
17434 {
17435 return dlopen ();
17436   ;
17437   return 0;
17438 }
17439 _ACEOF
17440 rm -f conftest.$ac_objext conftest$ac_exeext
17441 if { (ac_try="$ac_link"
17442 case "(($ac_try" in
17443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444   *) ac_try_echo=$ac_try;;
17445 esac
17446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447   (eval "$ac_link") 2>conftest.er1
17448   ac_status=$?
17449   grep -v '^ *+' conftest.er1 >conftest.err
17450   rm -f conftest.er1
17451   cat conftest.err >&5
17452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453   (exit $ac_status); } &&
17454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17455   { (case "(($ac_try" in
17456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457   *) ac_try_echo=$ac_try;;
17458 esac
17459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460   (eval "$ac_try") 2>&5
17461   ac_status=$?
17462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463   (exit $ac_status); }; } &&
17464          { ac_try='test -s conftest$ac_exeext'
17465   { (case "(($ac_try" in
17466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17467   *) ac_try_echo=$ac_try;;
17468 esac
17469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17470   (eval "$ac_try") 2>&5
17471   ac_status=$?
17472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473   (exit $ac_status); }; }; then
17474   ac_cv_lib_svld_dlopen=yes
17475 else
17476   echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.$ac_ext >&5
17478
17479         ac_cv_lib_svld_dlopen=no
17480 fi
17481
17482 rm -f core conftest.err conftest.$ac_objext \
17483       conftest$ac_exeext conftest.$ac_ext
17484 LIBS=$ac_check_lib_save_LIBS
17485 fi
17486 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17487 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17488 if test $ac_cv_lib_svld_dlopen = yes; then
17489   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17490 else
17491   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17492 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17493 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17494   echo $ECHO_N "(cached) $ECHO_C" >&6
17495 else
17496   ac_check_lib_save_LIBS=$LIBS
17497 LIBS="-ldld  $LIBS"
17498 cat >conftest.$ac_ext <<_ACEOF
17499 /* confdefs.h.  */
17500 _ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h.  */
17504
17505 /* Override any GCC internal prototype to avoid an error.
17506    Use char because int might match the return type of a GCC
17507    builtin and then its argument prototype would still apply.  */
17508 #ifdef __cplusplus
17509 extern "C"
17510 #endif
17511 char dld_link ();
17512 int
17513 main ()
17514 {
17515 return dld_link ();
17516   ;
17517   return 0;
17518 }
17519 _ACEOF
17520 rm -f conftest.$ac_objext conftest$ac_exeext
17521 if { (ac_try="$ac_link"
17522 case "(($ac_try" in
17523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524   *) ac_try_echo=$ac_try;;
17525 esac
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527   (eval "$ac_link") 2>conftest.er1
17528   ac_status=$?
17529   grep -v '^ *+' conftest.er1 >conftest.err
17530   rm -f conftest.er1
17531   cat conftest.err >&5
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); } &&
17534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17535   { (case "(($ac_try" in
17536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17537   *) ac_try_echo=$ac_try;;
17538 esac
17539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17540   (eval "$ac_try") 2>&5
17541   ac_status=$?
17542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543   (exit $ac_status); }; } &&
17544          { ac_try='test -s conftest$ac_exeext'
17545   { (case "(($ac_try" in
17546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547   *) ac_try_echo=$ac_try;;
17548 esac
17549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550   (eval "$ac_try") 2>&5
17551   ac_status=$?
17552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553   (exit $ac_status); }; }; then
17554   ac_cv_lib_dld_dld_link=yes
17555 else
17556   echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17558
17559         ac_cv_lib_dld_dld_link=no
17560 fi
17561
17562 rm -f core conftest.err conftest.$ac_objext \
17563       conftest$ac_exeext conftest.$ac_ext
17564 LIBS=$ac_check_lib_save_LIBS
17565 fi
17566 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17567 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17568 if test $ac_cv_lib_dld_dld_link = yes; then
17569   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17570 fi
17571
17572
17573 fi
17574
17575
17576 fi
17577
17578
17579 fi
17580
17581
17582 fi
17583
17584
17585 fi
17586
17587     ;;
17588   esac
17589
17590   if test "x$lt_cv_dlopen" != xno; then
17591     enable_dlopen=yes
17592   else
17593     enable_dlopen=no
17594   fi
17595
17596   case $lt_cv_dlopen in
17597   dlopen)
17598     save_CPPFLAGS="$CPPFLAGS"
17599     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17600
17601     save_LDFLAGS="$LDFLAGS"
17602     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17603
17604     save_LIBS="$LIBS"
17605     LIBS="$lt_cv_dlopen_libs $LIBS"
17606
17607     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17608 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17609 if test "${lt_cv_dlopen_self+set}" = set; then
17610   echo $ECHO_N "(cached) $ECHO_C" >&6
17611 else
17612           if test "$cross_compiling" = yes; then :
17613   lt_cv_dlopen_self=cross
17614 else
17615   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17616   lt_status=$lt_dlunknown
17617   cat > conftest.$ac_ext <<EOF
17618 #line 17618 "configure"
17619 #include "confdefs.h"
17620
17621 #if HAVE_DLFCN_H
17622 #include <dlfcn.h>
17623 #endif
17624
17625 #include <stdio.h>
17626
17627 #ifdef RTLD_GLOBAL
17628 #  define LT_DLGLOBAL           RTLD_GLOBAL
17629 #else
17630 #  ifdef DL_GLOBAL
17631 #    define LT_DLGLOBAL         DL_GLOBAL
17632 #  else
17633 #    define LT_DLGLOBAL         0
17634 #  endif
17635 #endif
17636
17637 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17638    find out it does not work in some platform. */
17639 #ifndef LT_DLLAZY_OR_NOW
17640 #  ifdef RTLD_LAZY
17641 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17642 #  else
17643 #    ifdef DL_LAZY
17644 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17645 #    else
17646 #      ifdef RTLD_NOW
17647 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17648 #      else
17649 #        ifdef DL_NOW
17650 #          define LT_DLLAZY_OR_NOW      DL_NOW
17651 #        else
17652 #          define LT_DLLAZY_OR_NOW      0
17653 #        endif
17654 #      endif
17655 #    endif
17656 #  endif
17657 #endif
17658
17659 #ifdef __cplusplus
17660 extern "C" void exit (int);
17661 #endif
17662
17663 void fnord() { int i=42;}
17664 int main ()
17665 {
17666   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17667   int status = $lt_dlunknown;
17668
17669   if (self)
17670     {
17671       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17672       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17673       /* dlclose (self); */
17674     }
17675   else
17676     puts (dlerror ());
17677
17678     exit (status);
17679 }
17680 EOF
17681   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17682   (eval $ac_link) 2>&5
17683   ac_status=$?
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17686     (./conftest; exit; ) >&5 2>/dev/null
17687     lt_status=$?
17688     case x$lt_status in
17689       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17690       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17691       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17692     esac
17693   else :
17694     # compilation failed
17695     lt_cv_dlopen_self=no
17696   fi
17697 fi
17698 rm -fr conftest*
17699
17700
17701 fi
17702 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17703 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17704
17705     if test "x$lt_cv_dlopen_self" = xyes; then
17706       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17707       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17708 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17709 if test "${lt_cv_dlopen_self_static+set}" = set; then
17710   echo $ECHO_N "(cached) $ECHO_C" >&6
17711 else
17712           if test "$cross_compiling" = yes; then :
17713   lt_cv_dlopen_self_static=cross
17714 else
17715   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17716   lt_status=$lt_dlunknown
17717   cat > conftest.$ac_ext <<EOF
17718 #line 17718 "configure"
17719 #include "confdefs.h"
17720
17721 #if HAVE_DLFCN_H
17722 #include <dlfcn.h>
17723 #endif
17724
17725 #include <stdio.h>
17726
17727 #ifdef RTLD_GLOBAL
17728 #  define LT_DLGLOBAL           RTLD_GLOBAL
17729 #else
17730 #  ifdef DL_GLOBAL
17731 #    define LT_DLGLOBAL         DL_GLOBAL
17732 #  else
17733 #    define LT_DLGLOBAL         0
17734 #  endif
17735 #endif
17736
17737 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17738    find out it does not work in some platform. */
17739 #ifndef LT_DLLAZY_OR_NOW
17740 #  ifdef RTLD_LAZY
17741 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17742 #  else
17743 #    ifdef DL_LAZY
17744 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17745 #    else
17746 #      ifdef RTLD_NOW
17747 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17748 #      else
17749 #        ifdef DL_NOW
17750 #          define LT_DLLAZY_OR_NOW      DL_NOW
17751 #        else
17752 #          define LT_DLLAZY_OR_NOW      0
17753 #        endif
17754 #      endif
17755 #    endif
17756 #  endif
17757 #endif
17758
17759 #ifdef __cplusplus
17760 extern "C" void exit (int);
17761 #endif
17762
17763 void fnord() { int i=42;}
17764 int main ()
17765 {
17766   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17767   int status = $lt_dlunknown;
17768
17769   if (self)
17770     {
17771       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17772       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17773       /* dlclose (self); */
17774     }
17775   else
17776     puts (dlerror ());
17777
17778     exit (status);
17779 }
17780 EOF
17781   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17782   (eval $ac_link) 2>&5
17783   ac_status=$?
17784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17786     (./conftest; exit; ) >&5 2>/dev/null
17787     lt_status=$?
17788     case x$lt_status in
17789       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17790       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17791       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17792     esac
17793   else :
17794     # compilation failed
17795     lt_cv_dlopen_self_static=no
17796   fi
17797 fi
17798 rm -fr conftest*
17799
17800
17801 fi
17802 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17803 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17804     fi
17805
17806     CPPFLAGS="$save_CPPFLAGS"
17807     LDFLAGS="$save_LDFLAGS"
17808     LIBS="$save_LIBS"
17809     ;;
17810   esac
17811
17812   case $lt_cv_dlopen_self in
17813   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17814   *) enable_dlopen_self=unknown ;;
17815   esac
17816
17817   case $lt_cv_dlopen_self_static in
17818   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17819   *) enable_dlopen_self_static=unknown ;;
17820   esac
17821 fi
17822
17823
17824 # Report which library types will actually be built
17825 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17826 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17827 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17828 echo "${ECHO_T}$can_build_shared" >&6; }
17829
17830 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17831 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17832 test "$can_build_shared" = "no" && enable_shared=no
17833
17834 # On AIX, shared libraries and static libraries use the same namespace, and
17835 # are all built from PIC.
17836 case $host_os in
17837 aix3*)
17838   test "$enable_shared" = yes && enable_static=no
17839   if test -n "$RANLIB"; then
17840     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17841     postinstall_cmds='$RANLIB $lib'
17842   fi
17843   ;;
17844
17845 aix4* | aix5*)
17846   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17847     test "$enable_shared" = yes && enable_static=no
17848   fi
17849     ;;
17850 esac
17851 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17852 echo "${ECHO_T}$enable_shared" >&6; }
17853
17854 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17855 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17856 # Make sure either enable_shared or enable_static is yes.
17857 test "$enable_shared" = yes || enable_static=yes
17858 { echo "$as_me:$LINENO: result: $enable_static" >&5
17859 echo "${ECHO_T}$enable_static" >&6; }
17860
17861 # The else clause should only fire when bootstrapping the
17862 # libtool distribution, otherwise you forgot to ship ltmain.sh
17863 # with your package, and you will get complaints that there are
17864 # no rules to generate ltmain.sh.
17865 if test -f "$ltmain"; then
17866   # See if we are running on zsh, and set the options which allow our commands through
17867   # without removal of \ escapes.
17868   if test -n "${ZSH_VERSION+set}" ; then
17869     setopt NO_GLOB_SUBST
17870   fi
17871   # Now quote all the things that may contain metacharacters while being
17872   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17873   # variables and quote the copies for generation of the libtool script.
17874   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17875     SED SHELL STRIP \
17876     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17877     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17878     deplibs_check_method reload_flag reload_cmds need_locks \
17879     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17880     lt_cv_sys_global_symbol_to_c_name_address \
17881     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17882     old_postinstall_cmds old_postuninstall_cmds \
17883     compiler \
17884     CC \
17885     LD \
17886     lt_prog_compiler_wl \
17887     lt_prog_compiler_pic \
17888     lt_prog_compiler_static \
17889     lt_prog_compiler_no_builtin_flag \
17890     export_dynamic_flag_spec \
17891     thread_safe_flag_spec \
17892     whole_archive_flag_spec \
17893     enable_shared_with_static_runtimes \
17894     old_archive_cmds \
17895     old_archive_from_new_cmds \
17896     predep_objects \
17897     postdep_objects \
17898     predeps \
17899     postdeps \
17900     compiler_lib_search_path \
17901     archive_cmds \
17902     archive_expsym_cmds \
17903     postinstall_cmds \
17904     postuninstall_cmds \
17905     old_archive_from_expsyms_cmds \
17906     allow_undefined_flag \
17907     no_undefined_flag \
17908     export_symbols_cmds \
17909     hardcode_libdir_flag_spec \
17910     hardcode_libdir_flag_spec_ld \
17911     hardcode_libdir_separator \
17912     hardcode_automatic \
17913     module_cmds \
17914     module_expsym_cmds \
17915     lt_cv_prog_compiler_c_o \
17916     exclude_expsyms \
17917     include_expsyms; do
17918
17919     case $var in
17920     old_archive_cmds | \
17921     old_archive_from_new_cmds | \
17922     archive_cmds | \
17923     archive_expsym_cmds | \
17924     module_cmds | \
17925     module_expsym_cmds | \
17926     old_archive_from_expsyms_cmds | \
17927     export_symbols_cmds | \
17928     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17929     postinstall_cmds | postuninstall_cmds | \
17930     old_postinstall_cmds | old_postuninstall_cmds | \
17931     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17932       # Double-quote double-evaled strings.
17933       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17934       ;;
17935     *)
17936       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17937       ;;
17938     esac
17939   done
17940
17941   case $lt_echo in
17942   *'\$0 --fallback-echo"')
17943     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17944     ;;
17945   esac
17946
17947 cfgfile="${ofile}T"
17948   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17949   $rm -f "$cfgfile"
17950   { echo "$as_me:$LINENO: creating $ofile" >&5
17951 echo "$as_me: creating $ofile" >&6;}
17952
17953   cat <<__EOF__ >> "$cfgfile"
17954 #! $SHELL
17955
17956 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17957 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17958 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17959 #
17960 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17961 # Free Software Foundation, Inc.
17962 #
17963 # This file is part of GNU Libtool:
17964 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17965 #
17966 # This program is free software; you can redistribute it and/or modify
17967 # it under the terms of the GNU General Public License as published by
17968 # the Free Software Foundation; either version 2 of the License, or
17969 # (at your option) any later version.
17970 #
17971 # This program is distributed in the hope that it will be useful, but
17972 # WITHOUT ANY WARRANTY; without even the implied warranty of
17973 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17974 # General Public License for more details.
17975 #
17976 # You should have received a copy of the GNU General Public License
17977 # along with this program; if not, write to the Free Software
17978 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17979 #
17980 # As a special exception to the GNU General Public License, if you
17981 # distribute this file as part of a program that contains a
17982 # configuration script generated by Autoconf, you may include it under
17983 # the same distribution terms that you use for the rest of that program.
17984
17985 # A sed program that does not truncate output.
17986 SED=$lt_SED
17987
17988 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17989 Xsed="$SED -e 1s/^X//"
17990
17991 # The HP-UX ksh and POSIX shell print the target directory to stdout
17992 # if CDPATH is set.
17993 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17994
17995 # The names of the tagged configurations supported by this script.
17996 available_tags=
17997
17998 # ### BEGIN LIBTOOL CONFIG
17999
18000 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18001
18002 # Shell to use when invoking shell scripts.
18003 SHELL=$lt_SHELL
18004
18005 # Whether or not to build shared libraries.
18006 build_libtool_libs=$enable_shared
18007
18008 # Whether or not to build static libraries.
18009 build_old_libs=$enable_static
18010
18011 # Whether or not to add -lc for building shared libraries.
18012 build_libtool_need_lc=$archive_cmds_need_lc
18013
18014 # Whether or not to disallow shared libs when runtime libs are static
18015 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18016
18017 # Whether or not to optimize for fast installation.
18018 fast_install=$enable_fast_install
18019
18020 # The host system.
18021 host_alias=$host_alias
18022 host=$host
18023 host_os=$host_os
18024
18025 # The build system.
18026 build_alias=$build_alias
18027 build=$build
18028 build_os=$build_os
18029
18030 # An echo program that does not interpret backslashes.
18031 echo=$lt_echo
18032
18033 # The archiver.
18034 AR=$lt_AR
18035 AR_FLAGS=$lt_AR_FLAGS
18036
18037 # A C compiler.
18038 LTCC=$lt_LTCC
18039
18040 # LTCC compiler flags.
18041 LTCFLAGS=$lt_LTCFLAGS
18042
18043 # A language-specific compiler.
18044 CC=$lt_compiler
18045
18046 # Is the compiler the GNU C compiler?
18047 with_gcc=$GCC
18048
18049 # An ERE matcher.
18050 EGREP=$lt_EGREP
18051
18052 # The linker used to build libraries.
18053 LD=$lt_LD
18054
18055 # Whether we need hard or soft links.
18056 LN_S=$lt_LN_S
18057
18058 # A BSD-compatible nm program.
18059 NM=$lt_NM
18060
18061 # A symbol stripping program
18062 STRIP=$lt_STRIP
18063
18064 # Used to examine libraries when file_magic_cmd begins "file"
18065 MAGIC_CMD=$MAGIC_CMD
18066
18067 # Used on cygwin: DLL creation program.
18068 DLLTOOL="$DLLTOOL"
18069
18070 # Used on cygwin: object dumper.
18071 OBJDUMP="$OBJDUMP"
18072
18073 # Used on cygwin: assembler.
18074 AS="$AS"
18075
18076 # The name of the directory that contains temporary libtool files.
18077 objdir=$objdir
18078
18079 # How to create reloadable object files.
18080 reload_flag=$lt_reload_flag
18081 reload_cmds=$lt_reload_cmds
18082
18083 # How to pass a linker flag through the compiler.
18084 wl=$lt_lt_prog_compiler_wl
18085
18086 # Object file suffix (normally "o").
18087 objext="$ac_objext"
18088
18089 # Old archive suffix (normally "a").
18090 libext="$libext"
18091
18092 # Shared library suffix (normally ".so").
18093 shrext_cmds='$shrext_cmds'
18094
18095 # Executable file suffix (normally "").
18096 exeext="$exeext"
18097
18098 # Additional compiler flags for building library objects.
18099 pic_flag=$lt_lt_prog_compiler_pic
18100 pic_mode=$pic_mode
18101
18102 # What is the maximum length of a command?
18103 max_cmd_len=$lt_cv_sys_max_cmd_len
18104
18105 # Does compiler simultaneously support -c and -o options?
18106 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18107
18108 # Must we lock files when doing compilation?
18109 need_locks=$lt_need_locks
18110
18111 # Do we need the lib prefix for modules?
18112 need_lib_prefix=$need_lib_prefix
18113
18114 # Do we need a version for libraries?
18115 need_version=$need_version
18116
18117 # Whether dlopen is supported.
18118 dlopen_support=$enable_dlopen
18119
18120 # Whether dlopen of programs is supported.
18121 dlopen_self=$enable_dlopen_self
18122
18123 # Whether dlopen of statically linked programs is supported.
18124 dlopen_self_static=$enable_dlopen_self_static
18125
18126 # Compiler flag to prevent dynamic linking.
18127 link_static_flag=$lt_lt_prog_compiler_static
18128
18129 # Compiler flag to turn off builtin functions.
18130 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18131
18132 # Compiler flag to allow reflexive dlopens.
18133 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18134
18135 # Compiler flag to generate shared objects directly from archives.
18136 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18137
18138 # Compiler flag to generate thread-safe objects.
18139 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18140
18141 # Library versioning type.
18142 version_type=$version_type
18143
18144 # Format of library name prefix.
18145 libname_spec=$lt_libname_spec
18146
18147 # List of archive names.  First name is the real one, the rest are links.
18148 # The last name is the one that the linker finds with -lNAME.
18149 library_names_spec=$lt_library_names_spec
18150
18151 # The coded name of the library, if different from the real name.
18152 soname_spec=$lt_soname_spec
18153
18154 # Commands used to build and install an old-style archive.
18155 RANLIB=$lt_RANLIB
18156 old_archive_cmds=$lt_old_archive_cmds
18157 old_postinstall_cmds=$lt_old_postinstall_cmds
18158 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18159
18160 # Create an old-style archive from a shared archive.
18161 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18162
18163 # Create a temporary old-style archive to link instead of a shared archive.
18164 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18165
18166 # Commands used to build and install a shared archive.
18167 archive_cmds=$lt_archive_cmds
18168 archive_expsym_cmds=$lt_archive_expsym_cmds
18169 postinstall_cmds=$lt_postinstall_cmds
18170 postuninstall_cmds=$lt_postuninstall_cmds
18171
18172 # Commands used to build a loadable module (assumed same as above if empty)
18173 module_cmds=$lt_module_cmds
18174 module_expsym_cmds=$lt_module_expsym_cmds
18175
18176 # Commands to strip libraries.
18177 old_striplib=$lt_old_striplib
18178 striplib=$lt_striplib
18179
18180 # Dependencies to place before the objects being linked to create a
18181 # shared library.
18182 predep_objects=$lt_predep_objects
18183
18184 # Dependencies to place after the objects being linked to create a
18185 # shared library.
18186 postdep_objects=$lt_postdep_objects
18187
18188 # Dependencies to place before the objects being linked to create a
18189 # shared library.
18190 predeps=$lt_predeps
18191
18192 # Dependencies to place after the objects being linked to create a
18193 # shared library.
18194 postdeps=$lt_postdeps
18195
18196 # The library search path used internally by the compiler when linking
18197 # a shared library.
18198 compiler_lib_search_path=$lt_compiler_lib_search_path
18199
18200 # Method to check whether dependent libraries are shared objects.
18201 deplibs_check_method=$lt_deplibs_check_method
18202
18203 # Command to use when deplibs_check_method == file_magic.
18204 file_magic_cmd=$lt_file_magic_cmd
18205
18206 # Flag that allows shared libraries with undefined symbols to be built.
18207 allow_undefined_flag=$lt_allow_undefined_flag
18208
18209 # Flag that forces no undefined symbols.
18210 no_undefined_flag=$lt_no_undefined_flag
18211
18212 # Commands used to finish a libtool library installation in a directory.
18213 finish_cmds=$lt_finish_cmds
18214
18215 # Same as above, but a single script fragment to be evaled but not shown.
18216 finish_eval=$lt_finish_eval
18217
18218 # Take the output of nm and produce a listing of raw symbols and C names.
18219 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18220
18221 # Transform the output of nm in a proper C declaration
18222 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18223
18224 # Transform the output of nm in a C name address pair
18225 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18226
18227 # This is the shared library runtime path variable.
18228 runpath_var=$runpath_var
18229
18230 # This is the shared library path variable.
18231 shlibpath_var=$shlibpath_var
18232
18233 # Is shlibpath searched before the hard-coded library search path?
18234 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18235
18236 # How to hardcode a shared library path into an executable.
18237 hardcode_action=$hardcode_action
18238
18239 # Whether we should hardcode library paths into libraries.
18240 hardcode_into_libs=$hardcode_into_libs
18241
18242 # Flag to hardcode \$libdir into a binary during linking.
18243 # This must work even if \$libdir does not exist.
18244 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18245
18246 # If ld is used when linking, flag to hardcode \$libdir into
18247 # a binary during linking. This must work even if \$libdir does
18248 # not exist.
18249 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18250
18251 # Whether we need a single -rpath flag with a separated argument.
18252 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18253
18254 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18255 # resulting binary.
18256 hardcode_direct=$hardcode_direct
18257
18258 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18259 # resulting binary.
18260 hardcode_minus_L=$hardcode_minus_L
18261
18262 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18263 # the resulting binary.
18264 hardcode_shlibpath_var=$hardcode_shlibpath_var
18265
18266 # Set to yes if building a shared library automatically hardcodes DIR into the library
18267 # and all subsequent libraries and executables linked against it.
18268 hardcode_automatic=$hardcode_automatic
18269
18270 # Variables whose values should be saved in libtool wrapper scripts and
18271 # restored at relink time.
18272 variables_saved_for_relink="$variables_saved_for_relink"
18273
18274 # Whether libtool must link a program against all its dependency libraries.
18275 link_all_deplibs=$link_all_deplibs
18276
18277 # Compile-time system search path for libraries
18278 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18279
18280 # Run-time system search path for libraries
18281 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18282
18283 # Fix the shell variable \$srcfile for the compiler.
18284 fix_srcfile_path="$fix_srcfile_path"
18285
18286 # Set to yes if exported symbols are required.
18287 always_export_symbols=$always_export_symbols
18288
18289 # The commands to list exported symbols.
18290 export_symbols_cmds=$lt_export_symbols_cmds
18291
18292 # The commands to extract the exported symbol list from a shared archive.
18293 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18294
18295 # Symbols that should not be listed in the preloaded symbols.
18296 exclude_expsyms=$lt_exclude_expsyms
18297
18298 # Symbols that must always be exported.
18299 include_expsyms=$lt_include_expsyms
18300
18301 # ### END LIBTOOL CONFIG
18302
18303 __EOF__
18304
18305
18306   case $host_os in
18307   aix3*)
18308     cat <<\EOF >> "$cfgfile"
18309
18310 # AIX sometimes has problems with the GCC collect2 program.  For some
18311 # reason, if we set the COLLECT_NAMES environment variable, the problems
18312 # vanish in a puff of smoke.
18313 if test "X${COLLECT_NAMES+set}" != Xset; then
18314   COLLECT_NAMES=
18315   export COLLECT_NAMES
18316 fi
18317 EOF
18318     ;;
18319   esac
18320
18321   # We use sed instead of cat because bash on DJGPP gets confused if
18322   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18323   # text mode, it properly converts lines to CR/LF.  This bash problem
18324   # is reportedly fixed, but why not run on old versions too?
18325   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18326
18327   mv -f "$cfgfile" "$ofile" || \
18328     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18329   chmod +x "$ofile"
18330
18331 else
18332   # If there is no Makefile yet, we rely on a make rule to execute
18333   # `config.status --recheck' to rerun these tests and create the
18334   # libtool script then.
18335   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18336   if test -f "$ltmain_in"; then
18337     test -f Makefile && make "$ltmain"
18338   fi
18339 fi
18340
18341
18342 ac_ext=c
18343 ac_cpp='$CPP $CPPFLAGS'
18344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18347
18348 CC="$lt_save_CC"
18349
18350
18351 # Check whether --with-tags was given.
18352 if test "${with_tags+set}" = set; then
18353   withval=$with_tags; tagnames="$withval"
18354 fi
18355
18356
18357 if test -f "$ltmain" && test -n "$tagnames"; then
18358   if test ! -f "${ofile}"; then
18359     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18360 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18361   fi
18362
18363   if test -z "$LTCC"; then
18364     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18365     if test -z "$LTCC"; then
18366       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18367 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18368     else
18369       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18370 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18371     fi
18372   fi
18373   if test -z "$LTCFLAGS"; then
18374     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18375   fi
18376
18377   # Extract list of available tagged configurations in $ofile.
18378   # Note that this assumes the entire list is on one line.
18379   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18380
18381   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18382   for tagname in $tagnames; do
18383     IFS="$lt_save_ifs"
18384     # Check whether tagname contains only valid characters
18385     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18386     "") ;;
18387     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18388 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18389    { (exit 1); exit 1; }; }
18390         ;;
18391     esac
18392
18393     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18394     then
18395       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18396 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18397    { (exit 1); exit 1; }; }
18398     fi
18399
18400     # Update the list of available tags.
18401     if test -n "$tagname"; then
18402       echo appending configuration tag \"$tagname\" to $ofile
18403
18404       case $tagname in
18405       CXX)
18406         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18407             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18408             (test "X$CXX" != "Xg++"))) ; then
18409           ac_ext=cpp
18410 ac_cpp='$CXXCPP $CPPFLAGS'
18411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18414
18415
18416
18417
18418 archive_cmds_need_lc_CXX=no
18419 allow_undefined_flag_CXX=
18420 always_export_symbols_CXX=no
18421 archive_expsym_cmds_CXX=
18422 export_dynamic_flag_spec_CXX=
18423 hardcode_direct_CXX=no
18424 hardcode_libdir_flag_spec_CXX=
18425 hardcode_libdir_flag_spec_ld_CXX=
18426 hardcode_libdir_separator_CXX=
18427 hardcode_minus_L_CXX=no
18428 hardcode_shlibpath_var_CXX=unsupported
18429 hardcode_automatic_CXX=no
18430 module_cmds_CXX=
18431 module_expsym_cmds_CXX=
18432 link_all_deplibs_CXX=unknown
18433 old_archive_cmds_CXX=$old_archive_cmds
18434 no_undefined_flag_CXX=
18435 whole_archive_flag_spec_CXX=
18436 enable_shared_with_static_runtimes_CXX=no
18437
18438 # Dependencies to place before and after the object being linked:
18439 predep_objects_CXX=
18440 postdep_objects_CXX=
18441 predeps_CXX=
18442 postdeps_CXX=
18443 compiler_lib_search_path_CXX=
18444
18445 # Source file extension for C++ test sources.
18446 ac_ext=cpp
18447
18448 # Object file extension for compiled C++ test sources.
18449 objext=o
18450 objext_CXX=$objext
18451
18452 # Code to be used in simple compile tests
18453 lt_simple_compile_test_code="int some_variable = 0;\n"
18454
18455 # Code to be used in simple link tests
18456 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18457
18458 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18459
18460 # If no C compiler was specified, use CC.
18461 LTCC=${LTCC-"$CC"}
18462
18463 # If no C compiler flags were specified, use CFLAGS.
18464 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18465
18466 # Allow CC to be a program name with arguments.
18467 compiler=$CC
18468
18469
18470 # save warnings/boilerplate of simple test code
18471 ac_outfile=conftest.$ac_objext
18472 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18473 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18474 _lt_compiler_boilerplate=`cat conftest.err`
18475 $rm conftest*
18476
18477 ac_outfile=conftest.$ac_objext
18478 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18479 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18480 _lt_linker_boilerplate=`cat conftest.err`
18481 $rm conftest*
18482
18483
18484 # Allow CC to be a program name with arguments.
18485 lt_save_CC=$CC
18486 lt_save_LD=$LD
18487 lt_save_GCC=$GCC
18488 GCC=$GXX
18489 lt_save_with_gnu_ld=$with_gnu_ld
18490 lt_save_path_LD=$lt_cv_path_LD
18491 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18492   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18493 else
18494   $as_unset lt_cv_prog_gnu_ld
18495 fi
18496 if test -n "${lt_cv_path_LDCXX+set}"; then
18497   lt_cv_path_LD=$lt_cv_path_LDCXX
18498 else
18499   $as_unset lt_cv_path_LD
18500 fi
18501 test -z "${LDCXX+set}" || LD=$LDCXX
18502 CC=${CXX-"c++"}
18503 compiler=$CC
18504 compiler_CXX=$CC
18505 for cc_temp in $compiler""; do
18506   case $cc_temp in
18507     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18508     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18509     \-*) ;;
18510     *) break;;
18511   esac
18512 done
18513 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18514
18515
18516 # We don't want -fno-exception wen compiling C++ code, so set the
18517 # no_builtin_flag separately
18518 if test "$GXX" = yes; then
18519   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18520 else
18521   lt_prog_compiler_no_builtin_flag_CXX=
18522 fi
18523
18524 if test "$GXX" = yes; then
18525   # Set up default GNU C++ configuration
18526
18527
18528 # Check whether --with-gnu-ld was given.
18529 if test "${with_gnu_ld+set}" = set; then
18530   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18531 else
18532   with_gnu_ld=no
18533 fi
18534
18535 ac_prog=ld
18536 if test "$GCC" = yes; then
18537   # Check if gcc -print-prog-name=ld gives a path.
18538   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18539 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18540   case $host in
18541   *-*-mingw*)
18542     # gcc leaves a trailing carriage return which upsets mingw
18543     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18544   *)
18545     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18546   esac
18547   case $ac_prog in
18548     # Accept absolute paths.
18549     [\\/]* | ?:[\\/]*)
18550       re_direlt='/[^/][^/]*/\.\./'
18551       # Canonicalize the pathname of ld
18552       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18553       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18554         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18555       done
18556       test -z "$LD" && LD="$ac_prog"
18557       ;;
18558   "")
18559     # If it fails, then pretend we aren't using GCC.
18560     ac_prog=ld
18561     ;;
18562   *)
18563     # If it is relative, then search for the first ld in PATH.
18564     with_gnu_ld=unknown
18565     ;;
18566   esac
18567 elif test "$with_gnu_ld" = yes; then
18568   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18569 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18570 else
18571   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18572 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18573 fi
18574 if test "${lt_cv_path_LD+set}" = set; then
18575   echo $ECHO_N "(cached) $ECHO_C" >&6
18576 else
18577   if test -z "$LD"; then
18578   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18579   for ac_dir in $PATH; do
18580     IFS="$lt_save_ifs"
18581     test -z "$ac_dir" && ac_dir=.
18582     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18583       lt_cv_path_LD="$ac_dir/$ac_prog"
18584       # Check to see if the program is GNU ld.  I'd rather use --version,
18585       # but apparently some variants of GNU ld only accept -v.
18586       # Break only if it was the GNU/non-GNU ld that we prefer.
18587       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18588       *GNU* | *'with BFD'*)
18589         test "$with_gnu_ld" != no && break
18590         ;;
18591       *)
18592         test "$with_gnu_ld" != yes && break
18593         ;;
18594       esac
18595     fi
18596   done
18597   IFS="$lt_save_ifs"
18598 else
18599   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18600 fi
18601 fi
18602
18603 LD="$lt_cv_path_LD"
18604 if test -n "$LD"; then
18605   { echo "$as_me:$LINENO: result: $LD" >&5
18606 echo "${ECHO_T}$LD" >&6; }
18607 else
18608   { echo "$as_me:$LINENO: result: no" >&5
18609 echo "${ECHO_T}no" >&6; }
18610 fi
18611 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18612 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18613    { (exit 1); exit 1; }; }
18614 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18615 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18616 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18617   echo $ECHO_N "(cached) $ECHO_C" >&6
18618 else
18619   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18620 case `$LD -v 2>&1 </dev/null` in
18621 *GNU* | *'with BFD'*)
18622   lt_cv_prog_gnu_ld=yes
18623   ;;
18624 *)
18625   lt_cv_prog_gnu_ld=no
18626   ;;
18627 esac
18628 fi
18629 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18630 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18631 with_gnu_ld=$lt_cv_prog_gnu_ld
18632
18633
18634
18635   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18636   # archiving commands below assume that GNU ld is being used.
18637   if test "$with_gnu_ld" = yes; then
18638     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18639     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'
18640
18641     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18642     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18643
18644     # If archive_cmds runs LD, not CC, wlarc should be empty
18645     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18646     #     investigate it a little bit more. (MM)
18647     wlarc='${wl}'
18648
18649     # ancient GNU ld didn't support --whole-archive et. al.
18650     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18651         grep 'no-whole-archive' > /dev/null; then
18652       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18653     else
18654       whole_archive_flag_spec_CXX=
18655     fi
18656   else
18657     with_gnu_ld=no
18658     wlarc=
18659
18660     # A generic and very simple default shared library creation
18661     # command for GNU C++ for the case where it uses the native
18662     # linker, instead of GNU ld.  If possible, this setting should
18663     # overridden to take advantage of the native linker features on
18664     # the platform it is being used on.
18665     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18666   fi
18667
18668   # Commands to make compiler produce verbose output that lists
18669   # what "hidden" libraries, object files and flags are used when
18670   # linking a shared library.
18671   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18672
18673 else
18674   GXX=no
18675   with_gnu_ld=no
18676   wlarc=
18677 fi
18678
18679 # PORTME: fill in a description of your system's C++ link characteristics
18680 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18681 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18682 ld_shlibs_CXX=yes
18683 case $host_os in
18684   aix3*)
18685     # FIXME: insert proper C++ library support
18686     ld_shlibs_CXX=no
18687     ;;
18688   aix4* | aix5*)
18689     if test "$host_cpu" = ia64; then
18690       # On IA64, the linker does run time linking by default, so we don't
18691       # have to do anything special.
18692       aix_use_runtimelinking=no
18693       exp_sym_flag='-Bexport'
18694       no_entry_flag=""
18695     else
18696       aix_use_runtimelinking=no
18697
18698       # Test if we are trying to use run time linking or normal
18699       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18700       # need to do runtime linking.
18701       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18702         for ld_flag in $LDFLAGS; do
18703           case $ld_flag in
18704           *-brtl*)
18705             aix_use_runtimelinking=yes
18706             break
18707             ;;
18708           esac
18709         done
18710         ;;
18711       esac
18712
18713       exp_sym_flag='-bexport'
18714       no_entry_flag='-bnoentry'
18715     fi
18716
18717     # When large executables or shared objects are built, AIX ld can
18718     # have problems creating the table of contents.  If linking a library
18719     # or program results in "error TOC overflow" add -mminimal-toc to
18720     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18721     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18722
18723     archive_cmds_CXX=''
18724     hardcode_direct_CXX=yes
18725     hardcode_libdir_separator_CXX=':'
18726     link_all_deplibs_CXX=yes
18727
18728     if test "$GXX" = yes; then
18729       case $host_os in aix4.[012]|aix4.[012].*)
18730       # We only want to do this on AIX 4.2 and lower, the check
18731       # below for broken collect2 doesn't work under 4.3+
18732         collect2name=`${CC} -print-prog-name=collect2`
18733         if test -f "$collect2name" && \
18734            strings "$collect2name" | grep resolve_lib_name >/dev/null
18735         then
18736           # We have reworked collect2
18737           hardcode_direct_CXX=yes
18738         else
18739           # We have old collect2
18740           hardcode_direct_CXX=unsupported
18741           # It fails to find uninstalled libraries when the uninstalled
18742           # path is not listed in the libpath.  Setting hardcode_minus_L
18743           # to unsupported forces relinking
18744           hardcode_minus_L_CXX=yes
18745           hardcode_libdir_flag_spec_CXX='-L$libdir'
18746           hardcode_libdir_separator_CXX=
18747         fi
18748         ;;
18749       esac
18750       shared_flag='-shared'
18751       if test "$aix_use_runtimelinking" = yes; then
18752         shared_flag="$shared_flag "'${wl}-G'
18753       fi
18754     else
18755       # not using gcc
18756       if test "$host_cpu" = ia64; then
18757         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18758         # chokes on -Wl,-G. The following line is correct:
18759         shared_flag='-G'
18760       else
18761         if test "$aix_use_runtimelinking" = yes; then
18762           shared_flag='${wl}-G'
18763         else
18764           shared_flag='${wl}-bM:SRE'
18765         fi
18766       fi
18767     fi
18768
18769     # It seems that -bexpall does not export symbols beginning with
18770     # underscore (_), so it is better to generate a list of symbols to export.
18771     always_export_symbols_CXX=yes
18772     if test "$aix_use_runtimelinking" = yes; then
18773       # Warning - without using the other runtime loading flags (-brtl),
18774       # -berok will link without error, but may produce a broken library.
18775       allow_undefined_flag_CXX='-berok'
18776       # Determine the default libpath from the value encoded in an empty executable.
18777       cat >conftest.$ac_ext <<_ACEOF
18778 /* confdefs.h.  */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h.  */
18783
18784 int
18785 main ()
18786 {
18787
18788   ;
18789   return 0;
18790 }
18791 _ACEOF
18792 rm -f conftest.$ac_objext conftest$ac_exeext
18793 if { (ac_try="$ac_link"
18794 case "(($ac_try" in
18795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796   *) ac_try_echo=$ac_try;;
18797 esac
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799   (eval "$ac_link") 2>conftest.er1
18800   ac_status=$?
18801   grep -v '^ *+' conftest.er1 >conftest.err
18802   rm -f conftest.er1
18803   cat conftest.err >&5
18804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   (exit $ac_status); } &&
18806          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18807   { (case "(($ac_try" in
18808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809   *) ac_try_echo=$ac_try;;
18810 esac
18811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812   (eval "$ac_try") 2>&5
18813   ac_status=$?
18814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815   (exit $ac_status); }; } &&
18816          { ac_try='test -s conftest$ac_exeext'
18817   { (case "(($ac_try" in
18818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819   *) ac_try_echo=$ac_try;;
18820 esac
18821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822   (eval "$ac_try") 2>&5
18823   ac_status=$?
18824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825   (exit $ac_status); }; }; then
18826
18827 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18828 }'`
18829 # Check for a 64-bit object if we didn't find anything.
18830 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; }
18831 }'`; fi
18832 else
18833   echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18835
18836
18837 fi
18838
18839 rm -f core conftest.err conftest.$ac_objext \
18840       conftest$ac_exeext conftest.$ac_ext
18841 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18842
18843       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18844
18845       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"
18846      else
18847       if test "$host_cpu" = ia64; then
18848         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18849         allow_undefined_flag_CXX="-z nodefs"
18850         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"
18851       else
18852         # Determine the default libpath from the value encoded in an empty executable.
18853         cat >conftest.$ac_ext <<_ACEOF
18854 /* confdefs.h.  */
18855 _ACEOF
18856 cat confdefs.h >>conftest.$ac_ext
18857 cat >>conftest.$ac_ext <<_ACEOF
18858 /* end confdefs.h.  */
18859
18860 int
18861 main ()
18862 {
18863
18864   ;
18865   return 0;
18866 }
18867 _ACEOF
18868 rm -f conftest.$ac_objext conftest$ac_exeext
18869 if { (ac_try="$ac_link"
18870 case "(($ac_try" in
18871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18872   *) ac_try_echo=$ac_try;;
18873 esac
18874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18875   (eval "$ac_link") 2>conftest.er1
18876   ac_status=$?
18877   grep -v '^ *+' conftest.er1 >conftest.err
18878   rm -f conftest.er1
18879   cat conftest.err >&5
18880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881   (exit $ac_status); } &&
18882          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18883   { (case "(($ac_try" in
18884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885   *) ac_try_echo=$ac_try;;
18886 esac
18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888   (eval "$ac_try") 2>&5
18889   ac_status=$?
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); }; } &&
18892          { ac_try='test -s conftest$ac_exeext'
18893   { (case "(($ac_try" in
18894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895   *) ac_try_echo=$ac_try;;
18896 esac
18897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18898   (eval "$ac_try") 2>&5
18899   ac_status=$?
18900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901   (exit $ac_status); }; }; then
18902
18903 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18904 }'`
18905 # Check for a 64-bit object if we didn't find anything.
18906 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; }
18907 }'`; fi
18908 else
18909   echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18911
18912
18913 fi
18914
18915 rm -f core conftest.err conftest.$ac_objext \
18916       conftest$ac_exeext conftest.$ac_ext
18917 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18918
18919         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18920         # Warning - without using the other run time loading flags,
18921         # -berok will link without error, but may produce a broken library.
18922         no_undefined_flag_CXX=' ${wl}-bernotok'
18923         allow_undefined_flag_CXX=' ${wl}-berok'
18924         # Exported symbols can be pulled into shared objects from archives
18925         whole_archive_flag_spec_CXX='$convenience'
18926         archive_cmds_need_lc_CXX=yes
18927         # This is similar to how AIX traditionally builds its shared libraries.
18928         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'
18929       fi
18930     fi
18931     ;;
18932
18933   beos*)
18934     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18935       allow_undefined_flag_CXX=unsupported
18936       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18937       # support --undefined.  This deserves some investigation.  FIXME
18938       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18939     else
18940       ld_shlibs_CXX=no
18941     fi
18942     ;;
18943
18944   chorus*)
18945     case $cc_basename in
18946       *)
18947         # FIXME: insert proper C++ library support
18948         ld_shlibs_CXX=no
18949         ;;
18950     esac
18951     ;;
18952
18953   cygwin* | mingw* | pw32*)
18954     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18955     # as there is no search path for DLLs.
18956     hardcode_libdir_flag_spec_CXX='-L$libdir'
18957     allow_undefined_flag_CXX=unsupported
18958     always_export_symbols_CXX=no
18959     enable_shared_with_static_runtimes_CXX=yes
18960
18961     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18962       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'
18963       # If the export-symbols file already is a .def file (1st line
18964       # is EXPORTS), use it as is; otherwise, prepend...
18965       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18966         cp $export_symbols $output_objdir/$soname.def;
18967       else
18968         echo EXPORTS > $output_objdir/$soname.def;
18969         cat $export_symbols >> $output_objdir/$soname.def;
18970       fi~
18971       $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'
18972     else
18973       ld_shlibs_CXX=no
18974     fi
18975   ;;
18976       darwin* | rhapsody*)
18977         case $host_os in
18978         rhapsody* | darwin1.[012])
18979          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18980          ;;
18981        *) # Darwin 1.3 on
18982          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18983            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18984          else
18985            case ${MACOSX_DEPLOYMENT_TARGET} in
18986              10.[012])
18987                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18988                ;;
18989              10.*)
18990                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18991                ;;
18992            esac
18993          fi
18994          ;;
18995         esac
18996       archive_cmds_need_lc_CXX=no
18997       hardcode_direct_CXX=no
18998       hardcode_automatic_CXX=yes
18999       hardcode_shlibpath_var_CXX=unsupported
19000       whole_archive_flag_spec_CXX=''
19001       link_all_deplibs_CXX=yes
19002
19003     if test "$GXX" = yes ; then
19004       lt_int_apple_cc_single_mod=no
19005       output_verbose_link_cmd='echo'
19006       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19007        lt_int_apple_cc_single_mod=yes
19008       fi
19009       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19010        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19011       else
19012           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'
19013         fi
19014         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19015         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19016           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19017             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}'
19018           else
19019             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}'
19020           fi
19021             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}'
19022       else
19023       case $cc_basename in
19024         xlc*)
19025          output_verbose_link_cmd='echo'
19026           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'
19027           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19028           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19029           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}'
19030           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}'
19031           ;;
19032        *)
19033          ld_shlibs_CXX=no
19034           ;;
19035       esac
19036       fi
19037         ;;
19038
19039   dgux*)
19040     case $cc_basename in
19041       ec++*)
19042         # FIXME: insert proper C++ library support
19043         ld_shlibs_CXX=no
19044         ;;
19045       ghcx*)
19046         # Green Hills C++ Compiler
19047         # FIXME: insert proper C++ library support
19048         ld_shlibs_CXX=no
19049         ;;
19050       *)
19051         # FIXME: insert proper C++ library support
19052         ld_shlibs_CXX=no
19053         ;;
19054     esac
19055     ;;
19056   freebsd[12]*)
19057     # C++ shared libraries reported to be fairly broken before switch to ELF
19058     ld_shlibs_CXX=no
19059     ;;
19060   freebsd-elf*)
19061     archive_cmds_need_lc_CXX=no
19062     ;;
19063   freebsd* | kfreebsd*-gnu | dragonfly*)
19064     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19065     # conventions
19066     ld_shlibs_CXX=yes
19067     ;;
19068   gnu*)
19069     ;;
19070   hpux9*)
19071     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19072     hardcode_libdir_separator_CXX=:
19073     export_dynamic_flag_spec_CXX='${wl}-E'
19074     hardcode_direct_CXX=yes
19075     hardcode_minus_L_CXX=yes # Not in the search PATH,
19076                                 # but as the default
19077                                 # location of the library.
19078
19079     case $cc_basename in
19080     CC*)
19081       # FIXME: insert proper C++ library support
19082       ld_shlibs_CXX=no
19083       ;;
19084     aCC*)
19085       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'
19086       # Commands to make compiler produce verbose output that lists
19087       # what "hidden" libraries, object files and flags are used when
19088       # linking a shared library.
19089       #
19090       # There doesn't appear to be a way to prevent this compiler from
19091       # explicitly linking system object files so we need to strip them
19092       # from the output so that they don't get included in the library
19093       # dependencies.
19094       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'
19095       ;;
19096     *)
19097       if test "$GXX" = yes; then
19098         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'
19099       else
19100         # FIXME: insert proper C++ library support
19101         ld_shlibs_CXX=no
19102       fi
19103       ;;
19104     esac
19105     ;;
19106   hpux10*|hpux11*)
19107     if test $with_gnu_ld = no; then
19108       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19109       hardcode_libdir_separator_CXX=:
19110
19111       case $host_cpu in
19112       hppa*64*|ia64*)
19113         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19114         ;;
19115       *)
19116         export_dynamic_flag_spec_CXX='${wl}-E'
19117         ;;
19118       esac
19119     fi
19120     case $host_cpu in
19121     hppa*64*|ia64*)
19122       hardcode_direct_CXX=no
19123       hardcode_shlibpath_var_CXX=no
19124       ;;
19125     *)
19126       hardcode_direct_CXX=yes
19127       hardcode_minus_L_CXX=yes # Not in the search PATH,
19128                                               # but as the default
19129                                               # location of the library.
19130       ;;
19131     esac
19132
19133     case $cc_basename in
19134       CC*)
19135         # FIXME: insert proper C++ library support
19136         ld_shlibs_CXX=no
19137         ;;
19138       aCC*)
19139         case $host_cpu in
19140         hppa*64*)
19141           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19142           ;;
19143         ia64*)
19144           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19145           ;;
19146         *)
19147           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19148           ;;
19149         esac
19150         # Commands to make compiler produce verbose output that lists
19151         # what "hidden" libraries, object files and flags are used when
19152         # linking a shared library.
19153         #
19154         # There doesn't appear to be a way to prevent this compiler from
19155         # explicitly linking system object files so we need to strip them
19156         # from the output so that they don't get included in the library
19157         # dependencies.
19158         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'
19159         ;;
19160       *)
19161         if test "$GXX" = yes; then
19162           if test $with_gnu_ld = no; then
19163             case $host_cpu in
19164             hppa*64*)
19165               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19166               ;;
19167             ia64*)
19168               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19169               ;;
19170             *)
19171               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'
19172               ;;
19173             esac
19174           fi
19175         else
19176           # FIXME: insert proper C++ library support
19177           ld_shlibs_CXX=no
19178         fi
19179         ;;
19180     esac
19181     ;;
19182   interix3*)
19183     hardcode_direct_CXX=no
19184     hardcode_shlibpath_var_CXX=no
19185     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19186     export_dynamic_flag_spec_CXX='${wl}-E'
19187     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19188     # Instead, shared libraries are loaded at an image base (0x10000000 by
19189     # default) and relocated if they conflict, which is a slow very memory
19190     # consuming and fragmenting process.  To avoid this, we pick a random,
19191     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19192     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19193     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'
19194     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'
19195     ;;
19196   irix5* | irix6*)
19197     case $cc_basename in
19198       CC*)
19199         # SGI C++
19200         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'
19201
19202         # Archives containing C++ object files must be created using
19203         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19204         # necessary to make sure instantiated templates are included
19205         # in the archive.
19206         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19207         ;;
19208       *)
19209         if test "$GXX" = yes; then
19210           if test "$with_gnu_ld" = no; then
19211             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'
19212           else
19213             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'
19214           fi
19215         fi
19216         link_all_deplibs_CXX=yes
19217         ;;
19218     esac
19219     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19220     hardcode_libdir_separator_CXX=:
19221     ;;
19222   linux*)
19223     case $cc_basename in
19224       KCC*)
19225         # Kuck and Associates, Inc. (KAI) C++ Compiler
19226
19227         # KCC will only create a shared library if the output file
19228         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19229         # to its proper name (with version) after linking.
19230         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'
19231         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'
19232         # Commands to make compiler produce verbose output that lists
19233         # what "hidden" libraries, object files and flags are used when
19234         # linking a shared library.
19235         #
19236         # There doesn't appear to be a way to prevent this compiler from
19237         # explicitly linking system object files so we need to strip them
19238         # from the output so that they don't get included in the library
19239         # dependencies.
19240         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'
19241
19242         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19243         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19244
19245         # Archives containing C++ object files must be created using
19246         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19247         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19248         ;;
19249       icpc*)
19250         # Intel C++
19251         with_gnu_ld=yes
19252         # version 8.0 and above of icpc choke on multiply defined symbols
19253         # if we add $predep_objects and $postdep_objects, however 7.1 and
19254         # earlier do not add the objects themselves.
19255         case `$CC -V 2>&1` in
19256         *"Version 7."*)
19257           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19258           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'
19259           ;;
19260         *)  # Version 8.0 or newer
19261           tmp_idyn=
19262           case $host_cpu in
19263             ia64*) tmp_idyn=' -i_dynamic';;
19264           esac
19265           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19266           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'
19267           ;;
19268         esac
19269         archive_cmds_need_lc_CXX=no
19270         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19271         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19272         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19273         ;;
19274       pgCC*)
19275         # Portland Group C++ compiler
19276         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19277         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'
19278
19279         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19280         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19281         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'
19282         ;;
19283       cxx*)
19284         # Compaq C++
19285         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19286         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'
19287
19288         runpath_var=LD_RUN_PATH
19289         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19290         hardcode_libdir_separator_CXX=:
19291
19292         # Commands to make compiler produce verbose output that lists
19293         # what "hidden" libraries, object files and flags are used when
19294         # linking a shared library.
19295         #
19296         # There doesn't appear to be a way to prevent this compiler from
19297         # explicitly linking system object files so we need to strip them
19298         # from the output so that they don't get included in the library
19299         # dependencies.
19300         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'
19301         ;;
19302     esac
19303     ;;
19304   lynxos*)
19305     # FIXME: insert proper C++ library support
19306     ld_shlibs_CXX=no
19307     ;;
19308   m88k*)
19309     # FIXME: insert proper C++ library support
19310     ld_shlibs_CXX=no
19311     ;;
19312   mvs*)
19313     case $cc_basename in
19314       cxx*)
19315         # FIXME: insert proper C++ library support
19316         ld_shlibs_CXX=no
19317         ;;
19318       *)
19319         # FIXME: insert proper C++ library support
19320         ld_shlibs_CXX=no
19321         ;;
19322     esac
19323     ;;
19324   netbsd*)
19325     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19326       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19327       wlarc=
19328       hardcode_libdir_flag_spec_CXX='-R$libdir'
19329       hardcode_direct_CXX=yes
19330       hardcode_shlibpath_var_CXX=no
19331     fi
19332     # Workaround some broken pre-1.5 toolchains
19333     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19334     ;;
19335   openbsd2*)
19336     # C++ shared libraries are fairly broken
19337     ld_shlibs_CXX=no
19338     ;;
19339   openbsd*)
19340     hardcode_direct_CXX=yes
19341     hardcode_shlibpath_var_CXX=no
19342     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19343     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19344     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19345       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19346       export_dynamic_flag_spec_CXX='${wl}-E'
19347       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19348     fi
19349     output_verbose_link_cmd='echo'
19350     ;;
19351   osf3*)
19352     case $cc_basename in
19353       KCC*)
19354         # Kuck and Associates, Inc. (KAI) C++ Compiler
19355
19356         # KCC will only create a shared library if the output file
19357         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19358         # to its proper name (with version) after linking.
19359         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'
19360
19361         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19362         hardcode_libdir_separator_CXX=:
19363
19364         # Archives containing C++ object files must be created using
19365         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19366         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19367
19368         ;;
19369       RCC*)
19370         # Rational C++ 2.4.1
19371         # FIXME: insert proper C++ library support
19372         ld_shlibs_CXX=no
19373         ;;
19374       cxx*)
19375         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19376         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'
19377
19378         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19379         hardcode_libdir_separator_CXX=:
19380
19381         # Commands to make compiler produce verbose output that lists
19382         # what "hidden" libraries, object files and flags are used when
19383         # linking a shared library.
19384         #
19385         # There doesn't appear to be a way to prevent this compiler from
19386         # explicitly linking system object files so we need to strip them
19387         # from the output so that they don't get included in the library
19388         # dependencies.
19389         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'
19390         ;;
19391       *)
19392         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19393           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19394           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'
19395
19396           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19397           hardcode_libdir_separator_CXX=:
19398
19399           # Commands to make compiler produce verbose output that lists
19400           # what "hidden" libraries, object files and flags are used when
19401           # linking a shared library.
19402           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19403
19404         else
19405           # FIXME: insert proper C++ library support
19406           ld_shlibs_CXX=no
19407         fi
19408         ;;
19409     esac
19410     ;;
19411   osf4* | osf5*)
19412     case $cc_basename in
19413       KCC*)
19414         # Kuck and Associates, Inc. (KAI) C++ Compiler
19415
19416         # KCC will only create a shared library if the output file
19417         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19418         # to its proper name (with version) after linking.
19419         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'
19420
19421         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19422         hardcode_libdir_separator_CXX=:
19423
19424         # Archives containing C++ object files must be created using
19425         # the KAI C++ compiler.
19426         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19427         ;;
19428       RCC*)
19429         # Rational C++ 2.4.1
19430         # FIXME: insert proper C++ library support
19431         ld_shlibs_CXX=no
19432         ;;
19433       cxx*)
19434         allow_undefined_flag_CXX=' -expect_unresolved \*'
19435         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'
19436         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19437           echo "-hidden">> $lib.exp~
19438           $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~
19439           $rm $lib.exp'
19440
19441         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19442         hardcode_libdir_separator_CXX=:
19443
19444         # Commands to make compiler produce verbose output that lists
19445         # what "hidden" libraries, object files and flags are used when
19446         # linking a shared library.
19447         #
19448         # There doesn't appear to be a way to prevent this compiler from
19449         # explicitly linking system object files so we need to strip them
19450         # from the output so that they don't get included in the library
19451         # dependencies.
19452         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'
19453         ;;
19454       *)
19455         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19456           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19457          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'
19458
19459           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19460           hardcode_libdir_separator_CXX=:
19461
19462           # Commands to make compiler produce verbose output that lists
19463           # what "hidden" libraries, object files and flags are used when
19464           # linking a shared library.
19465           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19466
19467         else
19468           # FIXME: insert proper C++ library support
19469           ld_shlibs_CXX=no
19470         fi
19471         ;;
19472     esac
19473     ;;
19474   psos*)
19475     # FIXME: insert proper C++ library support
19476     ld_shlibs_CXX=no
19477     ;;
19478   sunos4*)
19479     case $cc_basename in
19480       CC*)
19481         # Sun C++ 4.x
19482         # FIXME: insert proper C++ library support
19483         ld_shlibs_CXX=no
19484         ;;
19485       lcc*)
19486         # Lucid
19487         # FIXME: insert proper C++ library support
19488         ld_shlibs_CXX=no
19489         ;;
19490       *)
19491         # FIXME: insert proper C++ library support
19492         ld_shlibs_CXX=no
19493         ;;
19494     esac
19495     ;;
19496   solaris*)
19497     case $cc_basename in
19498       CC*)
19499         # Sun C++ 4.2, 5.x and Centerline C++
19500         archive_cmds_need_lc_CXX=yes
19501         no_undefined_flag_CXX=' -zdefs'
19502         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19503         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19504         $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'
19505
19506         hardcode_libdir_flag_spec_CXX='-R$libdir'
19507         hardcode_shlibpath_var_CXX=no
19508         case $host_os in
19509           solaris2.[0-5] | solaris2.[0-5].*) ;;
19510           *)
19511             # The C++ compiler is used as linker so we must use $wl
19512             # flag to pass the commands to the underlying system
19513             # linker. We must also pass each convience library through
19514             # to the system linker between allextract/defaultextract.
19515             # The C++ compiler will combine linker options so we
19516             # cannot just pass the convience library names through
19517             # without $wl.
19518             # Supported since Solaris 2.6 (maybe 2.5.1?)
19519             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'
19520             ;;
19521         esac
19522         link_all_deplibs_CXX=yes
19523
19524         output_verbose_link_cmd='echo'
19525
19526         # Archives containing C++ object files must be created using
19527         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19528         # necessary to make sure instantiated templates are included
19529         # in the archive.
19530         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19531         ;;
19532       gcx*)
19533         # Green Hills C++ Compiler
19534         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19535
19536         # The C++ compiler must be used to create the archive.
19537         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19538         ;;
19539       *)
19540         # GNU C++ compiler with Solaris linker
19541         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19542           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19543           if $CC --version | grep -v '^2\.7' > /dev/null; then
19544             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19545             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19546                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19547
19548             # Commands to make compiler produce verbose output that lists
19549             # what "hidden" libraries, object files and flags are used when
19550             # linking a shared library.
19551             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19552           else
19553             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19554             # platform.
19555             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19556             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19557                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19558
19559             # Commands to make compiler produce verbose output that lists
19560             # what "hidden" libraries, object files and flags are used when
19561             # linking a shared library.
19562             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19563           fi
19564
19565           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19566         fi
19567         ;;
19568     esac
19569     ;;
19570   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19571     no_undefined_flag_CXX='${wl}-z,text'
19572     archive_cmds_need_lc_CXX=no
19573     hardcode_shlibpath_var_CXX=no
19574     runpath_var='LD_RUN_PATH'
19575
19576     case $cc_basename in
19577       CC*)
19578         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19579         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19580         ;;
19581       *)
19582         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19583         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19584         ;;
19585     esac
19586     ;;
19587   sysv5* | sco3.2v5* | sco5v6*)
19588     # Note: We can NOT use -z defs as we might desire, because we do not
19589     # link with -lc, and that would cause any symbols used from libc to
19590     # always be unresolved, which means just about no library would
19591     # ever link correctly.  If we're not using GNU ld we use -z text
19592     # though, which does catch some bad symbols but isn't as heavy-handed
19593     # as -z defs.
19594     # For security reasons, it is highly recommended that you always
19595     # use absolute paths for naming shared libraries, and exclude the
19596     # DT_RUNPATH tag from executables and libraries.  But doing so
19597     # requires that you compile everything twice, which is a pain.
19598     # So that behaviour is only enabled if SCOABSPATH is set to a
19599     # non-empty value in the environment.  Most likely only useful for
19600     # creating official distributions of packages.
19601     # This is a hack until libtool officially supports absolute path
19602     # names for shared libraries.
19603     no_undefined_flag_CXX='${wl}-z,text'
19604     allow_undefined_flag_CXX='${wl}-z,nodefs'
19605     archive_cmds_need_lc_CXX=no
19606     hardcode_shlibpath_var_CXX=no
19607     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19608     hardcode_libdir_separator_CXX=':'
19609     link_all_deplibs_CXX=yes
19610     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19611     runpath_var='LD_RUN_PATH'
19612
19613     case $cc_basename in
19614       CC*)
19615         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19616         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19617         ;;
19618       *)
19619         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19620         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19621         ;;
19622     esac
19623     ;;
19624   tandem*)
19625     case $cc_basename in
19626       NCC*)
19627         # NonStop-UX NCC 3.20
19628         # FIXME: insert proper C++ library support
19629         ld_shlibs_CXX=no
19630         ;;
19631       *)
19632         # FIXME: insert proper C++ library support
19633         ld_shlibs_CXX=no
19634         ;;
19635     esac
19636     ;;
19637   vxworks*)
19638     # FIXME: insert proper C++ library support
19639     ld_shlibs_CXX=no
19640     ;;
19641   *)
19642     # FIXME: insert proper C++ library support
19643     ld_shlibs_CXX=no
19644     ;;
19645 esac
19646 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19647 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19648 test "$ld_shlibs_CXX" = no && can_build_shared=no
19649
19650 GCC_CXX="$GXX"
19651 LD_CXX="$LD"
19652
19653
19654 cat > conftest.$ac_ext <<EOF
19655 class Foo
19656 {
19657 public:
19658   Foo (void) { a = 0; }
19659 private:
19660   int a;
19661 };
19662 EOF
19663
19664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19665   (eval $ac_compile) 2>&5
19666   ac_status=$?
19667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668   (exit $ac_status); }; then
19669   # Parse the compiler output and extract the necessary
19670   # objects, libraries and library flags.
19671
19672   # Sentinel used to keep track of whether or not we are before
19673   # the conftest object file.
19674   pre_test_object_deps_done=no
19675
19676   # The `*' in the case matches for architectures that use `case' in
19677   # $output_verbose_cmd can trigger glob expansion during the loop
19678   # eval without this substitution.
19679   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19680
19681   for p in `eval $output_verbose_link_cmd`; do
19682     case $p in
19683
19684     -L* | -R* | -l*)
19685        # Some compilers place space between "-{L,R}" and the path.
19686        # Remove the space.
19687        if test $p = "-L" \
19688           || test $p = "-R"; then
19689          prev=$p
19690          continue
19691        else
19692          prev=
19693        fi
19694
19695        if test "$pre_test_object_deps_done" = no; then
19696          case $p in
19697          -L* | -R*)
19698            # Internal compiler library paths should come after those
19699            # provided the user.  The postdeps already come after the
19700            # user supplied libs so there is no need to process them.
19701            if test -z "$compiler_lib_search_path_CXX"; then
19702              compiler_lib_search_path_CXX="${prev}${p}"
19703            else
19704              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19705            fi
19706            ;;
19707          # The "-l" case would never come before the object being
19708          # linked, so don't bother handling this case.
19709          esac
19710        else
19711          if test -z "$postdeps_CXX"; then
19712            postdeps_CXX="${prev}${p}"
19713          else
19714            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19715          fi
19716        fi
19717        ;;
19718
19719     *.$objext)
19720        # This assumes that the test object file only shows up
19721        # once in the compiler output.
19722        if test "$p" = "conftest.$objext"; then
19723          pre_test_object_deps_done=yes
19724          continue
19725        fi
19726
19727        if test "$pre_test_object_deps_done" = no; then
19728          if test -z "$predep_objects_CXX"; then
19729            predep_objects_CXX="$p"
19730          else
19731            predep_objects_CXX="$predep_objects_CXX $p"
19732          fi
19733        else
19734          if test -z "$postdep_objects_CXX"; then
19735            postdep_objects_CXX="$p"
19736          else
19737            postdep_objects_CXX="$postdep_objects_CXX $p"
19738          fi
19739        fi
19740        ;;
19741
19742     *) ;; # Ignore the rest.
19743
19744     esac
19745   done
19746
19747   # Clean up.
19748   rm -f a.out a.exe
19749 else
19750   echo "libtool.m4: error: problem compiling CXX test program"
19751 fi
19752
19753 $rm -f confest.$objext
19754
19755 # PORTME: override above test on systems where it is broken
19756 case $host_os in
19757 interix3*)
19758   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19759   # hack all around it, let's just trust "g++" to DTRT.
19760   predep_objects_CXX=
19761   postdep_objects_CXX=
19762   postdeps_CXX=
19763   ;;
19764
19765 solaris*)
19766   case $cc_basename in
19767   CC*)
19768     # Adding this requires a known-good setup of shared libraries for
19769     # Sun compiler versions before 5.6, else PIC objects from an old
19770     # archive will be linked into the output, leading to subtle bugs.
19771     postdeps_CXX='-lCstd -lCrun'
19772     ;;
19773   esac
19774   ;;
19775 esac
19776
19777
19778 case " $postdeps_CXX " in
19779 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19780 esac
19781
19782 lt_prog_compiler_wl_CXX=
19783 lt_prog_compiler_pic_CXX=
19784 lt_prog_compiler_static_CXX=
19785
19786 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19787 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19788
19789   # C++ specific cases for pic, static, wl, etc.
19790   if test "$GXX" = yes; then
19791     lt_prog_compiler_wl_CXX='-Wl,'
19792     lt_prog_compiler_static_CXX='-static'
19793
19794     case $host_os in
19795     aix*)
19796       # All AIX code is PIC.
19797       if test "$host_cpu" = ia64; then
19798         # AIX 5 now supports IA64 processor
19799         lt_prog_compiler_static_CXX='-Bstatic'
19800       fi
19801       ;;
19802     amigaos*)
19803       # FIXME: we need at least 68020 code to build shared libraries, but
19804       # adding the `-m68020' flag to GCC prevents building anything better,
19805       # like `-m68040'.
19806       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19807       ;;
19808     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19809       # PIC is the default for these OSes.
19810       ;;
19811     mingw* | os2* | pw32*)
19812       # This hack is so that the source file can tell whether it is being
19813       # built for inclusion in a dll (and should export symbols for example).
19814       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19815       ;;
19816     darwin* | rhapsody*)
19817       # PIC is the default on this platform
19818       # Common symbols not allowed in MH_DYLIB files
19819       lt_prog_compiler_pic_CXX='-fno-common'
19820       ;;
19821     *djgpp*)
19822       # DJGPP does not support shared libraries at all
19823       lt_prog_compiler_pic_CXX=
19824       ;;
19825     interix3*)
19826       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19827       # Instead, we relocate shared libraries at runtime.
19828       ;;
19829     sysv4*MP*)
19830       if test -d /usr/nec; then
19831         lt_prog_compiler_pic_CXX=-Kconform_pic
19832       fi
19833       ;;
19834     hpux*)
19835       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19836       # not for PA HP-UX.
19837       case $host_cpu in
19838       hppa*64*|ia64*)
19839         ;;
19840       *)
19841         lt_prog_compiler_pic_CXX='-fPIC'
19842         ;;
19843       esac
19844       ;;
19845     *)
19846       lt_prog_compiler_pic_CXX='-fPIC'
19847       ;;
19848     esac
19849   else
19850     case $host_os in
19851       aix4* | aix5*)
19852         # All AIX code is PIC.
19853         if test "$host_cpu" = ia64; then
19854           # AIX 5 now supports IA64 processor
19855           lt_prog_compiler_static_CXX='-Bstatic'
19856         else
19857           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19858         fi
19859         ;;
19860       chorus*)
19861         case $cc_basename in
19862         cxch68*)
19863           # Green Hills C++ Compiler
19864           # _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"
19865           ;;
19866         esac
19867         ;;
19868        darwin*)
19869          # PIC is the default on this platform
19870          # Common symbols not allowed in MH_DYLIB files
19871          case $cc_basename in
19872            xlc*)
19873            lt_prog_compiler_pic_CXX='-qnocommon'
19874            lt_prog_compiler_wl_CXX='-Wl,'
19875            ;;
19876          esac
19877        ;;
19878       dgux*)
19879         case $cc_basename in
19880           ec++*)
19881             lt_prog_compiler_pic_CXX='-KPIC'
19882             ;;
19883           ghcx*)
19884             # Green Hills C++ Compiler
19885             lt_prog_compiler_pic_CXX='-pic'
19886             ;;
19887           *)
19888             ;;
19889         esac
19890         ;;
19891       freebsd* | kfreebsd*-gnu | dragonfly*)
19892         # FreeBSD uses GNU C++
19893         ;;
19894       hpux9* | hpux10* | hpux11*)
19895         case $cc_basename in
19896           CC*)
19897             lt_prog_compiler_wl_CXX='-Wl,'
19898             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19899             if test "$host_cpu" != ia64; then
19900               lt_prog_compiler_pic_CXX='+Z'
19901             fi
19902             ;;
19903           aCC*)
19904             lt_prog_compiler_wl_CXX='-Wl,'
19905             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19906             case $host_cpu in
19907             hppa*64*|ia64*)
19908               # +Z the default
19909               ;;
19910             *)
19911               lt_prog_compiler_pic_CXX='+Z'
19912               ;;
19913             esac
19914             ;;
19915           *)
19916             ;;
19917         esac
19918         ;;
19919       interix*)
19920         # This is c89, which is MS Visual C++ (no shared libs)
19921         # Anyone wants to do a port?
19922         ;;
19923       irix5* | irix6* | nonstopux*)
19924         case $cc_basename in
19925           CC*)
19926             lt_prog_compiler_wl_CXX='-Wl,'
19927             lt_prog_compiler_static_CXX='-non_shared'
19928             # CC pic flag -KPIC is the default.
19929             ;;
19930           *)
19931             ;;
19932         esac
19933         ;;
19934       linux*)
19935         case $cc_basename in
19936           KCC*)
19937             # KAI C++ Compiler
19938             lt_prog_compiler_wl_CXX='--backend -Wl,'
19939             lt_prog_compiler_pic_CXX='-fPIC'
19940             ;;
19941           icpc* | ecpc*)
19942             # Intel C++
19943             lt_prog_compiler_wl_CXX='-Wl,'
19944             lt_prog_compiler_pic_CXX='-KPIC'
19945             lt_prog_compiler_static_CXX='-static'
19946             ;;
19947           pgCC*)
19948             # Portland Group C++ compiler.
19949             lt_prog_compiler_wl_CXX='-Wl,'
19950             lt_prog_compiler_pic_CXX='-fpic'
19951             lt_prog_compiler_static_CXX='-Bstatic'
19952             ;;
19953           cxx*)
19954             # Compaq C++
19955             # Make sure the PIC flag is empty.  It appears that all Alpha
19956             # Linux and Compaq Tru64 Unix objects are PIC.
19957             lt_prog_compiler_pic_CXX=
19958             lt_prog_compiler_static_CXX='-non_shared'
19959             ;;
19960           *)
19961             ;;
19962         esac
19963         ;;
19964       lynxos*)
19965         ;;
19966       m88k*)
19967         ;;
19968       mvs*)
19969         case $cc_basename in
19970           cxx*)
19971             lt_prog_compiler_pic_CXX='-W c,exportall'
19972             ;;
19973           *)
19974             ;;
19975         esac
19976         ;;
19977       netbsd*)
19978         ;;
19979       osf3* | osf4* | osf5*)
19980         case $cc_basename in
19981           KCC*)
19982             lt_prog_compiler_wl_CXX='--backend -Wl,'
19983             ;;
19984           RCC*)
19985             # Rational C++ 2.4.1
19986             lt_prog_compiler_pic_CXX='-pic'
19987             ;;
19988           cxx*)
19989             # Digital/Compaq C++
19990             lt_prog_compiler_wl_CXX='-Wl,'
19991             # Make sure the PIC flag is empty.  It appears that all Alpha
19992             # Linux and Compaq Tru64 Unix objects are PIC.
19993             lt_prog_compiler_pic_CXX=
19994             lt_prog_compiler_static_CXX='-non_shared'
19995             ;;
19996           *)
19997             ;;
19998         esac
19999         ;;
20000       psos*)
20001         ;;
20002       solaris*)
20003         case $cc_basename in
20004           CC*)
20005             # Sun C++ 4.2, 5.x and Centerline C++
20006             lt_prog_compiler_pic_CXX='-KPIC'
20007             lt_prog_compiler_static_CXX='-Bstatic'
20008             lt_prog_compiler_wl_CXX='-Qoption ld '
20009             ;;
20010           gcx*)
20011             # Green Hills C++ Compiler
20012             lt_prog_compiler_pic_CXX='-PIC'
20013             ;;
20014           *)
20015             ;;
20016         esac
20017         ;;
20018       sunos4*)
20019         case $cc_basename in
20020           CC*)
20021             # Sun C++ 4.x
20022             lt_prog_compiler_pic_CXX='-pic'
20023             lt_prog_compiler_static_CXX='-Bstatic'
20024             ;;
20025           lcc*)
20026             # Lucid
20027             lt_prog_compiler_pic_CXX='-pic'
20028             ;;
20029           *)
20030             ;;
20031         esac
20032         ;;
20033       tandem*)
20034         case $cc_basename in
20035           NCC*)
20036             # NonStop-UX NCC 3.20
20037             lt_prog_compiler_pic_CXX='-KPIC'
20038             ;;
20039           *)
20040             ;;
20041         esac
20042         ;;
20043       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20044         case $cc_basename in
20045           CC*)
20046             lt_prog_compiler_wl_CXX='-Wl,'
20047             lt_prog_compiler_pic_CXX='-KPIC'
20048             lt_prog_compiler_static_CXX='-Bstatic'
20049             ;;
20050         esac
20051         ;;
20052       vxworks*)
20053         ;;
20054       *)
20055         lt_prog_compiler_can_build_shared_CXX=no
20056         ;;
20057     esac
20058   fi
20059
20060 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20061 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20062
20063 #
20064 # Check to make sure the PIC flag actually works.
20065 #
20066 if test -n "$lt_prog_compiler_pic_CXX"; then
20067
20068 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20069 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20070 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20071   echo $ECHO_N "(cached) $ECHO_C" >&6
20072 else
20073   lt_prog_compiler_pic_works_CXX=no
20074   ac_outfile=conftest.$ac_objext
20075    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20076    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20077    # Insert the option either (1) after the last *FLAGS variable, or
20078    # (2) before a word containing "conftest.", or (3) at the end.
20079    # Note that $ac_compile itself does not contain backslashes and begins
20080    # with a dollar sign (not a hyphen), so the echo should work correctly.
20081    # The option is referenced via a variable to avoid confusing sed.
20082    lt_compile=`echo "$ac_compile" | $SED \
20083    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20084    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20085    -e 's:$: $lt_compiler_flag:'`
20086    (eval echo "\"\$as_me:20086: $lt_compile\"" >&5)
20087    (eval "$lt_compile" 2>conftest.err)
20088    ac_status=$?
20089    cat conftest.err >&5
20090    echo "$as_me:20090: \$? = $ac_status" >&5
20091    if (exit $ac_status) && test -s "$ac_outfile"; then
20092      # The compiler can only warn and ignore the option if not recognized
20093      # So say no if there are warnings other than the usual output.
20094      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20095      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20096      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20097        lt_prog_compiler_pic_works_CXX=yes
20098      fi
20099    fi
20100    $rm conftest*
20101
20102 fi
20103 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20104 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20105
20106 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20107     case $lt_prog_compiler_pic_CXX in
20108      "" | " "*) ;;
20109      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20110      esac
20111 else
20112     lt_prog_compiler_pic_CXX=
20113      lt_prog_compiler_can_build_shared_CXX=no
20114 fi
20115
20116 fi
20117 case $host_os in
20118   # For platforms which do not support PIC, -DPIC is meaningless:
20119   *djgpp*)
20120     lt_prog_compiler_pic_CXX=
20121     ;;
20122   *)
20123     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20124     ;;
20125 esac
20126
20127 #
20128 # Check to make sure the static flag actually works.
20129 #
20130 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20131 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20132 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20133 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20134   echo $ECHO_N "(cached) $ECHO_C" >&6
20135 else
20136   lt_prog_compiler_static_works_CXX=no
20137    save_LDFLAGS="$LDFLAGS"
20138    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20139    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20140    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20141      # The linker can only warn and ignore the option if not recognized
20142      # So say no if there are warnings
20143      if test -s conftest.err; then
20144        # Append any errors to the config.log.
20145        cat conftest.err 1>&5
20146        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20147        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20148        if diff conftest.exp conftest.er2 >/dev/null; then
20149          lt_prog_compiler_static_works_CXX=yes
20150        fi
20151      else
20152        lt_prog_compiler_static_works_CXX=yes
20153      fi
20154    fi
20155    $rm conftest*
20156    LDFLAGS="$save_LDFLAGS"
20157
20158 fi
20159 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20160 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20161
20162 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20163     :
20164 else
20165     lt_prog_compiler_static_CXX=
20166 fi
20167
20168
20169 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20170 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20171 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20172   echo $ECHO_N "(cached) $ECHO_C" >&6
20173 else
20174   lt_cv_prog_compiler_c_o_CXX=no
20175    $rm -r conftest 2>/dev/null
20176    mkdir conftest
20177    cd conftest
20178    mkdir out
20179    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20180
20181    lt_compiler_flag="-o out/conftest2.$ac_objext"
20182    # Insert the option either (1) after the last *FLAGS variable, or
20183    # (2) before a word containing "conftest.", or (3) at the end.
20184    # Note that $ac_compile itself does not contain backslashes and begins
20185    # with a dollar sign (not a hyphen), so the echo should work correctly.
20186    lt_compile=`echo "$ac_compile" | $SED \
20187    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20188    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20189    -e 's:$: $lt_compiler_flag:'`
20190    (eval echo "\"\$as_me:20190: $lt_compile\"" >&5)
20191    (eval "$lt_compile" 2>out/conftest.err)
20192    ac_status=$?
20193    cat out/conftest.err >&5
20194    echo "$as_me:20194: \$? = $ac_status" >&5
20195    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20196    then
20197      # The compiler can only warn and ignore the option if not recognized
20198      # So say no if there are warnings
20199      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20200      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20201      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20202        lt_cv_prog_compiler_c_o_CXX=yes
20203      fi
20204    fi
20205    chmod u+w . 2>&5
20206    $rm conftest*
20207    # SGI C++ compiler will create directory out/ii_files/ for
20208    # template instantiation
20209    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20210    $rm out/* && rmdir out
20211    cd ..
20212    rmdir conftest
20213    $rm conftest*
20214
20215 fi
20216 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20217 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20218
20219
20220 hard_links="nottested"
20221 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20222   # do not overwrite the value of need_locks provided by the user
20223   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20224 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20225   hard_links=yes
20226   $rm conftest*
20227   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20228   touch conftest.a
20229   ln conftest.a conftest.b 2>&5 || hard_links=no
20230   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20231   { echo "$as_me:$LINENO: result: $hard_links" >&5
20232 echo "${ECHO_T}$hard_links" >&6; }
20233   if test "$hard_links" = no; then
20234     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20235 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20236     need_locks=warn
20237   fi
20238 else
20239   need_locks=no
20240 fi
20241
20242 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20243 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20244
20245   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20246   case $host_os in
20247   aix4* | aix5*)
20248     # If we're using GNU nm, then we don't want the "-C" option.
20249     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20250     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20251       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'
20252     else
20253       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'
20254     fi
20255     ;;
20256   pw32*)
20257     export_symbols_cmds_CXX="$ltdll_cmds"
20258   ;;
20259   cygwin* | mingw*)
20260     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'
20261   ;;
20262   *)
20263     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20264   ;;
20265   esac
20266
20267 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20268 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20269 test "$ld_shlibs_CXX" = no && can_build_shared=no
20270
20271 #
20272 # Do we need to explicitly link libc?
20273 #
20274 case "x$archive_cmds_need_lc_CXX" in
20275 x|xyes)
20276   # Assume -lc should be added
20277   archive_cmds_need_lc_CXX=yes
20278
20279   if test "$enable_shared" = yes && test "$GCC" = yes; then
20280     case $archive_cmds_CXX in
20281     *'~'*)
20282       # FIXME: we may have to deal with multi-command sequences.
20283       ;;
20284     '$CC '*)
20285       # Test whether the compiler implicitly links with -lc since on some
20286       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20287       # to ld, don't add -lc before -lgcc.
20288       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20289 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20290       $rm conftest*
20291       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20292
20293       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20294   (eval $ac_compile) 2>&5
20295   ac_status=$?
20296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297   (exit $ac_status); } 2>conftest.err; then
20298         soname=conftest
20299         lib=conftest
20300         libobjs=conftest.$ac_objext
20301         deplibs=
20302         wl=$lt_prog_compiler_wl_CXX
20303         pic_flag=$lt_prog_compiler_pic_CXX
20304         compiler_flags=-v
20305         linker_flags=-v
20306         verstring=
20307         output_objdir=.
20308         libname=conftest
20309         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20310         allow_undefined_flag_CXX=
20311         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20312   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20313   ac_status=$?
20314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315   (exit $ac_status); }
20316         then
20317           archive_cmds_need_lc_CXX=no
20318         else
20319           archive_cmds_need_lc_CXX=yes
20320         fi
20321         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20322       else
20323         cat conftest.err 1>&5
20324       fi
20325       $rm conftest*
20326       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20327 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20328       ;;
20329     esac
20330   fi
20331   ;;
20332 esac
20333
20334 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20335 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20336 library_names_spec=
20337 libname_spec='lib$name'
20338 soname_spec=
20339 shrext_cmds=".so"
20340 postinstall_cmds=
20341 postuninstall_cmds=
20342 finish_cmds=
20343 finish_eval=
20344 shlibpath_var=
20345 shlibpath_overrides_runpath=unknown
20346 version_type=none
20347 dynamic_linker="$host_os ld.so"
20348 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20349 if test "$GCC" = yes; then
20350   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20351   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20352     # if the path contains ";" then we assume it to be the separator
20353     # otherwise default to the standard path separator (i.e. ":") - it is
20354     # assumed that no part of a normal pathname contains ";" but that should
20355     # okay in the real world where ";" in dirpaths is itself problematic.
20356     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20357   else
20358     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20359   fi
20360 else
20361   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20362 fi
20363 need_lib_prefix=unknown
20364 hardcode_into_libs=no
20365
20366 # when you set need_version to no, make sure it does not cause -set_version
20367 # flags to be left without arguments
20368 need_version=unknown
20369
20370 case $host_os in
20371 aix3*)
20372   version_type=linux
20373   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20374   shlibpath_var=LIBPATH
20375
20376   # AIX 3 has no versioning support, so we append a major version to the name.
20377   soname_spec='${libname}${release}${shared_ext}$major'
20378   ;;
20379
20380 aix4* | aix5*)
20381   version_type=linux
20382   need_lib_prefix=no
20383   need_version=no
20384   hardcode_into_libs=yes
20385   if test "$host_cpu" = ia64; then
20386     # AIX 5 supports IA64
20387     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20388     shlibpath_var=LD_LIBRARY_PATH
20389   else
20390     # With GCC up to 2.95.x, collect2 would create an import file
20391     # for dependence libraries.  The import file would start with
20392     # the line `#! .'.  This would cause the generated library to
20393     # depend on `.', always an invalid library.  This was fixed in
20394     # development snapshots of GCC prior to 3.0.
20395     case $host_os in
20396       aix4 | aix4.[01] | aix4.[01].*)
20397       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20398            echo ' yes '
20399            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20400         :
20401       else
20402         can_build_shared=no
20403       fi
20404       ;;
20405     esac
20406     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20407     # soname into executable. Probably we can add versioning support to
20408     # collect2, so additional links can be useful in future.
20409     if test "$aix_use_runtimelinking" = yes; then
20410       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20411       # instead of lib<name>.a to let people know that these are not
20412       # typical AIX shared libraries.
20413       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20414     else
20415       # We preserve .a as extension for shared libraries through AIX4.2
20416       # and later when we are not doing run time linking.
20417       library_names_spec='${libname}${release}.a $libname.a'
20418       soname_spec='${libname}${release}${shared_ext}$major'
20419     fi
20420     shlibpath_var=LIBPATH
20421   fi
20422   ;;
20423
20424 amigaos*)
20425   library_names_spec='$libname.ixlibrary $libname.a'
20426   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20427   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'
20428   ;;
20429
20430 beos*)
20431   library_names_spec='${libname}${shared_ext}'
20432   dynamic_linker="$host_os ld.so"
20433   shlibpath_var=LIBRARY_PATH
20434   ;;
20435
20436 bsdi[45]*)
20437   version_type=linux
20438   need_version=no
20439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20440   soname_spec='${libname}${release}${shared_ext}$major'
20441   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20442   shlibpath_var=LD_LIBRARY_PATH
20443   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20444   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20445   # the default ld.so.conf also contains /usr/contrib/lib and
20446   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20447   # libtool to hard-code these into programs
20448   ;;
20449
20450 cygwin* | mingw* | pw32*)
20451   version_type=windows
20452   shrext_cmds=".dll"
20453   need_version=no
20454   need_lib_prefix=no
20455
20456   case $GCC,$host_os in
20457   yes,cygwin* | yes,mingw* | yes,pw32*)
20458     library_names_spec='$libname.dll.a'
20459     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20460     postinstall_cmds='base_file=`basename \${file}`~
20461       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20462       dldir=$destdir/`dirname \$dlpath`~
20463       test -d \$dldir || mkdir -p \$dldir~
20464       $install_prog $dir/$dlname \$dldir/$dlname~
20465       chmod a+x \$dldir/$dlname'
20466     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20467       dlpath=$dir/\$dldll~
20468        $rm \$dlpath'
20469     shlibpath_overrides_runpath=yes
20470
20471     case $host_os in
20472     cygwin*)
20473       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20474       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20475       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20476       ;;
20477     mingw*)
20478       # MinGW DLLs use traditional 'lib' prefix
20479       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20480       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20481       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20482         # It is most probably a Windows format PATH printed by
20483         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20484         # path with ; separators, and with drive letters. We can handle the
20485         # drive letters (cygwin fileutils understands them), so leave them,
20486         # especially as we might pass files found there to a mingw objdump,
20487         # which wouldn't understand a cygwinified path. Ahh.
20488         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20489       else
20490         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20491       fi
20492       ;;
20493     pw32*)
20494       # pw32 DLLs use 'pw' prefix rather than 'lib'
20495       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20496       ;;
20497     esac
20498     ;;
20499
20500   *)
20501     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20502     ;;
20503   esac
20504   dynamic_linker='Win32 ld.exe'
20505   # FIXME: first we should search . and the directory the executable is in
20506   shlibpath_var=PATH
20507   ;;
20508
20509 darwin* | rhapsody*)
20510   dynamic_linker="$host_os dyld"
20511   version_type=darwin
20512   need_lib_prefix=no
20513   need_version=no
20514   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20515   soname_spec='${libname}${release}${major}$shared_ext'
20516   shlibpath_overrides_runpath=yes
20517   shlibpath_var=DYLD_LIBRARY_PATH
20518   shrext_cmds='.dylib'
20519   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20520   if test "$GCC" = yes; then
20521     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"`
20522   else
20523     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20524   fi
20525   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20526   ;;
20527
20528 dgux*)
20529   version_type=linux
20530   need_lib_prefix=no
20531   need_version=no
20532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20533   soname_spec='${libname}${release}${shared_ext}$major'
20534   shlibpath_var=LD_LIBRARY_PATH
20535   ;;
20536
20537 freebsd1*)
20538   dynamic_linker=no
20539   ;;
20540
20541 kfreebsd*-gnu)
20542   version_type=linux
20543   need_lib_prefix=no
20544   need_version=no
20545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20546   soname_spec='${libname}${release}${shared_ext}$major'
20547   shlibpath_var=LD_LIBRARY_PATH
20548   shlibpath_overrides_runpath=no
20549   hardcode_into_libs=yes
20550   dynamic_linker='GNU ld.so'
20551   ;;
20552
20553 freebsd* | dragonfly*)
20554   # DragonFly does not have aout.  When/if they implement a new
20555   # versioning mechanism, adjust this.
20556   if test -x /usr/bin/objformat; then
20557     objformat=`/usr/bin/objformat`
20558   else
20559     case $host_os in
20560     freebsd[123]*) objformat=aout ;;
20561     *) objformat=elf ;;
20562     esac
20563   fi
20564   version_type=freebsd-$objformat
20565   case $version_type in
20566     freebsd-elf*)
20567       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20568       need_version=no
20569       need_lib_prefix=no
20570       ;;
20571     freebsd-*)
20572       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20573       need_version=yes
20574       ;;
20575   esac
20576   shlibpath_var=LD_LIBRARY_PATH
20577   case $host_os in
20578   freebsd2*)
20579     shlibpath_overrides_runpath=yes
20580     ;;
20581   freebsd3.[01]* | freebsdelf3.[01]*)
20582     shlibpath_overrides_runpath=yes
20583     hardcode_into_libs=yes
20584     ;;
20585   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20586   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20587     shlibpath_overrides_runpath=no
20588     hardcode_into_libs=yes
20589     ;;
20590   freebsd*) # from 4.6 on
20591     shlibpath_overrides_runpath=yes
20592     hardcode_into_libs=yes
20593     ;;
20594   esac
20595   ;;
20596
20597 gnu*)
20598   version_type=linux
20599   need_lib_prefix=no
20600   need_version=no
20601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20602   soname_spec='${libname}${release}${shared_ext}$major'
20603   shlibpath_var=LD_LIBRARY_PATH
20604   hardcode_into_libs=yes
20605   ;;
20606
20607 hpux9* | hpux10* | hpux11*)
20608   # Give a soname corresponding to the major version so that dld.sl refuses to
20609   # link against other versions.
20610   version_type=sunos
20611   need_lib_prefix=no
20612   need_version=no
20613   case $host_cpu in
20614   ia64*)
20615     shrext_cmds='.so'
20616     hardcode_into_libs=yes
20617     dynamic_linker="$host_os dld.so"
20618     shlibpath_var=LD_LIBRARY_PATH
20619     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20621     soname_spec='${libname}${release}${shared_ext}$major'
20622     if test "X$HPUX_IA64_MODE" = X32; then
20623       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20624     else
20625       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20626     fi
20627     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20628     ;;
20629    hppa*64*)
20630      shrext_cmds='.sl'
20631      hardcode_into_libs=yes
20632      dynamic_linker="$host_os dld.sl"
20633      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20634      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20635      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20636      soname_spec='${libname}${release}${shared_ext}$major'
20637      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20638      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20639      ;;
20640    *)
20641     shrext_cmds='.sl'
20642     dynamic_linker="$host_os dld.sl"
20643     shlibpath_var=SHLIB_PATH
20644     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20645     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20646     soname_spec='${libname}${release}${shared_ext}$major'
20647     ;;
20648   esac
20649   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20650   postinstall_cmds='chmod 555 $lib'
20651   ;;
20652
20653 interix3*)
20654   version_type=linux
20655   need_lib_prefix=no
20656   need_version=no
20657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20658   soname_spec='${libname}${release}${shared_ext}$major'
20659   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20660   shlibpath_var=LD_LIBRARY_PATH
20661   shlibpath_overrides_runpath=no
20662   hardcode_into_libs=yes
20663   ;;
20664
20665 irix5* | irix6* | nonstopux*)
20666   case $host_os in
20667     nonstopux*) version_type=nonstopux ;;
20668     *)
20669         if test "$lt_cv_prog_gnu_ld" = yes; then
20670                 version_type=linux
20671         else
20672                 version_type=irix
20673         fi ;;
20674   esac
20675   need_lib_prefix=no
20676   need_version=no
20677   soname_spec='${libname}${release}${shared_ext}$major'
20678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20679   case $host_os in
20680   irix5* | nonstopux*)
20681     libsuff= shlibsuff=
20682     ;;
20683   *)
20684     case $LD in # libtool.m4 will add one of these switches to LD
20685     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20686       libsuff= shlibsuff= libmagic=32-bit;;
20687     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20688       libsuff=32 shlibsuff=N32 libmagic=N32;;
20689     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20690       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20691     *) libsuff= shlibsuff= libmagic=never-match;;
20692     esac
20693     ;;
20694   esac
20695   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20696   shlibpath_overrides_runpath=no
20697   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20698   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20699   hardcode_into_libs=yes
20700   ;;
20701
20702 # No shared lib support for Linux oldld, aout, or coff.
20703 linux*oldld* | linux*aout* | linux*coff*)
20704   dynamic_linker=no
20705   ;;
20706
20707 # This must be Linux ELF.
20708 linux*)
20709   version_type=linux
20710   need_lib_prefix=no
20711   need_version=no
20712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20713   soname_spec='${libname}${release}${shared_ext}$major'
20714   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20715   shlibpath_var=LD_LIBRARY_PATH
20716   shlibpath_overrides_runpath=no
20717   # This implies no fast_install, which is unacceptable.
20718   # Some rework will be needed to allow for fast_install
20719   # before this can be enabled.
20720   hardcode_into_libs=yes
20721
20722   # Append ld.so.conf contents to the search path
20723   if test -f /etc/ld.so.conf; then
20724     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' ' '`
20725     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20726   fi
20727
20728   # We used to test for /lib/ld.so.1 and disable shared libraries on
20729   # powerpc, because MkLinux only supported shared libraries with the
20730   # GNU dynamic linker.  Since this was broken with cross compilers,
20731   # most powerpc-linux boxes support dynamic linking these days and
20732   # people can always --disable-shared, the test was removed, and we
20733   # assume the GNU/Linux dynamic linker is in use.
20734   dynamic_linker='GNU/Linux ld.so'
20735   ;;
20736
20737 knetbsd*-gnu)
20738   version_type=linux
20739   need_lib_prefix=no
20740   need_version=no
20741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20742   soname_spec='${libname}${release}${shared_ext}$major'
20743   shlibpath_var=LD_LIBRARY_PATH
20744   shlibpath_overrides_runpath=no
20745   hardcode_into_libs=yes
20746   dynamic_linker='GNU ld.so'
20747   ;;
20748
20749 netbsd*)
20750   version_type=sunos
20751   need_lib_prefix=no
20752   need_version=no
20753   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20754     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20755     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20756     dynamic_linker='NetBSD (a.out) ld.so'
20757   else
20758     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20759     soname_spec='${libname}${release}${shared_ext}$major'
20760     dynamic_linker='NetBSD ld.elf_so'
20761   fi
20762   shlibpath_var=LD_LIBRARY_PATH
20763   shlibpath_overrides_runpath=yes
20764   hardcode_into_libs=yes
20765   ;;
20766
20767 newsos6)
20768   version_type=linux
20769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20770   shlibpath_var=LD_LIBRARY_PATH
20771   shlibpath_overrides_runpath=yes
20772   ;;
20773
20774 nto-qnx*)
20775   version_type=linux
20776   need_lib_prefix=no
20777   need_version=no
20778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20779   soname_spec='${libname}${release}${shared_ext}$major'
20780   shlibpath_var=LD_LIBRARY_PATH
20781   shlibpath_overrides_runpath=yes
20782   ;;
20783
20784 openbsd*)
20785   version_type=sunos
20786   sys_lib_dlsearch_path_spec="/usr/lib"
20787   need_lib_prefix=no
20788   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20789   case $host_os in
20790     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20791     *)                         need_version=no  ;;
20792   esac
20793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20794   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20795   shlibpath_var=LD_LIBRARY_PATH
20796   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20797     case $host_os in
20798       openbsd2.[89] | openbsd2.[89].*)
20799         shlibpath_overrides_runpath=no
20800         ;;
20801       *)
20802         shlibpath_overrides_runpath=yes
20803         ;;
20804       esac
20805   else
20806     shlibpath_overrides_runpath=yes
20807   fi
20808   ;;
20809
20810 os2*)
20811   libname_spec='$name'
20812   shrext_cmds=".dll"
20813   need_lib_prefix=no
20814   library_names_spec='$libname${shared_ext} $libname.a'
20815   dynamic_linker='OS/2 ld.exe'
20816   shlibpath_var=LIBPATH
20817   ;;
20818
20819 osf3* | osf4* | osf5*)
20820   version_type=osf
20821   need_lib_prefix=no
20822   need_version=no
20823   soname_spec='${libname}${release}${shared_ext}$major'
20824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20825   shlibpath_var=LD_LIBRARY_PATH
20826   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20827   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20828   ;;
20829
20830 solaris*)
20831   version_type=linux
20832   need_lib_prefix=no
20833   need_version=no
20834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20835   soname_spec='${libname}${release}${shared_ext}$major'
20836   shlibpath_var=LD_LIBRARY_PATH
20837   shlibpath_overrides_runpath=yes
20838   hardcode_into_libs=yes
20839   # ldd complains unless libraries are executable
20840   postinstall_cmds='chmod +x $lib'
20841   ;;
20842
20843 sunos4*)
20844   version_type=sunos
20845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20846   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20847   shlibpath_var=LD_LIBRARY_PATH
20848   shlibpath_overrides_runpath=yes
20849   if test "$with_gnu_ld" = yes; then
20850     need_lib_prefix=no
20851   fi
20852   need_version=yes
20853   ;;
20854
20855 sysv4 | sysv4.3*)
20856   version_type=linux
20857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20858   soname_spec='${libname}${release}${shared_ext}$major'
20859   shlibpath_var=LD_LIBRARY_PATH
20860   case $host_vendor in
20861     sni)
20862       shlibpath_overrides_runpath=no
20863       need_lib_prefix=no
20864       export_dynamic_flag_spec='${wl}-Blargedynsym'
20865       runpath_var=LD_RUN_PATH
20866       ;;
20867     siemens)
20868       need_lib_prefix=no
20869       ;;
20870     motorola)
20871       need_lib_prefix=no
20872       need_version=no
20873       shlibpath_overrides_runpath=no
20874       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20875       ;;
20876   esac
20877   ;;
20878
20879 sysv4*MP*)
20880   if test -d /usr/nec ;then
20881     version_type=linux
20882     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20883     soname_spec='$libname${shared_ext}.$major'
20884     shlibpath_var=LD_LIBRARY_PATH
20885   fi
20886   ;;
20887
20888 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20889   version_type=freebsd-elf
20890   need_lib_prefix=no
20891   need_version=no
20892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20893   soname_spec='${libname}${release}${shared_ext}$major'
20894   shlibpath_var=LD_LIBRARY_PATH
20895   hardcode_into_libs=yes
20896   if test "$with_gnu_ld" = yes; then
20897     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20898     shlibpath_overrides_runpath=no
20899   else
20900     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20901     shlibpath_overrides_runpath=yes
20902     case $host_os in
20903       sco3.2v5*)
20904         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20905         ;;
20906     esac
20907   fi
20908   sys_lib_dlsearch_path_spec='/usr/lib'
20909   ;;
20910
20911 uts4*)
20912   version_type=linux
20913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20914   soname_spec='${libname}${release}${shared_ext}$major'
20915   shlibpath_var=LD_LIBRARY_PATH
20916   ;;
20917
20918 *)
20919   dynamic_linker=no
20920   ;;
20921 esac
20922 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20923 echo "${ECHO_T}$dynamic_linker" >&6; }
20924 test "$dynamic_linker" = no && can_build_shared=no
20925
20926 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20927 if test "$GCC" = yes; then
20928   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20929 fi
20930
20931 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20932 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20933 hardcode_action_CXX=
20934 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20935    test -n "$runpath_var_CXX" || \
20936    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20937
20938   # We can hardcode non-existant directories.
20939   if test "$hardcode_direct_CXX" != no &&
20940      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20941      # have to relink, otherwise we might link with an installed library
20942      # when we should be linking with a yet-to-be-installed one
20943      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20944      test "$hardcode_minus_L_CXX" != no; then
20945     # Linking always hardcodes the temporary library directory.
20946     hardcode_action_CXX=relink
20947   else
20948     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20949     hardcode_action_CXX=immediate
20950   fi
20951 else
20952   # We cannot hardcode anything, or else we can only hardcode existing
20953   # directories.
20954   hardcode_action_CXX=unsupported
20955 fi
20956 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20957 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20958
20959 if test "$hardcode_action_CXX" = relink; then
20960   # Fast installation is not supported
20961   enable_fast_install=no
20962 elif test "$shlibpath_overrides_runpath" = yes ||
20963      test "$enable_shared" = no; then
20964   # Fast installation is not necessary
20965   enable_fast_install=needless
20966 fi
20967
20968
20969 # The else clause should only fire when bootstrapping the
20970 # libtool distribution, otherwise you forgot to ship ltmain.sh
20971 # with your package, and you will get complaints that there are
20972 # no rules to generate ltmain.sh.
20973 if test -f "$ltmain"; then
20974   # See if we are running on zsh, and set the options which allow our commands through
20975   # without removal of \ escapes.
20976   if test -n "${ZSH_VERSION+set}" ; then
20977     setopt NO_GLOB_SUBST
20978   fi
20979   # Now quote all the things that may contain metacharacters while being
20980   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20981   # variables and quote the copies for generation of the libtool script.
20982   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20983     SED SHELL STRIP \
20984     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20985     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20986     deplibs_check_method reload_flag reload_cmds need_locks \
20987     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20988     lt_cv_sys_global_symbol_to_c_name_address \
20989     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20990     old_postinstall_cmds old_postuninstall_cmds \
20991     compiler_CXX \
20992     CC_CXX \
20993     LD_CXX \
20994     lt_prog_compiler_wl_CXX \
20995     lt_prog_compiler_pic_CXX \
20996     lt_prog_compiler_static_CXX \
20997     lt_prog_compiler_no_builtin_flag_CXX \
20998     export_dynamic_flag_spec_CXX \
20999     thread_safe_flag_spec_CXX \
21000     whole_archive_flag_spec_CXX \
21001     enable_shared_with_static_runtimes_CXX \
21002     old_archive_cmds_CXX \
21003     old_archive_from_new_cmds_CXX \
21004     predep_objects_CXX \
21005     postdep_objects_CXX \
21006     predeps_CXX \
21007     postdeps_CXX \
21008     compiler_lib_search_path_CXX \
21009     archive_cmds_CXX \
21010     archive_expsym_cmds_CXX \
21011     postinstall_cmds_CXX \
21012     postuninstall_cmds_CXX \
21013     old_archive_from_expsyms_cmds_CXX \
21014     allow_undefined_flag_CXX \
21015     no_undefined_flag_CXX \
21016     export_symbols_cmds_CXX \
21017     hardcode_libdir_flag_spec_CXX \
21018     hardcode_libdir_flag_spec_ld_CXX \
21019     hardcode_libdir_separator_CXX \
21020     hardcode_automatic_CXX \
21021     module_cmds_CXX \
21022     module_expsym_cmds_CXX \
21023     lt_cv_prog_compiler_c_o_CXX \
21024     exclude_expsyms_CXX \
21025     include_expsyms_CXX; do
21026
21027     case $var in
21028     old_archive_cmds_CXX | \
21029     old_archive_from_new_cmds_CXX | \
21030     archive_cmds_CXX | \
21031     archive_expsym_cmds_CXX | \
21032     module_cmds_CXX | \
21033     module_expsym_cmds_CXX | \
21034     old_archive_from_expsyms_cmds_CXX | \
21035     export_symbols_cmds_CXX | \
21036     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21037     postinstall_cmds | postuninstall_cmds | \
21038     old_postinstall_cmds | old_postuninstall_cmds | \
21039     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21040       # Double-quote double-evaled strings.
21041       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21042       ;;
21043     *)
21044       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21045       ;;
21046     esac
21047   done
21048
21049   case $lt_echo in
21050   *'\$0 --fallback-echo"')
21051     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21052     ;;
21053   esac
21054
21055 cfgfile="$ofile"
21056
21057   cat <<__EOF__ >> "$cfgfile"
21058 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21059
21060 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21061
21062 # Shell to use when invoking shell scripts.
21063 SHELL=$lt_SHELL
21064
21065 # Whether or not to build shared libraries.
21066 build_libtool_libs=$enable_shared
21067
21068 # Whether or not to build static libraries.
21069 build_old_libs=$enable_static
21070
21071 # Whether or not to add -lc for building shared libraries.
21072 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21073
21074 # Whether or not to disallow shared libs when runtime libs are static
21075 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21076
21077 # Whether or not to optimize for fast installation.
21078 fast_install=$enable_fast_install
21079
21080 # The host system.
21081 host_alias=$host_alias
21082 host=$host
21083 host_os=$host_os
21084
21085 # The build system.
21086 build_alias=$build_alias
21087 build=$build
21088 build_os=$build_os
21089
21090 # An echo program that does not interpret backslashes.
21091 echo=$lt_echo
21092
21093 # The archiver.
21094 AR=$lt_AR
21095 AR_FLAGS=$lt_AR_FLAGS
21096
21097 # A C compiler.
21098 LTCC=$lt_LTCC
21099
21100 # LTCC compiler flags.
21101 LTCFLAGS=$lt_LTCFLAGS
21102
21103 # A language-specific compiler.
21104 CC=$lt_compiler_CXX
21105
21106 # Is the compiler the GNU C compiler?
21107 with_gcc=$GCC_CXX
21108
21109 # An ERE matcher.
21110 EGREP=$lt_EGREP
21111
21112 # The linker used to build libraries.
21113 LD=$lt_LD_CXX
21114
21115 # Whether we need hard or soft links.
21116 LN_S=$lt_LN_S
21117
21118 # A BSD-compatible nm program.
21119 NM=$lt_NM
21120
21121 # A symbol stripping program
21122 STRIP=$lt_STRIP
21123
21124 # Used to examine libraries when file_magic_cmd begins "file"
21125 MAGIC_CMD=$MAGIC_CMD
21126
21127 # Used on cygwin: DLL creation program.
21128 DLLTOOL="$DLLTOOL"
21129
21130 # Used on cygwin: object dumper.
21131 OBJDUMP="$OBJDUMP"
21132
21133 # Used on cygwin: assembler.
21134 AS="$AS"
21135
21136 # The name of the directory that contains temporary libtool files.
21137 objdir=$objdir
21138
21139 # How to create reloadable object files.
21140 reload_flag=$lt_reload_flag
21141 reload_cmds=$lt_reload_cmds
21142
21143 # How to pass a linker flag through the compiler.
21144 wl=$lt_lt_prog_compiler_wl_CXX
21145
21146 # Object file suffix (normally "o").
21147 objext="$ac_objext"
21148
21149 # Old archive suffix (normally "a").
21150 libext="$libext"
21151
21152 # Shared library suffix (normally ".so").
21153 shrext_cmds='$shrext_cmds'
21154
21155 # Executable file suffix (normally "").
21156 exeext="$exeext"
21157
21158 # Additional compiler flags for building library objects.
21159 pic_flag=$lt_lt_prog_compiler_pic_CXX
21160 pic_mode=$pic_mode
21161
21162 # What is the maximum length of a command?
21163 max_cmd_len=$lt_cv_sys_max_cmd_len
21164
21165 # Does compiler simultaneously support -c and -o options?
21166 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21167
21168 # Must we lock files when doing compilation?
21169 need_locks=$lt_need_locks
21170
21171 # Do we need the lib prefix for modules?
21172 need_lib_prefix=$need_lib_prefix
21173
21174 # Do we need a version for libraries?
21175 need_version=$need_version
21176
21177 # Whether dlopen is supported.
21178 dlopen_support=$enable_dlopen
21179
21180 # Whether dlopen of programs is supported.
21181 dlopen_self=$enable_dlopen_self
21182
21183 # Whether dlopen of statically linked programs is supported.
21184 dlopen_self_static=$enable_dlopen_self_static
21185
21186 # Compiler flag to prevent dynamic linking.
21187 link_static_flag=$lt_lt_prog_compiler_static_CXX
21188
21189 # Compiler flag to turn off builtin functions.
21190 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21191
21192 # Compiler flag to allow reflexive dlopens.
21193 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21194
21195 # Compiler flag to generate shared objects directly from archives.
21196 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21197
21198 # Compiler flag to generate thread-safe objects.
21199 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21200
21201 # Library versioning type.
21202 version_type=$version_type
21203
21204 # Format of library name prefix.
21205 libname_spec=$lt_libname_spec
21206
21207 # List of archive names.  First name is the real one, the rest are links.
21208 # The last name is the one that the linker finds with -lNAME.
21209 library_names_spec=$lt_library_names_spec
21210
21211 # The coded name of the library, if different from the real name.
21212 soname_spec=$lt_soname_spec
21213
21214 # Commands used to build and install an old-style archive.
21215 RANLIB=$lt_RANLIB
21216 old_archive_cmds=$lt_old_archive_cmds_CXX
21217 old_postinstall_cmds=$lt_old_postinstall_cmds
21218 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21219
21220 # Create an old-style archive from a shared archive.
21221 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21222
21223 # Create a temporary old-style archive to link instead of a shared archive.
21224 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21225
21226 # Commands used to build and install a shared archive.
21227 archive_cmds=$lt_archive_cmds_CXX
21228 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21229 postinstall_cmds=$lt_postinstall_cmds
21230 postuninstall_cmds=$lt_postuninstall_cmds
21231
21232 # Commands used to build a loadable module (assumed same as above if empty)
21233 module_cmds=$lt_module_cmds_CXX
21234 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21235
21236 # Commands to strip libraries.
21237 old_striplib=$lt_old_striplib
21238 striplib=$lt_striplib
21239
21240 # Dependencies to place before the objects being linked to create a
21241 # shared library.
21242 predep_objects=$lt_predep_objects_CXX
21243
21244 # Dependencies to place after the objects being linked to create a
21245 # shared library.
21246 postdep_objects=$lt_postdep_objects_CXX
21247
21248 # Dependencies to place before the objects being linked to create a
21249 # shared library.
21250 predeps=$lt_predeps_CXX
21251
21252 # Dependencies to place after the objects being linked to create a
21253 # shared library.
21254 postdeps=$lt_postdeps_CXX
21255
21256 # The library search path used internally by the compiler when linking
21257 # a shared library.
21258 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21259
21260 # Method to check whether dependent libraries are shared objects.
21261 deplibs_check_method=$lt_deplibs_check_method
21262
21263 # Command to use when deplibs_check_method == file_magic.
21264 file_magic_cmd=$lt_file_magic_cmd
21265
21266 # Flag that allows shared libraries with undefined symbols to be built.
21267 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21268
21269 # Flag that forces no undefined symbols.
21270 no_undefined_flag=$lt_no_undefined_flag_CXX
21271
21272 # Commands used to finish a libtool library installation in a directory.
21273 finish_cmds=$lt_finish_cmds
21274
21275 # Same as above, but a single script fragment to be evaled but not shown.
21276 finish_eval=$lt_finish_eval
21277
21278 # Take the output of nm and produce a listing of raw symbols and C names.
21279 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21280
21281 # Transform the output of nm in a proper C declaration
21282 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21283
21284 # Transform the output of nm in a C name address pair
21285 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21286
21287 # This is the shared library runtime path variable.
21288 runpath_var=$runpath_var
21289
21290 # This is the shared library path variable.
21291 shlibpath_var=$shlibpath_var
21292
21293 # Is shlibpath searched before the hard-coded library search path?
21294 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21295
21296 # How to hardcode a shared library path into an executable.
21297 hardcode_action=$hardcode_action_CXX
21298
21299 # Whether we should hardcode library paths into libraries.
21300 hardcode_into_libs=$hardcode_into_libs
21301
21302 # Flag to hardcode \$libdir into a binary during linking.
21303 # This must work even if \$libdir does not exist.
21304 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21305
21306 # If ld is used when linking, flag to hardcode \$libdir into
21307 # a binary during linking. This must work even if \$libdir does
21308 # not exist.
21309 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21310
21311 # Whether we need a single -rpath flag with a separated argument.
21312 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21313
21314 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21315 # resulting binary.
21316 hardcode_direct=$hardcode_direct_CXX
21317
21318 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21319 # resulting binary.
21320 hardcode_minus_L=$hardcode_minus_L_CXX
21321
21322 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21323 # the resulting binary.
21324 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21325
21326 # Set to yes if building a shared library automatically hardcodes DIR into the library
21327 # and all subsequent libraries and executables linked against it.
21328 hardcode_automatic=$hardcode_automatic_CXX
21329
21330 # Variables whose values should be saved in libtool wrapper scripts and
21331 # restored at relink time.
21332 variables_saved_for_relink="$variables_saved_for_relink"
21333
21334 # Whether libtool must link a program against all its dependency libraries.
21335 link_all_deplibs=$link_all_deplibs_CXX
21336
21337 # Compile-time system search path for libraries
21338 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21339
21340 # Run-time system search path for libraries
21341 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21342
21343 # Fix the shell variable \$srcfile for the compiler.
21344 fix_srcfile_path="$fix_srcfile_path_CXX"
21345
21346 # Set to yes if exported symbols are required.
21347 always_export_symbols=$always_export_symbols_CXX
21348
21349 # The commands to list exported symbols.
21350 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21351
21352 # The commands to extract the exported symbol list from a shared archive.
21353 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21354
21355 # Symbols that should not be listed in the preloaded symbols.
21356 exclude_expsyms=$lt_exclude_expsyms_CXX
21357
21358 # Symbols that must always be exported.
21359 include_expsyms=$lt_include_expsyms_CXX
21360
21361 # ### END LIBTOOL TAG CONFIG: $tagname
21362
21363 __EOF__
21364
21365
21366 else
21367   # If there is no Makefile yet, we rely on a make rule to execute
21368   # `config.status --recheck' to rerun these tests and create the
21369   # libtool script then.
21370   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21371   if test -f "$ltmain_in"; then
21372     test -f Makefile && make "$ltmain"
21373   fi
21374 fi
21375
21376
21377 ac_ext=c
21378 ac_cpp='$CPP $CPPFLAGS'
21379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21382
21383 CC=$lt_save_CC
21384 LDCXX=$LD
21385 LD=$lt_save_LD
21386 GCC=$lt_save_GCC
21387 with_gnu_ldcxx=$with_gnu_ld
21388 with_gnu_ld=$lt_save_with_gnu_ld
21389 lt_cv_path_LDCXX=$lt_cv_path_LD
21390 lt_cv_path_LD=$lt_save_path_LD
21391 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21392 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21393
21394         else
21395           tagname=""
21396         fi
21397         ;;
21398
21399       F77)
21400         if test -n "$F77" && test "X$F77" != "Xno"; then
21401
21402 ac_ext=f
21403 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21404 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21405 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21406
21407
21408 archive_cmds_need_lc_F77=no
21409 allow_undefined_flag_F77=
21410 always_export_symbols_F77=no
21411 archive_expsym_cmds_F77=
21412 export_dynamic_flag_spec_F77=
21413 hardcode_direct_F77=no
21414 hardcode_libdir_flag_spec_F77=
21415 hardcode_libdir_flag_spec_ld_F77=
21416 hardcode_libdir_separator_F77=
21417 hardcode_minus_L_F77=no
21418 hardcode_automatic_F77=no
21419 module_cmds_F77=
21420 module_expsym_cmds_F77=
21421 link_all_deplibs_F77=unknown
21422 old_archive_cmds_F77=$old_archive_cmds
21423 no_undefined_flag_F77=
21424 whole_archive_flag_spec_F77=
21425 enable_shared_with_static_runtimes_F77=no
21426
21427 # Source file extension for f77 test sources.
21428 ac_ext=f
21429
21430 # Object file extension for compiled f77 test sources.
21431 objext=o
21432 objext_F77=$objext
21433
21434 # Code to be used in simple compile tests
21435 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21436
21437 # Code to be used in simple link tests
21438 lt_simple_link_test_code="      program t\n      end\n"
21439
21440 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21441
21442 # If no C compiler was specified, use CC.
21443 LTCC=${LTCC-"$CC"}
21444
21445 # If no C compiler flags were specified, use CFLAGS.
21446 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21447
21448 # Allow CC to be a program name with arguments.
21449 compiler=$CC
21450
21451
21452 # save warnings/boilerplate of simple test code
21453 ac_outfile=conftest.$ac_objext
21454 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21455 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21456 _lt_compiler_boilerplate=`cat conftest.err`
21457 $rm conftest*
21458
21459 ac_outfile=conftest.$ac_objext
21460 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21461 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21462 _lt_linker_boilerplate=`cat conftest.err`
21463 $rm conftest*
21464
21465
21466 # Allow CC to be a program name with arguments.
21467 lt_save_CC="$CC"
21468 CC=${F77-"f77"}
21469 compiler=$CC
21470 compiler_F77=$CC
21471 for cc_temp in $compiler""; do
21472   case $cc_temp in
21473     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21474     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21475     \-*) ;;
21476     *) break;;
21477   esac
21478 done
21479 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21480
21481
21482 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21483 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21484 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21485 echo "${ECHO_T}$can_build_shared" >&6; }
21486
21487 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21488 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21489 test "$can_build_shared" = "no" && enable_shared=no
21490
21491 # On AIX, shared libraries and static libraries use the same namespace, and
21492 # are all built from PIC.
21493 case $host_os in
21494 aix3*)
21495   test "$enable_shared" = yes && enable_static=no
21496   if test -n "$RANLIB"; then
21497     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21498     postinstall_cmds='$RANLIB $lib'
21499   fi
21500   ;;
21501 aix4* | aix5*)
21502   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21503     test "$enable_shared" = yes && enable_static=no
21504   fi
21505   ;;
21506 esac
21507 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21508 echo "${ECHO_T}$enable_shared" >&6; }
21509
21510 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21511 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21512 # Make sure either enable_shared or enable_static is yes.
21513 test "$enable_shared" = yes || enable_static=yes
21514 { echo "$as_me:$LINENO: result: $enable_static" >&5
21515 echo "${ECHO_T}$enable_static" >&6; }
21516
21517 GCC_F77="$G77"
21518 LD_F77="$LD"
21519
21520 lt_prog_compiler_wl_F77=
21521 lt_prog_compiler_pic_F77=
21522 lt_prog_compiler_static_F77=
21523
21524 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21525 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21526
21527   if test "$GCC" = yes; then
21528     lt_prog_compiler_wl_F77='-Wl,'
21529     lt_prog_compiler_static_F77='-static'
21530
21531     case $host_os in
21532       aix*)
21533       # All AIX code is PIC.
21534       if test "$host_cpu" = ia64; then
21535         # AIX 5 now supports IA64 processor
21536         lt_prog_compiler_static_F77='-Bstatic'
21537       fi
21538       ;;
21539
21540     amigaos*)
21541       # FIXME: we need at least 68020 code to build shared libraries, but
21542       # adding the `-m68020' flag to GCC prevents building anything better,
21543       # like `-m68040'.
21544       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21545       ;;
21546
21547     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21548       # PIC is the default for these OSes.
21549       ;;
21550
21551     mingw* | pw32* | os2*)
21552       # This hack is so that the source file can tell whether it is being
21553       # built for inclusion in a dll (and should export symbols for example).
21554       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21555       ;;
21556
21557     darwin* | rhapsody*)
21558       # PIC is the default on this platform
21559       # Common symbols not allowed in MH_DYLIB files
21560       lt_prog_compiler_pic_F77='-fno-common'
21561       ;;
21562
21563     interix3*)
21564       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21565       # Instead, we relocate shared libraries at runtime.
21566       ;;
21567
21568     msdosdjgpp*)
21569       # Just because we use GCC doesn't mean we suddenly get shared libraries
21570       # on systems that don't support them.
21571       lt_prog_compiler_can_build_shared_F77=no
21572       enable_shared=no
21573       ;;
21574
21575     sysv4*MP*)
21576       if test -d /usr/nec; then
21577         lt_prog_compiler_pic_F77=-Kconform_pic
21578       fi
21579       ;;
21580
21581     hpux*)
21582       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21583       # not for PA HP-UX.
21584       case $host_cpu in
21585       hppa*64*|ia64*)
21586         # +Z the default
21587         ;;
21588       *)
21589         lt_prog_compiler_pic_F77='-fPIC'
21590         ;;
21591       esac
21592       ;;
21593
21594     *)
21595       lt_prog_compiler_pic_F77='-fPIC'
21596       ;;
21597     esac
21598   else
21599     # PORTME Check for flag to pass linker flags through the system compiler.
21600     case $host_os in
21601     aix*)
21602       lt_prog_compiler_wl_F77='-Wl,'
21603       if test "$host_cpu" = ia64; then
21604         # AIX 5 now supports IA64 processor
21605         lt_prog_compiler_static_F77='-Bstatic'
21606       else
21607         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21608       fi
21609       ;;
21610       darwin*)
21611         # PIC is the default on this platform
21612         # Common symbols not allowed in MH_DYLIB files
21613        case $cc_basename in
21614          xlc*)
21615          lt_prog_compiler_pic_F77='-qnocommon'
21616          lt_prog_compiler_wl_F77='-Wl,'
21617          ;;
21618        esac
21619        ;;
21620
21621     mingw* | pw32* | os2*)
21622       # This hack is so that the source file can tell whether it is being
21623       # built for inclusion in a dll (and should export symbols for example).
21624       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21625       ;;
21626
21627     hpux9* | hpux10* | hpux11*)
21628       lt_prog_compiler_wl_F77='-Wl,'
21629       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21630       # not for PA HP-UX.
21631       case $host_cpu in
21632       hppa*64*|ia64*)
21633         # +Z the default
21634         ;;
21635       *)
21636         lt_prog_compiler_pic_F77='+Z'
21637         ;;
21638       esac
21639       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21640       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21641       ;;
21642
21643     irix5* | irix6* | nonstopux*)
21644       lt_prog_compiler_wl_F77='-Wl,'
21645       # PIC (with -KPIC) is the default.
21646       lt_prog_compiler_static_F77='-non_shared'
21647       ;;
21648
21649     newsos6)
21650       lt_prog_compiler_pic_F77='-KPIC'
21651       lt_prog_compiler_static_F77='-Bstatic'
21652       ;;
21653
21654     linux*)
21655       case $cc_basename in
21656       icc* | ecc*)
21657         lt_prog_compiler_wl_F77='-Wl,'
21658         lt_prog_compiler_pic_F77='-KPIC'
21659         lt_prog_compiler_static_F77='-static'
21660         ;;
21661       pgcc* | pgf77* | pgf90* | pgf95*)
21662         # Portland Group compilers (*not* the Pentium gcc compiler,
21663         # which looks to be a dead project)
21664         lt_prog_compiler_wl_F77='-Wl,'
21665         lt_prog_compiler_pic_F77='-fpic'
21666         lt_prog_compiler_static_F77='-Bstatic'
21667         ;;
21668       ccc*)
21669         lt_prog_compiler_wl_F77='-Wl,'
21670         # All Alpha code is PIC.
21671         lt_prog_compiler_static_F77='-non_shared'
21672         ;;
21673       esac
21674       ;;
21675
21676     osf3* | osf4* | osf5*)
21677       lt_prog_compiler_wl_F77='-Wl,'
21678       # All OSF/1 code is PIC.
21679       lt_prog_compiler_static_F77='-non_shared'
21680       ;;
21681
21682     solaris*)
21683       lt_prog_compiler_pic_F77='-KPIC'
21684       lt_prog_compiler_static_F77='-Bstatic'
21685       case $cc_basename in
21686       f77* | f90* | f95*)
21687         lt_prog_compiler_wl_F77='-Qoption ld ';;
21688       *)
21689         lt_prog_compiler_wl_F77='-Wl,';;
21690       esac
21691       ;;
21692
21693     sunos4*)
21694       lt_prog_compiler_wl_F77='-Qoption ld '
21695       lt_prog_compiler_pic_F77='-PIC'
21696       lt_prog_compiler_static_F77='-Bstatic'
21697       ;;
21698
21699     sysv4 | sysv4.2uw2* | sysv4.3*)
21700       lt_prog_compiler_wl_F77='-Wl,'
21701       lt_prog_compiler_pic_F77='-KPIC'
21702       lt_prog_compiler_static_F77='-Bstatic'
21703       ;;
21704
21705     sysv4*MP*)
21706       if test -d /usr/nec ;then
21707         lt_prog_compiler_pic_F77='-Kconform_pic'
21708         lt_prog_compiler_static_F77='-Bstatic'
21709       fi
21710       ;;
21711
21712     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21713       lt_prog_compiler_wl_F77='-Wl,'
21714       lt_prog_compiler_pic_F77='-KPIC'
21715       lt_prog_compiler_static_F77='-Bstatic'
21716       ;;
21717
21718     unicos*)
21719       lt_prog_compiler_wl_F77='-Wl,'
21720       lt_prog_compiler_can_build_shared_F77=no
21721       ;;
21722
21723     uts4*)
21724       lt_prog_compiler_pic_F77='-pic'
21725       lt_prog_compiler_static_F77='-Bstatic'
21726       ;;
21727
21728     *)
21729       lt_prog_compiler_can_build_shared_F77=no
21730       ;;
21731     esac
21732   fi
21733
21734 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21735 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21736
21737 #
21738 # Check to make sure the PIC flag actually works.
21739 #
21740 if test -n "$lt_prog_compiler_pic_F77"; then
21741
21742 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21743 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21744 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21745   echo $ECHO_N "(cached) $ECHO_C" >&6
21746 else
21747   lt_prog_compiler_pic_works_F77=no
21748   ac_outfile=conftest.$ac_objext
21749    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21750    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21751    # Insert the option either (1) after the last *FLAGS variable, or
21752    # (2) before a word containing "conftest.", or (3) at the end.
21753    # Note that $ac_compile itself does not contain backslashes and begins
21754    # with a dollar sign (not a hyphen), so the echo should work correctly.
21755    # The option is referenced via a variable to avoid confusing sed.
21756    lt_compile=`echo "$ac_compile" | $SED \
21757    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21758    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21759    -e 's:$: $lt_compiler_flag:'`
21760    (eval echo "\"\$as_me:21760: $lt_compile\"" >&5)
21761    (eval "$lt_compile" 2>conftest.err)
21762    ac_status=$?
21763    cat conftest.err >&5
21764    echo "$as_me:21764: \$? = $ac_status" >&5
21765    if (exit $ac_status) && test -s "$ac_outfile"; then
21766      # The compiler can only warn and ignore the option if not recognized
21767      # So say no if there are warnings other than the usual output.
21768      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21769      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21770      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21771        lt_prog_compiler_pic_works_F77=yes
21772      fi
21773    fi
21774    $rm conftest*
21775
21776 fi
21777 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21778 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21779
21780 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21781     case $lt_prog_compiler_pic_F77 in
21782      "" | " "*) ;;
21783      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21784      esac
21785 else
21786     lt_prog_compiler_pic_F77=
21787      lt_prog_compiler_can_build_shared_F77=no
21788 fi
21789
21790 fi
21791 case $host_os in
21792   # For platforms which do not support PIC, -DPIC is meaningless:
21793   *djgpp*)
21794     lt_prog_compiler_pic_F77=
21795     ;;
21796   *)
21797     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21798     ;;
21799 esac
21800
21801 #
21802 # Check to make sure the static flag actually works.
21803 #
21804 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21805 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21806 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21807 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21808   echo $ECHO_N "(cached) $ECHO_C" >&6
21809 else
21810   lt_prog_compiler_static_works_F77=no
21811    save_LDFLAGS="$LDFLAGS"
21812    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21813    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21814    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21815      # The linker can only warn and ignore the option if not recognized
21816      # So say no if there are warnings
21817      if test -s conftest.err; then
21818        # Append any errors to the config.log.
21819        cat conftest.err 1>&5
21820        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21821        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21822        if diff conftest.exp conftest.er2 >/dev/null; then
21823          lt_prog_compiler_static_works_F77=yes
21824        fi
21825      else
21826        lt_prog_compiler_static_works_F77=yes
21827      fi
21828    fi
21829    $rm conftest*
21830    LDFLAGS="$save_LDFLAGS"
21831
21832 fi
21833 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21834 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21835
21836 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21837     :
21838 else
21839     lt_prog_compiler_static_F77=
21840 fi
21841
21842
21843 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21844 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21845 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21846   echo $ECHO_N "(cached) $ECHO_C" >&6
21847 else
21848   lt_cv_prog_compiler_c_o_F77=no
21849    $rm -r conftest 2>/dev/null
21850    mkdir conftest
21851    cd conftest
21852    mkdir out
21853    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21854
21855    lt_compiler_flag="-o out/conftest2.$ac_objext"
21856    # Insert the option either (1) after the last *FLAGS variable, or
21857    # (2) before a word containing "conftest.", or (3) at the end.
21858    # Note that $ac_compile itself does not contain backslashes and begins
21859    # with a dollar sign (not a hyphen), so the echo should work correctly.
21860    lt_compile=`echo "$ac_compile" | $SED \
21861    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21862    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21863    -e 's:$: $lt_compiler_flag:'`
21864    (eval echo "\"\$as_me:21864: $lt_compile\"" >&5)
21865    (eval "$lt_compile" 2>out/conftest.err)
21866    ac_status=$?
21867    cat out/conftest.err >&5
21868    echo "$as_me:21868: \$? = $ac_status" >&5
21869    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21870    then
21871      # The compiler can only warn and ignore the option if not recognized
21872      # So say no if there are warnings
21873      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21874      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21875      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21876        lt_cv_prog_compiler_c_o_F77=yes
21877      fi
21878    fi
21879    chmod u+w . 2>&5
21880    $rm conftest*
21881    # SGI C++ compiler will create directory out/ii_files/ for
21882    # template instantiation
21883    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21884    $rm out/* && rmdir out
21885    cd ..
21886    rmdir conftest
21887    $rm conftest*
21888
21889 fi
21890 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21891 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21892
21893
21894 hard_links="nottested"
21895 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21896   # do not overwrite the value of need_locks provided by the user
21897   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21898 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21899   hard_links=yes
21900   $rm conftest*
21901   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21902   touch conftest.a
21903   ln conftest.a conftest.b 2>&5 || hard_links=no
21904   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21905   { echo "$as_me:$LINENO: result: $hard_links" >&5
21906 echo "${ECHO_T}$hard_links" >&6; }
21907   if test "$hard_links" = no; then
21908     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21909 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21910     need_locks=warn
21911   fi
21912 else
21913   need_locks=no
21914 fi
21915
21916 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21917 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21918
21919   runpath_var=
21920   allow_undefined_flag_F77=
21921   enable_shared_with_static_runtimes_F77=no
21922   archive_cmds_F77=
21923   archive_expsym_cmds_F77=
21924   old_archive_From_new_cmds_F77=
21925   old_archive_from_expsyms_cmds_F77=
21926   export_dynamic_flag_spec_F77=
21927   whole_archive_flag_spec_F77=
21928   thread_safe_flag_spec_F77=
21929   hardcode_libdir_flag_spec_F77=
21930   hardcode_libdir_flag_spec_ld_F77=
21931   hardcode_libdir_separator_F77=
21932   hardcode_direct_F77=no
21933   hardcode_minus_L_F77=no
21934   hardcode_shlibpath_var_F77=unsupported
21935   link_all_deplibs_F77=unknown
21936   hardcode_automatic_F77=no
21937   module_cmds_F77=
21938   module_expsym_cmds_F77=
21939   always_export_symbols_F77=no
21940   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21941   # include_expsyms should be a list of space-separated symbols to be *always*
21942   # included in the symbol list
21943   include_expsyms_F77=
21944   # exclude_expsyms can be an extended regexp of symbols to exclude
21945   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21946   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21947   # as well as any symbol that contains `d'.
21948   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21949   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21950   # platforms (ab)use it in PIC code, but their linkers get confused if
21951   # the symbol is explicitly referenced.  Since portable code cannot
21952   # rely on this symbol name, it's probably fine to never include it in
21953   # preloaded symbol tables.
21954   extract_expsyms_cmds=
21955   # Just being paranoid about ensuring that cc_basename is set.
21956   for cc_temp in $compiler""; do
21957   case $cc_temp in
21958     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21959     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21960     \-*) ;;
21961     *) break;;
21962   esac
21963 done
21964 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21965
21966   case $host_os in
21967   cygwin* | mingw* | pw32*)
21968     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21969     # When not using gcc, we currently assume that we are using
21970     # Microsoft Visual C++.
21971     if test "$GCC" != yes; then
21972       with_gnu_ld=no
21973     fi
21974     ;;
21975   interix*)
21976     # we just hope/assume this is gcc and not c89 (= MSVC++)
21977     with_gnu_ld=yes
21978     ;;
21979   openbsd*)
21980     with_gnu_ld=no
21981     ;;
21982   esac
21983
21984   ld_shlibs_F77=yes
21985   if test "$with_gnu_ld" = yes; then
21986     # If archive_cmds runs LD, not CC, wlarc should be empty
21987     wlarc='${wl}'
21988
21989     # Set some defaults for GNU ld with shared library support. These
21990     # are reset later if shared libraries are not supported. Putting them
21991     # here allows them to be overridden if necessary.
21992     runpath_var=LD_RUN_PATH
21993     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21994     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21995     # ancient GNU ld didn't support --whole-archive et. al.
21996     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21997         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21998       else
21999         whole_archive_flag_spec_F77=
22000     fi
22001     supports_anon_versioning=no
22002     case `$LD -v 2>/dev/null` in
22003       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22004       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22005       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22006       *\ 2.11.*) ;; # other 2.11 versions
22007       *) supports_anon_versioning=yes ;;
22008     esac
22009
22010     # See if GNU ld supports shared libraries.
22011     case $host_os in
22012     aix3* | aix4* | aix5*)
22013       # On AIX/PPC, the GNU linker is very broken
22014       if test "$host_cpu" != ia64; then
22015         ld_shlibs_F77=no
22016         cat <<EOF 1>&2
22017
22018 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22019 *** to be unable to reliably create shared libraries on AIX.
22020 *** Therefore, libtool is disabling shared libraries support.  If you
22021 *** really care for shared libraries, you may want to modify your PATH
22022 *** so that a non-GNU linker is found, and then restart.
22023
22024 EOF
22025       fi
22026       ;;
22027
22028     amigaos*)
22029       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)'
22030       hardcode_libdir_flag_spec_F77='-L$libdir'
22031       hardcode_minus_L_F77=yes
22032
22033       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22034       # that the semantics of dynamic libraries on AmigaOS, at least up
22035       # to version 4, is to share data among multiple programs linked
22036       # with the same dynamic library.  Since this doesn't match the
22037       # behavior of shared libraries on other platforms, we can't use
22038       # them.
22039       ld_shlibs_F77=no
22040       ;;
22041
22042     beos*)
22043       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22044         allow_undefined_flag_F77=unsupported
22045         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22046         # support --undefined.  This deserves some investigation.  FIXME
22047         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22048       else
22049         ld_shlibs_F77=no
22050       fi
22051       ;;
22052
22053     cygwin* | mingw* | pw32*)
22054       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22055       # as there is no search path for DLLs.
22056       hardcode_libdir_flag_spec_F77='-L$libdir'
22057       allow_undefined_flag_F77=unsupported
22058       always_export_symbols_F77=no
22059       enable_shared_with_static_runtimes_F77=yes
22060       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22061
22062       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22063         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22064         # If the export-symbols file already is a .def file (1st line
22065         # is EXPORTS), use it as is; otherwise, prepend...
22066         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22067           cp $export_symbols $output_objdir/$soname.def;
22068         else
22069           echo EXPORTS > $output_objdir/$soname.def;
22070           cat $export_symbols >> $output_objdir/$soname.def;
22071         fi~
22072         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22073       else
22074         ld_shlibs_F77=no
22075       fi
22076       ;;
22077
22078     interix3*)
22079       hardcode_direct_F77=no
22080       hardcode_shlibpath_var_F77=no
22081       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22082       export_dynamic_flag_spec_F77='${wl}-E'
22083       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22084       # Instead, shared libraries are loaded at an image base (0x10000000 by
22085       # default) and relocated if they conflict, which is a slow very memory
22086       # consuming and fragmenting process.  To avoid this, we pick a random,
22087       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22088       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22089       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'
22090       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'
22091       ;;
22092
22093     linux*)
22094       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22095         tmp_addflag=
22096         case $cc_basename,$host_cpu in
22097         pgcc*)                          # Portland Group C compiler
22098           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'
22099           tmp_addflag=' $pic_flag'
22100           ;;
22101         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22102           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'
22103           tmp_addflag=' $pic_flag -Mnomain' ;;
22104         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22105           tmp_addflag=' -i_dynamic' ;;
22106         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22107           tmp_addflag=' -i_dynamic -nofor_main' ;;
22108         ifc* | ifort*)                  # Intel Fortran compiler
22109           tmp_addflag=' -nofor_main' ;;
22110         esac
22111         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22112
22113         if test $supports_anon_versioning = yes; then
22114           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22115   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22116   $echo "local: *; };" >> $output_objdir/$libname.ver~
22117           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22118         fi
22119       else
22120         ld_shlibs_F77=no
22121       fi
22122       ;;
22123
22124     netbsd*)
22125       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22126         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22127         wlarc=
22128       else
22129         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22130         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22131       fi
22132       ;;
22133
22134     solaris*)
22135       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22136         ld_shlibs_F77=no
22137         cat <<EOF 1>&2
22138
22139 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22140 *** create shared libraries on Solaris systems.  Therefore, libtool
22141 *** is disabling shared libraries support.  We urge you to upgrade GNU
22142 *** binutils to release 2.9.1 or newer.  Another option is to modify
22143 *** your PATH or compiler configuration so that the native linker is
22144 *** used, and then restart.
22145
22146 EOF
22147       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22148         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22149         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22150       else
22151         ld_shlibs_F77=no
22152       fi
22153       ;;
22154
22155     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22156       case `$LD -v 2>&1` in
22157         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22158         ld_shlibs_F77=no
22159         cat <<_LT_EOF 1>&2
22160
22161 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22162 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22163 *** is disabling shared libraries support.  We urge you to upgrade GNU
22164 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22165 *** your PATH or compiler configuration so that the native linker is
22166 *** used, and then restart.
22167
22168 _LT_EOF
22169         ;;
22170         *)
22171           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22172             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22173             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22174             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22175           else
22176             ld_shlibs_F77=no
22177           fi
22178         ;;
22179       esac
22180       ;;
22181
22182     sunos4*)
22183       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22184       wlarc=
22185       hardcode_direct_F77=yes
22186       hardcode_shlibpath_var_F77=no
22187       ;;
22188
22189     *)
22190       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22191         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22192         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22193       else
22194         ld_shlibs_F77=no
22195       fi
22196       ;;
22197     esac
22198
22199     if test "$ld_shlibs_F77" = no; then
22200       runpath_var=
22201       hardcode_libdir_flag_spec_F77=
22202       export_dynamic_flag_spec_F77=
22203       whole_archive_flag_spec_F77=
22204     fi
22205   else
22206     # PORTME fill in a description of your system's linker (not GNU ld)
22207     case $host_os in
22208     aix3*)
22209       allow_undefined_flag_F77=unsupported
22210       always_export_symbols_F77=yes
22211       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'
22212       # Note: this linker hardcodes the directories in LIBPATH if there
22213       # are no directories specified by -L.
22214       hardcode_minus_L_F77=yes
22215       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22216         # Neither direct hardcoding nor static linking is supported with a
22217         # broken collect2.
22218         hardcode_direct_F77=unsupported
22219       fi
22220       ;;
22221
22222     aix4* | aix5*)
22223       if test "$host_cpu" = ia64; then
22224         # On IA64, the linker does run time linking by default, so we don't
22225         # have to do anything special.
22226         aix_use_runtimelinking=no
22227         exp_sym_flag='-Bexport'
22228         no_entry_flag=""
22229       else
22230         # If we're using GNU nm, then we don't want the "-C" option.
22231         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22232         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22233           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'
22234         else
22235           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'
22236         fi
22237         aix_use_runtimelinking=no
22238
22239         # Test if we are trying to use run time linking or normal
22240         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22241         # need to do runtime linking.
22242         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22243           for ld_flag in $LDFLAGS; do
22244           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22245             aix_use_runtimelinking=yes
22246             break
22247           fi
22248           done
22249           ;;
22250         esac
22251
22252         exp_sym_flag='-bexport'
22253         no_entry_flag='-bnoentry'
22254       fi
22255
22256       # When large executables or shared objects are built, AIX ld can
22257       # have problems creating the table of contents.  If linking a library
22258       # or program results in "error TOC overflow" add -mminimal-toc to
22259       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22260       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22261
22262       archive_cmds_F77=''
22263       hardcode_direct_F77=yes
22264       hardcode_libdir_separator_F77=':'
22265       link_all_deplibs_F77=yes
22266
22267       if test "$GCC" = yes; then
22268         case $host_os in aix4.[012]|aix4.[012].*)
22269         # We only want to do this on AIX 4.2 and lower, the check
22270         # below for broken collect2 doesn't work under 4.3+
22271           collect2name=`${CC} -print-prog-name=collect2`
22272           if test -f "$collect2name" && \
22273            strings "$collect2name" | grep resolve_lib_name >/dev/null
22274           then
22275           # We have reworked collect2
22276           hardcode_direct_F77=yes
22277           else
22278           # We have old collect2
22279           hardcode_direct_F77=unsupported
22280           # It fails to find uninstalled libraries when the uninstalled
22281           # path is not listed in the libpath.  Setting hardcode_minus_L
22282           # to unsupported forces relinking
22283           hardcode_minus_L_F77=yes
22284           hardcode_libdir_flag_spec_F77='-L$libdir'
22285           hardcode_libdir_separator_F77=
22286           fi
22287           ;;
22288         esac
22289         shared_flag='-shared'
22290         if test "$aix_use_runtimelinking" = yes; then
22291           shared_flag="$shared_flag "'${wl}-G'
22292         fi
22293       else
22294         # not using gcc
22295         if test "$host_cpu" = ia64; then
22296         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22297         # chokes on -Wl,-G. The following line is correct:
22298           shared_flag='-G'
22299         else
22300           if test "$aix_use_runtimelinking" = yes; then
22301             shared_flag='${wl}-G'
22302           else
22303             shared_flag='${wl}-bM:SRE'
22304           fi
22305         fi
22306       fi
22307
22308       # It seems that -bexpall does not export symbols beginning with
22309       # underscore (_), so it is better to generate a list of symbols to export.
22310       always_export_symbols_F77=yes
22311       if test "$aix_use_runtimelinking" = yes; then
22312         # Warning - without using the other runtime loading flags (-brtl),
22313         # -berok will link without error, but may produce a broken library.
22314         allow_undefined_flag_F77='-berok'
22315        # Determine the default libpath from the value encoded in an empty executable.
22316        cat >conftest.$ac_ext <<_ACEOF
22317       program main
22318
22319       end
22320 _ACEOF
22321 rm -f conftest.$ac_objext conftest$ac_exeext
22322 if { (ac_try="$ac_link"
22323 case "(($ac_try" in
22324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22325   *) ac_try_echo=$ac_try;;
22326 esac
22327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22328   (eval "$ac_link") 2>conftest.er1
22329   ac_status=$?
22330   grep -v '^ *+' conftest.er1 >conftest.err
22331   rm -f conftest.er1
22332   cat conftest.err >&5
22333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334   (exit $ac_status); } &&
22335          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22336   { (case "(($ac_try" in
22337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338   *) ac_try_echo=$ac_try;;
22339 esac
22340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341   (eval "$ac_try") 2>&5
22342   ac_status=$?
22343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344   (exit $ac_status); }; } &&
22345          { ac_try='test -s conftest$ac_exeext'
22346   { (case "(($ac_try" in
22347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348   *) ac_try_echo=$ac_try;;
22349 esac
22350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22351   (eval "$ac_try") 2>&5
22352   ac_status=$?
22353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354   (exit $ac_status); }; }; then
22355
22356 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22357 }'`
22358 # Check for a 64-bit object if we didn't find anything.
22359 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; }
22360 }'`; fi
22361 else
22362   echo "$as_me: failed program was:" >&5
22363 sed 's/^/| /' conftest.$ac_ext >&5
22364
22365
22366 fi
22367
22368 rm -f core conftest.err conftest.$ac_objext \
22369       conftest$ac_exeext conftest.$ac_ext
22370 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22371
22372        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22373         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"
22374        else
22375         if test "$host_cpu" = ia64; then
22376           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22377           allow_undefined_flag_F77="-z nodefs"
22378           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"
22379         else
22380          # Determine the default libpath from the value encoded in an empty executable.
22381          cat >conftest.$ac_ext <<_ACEOF
22382       program main
22383
22384       end
22385 _ACEOF
22386 rm -f conftest.$ac_objext conftest$ac_exeext
22387 if { (ac_try="$ac_link"
22388 case "(($ac_try" in
22389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390   *) ac_try_echo=$ac_try;;
22391 esac
22392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393   (eval "$ac_link") 2>conftest.er1
22394   ac_status=$?
22395   grep -v '^ *+' conftest.er1 >conftest.err
22396   rm -f conftest.er1
22397   cat conftest.err >&5
22398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399   (exit $ac_status); } &&
22400          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22401   { (case "(($ac_try" in
22402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403   *) ac_try_echo=$ac_try;;
22404 esac
22405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406   (eval "$ac_try") 2>&5
22407   ac_status=$?
22408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409   (exit $ac_status); }; } &&
22410          { ac_try='test -s conftest$ac_exeext'
22411   { (case "(($ac_try" in
22412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413   *) ac_try_echo=$ac_try;;
22414 esac
22415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416   (eval "$ac_try") 2>&5
22417   ac_status=$?
22418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419   (exit $ac_status); }; }; then
22420
22421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22422 }'`
22423 # Check for a 64-bit object if we didn't find anything.
22424 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; }
22425 }'`; fi
22426 else
22427   echo "$as_me: failed program was:" >&5
22428 sed 's/^/| /' conftest.$ac_ext >&5
22429
22430
22431 fi
22432
22433 rm -f core conftest.err conftest.$ac_objext \
22434       conftest$ac_exeext conftest.$ac_ext
22435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22436
22437          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22438           # Warning - without using the other run time loading flags,
22439           # -berok will link without error, but may produce a broken library.
22440           no_undefined_flag_F77=' ${wl}-bernotok'
22441           allow_undefined_flag_F77=' ${wl}-berok'
22442           # Exported symbols can be pulled into shared objects from archives
22443           whole_archive_flag_spec_F77='$convenience'
22444           archive_cmds_need_lc_F77=yes
22445           # This is similar to how AIX traditionally builds its shared libraries.
22446           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'
22447         fi
22448       fi
22449       ;;
22450
22451     amigaos*)
22452       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)'
22453       hardcode_libdir_flag_spec_F77='-L$libdir'
22454       hardcode_minus_L_F77=yes
22455       # see comment about different semantics on the GNU ld section
22456       ld_shlibs_F77=no
22457       ;;
22458
22459     bsdi[45]*)
22460       export_dynamic_flag_spec_F77=-rdynamic
22461       ;;
22462
22463     cygwin* | mingw* | pw32*)
22464       # When not using gcc, we currently assume that we are using
22465       # Microsoft Visual C++.
22466       # hardcode_libdir_flag_spec is actually meaningless, as there is
22467       # no search path for DLLs.
22468       hardcode_libdir_flag_spec_F77=' '
22469       allow_undefined_flag_F77=unsupported
22470       # Tell ltmain to make .lib files, not .a files.
22471       libext=lib
22472       # Tell ltmain to make .dll files, not .so files.
22473       shrext_cmds=".dll"
22474       # FIXME: Setting linknames here is a bad hack.
22475       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22476       # The linker will automatically build a .lib file if we build a DLL.
22477       old_archive_From_new_cmds_F77='true'
22478       # FIXME: Should let the user specify the lib program.
22479       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22480       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22481       enable_shared_with_static_runtimes_F77=yes
22482       ;;
22483
22484     darwin* | rhapsody*)
22485       case $host_os in
22486         rhapsody* | darwin1.[012])
22487          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22488          ;;
22489        *) # Darwin 1.3 on
22490          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22491            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22492          else
22493            case ${MACOSX_DEPLOYMENT_TARGET} in
22494              10.[012])
22495                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22496                ;;
22497              10.*)
22498                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22499                ;;
22500            esac
22501          fi
22502          ;;
22503       esac
22504       archive_cmds_need_lc_F77=no
22505       hardcode_direct_F77=no
22506       hardcode_automatic_F77=yes
22507       hardcode_shlibpath_var_F77=unsupported
22508       whole_archive_flag_spec_F77=''
22509       link_all_deplibs_F77=yes
22510     if test "$GCC" = yes ; then
22511         output_verbose_link_cmd='echo'
22512         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22513       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22514       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22515       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}'
22516       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}'
22517     else
22518       case $cc_basename in
22519         xlc*)
22520          output_verbose_link_cmd='echo'
22521          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22522          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22523           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22524          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}'
22525           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}'
22526           ;;
22527        *)
22528          ld_shlibs_F77=no
22529           ;;
22530       esac
22531     fi
22532       ;;
22533
22534     dgux*)
22535       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22536       hardcode_libdir_flag_spec_F77='-L$libdir'
22537       hardcode_shlibpath_var_F77=no
22538       ;;
22539
22540     freebsd1*)
22541       ld_shlibs_F77=no
22542       ;;
22543
22544     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22545     # support.  Future versions do this automatically, but an explicit c++rt0.o
22546     # does not break anything, and helps significantly (at the cost of a little
22547     # extra space).
22548     freebsd2.2*)
22549       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22550       hardcode_libdir_flag_spec_F77='-R$libdir'
22551       hardcode_direct_F77=yes
22552       hardcode_shlibpath_var_F77=no
22553       ;;
22554
22555     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22556     freebsd2*)
22557       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22558       hardcode_direct_F77=yes
22559       hardcode_minus_L_F77=yes
22560       hardcode_shlibpath_var_F77=no
22561       ;;
22562
22563     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22564     freebsd* | kfreebsd*-gnu | dragonfly*)
22565       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22566       hardcode_libdir_flag_spec_F77='-R$libdir'
22567       hardcode_direct_F77=yes
22568       hardcode_shlibpath_var_F77=no
22569       ;;
22570
22571     hpux9*)
22572       if test "$GCC" = yes; then
22573         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'
22574       else
22575         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'
22576       fi
22577       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22578       hardcode_libdir_separator_F77=:
22579       hardcode_direct_F77=yes
22580
22581       # hardcode_minus_L: Not really in the search PATH,
22582       # but as the default location of the library.
22583       hardcode_minus_L_F77=yes
22584       export_dynamic_flag_spec_F77='${wl}-E'
22585       ;;
22586
22587     hpux10*)
22588       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22589         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22590       else
22591         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22592       fi
22593       if test "$with_gnu_ld" = no; then
22594         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22595         hardcode_libdir_separator_F77=:
22596
22597         hardcode_direct_F77=yes
22598         export_dynamic_flag_spec_F77='${wl}-E'
22599
22600         # hardcode_minus_L: Not really in the search PATH,
22601         # but as the default location of the library.
22602         hardcode_minus_L_F77=yes
22603       fi
22604       ;;
22605
22606     hpux11*)
22607       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22608         case $host_cpu in
22609         hppa*64*)
22610           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22611           ;;
22612         ia64*)
22613           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22614           ;;
22615         *)
22616           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22617           ;;
22618         esac
22619       else
22620         case $host_cpu in
22621         hppa*64*)
22622           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22623           ;;
22624         ia64*)
22625           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22626           ;;
22627         *)
22628           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22629           ;;
22630         esac
22631       fi
22632       if test "$with_gnu_ld" = no; then
22633         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22634         hardcode_libdir_separator_F77=:
22635
22636         case $host_cpu in
22637         hppa*64*|ia64*)
22638           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22639           hardcode_direct_F77=no
22640           hardcode_shlibpath_var_F77=no
22641           ;;
22642         *)
22643           hardcode_direct_F77=yes
22644           export_dynamic_flag_spec_F77='${wl}-E'
22645
22646           # hardcode_minus_L: Not really in the search PATH,
22647           # but as the default location of the library.
22648           hardcode_minus_L_F77=yes
22649           ;;
22650         esac
22651       fi
22652       ;;
22653
22654     irix5* | irix6* | nonstopux*)
22655       if test "$GCC" = yes; then
22656         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'
22657       else
22658         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'
22659         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22660       fi
22661       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22662       hardcode_libdir_separator_F77=:
22663       link_all_deplibs_F77=yes
22664       ;;
22665
22666     netbsd*)
22667       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22668         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22669       else
22670         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22671       fi
22672       hardcode_libdir_flag_spec_F77='-R$libdir'
22673       hardcode_direct_F77=yes
22674       hardcode_shlibpath_var_F77=no
22675       ;;
22676
22677     newsos6)
22678       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22679       hardcode_direct_F77=yes
22680       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22681       hardcode_libdir_separator_F77=:
22682       hardcode_shlibpath_var_F77=no
22683       ;;
22684
22685     openbsd*)
22686       hardcode_direct_F77=yes
22687       hardcode_shlibpath_var_F77=no
22688       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22689         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22690         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22691         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22692         export_dynamic_flag_spec_F77='${wl}-E'
22693       else
22694        case $host_os in
22695          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22696            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22697            hardcode_libdir_flag_spec_F77='-R$libdir'
22698            ;;
22699          *)
22700            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22701            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22702            ;;
22703        esac
22704       fi
22705       ;;
22706
22707     os2*)
22708       hardcode_libdir_flag_spec_F77='-L$libdir'
22709       hardcode_minus_L_F77=yes
22710       allow_undefined_flag_F77=unsupported
22711       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'
22712       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22713       ;;
22714
22715     osf3*)
22716       if test "$GCC" = yes; then
22717         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22718         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'
22719       else
22720         allow_undefined_flag_F77=' -expect_unresolved \*'
22721         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'
22722       fi
22723       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22724       hardcode_libdir_separator_F77=:
22725       ;;
22726
22727     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22728       if test "$GCC" = yes; then
22729         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22730         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'
22731         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22732       else
22733         allow_undefined_flag_F77=' -expect_unresolved \*'
22734         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'
22735         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~
22736         $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'
22737
22738         # Both c and cxx compiler support -rpath directly
22739         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22740       fi
22741       hardcode_libdir_separator_F77=:
22742       ;;
22743
22744     solaris*)
22745       no_undefined_flag_F77=' -z text'
22746       if test "$GCC" = yes; then
22747         wlarc='${wl}'
22748         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22749         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22750           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22751       else
22752         wlarc=''
22753         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22754         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22755         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22756       fi
22757       hardcode_libdir_flag_spec_F77='-R$libdir'
22758       hardcode_shlibpath_var_F77=no
22759       case $host_os in
22760       solaris2.[0-5] | solaris2.[0-5].*) ;;
22761       *)
22762         # The compiler driver will combine linker options so we
22763         # cannot just pass the convience library names through
22764         # without $wl, iff we do not link with $LD.
22765         # Luckily, gcc supports the same syntax we need for Sun Studio.
22766         # Supported since Solaris 2.6 (maybe 2.5.1?)
22767         case $wlarc in
22768         '')
22769           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22770         *)
22771           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' ;;
22772         esac ;;
22773       esac
22774       link_all_deplibs_F77=yes
22775       ;;
22776
22777     sunos4*)
22778       if test "x$host_vendor" = xsequent; then
22779         # Use $CC to link under sequent, because it throws in some extra .o
22780         # files that make .init and .fini sections work.
22781         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22782       else
22783         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22784       fi
22785       hardcode_libdir_flag_spec_F77='-L$libdir'
22786       hardcode_direct_F77=yes
22787       hardcode_minus_L_F77=yes
22788       hardcode_shlibpath_var_F77=no
22789       ;;
22790
22791     sysv4)
22792       case $host_vendor in
22793         sni)
22794           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22795           hardcode_direct_F77=yes # is this really true???
22796         ;;
22797         siemens)
22798           ## LD is ld it makes a PLAMLIB
22799           ## CC just makes a GrossModule.
22800           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22801           reload_cmds_F77='$CC -r -o $output$reload_objs'
22802           hardcode_direct_F77=no
22803         ;;
22804         motorola)
22805           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22806           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22807         ;;
22808       esac
22809       runpath_var='LD_RUN_PATH'
22810       hardcode_shlibpath_var_F77=no
22811       ;;
22812
22813     sysv4.3*)
22814       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22815       hardcode_shlibpath_var_F77=no
22816       export_dynamic_flag_spec_F77='-Bexport'
22817       ;;
22818
22819     sysv4*MP*)
22820       if test -d /usr/nec; then
22821         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22822         hardcode_shlibpath_var_F77=no
22823         runpath_var=LD_RUN_PATH
22824         hardcode_runpath_var=yes
22825         ld_shlibs_F77=yes
22826       fi
22827       ;;
22828
22829     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22830       no_undefined_flag_F77='${wl}-z,text'
22831       archive_cmds_need_lc_F77=no
22832       hardcode_shlibpath_var_F77=no
22833       runpath_var='LD_RUN_PATH'
22834
22835       if test "$GCC" = yes; then
22836         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22837         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22838       else
22839         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22840         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22841       fi
22842       ;;
22843
22844     sysv5* | sco3.2v5* | sco5v6*)
22845       # Note: We can NOT use -z defs as we might desire, because we do not
22846       # link with -lc, and that would cause any symbols used from libc to
22847       # always be unresolved, which means just about no library would
22848       # ever link correctly.  If we're not using GNU ld we use -z text
22849       # though, which does catch some bad symbols but isn't as heavy-handed
22850       # as -z defs.
22851       no_undefined_flag_F77='${wl}-z,text'
22852       allow_undefined_flag_F77='${wl}-z,nodefs'
22853       archive_cmds_need_lc_F77=no
22854       hardcode_shlibpath_var_F77=no
22855       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22856       hardcode_libdir_separator_F77=':'
22857       link_all_deplibs_F77=yes
22858       export_dynamic_flag_spec_F77='${wl}-Bexport'
22859       runpath_var='LD_RUN_PATH'
22860
22861       if test "$GCC" = yes; then
22862         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22863         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22864       else
22865         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22866         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22867       fi
22868       ;;
22869
22870     uts4*)
22871       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22872       hardcode_libdir_flag_spec_F77='-L$libdir'
22873       hardcode_shlibpath_var_F77=no
22874       ;;
22875
22876     *)
22877       ld_shlibs_F77=no
22878       ;;
22879     esac
22880   fi
22881
22882 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22883 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22884 test "$ld_shlibs_F77" = no && can_build_shared=no
22885
22886 #
22887 # Do we need to explicitly link libc?
22888 #
22889 case "x$archive_cmds_need_lc_F77" in
22890 x|xyes)
22891   # Assume -lc should be added
22892   archive_cmds_need_lc_F77=yes
22893
22894   if test "$enable_shared" = yes && test "$GCC" = yes; then
22895     case $archive_cmds_F77 in
22896     *'~'*)
22897       # FIXME: we may have to deal with multi-command sequences.
22898       ;;
22899     '$CC '*)
22900       # Test whether the compiler implicitly links with -lc since on some
22901       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22902       # to ld, don't add -lc before -lgcc.
22903       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22904 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22905       $rm conftest*
22906       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22907
22908       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22909   (eval $ac_compile) 2>&5
22910   ac_status=$?
22911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912   (exit $ac_status); } 2>conftest.err; then
22913         soname=conftest
22914         lib=conftest
22915         libobjs=conftest.$ac_objext
22916         deplibs=
22917         wl=$lt_prog_compiler_wl_F77
22918         pic_flag=$lt_prog_compiler_pic_F77
22919         compiler_flags=-v
22920         linker_flags=-v
22921         verstring=
22922         output_objdir=.
22923         libname=conftest
22924         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22925         allow_undefined_flag_F77=
22926         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22927   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22928   ac_status=$?
22929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930   (exit $ac_status); }
22931         then
22932           archive_cmds_need_lc_F77=no
22933         else
22934           archive_cmds_need_lc_F77=yes
22935         fi
22936         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22937       else
22938         cat conftest.err 1>&5
22939       fi
22940       $rm conftest*
22941       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22942 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22943       ;;
22944     esac
22945   fi
22946   ;;
22947 esac
22948
22949 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22950 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22951 library_names_spec=
22952 libname_spec='lib$name'
22953 soname_spec=
22954 shrext_cmds=".so"
22955 postinstall_cmds=
22956 postuninstall_cmds=
22957 finish_cmds=
22958 finish_eval=
22959 shlibpath_var=
22960 shlibpath_overrides_runpath=unknown
22961 version_type=none
22962 dynamic_linker="$host_os ld.so"
22963 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22964 if test "$GCC" = yes; then
22965   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22966   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22967     # if the path contains ";" then we assume it to be the separator
22968     # otherwise default to the standard path separator (i.e. ":") - it is
22969     # assumed that no part of a normal pathname contains ";" but that should
22970     # okay in the real world where ";" in dirpaths is itself problematic.
22971     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22972   else
22973     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22974   fi
22975 else
22976   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22977 fi
22978 need_lib_prefix=unknown
22979 hardcode_into_libs=no
22980
22981 # when you set need_version to no, make sure it does not cause -set_version
22982 # flags to be left without arguments
22983 need_version=unknown
22984
22985 case $host_os in
22986 aix3*)
22987   version_type=linux
22988   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22989   shlibpath_var=LIBPATH
22990
22991   # AIX 3 has no versioning support, so we append a major version to the name.
22992   soname_spec='${libname}${release}${shared_ext}$major'
22993   ;;
22994
22995 aix4* | aix5*)
22996   version_type=linux
22997   need_lib_prefix=no
22998   need_version=no
22999   hardcode_into_libs=yes
23000   if test "$host_cpu" = ia64; then
23001     # AIX 5 supports IA64
23002     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23003     shlibpath_var=LD_LIBRARY_PATH
23004   else
23005     # With GCC up to 2.95.x, collect2 would create an import file
23006     # for dependence libraries.  The import file would start with
23007     # the line `#! .'.  This would cause the generated library to
23008     # depend on `.', always an invalid library.  This was fixed in
23009     # development snapshots of GCC prior to 3.0.
23010     case $host_os in
23011       aix4 | aix4.[01] | aix4.[01].*)
23012       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23013            echo ' yes '
23014            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23015         :
23016       else
23017         can_build_shared=no
23018       fi
23019       ;;
23020     esac
23021     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23022     # soname into executable. Probably we can add versioning support to
23023     # collect2, so additional links can be useful in future.
23024     if test "$aix_use_runtimelinking" = yes; then
23025       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23026       # instead of lib<name>.a to let people know that these are not
23027       # typical AIX shared libraries.
23028       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23029     else
23030       # We preserve .a as extension for shared libraries through AIX4.2
23031       # and later when we are not doing run time linking.
23032       library_names_spec='${libname}${release}.a $libname.a'
23033       soname_spec='${libname}${release}${shared_ext}$major'
23034     fi
23035     shlibpath_var=LIBPATH
23036   fi
23037   ;;
23038
23039 amigaos*)
23040   library_names_spec='$libname.ixlibrary $libname.a'
23041   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23042   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'
23043   ;;
23044
23045 beos*)
23046   library_names_spec='${libname}${shared_ext}'
23047   dynamic_linker="$host_os ld.so"
23048   shlibpath_var=LIBRARY_PATH
23049   ;;
23050
23051 bsdi[45]*)
23052   version_type=linux
23053   need_version=no
23054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23055   soname_spec='${libname}${release}${shared_ext}$major'
23056   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23057   shlibpath_var=LD_LIBRARY_PATH
23058   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23059   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23060   # the default ld.so.conf also contains /usr/contrib/lib and
23061   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23062   # libtool to hard-code these into programs
23063   ;;
23064
23065 cygwin* | mingw* | pw32*)
23066   version_type=windows
23067   shrext_cmds=".dll"
23068   need_version=no
23069   need_lib_prefix=no
23070
23071   case $GCC,$host_os in
23072   yes,cygwin* | yes,mingw* | yes,pw32*)
23073     library_names_spec='$libname.dll.a'
23074     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23075     postinstall_cmds='base_file=`basename \${file}`~
23076       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23077       dldir=$destdir/`dirname \$dlpath`~
23078       test -d \$dldir || mkdir -p \$dldir~
23079       $install_prog $dir/$dlname \$dldir/$dlname~
23080       chmod a+x \$dldir/$dlname'
23081     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23082       dlpath=$dir/\$dldll~
23083        $rm \$dlpath'
23084     shlibpath_overrides_runpath=yes
23085
23086     case $host_os in
23087     cygwin*)
23088       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23089       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23090       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23091       ;;
23092     mingw*)
23093       # MinGW DLLs use traditional 'lib' prefix
23094       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23095       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23096       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23097         # It is most probably a Windows format PATH printed by
23098         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23099         # path with ; separators, and with drive letters. We can handle the
23100         # drive letters (cygwin fileutils understands them), so leave them,
23101         # especially as we might pass files found there to a mingw objdump,
23102         # which wouldn't understand a cygwinified path. Ahh.
23103         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23104       else
23105         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23106       fi
23107       ;;
23108     pw32*)
23109       # pw32 DLLs use 'pw' prefix rather than 'lib'
23110       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23111       ;;
23112     esac
23113     ;;
23114
23115   *)
23116     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23117     ;;
23118   esac
23119   dynamic_linker='Win32 ld.exe'
23120   # FIXME: first we should search . and the directory the executable is in
23121   shlibpath_var=PATH
23122   ;;
23123
23124 darwin* | rhapsody*)
23125   dynamic_linker="$host_os dyld"
23126   version_type=darwin
23127   need_lib_prefix=no
23128   need_version=no
23129   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23130   soname_spec='${libname}${release}${major}$shared_ext'
23131   shlibpath_overrides_runpath=yes
23132   shlibpath_var=DYLD_LIBRARY_PATH
23133   shrext_cmds='.dylib'
23134   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23135   if test "$GCC" = yes; then
23136     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"`
23137   else
23138     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23139   fi
23140   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23141   ;;
23142
23143 dgux*)
23144   version_type=linux
23145   need_lib_prefix=no
23146   need_version=no
23147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23148   soname_spec='${libname}${release}${shared_ext}$major'
23149   shlibpath_var=LD_LIBRARY_PATH
23150   ;;
23151
23152 freebsd1*)
23153   dynamic_linker=no
23154   ;;
23155
23156 kfreebsd*-gnu)
23157   version_type=linux
23158   need_lib_prefix=no
23159   need_version=no
23160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23161   soname_spec='${libname}${release}${shared_ext}$major'
23162   shlibpath_var=LD_LIBRARY_PATH
23163   shlibpath_overrides_runpath=no
23164   hardcode_into_libs=yes
23165   dynamic_linker='GNU ld.so'
23166   ;;
23167
23168 freebsd* | dragonfly*)
23169   # DragonFly does not have aout.  When/if they implement a new
23170   # versioning mechanism, adjust this.
23171   if test -x /usr/bin/objformat; then
23172     objformat=`/usr/bin/objformat`
23173   else
23174     case $host_os in
23175     freebsd[123]*) objformat=aout ;;
23176     *) objformat=elf ;;
23177     esac
23178   fi
23179   version_type=freebsd-$objformat
23180   case $version_type in
23181     freebsd-elf*)
23182       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23183       need_version=no
23184       need_lib_prefix=no
23185       ;;
23186     freebsd-*)
23187       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23188       need_version=yes
23189       ;;
23190   esac
23191   shlibpath_var=LD_LIBRARY_PATH
23192   case $host_os in
23193   freebsd2*)
23194     shlibpath_overrides_runpath=yes
23195     ;;
23196   freebsd3.[01]* | freebsdelf3.[01]*)
23197     shlibpath_overrides_runpath=yes
23198     hardcode_into_libs=yes
23199     ;;
23200   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23201   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23202     shlibpath_overrides_runpath=no
23203     hardcode_into_libs=yes
23204     ;;
23205   freebsd*) # from 4.6 on
23206     shlibpath_overrides_runpath=yes
23207     hardcode_into_libs=yes
23208     ;;
23209   esac
23210   ;;
23211
23212 gnu*)
23213   version_type=linux
23214   need_lib_prefix=no
23215   need_version=no
23216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23217   soname_spec='${libname}${release}${shared_ext}$major'
23218   shlibpath_var=LD_LIBRARY_PATH
23219   hardcode_into_libs=yes
23220   ;;
23221
23222 hpux9* | hpux10* | hpux11*)
23223   # Give a soname corresponding to the major version so that dld.sl refuses to
23224   # link against other versions.
23225   version_type=sunos
23226   need_lib_prefix=no
23227   need_version=no
23228   case $host_cpu in
23229   ia64*)
23230     shrext_cmds='.so'
23231     hardcode_into_libs=yes
23232     dynamic_linker="$host_os dld.so"
23233     shlibpath_var=LD_LIBRARY_PATH
23234     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23235     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23236     soname_spec='${libname}${release}${shared_ext}$major'
23237     if test "X$HPUX_IA64_MODE" = X32; then
23238       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23239     else
23240       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23241     fi
23242     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23243     ;;
23244    hppa*64*)
23245      shrext_cmds='.sl'
23246      hardcode_into_libs=yes
23247      dynamic_linker="$host_os dld.sl"
23248      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23249      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23250      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23251      soname_spec='${libname}${release}${shared_ext}$major'
23252      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23253      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23254      ;;
23255    *)
23256     shrext_cmds='.sl'
23257     dynamic_linker="$host_os dld.sl"
23258     shlibpath_var=SHLIB_PATH
23259     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23260     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23261     soname_spec='${libname}${release}${shared_ext}$major'
23262     ;;
23263   esac
23264   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23265   postinstall_cmds='chmod 555 $lib'
23266   ;;
23267
23268 interix3*)
23269   version_type=linux
23270   need_lib_prefix=no
23271   need_version=no
23272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23273   soname_spec='${libname}${release}${shared_ext}$major'
23274   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23275   shlibpath_var=LD_LIBRARY_PATH
23276   shlibpath_overrides_runpath=no
23277   hardcode_into_libs=yes
23278   ;;
23279
23280 irix5* | irix6* | nonstopux*)
23281   case $host_os in
23282     nonstopux*) version_type=nonstopux ;;
23283     *)
23284         if test "$lt_cv_prog_gnu_ld" = yes; then
23285                 version_type=linux
23286         else
23287                 version_type=irix
23288         fi ;;
23289   esac
23290   need_lib_prefix=no
23291   need_version=no
23292   soname_spec='${libname}${release}${shared_ext}$major'
23293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23294   case $host_os in
23295   irix5* | nonstopux*)
23296     libsuff= shlibsuff=
23297     ;;
23298   *)
23299     case $LD in # libtool.m4 will add one of these switches to LD
23300     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23301       libsuff= shlibsuff= libmagic=32-bit;;
23302     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23303       libsuff=32 shlibsuff=N32 libmagic=N32;;
23304     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23305       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23306     *) libsuff= shlibsuff= libmagic=never-match;;
23307     esac
23308     ;;
23309   esac
23310   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23311   shlibpath_overrides_runpath=no
23312   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23313   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23314   hardcode_into_libs=yes
23315   ;;
23316
23317 # No shared lib support for Linux oldld, aout, or coff.
23318 linux*oldld* | linux*aout* | linux*coff*)
23319   dynamic_linker=no
23320   ;;
23321
23322 # This must be Linux ELF.
23323 linux*)
23324   version_type=linux
23325   need_lib_prefix=no
23326   need_version=no
23327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23328   soname_spec='${libname}${release}${shared_ext}$major'
23329   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23330   shlibpath_var=LD_LIBRARY_PATH
23331   shlibpath_overrides_runpath=no
23332   # This implies no fast_install, which is unacceptable.
23333   # Some rework will be needed to allow for fast_install
23334   # before this can be enabled.
23335   hardcode_into_libs=yes
23336
23337   # Append ld.so.conf contents to the search path
23338   if test -f /etc/ld.so.conf; then
23339     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' ' '`
23340     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23341   fi
23342
23343   # We used to test for /lib/ld.so.1 and disable shared libraries on
23344   # powerpc, because MkLinux only supported shared libraries with the
23345   # GNU dynamic linker.  Since this was broken with cross compilers,
23346   # most powerpc-linux boxes support dynamic linking these days and
23347   # people can always --disable-shared, the test was removed, and we
23348   # assume the GNU/Linux dynamic linker is in use.
23349   dynamic_linker='GNU/Linux ld.so'
23350   ;;
23351
23352 knetbsd*-gnu)
23353   version_type=linux
23354   need_lib_prefix=no
23355   need_version=no
23356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23357   soname_spec='${libname}${release}${shared_ext}$major'
23358   shlibpath_var=LD_LIBRARY_PATH
23359   shlibpath_overrides_runpath=no
23360   hardcode_into_libs=yes
23361   dynamic_linker='GNU ld.so'
23362   ;;
23363
23364 netbsd*)
23365   version_type=sunos
23366   need_lib_prefix=no
23367   need_version=no
23368   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23369     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23370     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23371     dynamic_linker='NetBSD (a.out) ld.so'
23372   else
23373     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23374     soname_spec='${libname}${release}${shared_ext}$major'
23375     dynamic_linker='NetBSD ld.elf_so'
23376   fi
23377   shlibpath_var=LD_LIBRARY_PATH
23378   shlibpath_overrides_runpath=yes
23379   hardcode_into_libs=yes
23380   ;;
23381
23382 newsos6)
23383   version_type=linux
23384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23385   shlibpath_var=LD_LIBRARY_PATH
23386   shlibpath_overrides_runpath=yes
23387   ;;
23388
23389 nto-qnx*)
23390   version_type=linux
23391   need_lib_prefix=no
23392   need_version=no
23393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23394   soname_spec='${libname}${release}${shared_ext}$major'
23395   shlibpath_var=LD_LIBRARY_PATH
23396   shlibpath_overrides_runpath=yes
23397   ;;
23398
23399 openbsd*)
23400   version_type=sunos
23401   sys_lib_dlsearch_path_spec="/usr/lib"
23402   need_lib_prefix=no
23403   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23404   case $host_os in
23405     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23406     *)                         need_version=no  ;;
23407   esac
23408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23409   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23410   shlibpath_var=LD_LIBRARY_PATH
23411   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23412     case $host_os in
23413       openbsd2.[89] | openbsd2.[89].*)
23414         shlibpath_overrides_runpath=no
23415         ;;
23416       *)
23417         shlibpath_overrides_runpath=yes
23418         ;;
23419       esac
23420   else
23421     shlibpath_overrides_runpath=yes
23422   fi
23423   ;;
23424
23425 os2*)
23426   libname_spec='$name'
23427   shrext_cmds=".dll"
23428   need_lib_prefix=no
23429   library_names_spec='$libname${shared_ext} $libname.a'
23430   dynamic_linker='OS/2 ld.exe'
23431   shlibpath_var=LIBPATH
23432   ;;
23433
23434 osf3* | osf4* | osf5*)
23435   version_type=osf
23436   need_lib_prefix=no
23437   need_version=no
23438   soname_spec='${libname}${release}${shared_ext}$major'
23439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23440   shlibpath_var=LD_LIBRARY_PATH
23441   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23442   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23443   ;;
23444
23445 solaris*)
23446   version_type=linux
23447   need_lib_prefix=no
23448   need_version=no
23449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23450   soname_spec='${libname}${release}${shared_ext}$major'
23451   shlibpath_var=LD_LIBRARY_PATH
23452   shlibpath_overrides_runpath=yes
23453   hardcode_into_libs=yes
23454   # ldd complains unless libraries are executable
23455   postinstall_cmds='chmod +x $lib'
23456   ;;
23457
23458 sunos4*)
23459   version_type=sunos
23460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23461   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23462   shlibpath_var=LD_LIBRARY_PATH
23463   shlibpath_overrides_runpath=yes
23464   if test "$with_gnu_ld" = yes; then
23465     need_lib_prefix=no
23466   fi
23467   need_version=yes
23468   ;;
23469
23470 sysv4 | sysv4.3*)
23471   version_type=linux
23472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23473   soname_spec='${libname}${release}${shared_ext}$major'
23474   shlibpath_var=LD_LIBRARY_PATH
23475   case $host_vendor in
23476     sni)
23477       shlibpath_overrides_runpath=no
23478       need_lib_prefix=no
23479       export_dynamic_flag_spec='${wl}-Blargedynsym'
23480       runpath_var=LD_RUN_PATH
23481       ;;
23482     siemens)
23483       need_lib_prefix=no
23484       ;;
23485     motorola)
23486       need_lib_prefix=no
23487       need_version=no
23488       shlibpath_overrides_runpath=no
23489       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23490       ;;
23491   esac
23492   ;;
23493
23494 sysv4*MP*)
23495   if test -d /usr/nec ;then
23496     version_type=linux
23497     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23498     soname_spec='$libname${shared_ext}.$major'
23499     shlibpath_var=LD_LIBRARY_PATH
23500   fi
23501   ;;
23502
23503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23504   version_type=freebsd-elf
23505   need_lib_prefix=no
23506   need_version=no
23507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23508   soname_spec='${libname}${release}${shared_ext}$major'
23509   shlibpath_var=LD_LIBRARY_PATH
23510   hardcode_into_libs=yes
23511   if test "$with_gnu_ld" = yes; then
23512     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23513     shlibpath_overrides_runpath=no
23514   else
23515     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23516     shlibpath_overrides_runpath=yes
23517     case $host_os in
23518       sco3.2v5*)
23519         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23520         ;;
23521     esac
23522   fi
23523   sys_lib_dlsearch_path_spec='/usr/lib'
23524   ;;
23525
23526 uts4*)
23527   version_type=linux
23528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23529   soname_spec='${libname}${release}${shared_ext}$major'
23530   shlibpath_var=LD_LIBRARY_PATH
23531   ;;
23532
23533 *)
23534   dynamic_linker=no
23535   ;;
23536 esac
23537 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23538 echo "${ECHO_T}$dynamic_linker" >&6; }
23539 test "$dynamic_linker" = no && can_build_shared=no
23540
23541 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23542 if test "$GCC" = yes; then
23543   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23544 fi
23545
23546 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23547 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23548 hardcode_action_F77=
23549 if test -n "$hardcode_libdir_flag_spec_F77" || \
23550    test -n "$runpath_var_F77" || \
23551    test "X$hardcode_automatic_F77" = "Xyes" ; then
23552
23553   # We can hardcode non-existant directories.
23554   if test "$hardcode_direct_F77" != no &&
23555      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23556      # have to relink, otherwise we might link with an installed library
23557      # when we should be linking with a yet-to-be-installed one
23558      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23559      test "$hardcode_minus_L_F77" != no; then
23560     # Linking always hardcodes the temporary library directory.
23561     hardcode_action_F77=relink
23562   else
23563     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23564     hardcode_action_F77=immediate
23565   fi
23566 else
23567   # We cannot hardcode anything, or else we can only hardcode existing
23568   # directories.
23569   hardcode_action_F77=unsupported
23570 fi
23571 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23572 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23573
23574 if test "$hardcode_action_F77" = relink; then
23575   # Fast installation is not supported
23576   enable_fast_install=no
23577 elif test "$shlibpath_overrides_runpath" = yes ||
23578      test "$enable_shared" = no; then
23579   # Fast installation is not necessary
23580   enable_fast_install=needless
23581 fi
23582
23583
23584 # The else clause should only fire when bootstrapping the
23585 # libtool distribution, otherwise you forgot to ship ltmain.sh
23586 # with your package, and you will get complaints that there are
23587 # no rules to generate ltmain.sh.
23588 if test -f "$ltmain"; then
23589   # See if we are running on zsh, and set the options which allow our commands through
23590   # without removal of \ escapes.
23591   if test -n "${ZSH_VERSION+set}" ; then
23592     setopt NO_GLOB_SUBST
23593   fi
23594   # Now quote all the things that may contain metacharacters while being
23595   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23596   # variables and quote the copies for generation of the libtool script.
23597   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23598     SED SHELL STRIP \
23599     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23600     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23601     deplibs_check_method reload_flag reload_cmds need_locks \
23602     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23603     lt_cv_sys_global_symbol_to_c_name_address \
23604     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23605     old_postinstall_cmds old_postuninstall_cmds \
23606     compiler_F77 \
23607     CC_F77 \
23608     LD_F77 \
23609     lt_prog_compiler_wl_F77 \
23610     lt_prog_compiler_pic_F77 \
23611     lt_prog_compiler_static_F77 \
23612     lt_prog_compiler_no_builtin_flag_F77 \
23613     export_dynamic_flag_spec_F77 \
23614     thread_safe_flag_spec_F77 \
23615     whole_archive_flag_spec_F77 \
23616     enable_shared_with_static_runtimes_F77 \
23617     old_archive_cmds_F77 \
23618     old_archive_from_new_cmds_F77 \
23619     predep_objects_F77 \
23620     postdep_objects_F77 \
23621     predeps_F77 \
23622     postdeps_F77 \
23623     compiler_lib_search_path_F77 \
23624     archive_cmds_F77 \
23625     archive_expsym_cmds_F77 \
23626     postinstall_cmds_F77 \
23627     postuninstall_cmds_F77 \
23628     old_archive_from_expsyms_cmds_F77 \
23629     allow_undefined_flag_F77 \
23630     no_undefined_flag_F77 \
23631     export_symbols_cmds_F77 \
23632     hardcode_libdir_flag_spec_F77 \
23633     hardcode_libdir_flag_spec_ld_F77 \
23634     hardcode_libdir_separator_F77 \
23635     hardcode_automatic_F77 \
23636     module_cmds_F77 \
23637     module_expsym_cmds_F77 \
23638     lt_cv_prog_compiler_c_o_F77 \
23639     exclude_expsyms_F77 \
23640     include_expsyms_F77; do
23641
23642     case $var in
23643     old_archive_cmds_F77 | \
23644     old_archive_from_new_cmds_F77 | \
23645     archive_cmds_F77 | \
23646     archive_expsym_cmds_F77 | \
23647     module_cmds_F77 | \
23648     module_expsym_cmds_F77 | \
23649     old_archive_from_expsyms_cmds_F77 | \
23650     export_symbols_cmds_F77 | \
23651     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23652     postinstall_cmds | postuninstall_cmds | \
23653     old_postinstall_cmds | old_postuninstall_cmds | \
23654     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23655       # Double-quote double-evaled strings.
23656       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23657       ;;
23658     *)
23659       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23660       ;;
23661     esac
23662   done
23663
23664   case $lt_echo in
23665   *'\$0 --fallback-echo"')
23666     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23667     ;;
23668   esac
23669
23670 cfgfile="$ofile"
23671
23672   cat <<__EOF__ >> "$cfgfile"
23673 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23674
23675 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23676
23677 # Shell to use when invoking shell scripts.
23678 SHELL=$lt_SHELL
23679
23680 # Whether or not to build shared libraries.
23681 build_libtool_libs=$enable_shared
23682
23683 # Whether or not to build static libraries.
23684 build_old_libs=$enable_static
23685
23686 # Whether or not to add -lc for building shared libraries.
23687 build_libtool_need_lc=$archive_cmds_need_lc_F77
23688
23689 # Whether or not to disallow shared libs when runtime libs are static
23690 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23691
23692 # Whether or not to optimize for fast installation.
23693 fast_install=$enable_fast_install
23694
23695 # The host system.
23696 host_alias=$host_alias
23697 host=$host
23698 host_os=$host_os
23699
23700 # The build system.
23701 build_alias=$build_alias
23702 build=$build
23703 build_os=$build_os
23704
23705 # An echo program that does not interpret backslashes.
23706 echo=$lt_echo
23707
23708 # The archiver.
23709 AR=$lt_AR
23710 AR_FLAGS=$lt_AR_FLAGS
23711
23712 # A C compiler.
23713 LTCC=$lt_LTCC
23714
23715 # LTCC compiler flags.
23716 LTCFLAGS=$lt_LTCFLAGS
23717
23718 # A language-specific compiler.
23719 CC=$lt_compiler_F77
23720
23721 # Is the compiler the GNU C compiler?
23722 with_gcc=$GCC_F77
23723
23724 # An ERE matcher.
23725 EGREP=$lt_EGREP
23726
23727 # The linker used to build libraries.
23728 LD=$lt_LD_F77
23729
23730 # Whether we need hard or soft links.
23731 LN_S=$lt_LN_S
23732
23733 # A BSD-compatible nm program.
23734 NM=$lt_NM
23735
23736 # A symbol stripping program
23737 STRIP=$lt_STRIP
23738
23739 # Used to examine libraries when file_magic_cmd begins "file"
23740 MAGIC_CMD=$MAGIC_CMD
23741
23742 # Used on cygwin: DLL creation program.
23743 DLLTOOL="$DLLTOOL"
23744
23745 # Used on cygwin: object dumper.
23746 OBJDUMP="$OBJDUMP"
23747
23748 # Used on cygwin: assembler.
23749 AS="$AS"
23750
23751 # The name of the directory that contains temporary libtool files.
23752 objdir=$objdir
23753
23754 # How to create reloadable object files.
23755 reload_flag=$lt_reload_flag
23756 reload_cmds=$lt_reload_cmds
23757
23758 # How to pass a linker flag through the compiler.
23759 wl=$lt_lt_prog_compiler_wl_F77
23760
23761 # Object file suffix (normally "o").
23762 objext="$ac_objext"
23763
23764 # Old archive suffix (normally "a").
23765 libext="$libext"
23766
23767 # Shared library suffix (normally ".so").
23768 shrext_cmds='$shrext_cmds'
23769
23770 # Executable file suffix (normally "").
23771 exeext="$exeext"
23772
23773 # Additional compiler flags for building library objects.
23774 pic_flag=$lt_lt_prog_compiler_pic_F77
23775 pic_mode=$pic_mode
23776
23777 # What is the maximum length of a command?
23778 max_cmd_len=$lt_cv_sys_max_cmd_len
23779
23780 # Does compiler simultaneously support -c and -o options?
23781 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23782
23783 # Must we lock files when doing compilation?
23784 need_locks=$lt_need_locks
23785
23786 # Do we need the lib prefix for modules?
23787 need_lib_prefix=$need_lib_prefix
23788
23789 # Do we need a version for libraries?
23790 need_version=$need_version
23791
23792 # Whether dlopen is supported.
23793 dlopen_support=$enable_dlopen
23794
23795 # Whether dlopen of programs is supported.
23796 dlopen_self=$enable_dlopen_self
23797
23798 # Whether dlopen of statically linked programs is supported.
23799 dlopen_self_static=$enable_dlopen_self_static
23800
23801 # Compiler flag to prevent dynamic linking.
23802 link_static_flag=$lt_lt_prog_compiler_static_F77
23803
23804 # Compiler flag to turn off builtin functions.
23805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23806
23807 # Compiler flag to allow reflexive dlopens.
23808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23809
23810 # Compiler flag to generate shared objects directly from archives.
23811 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23812
23813 # Compiler flag to generate thread-safe objects.
23814 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23815
23816 # Library versioning type.
23817 version_type=$version_type
23818
23819 # Format of library name prefix.
23820 libname_spec=$lt_libname_spec
23821
23822 # List of archive names.  First name is the real one, the rest are links.
23823 # The last name is the one that the linker finds with -lNAME.
23824 library_names_spec=$lt_library_names_spec
23825
23826 # The coded name of the library, if different from the real name.
23827 soname_spec=$lt_soname_spec
23828
23829 # Commands used to build and install an old-style archive.
23830 RANLIB=$lt_RANLIB
23831 old_archive_cmds=$lt_old_archive_cmds_F77
23832 old_postinstall_cmds=$lt_old_postinstall_cmds
23833 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23834
23835 # Create an old-style archive from a shared archive.
23836 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23837
23838 # Create a temporary old-style archive to link instead of a shared archive.
23839 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23840
23841 # Commands used to build and install a shared archive.
23842 archive_cmds=$lt_archive_cmds_F77
23843 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23844 postinstall_cmds=$lt_postinstall_cmds
23845 postuninstall_cmds=$lt_postuninstall_cmds
23846
23847 # Commands used to build a loadable module (assumed same as above if empty)
23848 module_cmds=$lt_module_cmds_F77
23849 module_expsym_cmds=$lt_module_expsym_cmds_F77
23850
23851 # Commands to strip libraries.
23852 old_striplib=$lt_old_striplib
23853 striplib=$lt_striplib
23854
23855 # Dependencies to place before the objects being linked to create a
23856 # shared library.
23857 predep_objects=$lt_predep_objects_F77
23858
23859 # Dependencies to place after the objects being linked to create a
23860 # shared library.
23861 postdep_objects=$lt_postdep_objects_F77
23862
23863 # Dependencies to place before the objects being linked to create a
23864 # shared library.
23865 predeps=$lt_predeps_F77
23866
23867 # Dependencies to place after the objects being linked to create a
23868 # shared library.
23869 postdeps=$lt_postdeps_F77
23870
23871 # The library search path used internally by the compiler when linking
23872 # a shared library.
23873 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23874
23875 # Method to check whether dependent libraries are shared objects.
23876 deplibs_check_method=$lt_deplibs_check_method
23877
23878 # Command to use when deplibs_check_method == file_magic.
23879 file_magic_cmd=$lt_file_magic_cmd
23880
23881 # Flag that allows shared libraries with undefined symbols to be built.
23882 allow_undefined_flag=$lt_allow_undefined_flag_F77
23883
23884 # Flag that forces no undefined symbols.
23885 no_undefined_flag=$lt_no_undefined_flag_F77
23886
23887 # Commands used to finish a libtool library installation in a directory.
23888 finish_cmds=$lt_finish_cmds
23889
23890 # Same as above, but a single script fragment to be evaled but not shown.
23891 finish_eval=$lt_finish_eval
23892
23893 # Take the output of nm and produce a listing of raw symbols and C names.
23894 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23895
23896 # Transform the output of nm in a proper C declaration
23897 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23898
23899 # Transform the output of nm in a C name address pair
23900 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23901
23902 # This is the shared library runtime path variable.
23903 runpath_var=$runpath_var
23904
23905 # This is the shared library path variable.
23906 shlibpath_var=$shlibpath_var
23907
23908 # Is shlibpath searched before the hard-coded library search path?
23909 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23910
23911 # How to hardcode a shared library path into an executable.
23912 hardcode_action=$hardcode_action_F77
23913
23914 # Whether we should hardcode library paths into libraries.
23915 hardcode_into_libs=$hardcode_into_libs
23916
23917 # Flag to hardcode \$libdir into a binary during linking.
23918 # This must work even if \$libdir does not exist.
23919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23920
23921 # If ld is used when linking, flag to hardcode \$libdir into
23922 # a binary during linking. This must work even if \$libdir does
23923 # not exist.
23924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23925
23926 # Whether we need a single -rpath flag with a separated argument.
23927 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23928
23929 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23930 # resulting binary.
23931 hardcode_direct=$hardcode_direct_F77
23932
23933 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23934 # resulting binary.
23935 hardcode_minus_L=$hardcode_minus_L_F77
23936
23937 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23938 # the resulting binary.
23939 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23940
23941 # Set to yes if building a shared library automatically hardcodes DIR into the library
23942 # and all subsequent libraries and executables linked against it.
23943 hardcode_automatic=$hardcode_automatic_F77
23944
23945 # Variables whose values should be saved in libtool wrapper scripts and
23946 # restored at relink time.
23947 variables_saved_for_relink="$variables_saved_for_relink"
23948
23949 # Whether libtool must link a program against all its dependency libraries.
23950 link_all_deplibs=$link_all_deplibs_F77
23951
23952 # Compile-time system search path for libraries
23953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23954
23955 # Run-time system search path for libraries
23956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23957
23958 # Fix the shell variable \$srcfile for the compiler.
23959 fix_srcfile_path="$fix_srcfile_path_F77"
23960
23961 # Set to yes if exported symbols are required.
23962 always_export_symbols=$always_export_symbols_F77
23963
23964 # The commands to list exported symbols.
23965 export_symbols_cmds=$lt_export_symbols_cmds_F77
23966
23967 # The commands to extract the exported symbol list from a shared archive.
23968 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23969
23970 # Symbols that should not be listed in the preloaded symbols.
23971 exclude_expsyms=$lt_exclude_expsyms_F77
23972
23973 # Symbols that must always be exported.
23974 include_expsyms=$lt_include_expsyms_F77
23975
23976 # ### END LIBTOOL TAG CONFIG: $tagname
23977
23978 __EOF__
23979
23980
23981 else
23982   # If there is no Makefile yet, we rely on a make rule to execute
23983   # `config.status --recheck' to rerun these tests and create the
23984   # libtool script then.
23985   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23986   if test -f "$ltmain_in"; then
23987     test -f Makefile && make "$ltmain"
23988   fi
23989 fi
23990
23991
23992 ac_ext=c
23993 ac_cpp='$CPP $CPPFLAGS'
23994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23997
23998 CC="$lt_save_CC"
23999
24000         else
24001           tagname=""
24002         fi
24003         ;;
24004
24005       GCJ)
24006         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24007           ac_ext=c
24008 ac_cpp='$CPP $CPPFLAGS'
24009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24012
24013
24014 # Source file extension for Java test sources.
24015 ac_ext=java
24016
24017 # Object file extension for compiled Java test sources.
24018 objext=o
24019 objext_GCJ=$objext
24020
24021 # Code to be used in simple compile tests
24022 lt_simple_compile_test_code="class foo {}\n"
24023
24024 # Code to be used in simple link tests
24025 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24026
24027 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24028
24029 # If no C compiler was specified, use CC.
24030 LTCC=${LTCC-"$CC"}
24031
24032 # If no C compiler flags were specified, use CFLAGS.
24033 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24034
24035 # Allow CC to be a program name with arguments.
24036 compiler=$CC
24037
24038
24039 # save warnings/boilerplate of simple test code
24040 ac_outfile=conftest.$ac_objext
24041 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24042 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24043 _lt_compiler_boilerplate=`cat conftest.err`
24044 $rm conftest*
24045
24046 ac_outfile=conftest.$ac_objext
24047 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24048 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24049 _lt_linker_boilerplate=`cat conftest.err`
24050 $rm conftest*
24051
24052
24053 # Allow CC to be a program name with arguments.
24054 lt_save_CC="$CC"
24055 CC=${GCJ-"gcj"}
24056 compiler=$CC
24057 compiler_GCJ=$CC
24058 for cc_temp in $compiler""; do
24059   case $cc_temp in
24060     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24061     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24062     \-*) ;;
24063     *) break;;
24064   esac
24065 done
24066 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24067
24068
24069 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24070 archive_cmds_need_lc_GCJ=no
24071
24072 old_archive_cmds_GCJ=$old_archive_cmds
24073
24074
24075 lt_prog_compiler_no_builtin_flag_GCJ=
24076
24077 if test "$GCC" = yes; then
24078   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24079
24080
24081 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24082 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24083 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24084   echo $ECHO_N "(cached) $ECHO_C" >&6
24085 else
24086   lt_cv_prog_compiler_rtti_exceptions=no
24087   ac_outfile=conftest.$ac_objext
24088    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24089    lt_compiler_flag="-fno-rtti -fno-exceptions"
24090    # Insert the option either (1) after the last *FLAGS variable, or
24091    # (2) before a word containing "conftest.", or (3) at the end.
24092    # Note that $ac_compile itself does not contain backslashes and begins
24093    # with a dollar sign (not a hyphen), so the echo should work correctly.
24094    # The option is referenced via a variable to avoid confusing sed.
24095    lt_compile=`echo "$ac_compile" | $SED \
24096    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24097    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24098    -e 's:$: $lt_compiler_flag:'`
24099    (eval echo "\"\$as_me:24099: $lt_compile\"" >&5)
24100    (eval "$lt_compile" 2>conftest.err)
24101    ac_status=$?
24102    cat conftest.err >&5
24103    echo "$as_me:24103: \$? = $ac_status" >&5
24104    if (exit $ac_status) && test -s "$ac_outfile"; then
24105      # The compiler can only warn and ignore the option if not recognized
24106      # So say no if there are warnings other than the usual output.
24107      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24108      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24109      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24110        lt_cv_prog_compiler_rtti_exceptions=yes
24111      fi
24112    fi
24113    $rm conftest*
24114
24115 fi
24116 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24117 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24118
24119 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24120     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24121 else
24122     :
24123 fi
24124
24125 fi
24126
24127 lt_prog_compiler_wl_GCJ=
24128 lt_prog_compiler_pic_GCJ=
24129 lt_prog_compiler_static_GCJ=
24130
24131 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24132 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24133
24134   if test "$GCC" = yes; then
24135     lt_prog_compiler_wl_GCJ='-Wl,'
24136     lt_prog_compiler_static_GCJ='-static'
24137
24138     case $host_os in
24139       aix*)
24140       # All AIX code is PIC.
24141       if test "$host_cpu" = ia64; then
24142         # AIX 5 now supports IA64 processor
24143         lt_prog_compiler_static_GCJ='-Bstatic'
24144       fi
24145       ;;
24146
24147     amigaos*)
24148       # FIXME: we need at least 68020 code to build shared libraries, but
24149       # adding the `-m68020' flag to GCC prevents building anything better,
24150       # like `-m68040'.
24151       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24152       ;;
24153
24154     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24155       # PIC is the default for these OSes.
24156       ;;
24157
24158     mingw* | pw32* | os2*)
24159       # This hack is so that the source file can tell whether it is being
24160       # built for inclusion in a dll (and should export symbols for example).
24161       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24162       ;;
24163
24164     darwin* | rhapsody*)
24165       # PIC is the default on this platform
24166       # Common symbols not allowed in MH_DYLIB files
24167       lt_prog_compiler_pic_GCJ='-fno-common'
24168       ;;
24169
24170     interix3*)
24171       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24172       # Instead, we relocate shared libraries at runtime.
24173       ;;
24174
24175     msdosdjgpp*)
24176       # Just because we use GCC doesn't mean we suddenly get shared libraries
24177       # on systems that don't support them.
24178       lt_prog_compiler_can_build_shared_GCJ=no
24179       enable_shared=no
24180       ;;
24181
24182     sysv4*MP*)
24183       if test -d /usr/nec; then
24184         lt_prog_compiler_pic_GCJ=-Kconform_pic
24185       fi
24186       ;;
24187
24188     hpux*)
24189       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24190       # not for PA HP-UX.
24191       case $host_cpu in
24192       hppa*64*|ia64*)
24193         # +Z the default
24194         ;;
24195       *)
24196         lt_prog_compiler_pic_GCJ='-fPIC'
24197         ;;
24198       esac
24199       ;;
24200
24201     *)
24202       lt_prog_compiler_pic_GCJ='-fPIC'
24203       ;;
24204     esac
24205   else
24206     # PORTME Check for flag to pass linker flags through the system compiler.
24207     case $host_os in
24208     aix*)
24209       lt_prog_compiler_wl_GCJ='-Wl,'
24210       if test "$host_cpu" = ia64; then
24211         # AIX 5 now supports IA64 processor
24212         lt_prog_compiler_static_GCJ='-Bstatic'
24213       else
24214         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24215       fi
24216       ;;
24217       darwin*)
24218         # PIC is the default on this platform
24219         # Common symbols not allowed in MH_DYLIB files
24220        case $cc_basename in
24221          xlc*)
24222          lt_prog_compiler_pic_GCJ='-qnocommon'
24223          lt_prog_compiler_wl_GCJ='-Wl,'
24224          ;;
24225        esac
24226        ;;
24227
24228     mingw* | pw32* | os2*)
24229       # This hack is so that the source file can tell whether it is being
24230       # built for inclusion in a dll (and should export symbols for example).
24231       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24232       ;;
24233
24234     hpux9* | hpux10* | hpux11*)
24235       lt_prog_compiler_wl_GCJ='-Wl,'
24236       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24237       # not for PA HP-UX.
24238       case $host_cpu in
24239       hppa*64*|ia64*)
24240         # +Z the default
24241         ;;
24242       *)
24243         lt_prog_compiler_pic_GCJ='+Z'
24244         ;;
24245       esac
24246       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24247       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24248       ;;
24249
24250     irix5* | irix6* | nonstopux*)
24251       lt_prog_compiler_wl_GCJ='-Wl,'
24252       # PIC (with -KPIC) is the default.
24253       lt_prog_compiler_static_GCJ='-non_shared'
24254       ;;
24255
24256     newsos6)
24257       lt_prog_compiler_pic_GCJ='-KPIC'
24258       lt_prog_compiler_static_GCJ='-Bstatic'
24259       ;;
24260
24261     linux*)
24262       case $cc_basename in
24263       icc* | ecc*)
24264         lt_prog_compiler_wl_GCJ='-Wl,'
24265         lt_prog_compiler_pic_GCJ='-KPIC'
24266         lt_prog_compiler_static_GCJ='-static'
24267         ;;
24268       pgcc* | pgf77* | pgf90* | pgf95*)
24269         # Portland Group compilers (*not* the Pentium gcc compiler,
24270         # which looks to be a dead project)
24271         lt_prog_compiler_wl_GCJ='-Wl,'
24272         lt_prog_compiler_pic_GCJ='-fpic'
24273         lt_prog_compiler_static_GCJ='-Bstatic'
24274         ;;
24275       ccc*)
24276         lt_prog_compiler_wl_GCJ='-Wl,'
24277         # All Alpha code is PIC.
24278         lt_prog_compiler_static_GCJ='-non_shared'
24279         ;;
24280       esac
24281       ;;
24282
24283     osf3* | osf4* | osf5*)
24284       lt_prog_compiler_wl_GCJ='-Wl,'
24285       # All OSF/1 code is PIC.
24286       lt_prog_compiler_static_GCJ='-non_shared'
24287       ;;
24288
24289     solaris*)
24290       lt_prog_compiler_pic_GCJ='-KPIC'
24291       lt_prog_compiler_static_GCJ='-Bstatic'
24292       case $cc_basename in
24293       f77* | f90* | f95*)
24294         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24295       *)
24296         lt_prog_compiler_wl_GCJ='-Wl,';;
24297       esac
24298       ;;
24299
24300     sunos4*)
24301       lt_prog_compiler_wl_GCJ='-Qoption ld '
24302       lt_prog_compiler_pic_GCJ='-PIC'
24303       lt_prog_compiler_static_GCJ='-Bstatic'
24304       ;;
24305
24306     sysv4 | sysv4.2uw2* | sysv4.3*)
24307       lt_prog_compiler_wl_GCJ='-Wl,'
24308       lt_prog_compiler_pic_GCJ='-KPIC'
24309       lt_prog_compiler_static_GCJ='-Bstatic'
24310       ;;
24311
24312     sysv4*MP*)
24313       if test -d /usr/nec ;then
24314         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24315         lt_prog_compiler_static_GCJ='-Bstatic'
24316       fi
24317       ;;
24318
24319     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24320       lt_prog_compiler_wl_GCJ='-Wl,'
24321       lt_prog_compiler_pic_GCJ='-KPIC'
24322       lt_prog_compiler_static_GCJ='-Bstatic'
24323       ;;
24324
24325     unicos*)
24326       lt_prog_compiler_wl_GCJ='-Wl,'
24327       lt_prog_compiler_can_build_shared_GCJ=no
24328       ;;
24329
24330     uts4*)
24331       lt_prog_compiler_pic_GCJ='-pic'
24332       lt_prog_compiler_static_GCJ='-Bstatic'
24333       ;;
24334
24335     *)
24336       lt_prog_compiler_can_build_shared_GCJ=no
24337       ;;
24338     esac
24339   fi
24340
24341 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24342 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24343
24344 #
24345 # Check to make sure the PIC flag actually works.
24346 #
24347 if test -n "$lt_prog_compiler_pic_GCJ"; then
24348
24349 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24350 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24351 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24352   echo $ECHO_N "(cached) $ECHO_C" >&6
24353 else
24354   lt_prog_compiler_pic_works_GCJ=no
24355   ac_outfile=conftest.$ac_objext
24356    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24357    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24358    # Insert the option either (1) after the last *FLAGS variable, or
24359    # (2) before a word containing "conftest.", or (3) at the end.
24360    # Note that $ac_compile itself does not contain backslashes and begins
24361    # with a dollar sign (not a hyphen), so the echo should work correctly.
24362    # The option is referenced via a variable to avoid confusing sed.
24363    lt_compile=`echo "$ac_compile" | $SED \
24364    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24365    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24366    -e 's:$: $lt_compiler_flag:'`
24367    (eval echo "\"\$as_me:24367: $lt_compile\"" >&5)
24368    (eval "$lt_compile" 2>conftest.err)
24369    ac_status=$?
24370    cat conftest.err >&5
24371    echo "$as_me:24371: \$? = $ac_status" >&5
24372    if (exit $ac_status) && test -s "$ac_outfile"; then
24373      # The compiler can only warn and ignore the option if not recognized
24374      # So say no if there are warnings other than the usual output.
24375      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24376      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24377      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24378        lt_prog_compiler_pic_works_GCJ=yes
24379      fi
24380    fi
24381    $rm conftest*
24382
24383 fi
24384 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24385 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24386
24387 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24388     case $lt_prog_compiler_pic_GCJ in
24389      "" | " "*) ;;
24390      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24391      esac
24392 else
24393     lt_prog_compiler_pic_GCJ=
24394      lt_prog_compiler_can_build_shared_GCJ=no
24395 fi
24396
24397 fi
24398 case $host_os in
24399   # For platforms which do not support PIC, -DPIC is meaningless:
24400   *djgpp*)
24401     lt_prog_compiler_pic_GCJ=
24402     ;;
24403   *)
24404     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24405     ;;
24406 esac
24407
24408 #
24409 # Check to make sure the static flag actually works.
24410 #
24411 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24412 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24413 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24414 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24415   echo $ECHO_N "(cached) $ECHO_C" >&6
24416 else
24417   lt_prog_compiler_static_works_GCJ=no
24418    save_LDFLAGS="$LDFLAGS"
24419    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24420    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24421    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24422      # The linker can only warn and ignore the option if not recognized
24423      # So say no if there are warnings
24424      if test -s conftest.err; then
24425        # Append any errors to the config.log.
24426        cat conftest.err 1>&5
24427        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24428        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24429        if diff conftest.exp conftest.er2 >/dev/null; then
24430          lt_prog_compiler_static_works_GCJ=yes
24431        fi
24432      else
24433        lt_prog_compiler_static_works_GCJ=yes
24434      fi
24435    fi
24436    $rm conftest*
24437    LDFLAGS="$save_LDFLAGS"
24438
24439 fi
24440 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24441 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24442
24443 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24444     :
24445 else
24446     lt_prog_compiler_static_GCJ=
24447 fi
24448
24449
24450 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24451 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24452 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24453   echo $ECHO_N "(cached) $ECHO_C" >&6
24454 else
24455   lt_cv_prog_compiler_c_o_GCJ=no
24456    $rm -r conftest 2>/dev/null
24457    mkdir conftest
24458    cd conftest
24459    mkdir out
24460    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24461
24462    lt_compiler_flag="-o out/conftest2.$ac_objext"
24463    # Insert the option either (1) after the last *FLAGS variable, or
24464    # (2) before a word containing "conftest.", or (3) at the end.
24465    # Note that $ac_compile itself does not contain backslashes and begins
24466    # with a dollar sign (not a hyphen), so the echo should work correctly.
24467    lt_compile=`echo "$ac_compile" | $SED \
24468    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24469    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24470    -e 's:$: $lt_compiler_flag:'`
24471    (eval echo "\"\$as_me:24471: $lt_compile\"" >&5)
24472    (eval "$lt_compile" 2>out/conftest.err)
24473    ac_status=$?
24474    cat out/conftest.err >&5
24475    echo "$as_me:24475: \$? = $ac_status" >&5
24476    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24477    then
24478      # The compiler can only warn and ignore the option if not recognized
24479      # So say no if there are warnings
24480      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24481      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24482      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24483        lt_cv_prog_compiler_c_o_GCJ=yes
24484      fi
24485    fi
24486    chmod u+w . 2>&5
24487    $rm conftest*
24488    # SGI C++ compiler will create directory out/ii_files/ for
24489    # template instantiation
24490    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24491    $rm out/* && rmdir out
24492    cd ..
24493    rmdir conftest
24494    $rm conftest*
24495
24496 fi
24497 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24498 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24499
24500
24501 hard_links="nottested"
24502 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24503   # do not overwrite the value of need_locks provided by the user
24504   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24505 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24506   hard_links=yes
24507   $rm conftest*
24508   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24509   touch conftest.a
24510   ln conftest.a conftest.b 2>&5 || hard_links=no
24511   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24512   { echo "$as_me:$LINENO: result: $hard_links" >&5
24513 echo "${ECHO_T}$hard_links" >&6; }
24514   if test "$hard_links" = no; then
24515     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24516 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24517     need_locks=warn
24518   fi
24519 else
24520   need_locks=no
24521 fi
24522
24523 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24524 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24525
24526   runpath_var=
24527   allow_undefined_flag_GCJ=
24528   enable_shared_with_static_runtimes_GCJ=no
24529   archive_cmds_GCJ=
24530   archive_expsym_cmds_GCJ=
24531   old_archive_From_new_cmds_GCJ=
24532   old_archive_from_expsyms_cmds_GCJ=
24533   export_dynamic_flag_spec_GCJ=
24534   whole_archive_flag_spec_GCJ=
24535   thread_safe_flag_spec_GCJ=
24536   hardcode_libdir_flag_spec_GCJ=
24537   hardcode_libdir_flag_spec_ld_GCJ=
24538   hardcode_libdir_separator_GCJ=
24539   hardcode_direct_GCJ=no
24540   hardcode_minus_L_GCJ=no
24541   hardcode_shlibpath_var_GCJ=unsupported
24542   link_all_deplibs_GCJ=unknown
24543   hardcode_automatic_GCJ=no
24544   module_cmds_GCJ=
24545   module_expsym_cmds_GCJ=
24546   always_export_symbols_GCJ=no
24547   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24548   # include_expsyms should be a list of space-separated symbols to be *always*
24549   # included in the symbol list
24550   include_expsyms_GCJ=
24551   # exclude_expsyms can be an extended regexp of symbols to exclude
24552   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24553   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24554   # as well as any symbol that contains `d'.
24555   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24556   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24557   # platforms (ab)use it in PIC code, but their linkers get confused if
24558   # the symbol is explicitly referenced.  Since portable code cannot
24559   # rely on this symbol name, it's probably fine to never include it in
24560   # preloaded symbol tables.
24561   extract_expsyms_cmds=
24562   # Just being paranoid about ensuring that cc_basename is set.
24563   for cc_temp in $compiler""; do
24564   case $cc_temp in
24565     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24566     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24567     \-*) ;;
24568     *) break;;
24569   esac
24570 done
24571 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24572
24573   case $host_os in
24574   cygwin* | mingw* | pw32*)
24575     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24576     # When not using gcc, we currently assume that we are using
24577     # Microsoft Visual C++.
24578     if test "$GCC" != yes; then
24579       with_gnu_ld=no
24580     fi
24581     ;;
24582   interix*)
24583     # we just hope/assume this is gcc and not c89 (= MSVC++)
24584     with_gnu_ld=yes
24585     ;;
24586   openbsd*)
24587     with_gnu_ld=no
24588     ;;
24589   esac
24590
24591   ld_shlibs_GCJ=yes
24592   if test "$with_gnu_ld" = yes; then
24593     # If archive_cmds runs LD, not CC, wlarc should be empty
24594     wlarc='${wl}'
24595
24596     # Set some defaults for GNU ld with shared library support. These
24597     # are reset later if shared libraries are not supported. Putting them
24598     # here allows them to be overridden if necessary.
24599     runpath_var=LD_RUN_PATH
24600     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24601     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24602     # ancient GNU ld didn't support --whole-archive et. al.
24603     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24604         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24605       else
24606         whole_archive_flag_spec_GCJ=
24607     fi
24608     supports_anon_versioning=no
24609     case `$LD -v 2>/dev/null` in
24610       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24611       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24612       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24613       *\ 2.11.*) ;; # other 2.11 versions
24614       *) supports_anon_versioning=yes ;;
24615     esac
24616
24617     # See if GNU ld supports shared libraries.
24618     case $host_os in
24619     aix3* | aix4* | aix5*)
24620       # On AIX/PPC, the GNU linker is very broken
24621       if test "$host_cpu" != ia64; then
24622         ld_shlibs_GCJ=no
24623         cat <<EOF 1>&2
24624
24625 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24626 *** to be unable to reliably create shared libraries on AIX.
24627 *** Therefore, libtool is disabling shared libraries support.  If you
24628 *** really care for shared libraries, you may want to modify your PATH
24629 *** so that a non-GNU linker is found, and then restart.
24630
24631 EOF
24632       fi
24633       ;;
24634
24635     amigaos*)
24636       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)'
24637       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24638       hardcode_minus_L_GCJ=yes
24639
24640       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24641       # that the semantics of dynamic libraries on AmigaOS, at least up
24642       # to version 4, is to share data among multiple programs linked
24643       # with the same dynamic library.  Since this doesn't match the
24644       # behavior of shared libraries on other platforms, we can't use
24645       # them.
24646       ld_shlibs_GCJ=no
24647       ;;
24648
24649     beos*)
24650       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24651         allow_undefined_flag_GCJ=unsupported
24652         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24653         # support --undefined.  This deserves some investigation.  FIXME
24654         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24655       else
24656         ld_shlibs_GCJ=no
24657       fi
24658       ;;
24659
24660     cygwin* | mingw* | pw32*)
24661       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24662       # as there is no search path for DLLs.
24663       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24664       allow_undefined_flag_GCJ=unsupported
24665       always_export_symbols_GCJ=no
24666       enable_shared_with_static_runtimes_GCJ=yes
24667       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24668
24669       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24670         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24671         # If the export-symbols file already is a .def file (1st line
24672         # is EXPORTS), use it as is; otherwise, prepend...
24673         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24674           cp $export_symbols $output_objdir/$soname.def;
24675         else
24676           echo EXPORTS > $output_objdir/$soname.def;
24677           cat $export_symbols >> $output_objdir/$soname.def;
24678         fi~
24679         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24680       else
24681         ld_shlibs_GCJ=no
24682       fi
24683       ;;
24684
24685     interix3*)
24686       hardcode_direct_GCJ=no
24687       hardcode_shlibpath_var_GCJ=no
24688       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24689       export_dynamic_flag_spec_GCJ='${wl}-E'
24690       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24691       # Instead, shared libraries are loaded at an image base (0x10000000 by
24692       # default) and relocated if they conflict, which is a slow very memory
24693       # consuming and fragmenting process.  To avoid this, we pick a random,
24694       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24695       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24696       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'
24697       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'
24698       ;;
24699
24700     linux*)
24701       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24702         tmp_addflag=
24703         case $cc_basename,$host_cpu in
24704         pgcc*)                          # Portland Group C compiler
24705           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'
24706           tmp_addflag=' $pic_flag'
24707           ;;
24708         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24709           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'
24710           tmp_addflag=' $pic_flag -Mnomain' ;;
24711         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24712           tmp_addflag=' -i_dynamic' ;;
24713         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24714           tmp_addflag=' -i_dynamic -nofor_main' ;;
24715         ifc* | ifort*)                  # Intel Fortran compiler
24716           tmp_addflag=' -nofor_main' ;;
24717         esac
24718         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24719
24720         if test $supports_anon_versioning = yes; then
24721           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24722   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24723   $echo "local: *; };" >> $output_objdir/$libname.ver~
24724           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24725         fi
24726       else
24727         ld_shlibs_GCJ=no
24728       fi
24729       ;;
24730
24731     netbsd*)
24732       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24733         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24734         wlarc=
24735       else
24736         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24737         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24738       fi
24739       ;;
24740
24741     solaris*)
24742       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24743         ld_shlibs_GCJ=no
24744         cat <<EOF 1>&2
24745
24746 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24747 *** create shared libraries on Solaris systems.  Therefore, libtool
24748 *** is disabling shared libraries support.  We urge you to upgrade GNU
24749 *** binutils to release 2.9.1 or newer.  Another option is to modify
24750 *** your PATH or compiler configuration so that the native linker is
24751 *** used, and then restart.
24752
24753 EOF
24754       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24755         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24756         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24757       else
24758         ld_shlibs_GCJ=no
24759       fi
24760       ;;
24761
24762     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24763       case `$LD -v 2>&1` in
24764         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24765         ld_shlibs_GCJ=no
24766         cat <<_LT_EOF 1>&2
24767
24768 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24769 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24770 *** is disabling shared libraries support.  We urge you to upgrade GNU
24771 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24772 *** your PATH or compiler configuration so that the native linker is
24773 *** used, and then restart.
24774
24775 _LT_EOF
24776         ;;
24777         *)
24778           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24779             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24780             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24781             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24782           else
24783             ld_shlibs_GCJ=no
24784           fi
24785         ;;
24786       esac
24787       ;;
24788
24789     sunos4*)
24790       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24791       wlarc=
24792       hardcode_direct_GCJ=yes
24793       hardcode_shlibpath_var_GCJ=no
24794       ;;
24795
24796     *)
24797       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24798         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24799         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24800       else
24801         ld_shlibs_GCJ=no
24802       fi
24803       ;;
24804     esac
24805
24806     if test "$ld_shlibs_GCJ" = no; then
24807       runpath_var=
24808       hardcode_libdir_flag_spec_GCJ=
24809       export_dynamic_flag_spec_GCJ=
24810       whole_archive_flag_spec_GCJ=
24811     fi
24812   else
24813     # PORTME fill in a description of your system's linker (not GNU ld)
24814     case $host_os in
24815     aix3*)
24816       allow_undefined_flag_GCJ=unsupported
24817       always_export_symbols_GCJ=yes
24818       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'
24819       # Note: this linker hardcodes the directories in LIBPATH if there
24820       # are no directories specified by -L.
24821       hardcode_minus_L_GCJ=yes
24822       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24823         # Neither direct hardcoding nor static linking is supported with a
24824         # broken collect2.
24825         hardcode_direct_GCJ=unsupported
24826       fi
24827       ;;
24828
24829     aix4* | aix5*)
24830       if test "$host_cpu" = ia64; then
24831         # On IA64, the linker does run time linking by default, so we don't
24832         # have to do anything special.
24833         aix_use_runtimelinking=no
24834         exp_sym_flag='-Bexport'
24835         no_entry_flag=""
24836       else
24837         # If we're using GNU nm, then we don't want the "-C" option.
24838         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24839         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24840           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'
24841         else
24842           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'
24843         fi
24844         aix_use_runtimelinking=no
24845
24846         # Test if we are trying to use run time linking or normal
24847         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24848         # need to do runtime linking.
24849         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24850           for ld_flag in $LDFLAGS; do
24851           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24852             aix_use_runtimelinking=yes
24853             break
24854           fi
24855           done
24856           ;;
24857         esac
24858
24859         exp_sym_flag='-bexport'
24860         no_entry_flag='-bnoentry'
24861       fi
24862
24863       # When large executables or shared objects are built, AIX ld can
24864       # have problems creating the table of contents.  If linking a library
24865       # or program results in "error TOC overflow" add -mminimal-toc to
24866       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24867       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24868
24869       archive_cmds_GCJ=''
24870       hardcode_direct_GCJ=yes
24871       hardcode_libdir_separator_GCJ=':'
24872       link_all_deplibs_GCJ=yes
24873
24874       if test "$GCC" = yes; then
24875         case $host_os in aix4.[012]|aix4.[012].*)
24876         # We only want to do this on AIX 4.2 and lower, the check
24877         # below for broken collect2 doesn't work under 4.3+
24878           collect2name=`${CC} -print-prog-name=collect2`
24879           if test -f "$collect2name" && \
24880            strings "$collect2name" | grep resolve_lib_name >/dev/null
24881           then
24882           # We have reworked collect2
24883           hardcode_direct_GCJ=yes
24884           else
24885           # We have old collect2
24886           hardcode_direct_GCJ=unsupported
24887           # It fails to find uninstalled libraries when the uninstalled
24888           # path is not listed in the libpath.  Setting hardcode_minus_L
24889           # to unsupported forces relinking
24890           hardcode_minus_L_GCJ=yes
24891           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24892           hardcode_libdir_separator_GCJ=
24893           fi
24894           ;;
24895         esac
24896         shared_flag='-shared'
24897         if test "$aix_use_runtimelinking" = yes; then
24898           shared_flag="$shared_flag "'${wl}-G'
24899         fi
24900       else
24901         # not using gcc
24902         if test "$host_cpu" = ia64; then
24903         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24904         # chokes on -Wl,-G. The following line is correct:
24905           shared_flag='-G'
24906         else
24907           if test "$aix_use_runtimelinking" = yes; then
24908             shared_flag='${wl}-G'
24909           else
24910             shared_flag='${wl}-bM:SRE'
24911           fi
24912         fi
24913       fi
24914
24915       # It seems that -bexpall does not export symbols beginning with
24916       # underscore (_), so it is better to generate a list of symbols to export.
24917       always_export_symbols_GCJ=yes
24918       if test "$aix_use_runtimelinking" = yes; then
24919         # Warning - without using the other runtime loading flags (-brtl),
24920         # -berok will link without error, but may produce a broken library.
24921         allow_undefined_flag_GCJ='-berok'
24922        # Determine the default libpath from the value encoded in an empty executable.
24923        cat >conftest.$ac_ext <<_ACEOF
24924 /* confdefs.h.  */
24925 _ACEOF
24926 cat confdefs.h >>conftest.$ac_ext
24927 cat >>conftest.$ac_ext <<_ACEOF
24928 /* end confdefs.h.  */
24929
24930 int
24931 main ()
24932 {
24933
24934   ;
24935   return 0;
24936 }
24937 _ACEOF
24938 rm -f conftest.$ac_objext conftest$ac_exeext
24939 if { (ac_try="$ac_link"
24940 case "(($ac_try" in
24941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24942   *) ac_try_echo=$ac_try;;
24943 esac
24944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24945   (eval "$ac_link") 2>conftest.er1
24946   ac_status=$?
24947   grep -v '^ *+' conftest.er1 >conftest.err
24948   rm -f conftest.er1
24949   cat conftest.err >&5
24950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951   (exit $ac_status); } &&
24952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24953   { (case "(($ac_try" in
24954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24955   *) ac_try_echo=$ac_try;;
24956 esac
24957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24958   (eval "$ac_try") 2>&5
24959   ac_status=$?
24960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961   (exit $ac_status); }; } &&
24962          { ac_try='test -s conftest$ac_exeext'
24963   { (case "(($ac_try" in
24964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24965   *) ac_try_echo=$ac_try;;
24966 esac
24967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24968   (eval "$ac_try") 2>&5
24969   ac_status=$?
24970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971   (exit $ac_status); }; }; then
24972
24973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24974 }'`
24975 # Check for a 64-bit object if we didn't find anything.
24976 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; }
24977 }'`; fi
24978 else
24979   echo "$as_me: failed program was:" >&5
24980 sed 's/^/| /' conftest.$ac_ext >&5
24981
24982
24983 fi
24984
24985 rm -f core conftest.err conftest.$ac_objext \
24986       conftest$ac_exeext conftest.$ac_ext
24987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24988
24989        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24990         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"
24991        else
24992         if test "$host_cpu" = ia64; then
24993           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24994           allow_undefined_flag_GCJ="-z nodefs"
24995           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"
24996         else
24997          # Determine the default libpath from the value encoded in an empty executable.
24998          cat >conftest.$ac_ext <<_ACEOF
24999 /* confdefs.h.  */
25000 _ACEOF
25001 cat confdefs.h >>conftest.$ac_ext
25002 cat >>conftest.$ac_ext <<_ACEOF
25003 /* end confdefs.h.  */
25004
25005 int
25006 main ()
25007 {
25008
25009   ;
25010   return 0;
25011 }
25012 _ACEOF
25013 rm -f conftest.$ac_objext conftest$ac_exeext
25014 if { (ac_try="$ac_link"
25015 case "(($ac_try" in
25016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25017   *) ac_try_echo=$ac_try;;
25018 esac
25019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25020   (eval "$ac_link") 2>conftest.er1
25021   ac_status=$?
25022   grep -v '^ *+' conftest.er1 >conftest.err
25023   rm -f conftest.er1
25024   cat conftest.err >&5
25025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026   (exit $ac_status); } &&
25027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25028   { (case "(($ac_try" in
25029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030   *) ac_try_echo=$ac_try;;
25031 esac
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033   (eval "$ac_try") 2>&5
25034   ac_status=$?
25035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036   (exit $ac_status); }; } &&
25037          { ac_try='test -s conftest$ac_exeext'
25038   { (case "(($ac_try" in
25039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25040   *) ac_try_echo=$ac_try;;
25041 esac
25042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25043   (eval "$ac_try") 2>&5
25044   ac_status=$?
25045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046   (exit $ac_status); }; }; then
25047
25048 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25049 }'`
25050 # Check for a 64-bit object if we didn't find anything.
25051 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; }
25052 }'`; fi
25053 else
25054   echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25056
25057
25058 fi
25059
25060 rm -f core conftest.err conftest.$ac_objext \
25061       conftest$ac_exeext conftest.$ac_ext
25062 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25063
25064          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25065           # Warning - without using the other run time loading flags,
25066           # -berok will link without error, but may produce a broken library.
25067           no_undefined_flag_GCJ=' ${wl}-bernotok'
25068           allow_undefined_flag_GCJ=' ${wl}-berok'
25069           # Exported symbols can be pulled into shared objects from archives
25070           whole_archive_flag_spec_GCJ='$convenience'
25071           archive_cmds_need_lc_GCJ=yes
25072           # This is similar to how AIX traditionally builds its shared libraries.
25073           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'
25074         fi
25075       fi
25076       ;;
25077
25078     amigaos*)
25079       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)'
25080       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25081       hardcode_minus_L_GCJ=yes
25082       # see comment about different semantics on the GNU ld section
25083       ld_shlibs_GCJ=no
25084       ;;
25085
25086     bsdi[45]*)
25087       export_dynamic_flag_spec_GCJ=-rdynamic
25088       ;;
25089
25090     cygwin* | mingw* | pw32*)
25091       # When not using gcc, we currently assume that we are using
25092       # Microsoft Visual C++.
25093       # hardcode_libdir_flag_spec is actually meaningless, as there is
25094       # no search path for DLLs.
25095       hardcode_libdir_flag_spec_GCJ=' '
25096       allow_undefined_flag_GCJ=unsupported
25097       # Tell ltmain to make .lib files, not .a files.
25098       libext=lib
25099       # Tell ltmain to make .dll files, not .so files.
25100       shrext_cmds=".dll"
25101       # FIXME: Setting linknames here is a bad hack.
25102       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25103       # The linker will automatically build a .lib file if we build a DLL.
25104       old_archive_From_new_cmds_GCJ='true'
25105       # FIXME: Should let the user specify the lib program.
25106       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25107       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25108       enable_shared_with_static_runtimes_GCJ=yes
25109       ;;
25110
25111     darwin* | rhapsody*)
25112       case $host_os in
25113         rhapsody* | darwin1.[012])
25114          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25115          ;;
25116        *) # Darwin 1.3 on
25117          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25118            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25119          else
25120            case ${MACOSX_DEPLOYMENT_TARGET} in
25121              10.[012])
25122                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25123                ;;
25124              10.*)
25125                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25126                ;;
25127            esac
25128          fi
25129          ;;
25130       esac
25131       archive_cmds_need_lc_GCJ=no
25132       hardcode_direct_GCJ=no
25133       hardcode_automatic_GCJ=yes
25134       hardcode_shlibpath_var_GCJ=unsupported
25135       whole_archive_flag_spec_GCJ=''
25136       link_all_deplibs_GCJ=yes
25137     if test "$GCC" = yes ; then
25138         output_verbose_link_cmd='echo'
25139         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25140       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25141       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25142       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}'
25143       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}'
25144     else
25145       case $cc_basename in
25146         xlc*)
25147          output_verbose_link_cmd='echo'
25148          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25149          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25150           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25151          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}'
25152           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}'
25153           ;;
25154        *)
25155          ld_shlibs_GCJ=no
25156           ;;
25157       esac
25158     fi
25159       ;;
25160
25161     dgux*)
25162       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25163       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25164       hardcode_shlibpath_var_GCJ=no
25165       ;;
25166
25167     freebsd1*)
25168       ld_shlibs_GCJ=no
25169       ;;
25170
25171     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25172     # support.  Future versions do this automatically, but an explicit c++rt0.o
25173     # does not break anything, and helps significantly (at the cost of a little
25174     # extra space).
25175     freebsd2.2*)
25176       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25177       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25178       hardcode_direct_GCJ=yes
25179       hardcode_shlibpath_var_GCJ=no
25180       ;;
25181
25182     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25183     freebsd2*)
25184       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25185       hardcode_direct_GCJ=yes
25186       hardcode_minus_L_GCJ=yes
25187       hardcode_shlibpath_var_GCJ=no
25188       ;;
25189
25190     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25191     freebsd* | kfreebsd*-gnu | dragonfly*)
25192       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25193       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25194       hardcode_direct_GCJ=yes
25195       hardcode_shlibpath_var_GCJ=no
25196       ;;
25197
25198     hpux9*)
25199       if test "$GCC" = yes; then
25200         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'
25201       else
25202         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'
25203       fi
25204       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25205       hardcode_libdir_separator_GCJ=:
25206       hardcode_direct_GCJ=yes
25207
25208       # hardcode_minus_L: Not really in the search PATH,
25209       # but as the default location of the library.
25210       hardcode_minus_L_GCJ=yes
25211       export_dynamic_flag_spec_GCJ='${wl}-E'
25212       ;;
25213
25214     hpux10*)
25215       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25216         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25217       else
25218         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25219       fi
25220       if test "$with_gnu_ld" = no; then
25221         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25222         hardcode_libdir_separator_GCJ=:
25223
25224         hardcode_direct_GCJ=yes
25225         export_dynamic_flag_spec_GCJ='${wl}-E'
25226
25227         # hardcode_minus_L: Not really in the search PATH,
25228         # but as the default location of the library.
25229         hardcode_minus_L_GCJ=yes
25230       fi
25231       ;;
25232
25233     hpux11*)
25234       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25235         case $host_cpu in
25236         hppa*64*)
25237           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25238           ;;
25239         ia64*)
25240           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25241           ;;
25242         *)
25243           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25244           ;;
25245         esac
25246       else
25247         case $host_cpu in
25248         hppa*64*)
25249           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25250           ;;
25251         ia64*)
25252           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25253           ;;
25254         *)
25255           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25256           ;;
25257         esac
25258       fi
25259       if test "$with_gnu_ld" = no; then
25260         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25261         hardcode_libdir_separator_GCJ=:
25262
25263         case $host_cpu in
25264         hppa*64*|ia64*)
25265           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25266           hardcode_direct_GCJ=no
25267           hardcode_shlibpath_var_GCJ=no
25268           ;;
25269         *)
25270           hardcode_direct_GCJ=yes
25271           export_dynamic_flag_spec_GCJ='${wl}-E'
25272
25273           # hardcode_minus_L: Not really in the search PATH,
25274           # but as the default location of the library.
25275           hardcode_minus_L_GCJ=yes
25276           ;;
25277         esac
25278       fi
25279       ;;
25280
25281     irix5* | irix6* | nonstopux*)
25282       if test "$GCC" = yes; then
25283         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'
25284       else
25285         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'
25286         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25287       fi
25288       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25289       hardcode_libdir_separator_GCJ=:
25290       link_all_deplibs_GCJ=yes
25291       ;;
25292
25293     netbsd*)
25294       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25295         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25296       else
25297         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25298       fi
25299       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25300       hardcode_direct_GCJ=yes
25301       hardcode_shlibpath_var_GCJ=no
25302       ;;
25303
25304     newsos6)
25305       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25306       hardcode_direct_GCJ=yes
25307       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25308       hardcode_libdir_separator_GCJ=:
25309       hardcode_shlibpath_var_GCJ=no
25310       ;;
25311
25312     openbsd*)
25313       hardcode_direct_GCJ=yes
25314       hardcode_shlibpath_var_GCJ=no
25315       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25316         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25317         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25318         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25319         export_dynamic_flag_spec_GCJ='${wl}-E'
25320       else
25321        case $host_os in
25322          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25323            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25324            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25325            ;;
25326          *)
25327            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25328            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25329            ;;
25330        esac
25331       fi
25332       ;;
25333
25334     os2*)
25335       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25336       hardcode_minus_L_GCJ=yes
25337       allow_undefined_flag_GCJ=unsupported
25338       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'
25339       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25340       ;;
25341
25342     osf3*)
25343       if test "$GCC" = yes; then
25344         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25345         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'
25346       else
25347         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25348         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'
25349       fi
25350       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25351       hardcode_libdir_separator_GCJ=:
25352       ;;
25353
25354     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25355       if test "$GCC" = yes; then
25356         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25357         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'
25358         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25359       else
25360         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25361         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'
25362         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~
25363         $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'
25364
25365         # Both c and cxx compiler support -rpath directly
25366         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25367       fi
25368       hardcode_libdir_separator_GCJ=:
25369       ;;
25370
25371     solaris*)
25372       no_undefined_flag_GCJ=' -z text'
25373       if test "$GCC" = yes; then
25374         wlarc='${wl}'
25375         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25376         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25377           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25378       else
25379         wlarc=''
25380         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25381         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25382         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25383       fi
25384       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25385       hardcode_shlibpath_var_GCJ=no
25386       case $host_os in
25387       solaris2.[0-5] | solaris2.[0-5].*) ;;
25388       *)
25389         # The compiler driver will combine linker options so we
25390         # cannot just pass the convience library names through
25391         # without $wl, iff we do not link with $LD.
25392         # Luckily, gcc supports the same syntax we need for Sun Studio.
25393         # Supported since Solaris 2.6 (maybe 2.5.1?)
25394         case $wlarc in
25395         '')
25396           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25397         *)
25398           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' ;;
25399         esac ;;
25400       esac
25401       link_all_deplibs_GCJ=yes
25402       ;;
25403
25404     sunos4*)
25405       if test "x$host_vendor" = xsequent; then
25406         # Use $CC to link under sequent, because it throws in some extra .o
25407         # files that make .init and .fini sections work.
25408         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25409       else
25410         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25411       fi
25412       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25413       hardcode_direct_GCJ=yes
25414       hardcode_minus_L_GCJ=yes
25415       hardcode_shlibpath_var_GCJ=no
25416       ;;
25417
25418     sysv4)
25419       case $host_vendor in
25420         sni)
25421           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25422           hardcode_direct_GCJ=yes # is this really true???
25423         ;;
25424         siemens)
25425           ## LD is ld it makes a PLAMLIB
25426           ## CC just makes a GrossModule.
25427           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25428           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25429           hardcode_direct_GCJ=no
25430         ;;
25431         motorola)
25432           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25433           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25434         ;;
25435       esac
25436       runpath_var='LD_RUN_PATH'
25437       hardcode_shlibpath_var_GCJ=no
25438       ;;
25439
25440     sysv4.3*)
25441       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25442       hardcode_shlibpath_var_GCJ=no
25443       export_dynamic_flag_spec_GCJ='-Bexport'
25444       ;;
25445
25446     sysv4*MP*)
25447       if test -d /usr/nec; then
25448         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25449         hardcode_shlibpath_var_GCJ=no
25450         runpath_var=LD_RUN_PATH
25451         hardcode_runpath_var=yes
25452         ld_shlibs_GCJ=yes
25453       fi
25454       ;;
25455
25456     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25457       no_undefined_flag_GCJ='${wl}-z,text'
25458       archive_cmds_need_lc_GCJ=no
25459       hardcode_shlibpath_var_GCJ=no
25460       runpath_var='LD_RUN_PATH'
25461
25462       if test "$GCC" = yes; then
25463         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25464         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25465       else
25466         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25467         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25468       fi
25469       ;;
25470
25471     sysv5* | sco3.2v5* | sco5v6*)
25472       # Note: We can NOT use -z defs as we might desire, because we do not
25473       # link with -lc, and that would cause any symbols used from libc to
25474       # always be unresolved, which means just about no library would
25475       # ever link correctly.  If we're not using GNU ld we use -z text
25476       # though, which does catch some bad symbols but isn't as heavy-handed
25477       # as -z defs.
25478       no_undefined_flag_GCJ='${wl}-z,text'
25479       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25480       archive_cmds_need_lc_GCJ=no
25481       hardcode_shlibpath_var_GCJ=no
25482       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25483       hardcode_libdir_separator_GCJ=':'
25484       link_all_deplibs_GCJ=yes
25485       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25486       runpath_var='LD_RUN_PATH'
25487
25488       if test "$GCC" = yes; then
25489         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25490         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25491       else
25492         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25493         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25494       fi
25495       ;;
25496
25497     uts4*)
25498       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25499       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25500       hardcode_shlibpath_var_GCJ=no
25501       ;;
25502
25503     *)
25504       ld_shlibs_GCJ=no
25505       ;;
25506     esac
25507   fi
25508
25509 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25510 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25511 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25512
25513 #
25514 # Do we need to explicitly link libc?
25515 #
25516 case "x$archive_cmds_need_lc_GCJ" in
25517 x|xyes)
25518   # Assume -lc should be added
25519   archive_cmds_need_lc_GCJ=yes
25520
25521   if test "$enable_shared" = yes && test "$GCC" = yes; then
25522     case $archive_cmds_GCJ in
25523     *'~'*)
25524       # FIXME: we may have to deal with multi-command sequences.
25525       ;;
25526     '$CC '*)
25527       # Test whether the compiler implicitly links with -lc since on some
25528       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25529       # to ld, don't add -lc before -lgcc.
25530       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25531 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25532       $rm conftest*
25533       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25534
25535       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25536   (eval $ac_compile) 2>&5
25537   ac_status=$?
25538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539   (exit $ac_status); } 2>conftest.err; then
25540         soname=conftest
25541         lib=conftest
25542         libobjs=conftest.$ac_objext
25543         deplibs=
25544         wl=$lt_prog_compiler_wl_GCJ
25545         pic_flag=$lt_prog_compiler_pic_GCJ
25546         compiler_flags=-v
25547         linker_flags=-v
25548         verstring=
25549         output_objdir=.
25550         libname=conftest
25551         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25552         allow_undefined_flag_GCJ=
25553         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25554   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25555   ac_status=$?
25556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557   (exit $ac_status); }
25558         then
25559           archive_cmds_need_lc_GCJ=no
25560         else
25561           archive_cmds_need_lc_GCJ=yes
25562         fi
25563         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25564       else
25565         cat conftest.err 1>&5
25566       fi
25567       $rm conftest*
25568       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25569 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25570       ;;
25571     esac
25572   fi
25573   ;;
25574 esac
25575
25576 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25577 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25578 library_names_spec=
25579 libname_spec='lib$name'
25580 soname_spec=
25581 shrext_cmds=".so"
25582 postinstall_cmds=
25583 postuninstall_cmds=
25584 finish_cmds=
25585 finish_eval=
25586 shlibpath_var=
25587 shlibpath_overrides_runpath=unknown
25588 version_type=none
25589 dynamic_linker="$host_os ld.so"
25590 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25591 if test "$GCC" = yes; then
25592   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25593   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25594     # if the path contains ";" then we assume it to be the separator
25595     # otherwise default to the standard path separator (i.e. ":") - it is
25596     # assumed that no part of a normal pathname contains ";" but that should
25597     # okay in the real world where ";" in dirpaths is itself problematic.
25598     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25599   else
25600     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25601   fi
25602 else
25603   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25604 fi
25605 need_lib_prefix=unknown
25606 hardcode_into_libs=no
25607
25608 # when you set need_version to no, make sure it does not cause -set_version
25609 # flags to be left without arguments
25610 need_version=unknown
25611
25612 case $host_os in
25613 aix3*)
25614   version_type=linux
25615   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25616   shlibpath_var=LIBPATH
25617
25618   # AIX 3 has no versioning support, so we append a major version to the name.
25619   soname_spec='${libname}${release}${shared_ext}$major'
25620   ;;
25621
25622 aix4* | aix5*)
25623   version_type=linux
25624   need_lib_prefix=no
25625   need_version=no
25626   hardcode_into_libs=yes
25627   if test "$host_cpu" = ia64; then
25628     # AIX 5 supports IA64
25629     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25630     shlibpath_var=LD_LIBRARY_PATH
25631   else
25632     # With GCC up to 2.95.x, collect2 would create an import file
25633     # for dependence libraries.  The import file would start with
25634     # the line `#! .'.  This would cause the generated library to
25635     # depend on `.', always an invalid library.  This was fixed in
25636     # development snapshots of GCC prior to 3.0.
25637     case $host_os in
25638       aix4 | aix4.[01] | aix4.[01].*)
25639       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25640            echo ' yes '
25641            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25642         :
25643       else
25644         can_build_shared=no
25645       fi
25646       ;;
25647     esac
25648     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25649     # soname into executable. Probably we can add versioning support to
25650     # collect2, so additional links can be useful in future.
25651     if test "$aix_use_runtimelinking" = yes; then
25652       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25653       # instead of lib<name>.a to let people know that these are not
25654       # typical AIX shared libraries.
25655       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25656     else
25657       # We preserve .a as extension for shared libraries through AIX4.2
25658       # and later when we are not doing run time linking.
25659       library_names_spec='${libname}${release}.a $libname.a'
25660       soname_spec='${libname}${release}${shared_ext}$major'
25661     fi
25662     shlibpath_var=LIBPATH
25663   fi
25664   ;;
25665
25666 amigaos*)
25667   library_names_spec='$libname.ixlibrary $libname.a'
25668   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25669   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'
25670   ;;
25671
25672 beos*)
25673   library_names_spec='${libname}${shared_ext}'
25674   dynamic_linker="$host_os ld.so"
25675   shlibpath_var=LIBRARY_PATH
25676   ;;
25677
25678 bsdi[45]*)
25679   version_type=linux
25680   need_version=no
25681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25682   soname_spec='${libname}${release}${shared_ext}$major'
25683   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25684   shlibpath_var=LD_LIBRARY_PATH
25685   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25686   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25687   # the default ld.so.conf also contains /usr/contrib/lib and
25688   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25689   # libtool to hard-code these into programs
25690   ;;
25691
25692 cygwin* | mingw* | pw32*)
25693   version_type=windows
25694   shrext_cmds=".dll"
25695   need_version=no
25696   need_lib_prefix=no
25697
25698   case $GCC,$host_os in
25699   yes,cygwin* | yes,mingw* | yes,pw32*)
25700     library_names_spec='$libname.dll.a'
25701     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25702     postinstall_cmds='base_file=`basename \${file}`~
25703       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25704       dldir=$destdir/`dirname \$dlpath`~
25705       test -d \$dldir || mkdir -p \$dldir~
25706       $install_prog $dir/$dlname \$dldir/$dlname~
25707       chmod a+x \$dldir/$dlname'
25708     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25709       dlpath=$dir/\$dldll~
25710        $rm \$dlpath'
25711     shlibpath_overrides_runpath=yes
25712
25713     case $host_os in
25714     cygwin*)
25715       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25716       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25717       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25718       ;;
25719     mingw*)
25720       # MinGW DLLs use traditional 'lib' prefix
25721       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25722       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25723       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25724         # It is most probably a Windows format PATH printed by
25725         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25726         # path with ; separators, and with drive letters. We can handle the
25727         # drive letters (cygwin fileutils understands them), so leave them,
25728         # especially as we might pass files found there to a mingw objdump,
25729         # which wouldn't understand a cygwinified path. Ahh.
25730         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25731       else
25732         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25733       fi
25734       ;;
25735     pw32*)
25736       # pw32 DLLs use 'pw' prefix rather than 'lib'
25737       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25738       ;;
25739     esac
25740     ;;
25741
25742   *)
25743     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25744     ;;
25745   esac
25746   dynamic_linker='Win32 ld.exe'
25747   # FIXME: first we should search . and the directory the executable is in
25748   shlibpath_var=PATH
25749   ;;
25750
25751 darwin* | rhapsody*)
25752   dynamic_linker="$host_os dyld"
25753   version_type=darwin
25754   need_lib_prefix=no
25755   need_version=no
25756   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25757   soname_spec='${libname}${release}${major}$shared_ext'
25758   shlibpath_overrides_runpath=yes
25759   shlibpath_var=DYLD_LIBRARY_PATH
25760   shrext_cmds='.dylib'
25761   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25762   if test "$GCC" = yes; then
25763     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"`
25764   else
25765     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25766   fi
25767   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25768   ;;
25769
25770 dgux*)
25771   version_type=linux
25772   need_lib_prefix=no
25773   need_version=no
25774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25775   soname_spec='${libname}${release}${shared_ext}$major'
25776   shlibpath_var=LD_LIBRARY_PATH
25777   ;;
25778
25779 freebsd1*)
25780   dynamic_linker=no
25781   ;;
25782
25783 kfreebsd*-gnu)
25784   version_type=linux
25785   need_lib_prefix=no
25786   need_version=no
25787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25788   soname_spec='${libname}${release}${shared_ext}$major'
25789   shlibpath_var=LD_LIBRARY_PATH
25790   shlibpath_overrides_runpath=no
25791   hardcode_into_libs=yes
25792   dynamic_linker='GNU ld.so'
25793   ;;
25794
25795 freebsd* | dragonfly*)
25796   # DragonFly does not have aout.  When/if they implement a new
25797   # versioning mechanism, adjust this.
25798   if test -x /usr/bin/objformat; then
25799     objformat=`/usr/bin/objformat`
25800   else
25801     case $host_os in
25802     freebsd[123]*) objformat=aout ;;
25803     *) objformat=elf ;;
25804     esac
25805   fi
25806   version_type=freebsd-$objformat
25807   case $version_type in
25808     freebsd-elf*)
25809       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25810       need_version=no
25811       need_lib_prefix=no
25812       ;;
25813     freebsd-*)
25814       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25815       need_version=yes
25816       ;;
25817   esac
25818   shlibpath_var=LD_LIBRARY_PATH
25819   case $host_os in
25820   freebsd2*)
25821     shlibpath_overrides_runpath=yes
25822     ;;
25823   freebsd3.[01]* | freebsdelf3.[01]*)
25824     shlibpath_overrides_runpath=yes
25825     hardcode_into_libs=yes
25826     ;;
25827   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25828   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25829     shlibpath_overrides_runpath=no
25830     hardcode_into_libs=yes
25831     ;;
25832   freebsd*) # from 4.6 on
25833     shlibpath_overrides_runpath=yes
25834     hardcode_into_libs=yes
25835     ;;
25836   esac
25837   ;;
25838
25839 gnu*)
25840   version_type=linux
25841   need_lib_prefix=no
25842   need_version=no
25843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25844   soname_spec='${libname}${release}${shared_ext}$major'
25845   shlibpath_var=LD_LIBRARY_PATH
25846   hardcode_into_libs=yes
25847   ;;
25848
25849 hpux9* | hpux10* | hpux11*)
25850   # Give a soname corresponding to the major version so that dld.sl refuses to
25851   # link against other versions.
25852   version_type=sunos
25853   need_lib_prefix=no
25854   need_version=no
25855   case $host_cpu in
25856   ia64*)
25857     shrext_cmds='.so'
25858     hardcode_into_libs=yes
25859     dynamic_linker="$host_os dld.so"
25860     shlibpath_var=LD_LIBRARY_PATH
25861     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25862     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25863     soname_spec='${libname}${release}${shared_ext}$major'
25864     if test "X$HPUX_IA64_MODE" = X32; then
25865       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25866     else
25867       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25868     fi
25869     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25870     ;;
25871    hppa*64*)
25872      shrext_cmds='.sl'
25873      hardcode_into_libs=yes
25874      dynamic_linker="$host_os dld.sl"
25875      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25876      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25877      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25878      soname_spec='${libname}${release}${shared_ext}$major'
25879      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25880      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25881      ;;
25882    *)
25883     shrext_cmds='.sl'
25884     dynamic_linker="$host_os dld.sl"
25885     shlibpath_var=SHLIB_PATH
25886     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25887     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25888     soname_spec='${libname}${release}${shared_ext}$major'
25889     ;;
25890   esac
25891   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25892   postinstall_cmds='chmod 555 $lib'
25893   ;;
25894
25895 interix3*)
25896   version_type=linux
25897   need_lib_prefix=no
25898   need_version=no
25899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25900   soname_spec='${libname}${release}${shared_ext}$major'
25901   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25902   shlibpath_var=LD_LIBRARY_PATH
25903   shlibpath_overrides_runpath=no
25904   hardcode_into_libs=yes
25905   ;;
25906
25907 irix5* | irix6* | nonstopux*)
25908   case $host_os in
25909     nonstopux*) version_type=nonstopux ;;
25910     *)
25911         if test "$lt_cv_prog_gnu_ld" = yes; then
25912                 version_type=linux
25913         else
25914                 version_type=irix
25915         fi ;;
25916   esac
25917   need_lib_prefix=no
25918   need_version=no
25919   soname_spec='${libname}${release}${shared_ext}$major'
25920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25921   case $host_os in
25922   irix5* | nonstopux*)
25923     libsuff= shlibsuff=
25924     ;;
25925   *)
25926     case $LD in # libtool.m4 will add one of these switches to LD
25927     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25928       libsuff= shlibsuff= libmagic=32-bit;;
25929     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25930       libsuff=32 shlibsuff=N32 libmagic=N32;;
25931     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25932       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25933     *) libsuff= shlibsuff= libmagic=never-match;;
25934     esac
25935     ;;
25936   esac
25937   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25938   shlibpath_overrides_runpath=no
25939   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25940   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25941   hardcode_into_libs=yes
25942   ;;
25943
25944 # No shared lib support for Linux oldld, aout, or coff.
25945 linux*oldld* | linux*aout* | linux*coff*)
25946   dynamic_linker=no
25947   ;;
25948
25949 # This must be Linux ELF.
25950 linux*)
25951   version_type=linux
25952   need_lib_prefix=no
25953   need_version=no
25954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25955   soname_spec='${libname}${release}${shared_ext}$major'
25956   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25957   shlibpath_var=LD_LIBRARY_PATH
25958   shlibpath_overrides_runpath=no
25959   # This implies no fast_install, which is unacceptable.
25960   # Some rework will be needed to allow for fast_install
25961   # before this can be enabled.
25962   hardcode_into_libs=yes
25963
25964   # Append ld.so.conf contents to the search path
25965   if test -f /etc/ld.so.conf; then
25966     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' ' '`
25967     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25968   fi
25969
25970   # We used to test for /lib/ld.so.1 and disable shared libraries on
25971   # powerpc, because MkLinux only supported shared libraries with the
25972   # GNU dynamic linker.  Since this was broken with cross compilers,
25973   # most powerpc-linux boxes support dynamic linking these days and
25974   # people can always --disable-shared, the test was removed, and we
25975   # assume the GNU/Linux dynamic linker is in use.
25976   dynamic_linker='GNU/Linux ld.so'
25977   ;;
25978
25979 knetbsd*-gnu)
25980   version_type=linux
25981   need_lib_prefix=no
25982   need_version=no
25983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25984   soname_spec='${libname}${release}${shared_ext}$major'
25985   shlibpath_var=LD_LIBRARY_PATH
25986   shlibpath_overrides_runpath=no
25987   hardcode_into_libs=yes
25988   dynamic_linker='GNU ld.so'
25989   ;;
25990
25991 netbsd*)
25992   version_type=sunos
25993   need_lib_prefix=no
25994   need_version=no
25995   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25996     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25997     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25998     dynamic_linker='NetBSD (a.out) ld.so'
25999   else
26000     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26001     soname_spec='${libname}${release}${shared_ext}$major'
26002     dynamic_linker='NetBSD ld.elf_so'
26003   fi
26004   shlibpath_var=LD_LIBRARY_PATH
26005   shlibpath_overrides_runpath=yes
26006   hardcode_into_libs=yes
26007   ;;
26008
26009 newsos6)
26010   version_type=linux
26011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26012   shlibpath_var=LD_LIBRARY_PATH
26013   shlibpath_overrides_runpath=yes
26014   ;;
26015
26016 nto-qnx*)
26017   version_type=linux
26018   need_lib_prefix=no
26019   need_version=no
26020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26021   soname_spec='${libname}${release}${shared_ext}$major'
26022   shlibpath_var=LD_LIBRARY_PATH
26023   shlibpath_overrides_runpath=yes
26024   ;;
26025
26026 openbsd*)
26027   version_type=sunos
26028   sys_lib_dlsearch_path_spec="/usr/lib"
26029   need_lib_prefix=no
26030   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26031   case $host_os in
26032     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26033     *)                         need_version=no  ;;
26034   esac
26035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26036   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26037   shlibpath_var=LD_LIBRARY_PATH
26038   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26039     case $host_os in
26040       openbsd2.[89] | openbsd2.[89].*)
26041         shlibpath_overrides_runpath=no
26042         ;;
26043       *)
26044         shlibpath_overrides_runpath=yes
26045         ;;
26046       esac
26047   else
26048     shlibpath_overrides_runpath=yes
26049   fi
26050   ;;
26051
26052 os2*)
26053   libname_spec='$name'
26054   shrext_cmds=".dll"
26055   need_lib_prefix=no
26056   library_names_spec='$libname${shared_ext} $libname.a'
26057   dynamic_linker='OS/2 ld.exe'
26058   shlibpath_var=LIBPATH
26059   ;;
26060
26061 osf3* | osf4* | osf5*)
26062   version_type=osf
26063   need_lib_prefix=no
26064   need_version=no
26065   soname_spec='${libname}${release}${shared_ext}$major'
26066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26067   shlibpath_var=LD_LIBRARY_PATH
26068   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26069   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26070   ;;
26071
26072 solaris*)
26073   version_type=linux
26074   need_lib_prefix=no
26075   need_version=no
26076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26077   soname_spec='${libname}${release}${shared_ext}$major'
26078   shlibpath_var=LD_LIBRARY_PATH
26079   shlibpath_overrides_runpath=yes
26080   hardcode_into_libs=yes
26081   # ldd complains unless libraries are executable
26082   postinstall_cmds='chmod +x $lib'
26083   ;;
26084
26085 sunos4*)
26086   version_type=sunos
26087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26088   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26089   shlibpath_var=LD_LIBRARY_PATH
26090   shlibpath_overrides_runpath=yes
26091   if test "$with_gnu_ld" = yes; then
26092     need_lib_prefix=no
26093   fi
26094   need_version=yes
26095   ;;
26096
26097 sysv4 | sysv4.3*)
26098   version_type=linux
26099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26100   soname_spec='${libname}${release}${shared_ext}$major'
26101   shlibpath_var=LD_LIBRARY_PATH
26102   case $host_vendor in
26103     sni)
26104       shlibpath_overrides_runpath=no
26105       need_lib_prefix=no
26106       export_dynamic_flag_spec='${wl}-Blargedynsym'
26107       runpath_var=LD_RUN_PATH
26108       ;;
26109     siemens)
26110       need_lib_prefix=no
26111       ;;
26112     motorola)
26113       need_lib_prefix=no
26114       need_version=no
26115       shlibpath_overrides_runpath=no
26116       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26117       ;;
26118   esac
26119   ;;
26120
26121 sysv4*MP*)
26122   if test -d /usr/nec ;then
26123     version_type=linux
26124     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26125     soname_spec='$libname${shared_ext}.$major'
26126     shlibpath_var=LD_LIBRARY_PATH
26127   fi
26128   ;;
26129
26130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26131   version_type=freebsd-elf
26132   need_lib_prefix=no
26133   need_version=no
26134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26135   soname_spec='${libname}${release}${shared_ext}$major'
26136   shlibpath_var=LD_LIBRARY_PATH
26137   hardcode_into_libs=yes
26138   if test "$with_gnu_ld" = yes; then
26139     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26140     shlibpath_overrides_runpath=no
26141   else
26142     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26143     shlibpath_overrides_runpath=yes
26144     case $host_os in
26145       sco3.2v5*)
26146         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26147         ;;
26148     esac
26149   fi
26150   sys_lib_dlsearch_path_spec='/usr/lib'
26151   ;;
26152
26153 uts4*)
26154   version_type=linux
26155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26156   soname_spec='${libname}${release}${shared_ext}$major'
26157   shlibpath_var=LD_LIBRARY_PATH
26158   ;;
26159
26160 *)
26161   dynamic_linker=no
26162   ;;
26163 esac
26164 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26165 echo "${ECHO_T}$dynamic_linker" >&6; }
26166 test "$dynamic_linker" = no && can_build_shared=no
26167
26168 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26169 if test "$GCC" = yes; then
26170   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26171 fi
26172
26173 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26174 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26175 hardcode_action_GCJ=
26176 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26177    test -n "$runpath_var_GCJ" || \
26178    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26179
26180   # We can hardcode non-existant directories.
26181   if test "$hardcode_direct_GCJ" != no &&
26182      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26183      # have to relink, otherwise we might link with an installed library
26184      # when we should be linking with a yet-to-be-installed one
26185      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26186      test "$hardcode_minus_L_GCJ" != no; then
26187     # Linking always hardcodes the temporary library directory.
26188     hardcode_action_GCJ=relink
26189   else
26190     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26191     hardcode_action_GCJ=immediate
26192   fi
26193 else
26194   # We cannot hardcode anything, or else we can only hardcode existing
26195   # directories.
26196   hardcode_action_GCJ=unsupported
26197 fi
26198 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26199 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26200
26201 if test "$hardcode_action_GCJ" = relink; then
26202   # Fast installation is not supported
26203   enable_fast_install=no
26204 elif test "$shlibpath_overrides_runpath" = yes ||
26205      test "$enable_shared" = no; then
26206   # Fast installation is not necessary
26207   enable_fast_install=needless
26208 fi
26209
26210
26211 # The else clause should only fire when bootstrapping the
26212 # libtool distribution, otherwise you forgot to ship ltmain.sh
26213 # with your package, and you will get complaints that there are
26214 # no rules to generate ltmain.sh.
26215 if test -f "$ltmain"; then
26216   # See if we are running on zsh, and set the options which allow our commands through
26217   # without removal of \ escapes.
26218   if test -n "${ZSH_VERSION+set}" ; then
26219     setopt NO_GLOB_SUBST
26220   fi
26221   # Now quote all the things that may contain metacharacters while being
26222   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26223   # variables and quote the copies for generation of the libtool script.
26224   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26225     SED SHELL STRIP \
26226     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26227     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26228     deplibs_check_method reload_flag reload_cmds need_locks \
26229     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26230     lt_cv_sys_global_symbol_to_c_name_address \
26231     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26232     old_postinstall_cmds old_postuninstall_cmds \
26233     compiler_GCJ \
26234     CC_GCJ \
26235     LD_GCJ \
26236     lt_prog_compiler_wl_GCJ \
26237     lt_prog_compiler_pic_GCJ \
26238     lt_prog_compiler_static_GCJ \
26239     lt_prog_compiler_no_builtin_flag_GCJ \
26240     export_dynamic_flag_spec_GCJ \
26241     thread_safe_flag_spec_GCJ \
26242     whole_archive_flag_spec_GCJ \
26243     enable_shared_with_static_runtimes_GCJ \
26244     old_archive_cmds_GCJ \
26245     old_archive_from_new_cmds_GCJ \
26246     predep_objects_GCJ \
26247     postdep_objects_GCJ \
26248     predeps_GCJ \
26249     postdeps_GCJ \
26250     compiler_lib_search_path_GCJ \
26251     archive_cmds_GCJ \
26252     archive_expsym_cmds_GCJ \
26253     postinstall_cmds_GCJ \
26254     postuninstall_cmds_GCJ \
26255     old_archive_from_expsyms_cmds_GCJ \
26256     allow_undefined_flag_GCJ \
26257     no_undefined_flag_GCJ \
26258     export_symbols_cmds_GCJ \
26259     hardcode_libdir_flag_spec_GCJ \
26260     hardcode_libdir_flag_spec_ld_GCJ \
26261     hardcode_libdir_separator_GCJ \
26262     hardcode_automatic_GCJ \
26263     module_cmds_GCJ \
26264     module_expsym_cmds_GCJ \
26265     lt_cv_prog_compiler_c_o_GCJ \
26266     exclude_expsyms_GCJ \
26267     include_expsyms_GCJ; do
26268
26269     case $var in
26270     old_archive_cmds_GCJ | \
26271     old_archive_from_new_cmds_GCJ | \
26272     archive_cmds_GCJ | \
26273     archive_expsym_cmds_GCJ | \
26274     module_cmds_GCJ | \
26275     module_expsym_cmds_GCJ | \
26276     old_archive_from_expsyms_cmds_GCJ | \
26277     export_symbols_cmds_GCJ | \
26278     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26279     postinstall_cmds | postuninstall_cmds | \
26280     old_postinstall_cmds | old_postuninstall_cmds | \
26281     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26282       # Double-quote double-evaled strings.
26283       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26284       ;;
26285     *)
26286       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26287       ;;
26288     esac
26289   done
26290
26291   case $lt_echo in
26292   *'\$0 --fallback-echo"')
26293     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26294     ;;
26295   esac
26296
26297 cfgfile="$ofile"
26298
26299   cat <<__EOF__ >> "$cfgfile"
26300 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26301
26302 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26303
26304 # Shell to use when invoking shell scripts.
26305 SHELL=$lt_SHELL
26306
26307 # Whether or not to build shared libraries.
26308 build_libtool_libs=$enable_shared
26309
26310 # Whether or not to build static libraries.
26311 build_old_libs=$enable_static
26312
26313 # Whether or not to add -lc for building shared libraries.
26314 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26315
26316 # Whether or not to disallow shared libs when runtime libs are static
26317 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26318
26319 # Whether or not to optimize for fast installation.
26320 fast_install=$enable_fast_install
26321
26322 # The host system.
26323 host_alias=$host_alias
26324 host=$host
26325 host_os=$host_os
26326
26327 # The build system.
26328 build_alias=$build_alias
26329 build=$build
26330 build_os=$build_os
26331
26332 # An echo program that does not interpret backslashes.
26333 echo=$lt_echo
26334
26335 # The archiver.
26336 AR=$lt_AR
26337 AR_FLAGS=$lt_AR_FLAGS
26338
26339 # A C compiler.
26340 LTCC=$lt_LTCC
26341
26342 # LTCC compiler flags.
26343 LTCFLAGS=$lt_LTCFLAGS
26344
26345 # A language-specific compiler.
26346 CC=$lt_compiler_GCJ
26347
26348 # Is the compiler the GNU C compiler?
26349 with_gcc=$GCC_GCJ
26350
26351 # An ERE matcher.
26352 EGREP=$lt_EGREP
26353
26354 # The linker used to build libraries.
26355 LD=$lt_LD_GCJ
26356
26357 # Whether we need hard or soft links.
26358 LN_S=$lt_LN_S
26359
26360 # A BSD-compatible nm program.
26361 NM=$lt_NM
26362
26363 # A symbol stripping program
26364 STRIP=$lt_STRIP
26365
26366 # Used to examine libraries when file_magic_cmd begins "file"
26367 MAGIC_CMD=$MAGIC_CMD
26368
26369 # Used on cygwin: DLL creation program.
26370 DLLTOOL="$DLLTOOL"
26371
26372 # Used on cygwin: object dumper.
26373 OBJDUMP="$OBJDUMP"
26374
26375 # Used on cygwin: assembler.
26376 AS="$AS"
26377
26378 # The name of the directory that contains temporary libtool files.
26379 objdir=$objdir
26380
26381 # How to create reloadable object files.
26382 reload_flag=$lt_reload_flag
26383 reload_cmds=$lt_reload_cmds
26384
26385 # How to pass a linker flag through the compiler.
26386 wl=$lt_lt_prog_compiler_wl_GCJ
26387
26388 # Object file suffix (normally "o").
26389 objext="$ac_objext"
26390
26391 # Old archive suffix (normally "a").
26392 libext="$libext"
26393
26394 # Shared library suffix (normally ".so").
26395 shrext_cmds='$shrext_cmds'
26396
26397 # Executable file suffix (normally "").
26398 exeext="$exeext"
26399
26400 # Additional compiler flags for building library objects.
26401 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26402 pic_mode=$pic_mode
26403
26404 # What is the maximum length of a command?
26405 max_cmd_len=$lt_cv_sys_max_cmd_len
26406
26407 # Does compiler simultaneously support -c and -o options?
26408 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26409
26410 # Must we lock files when doing compilation?
26411 need_locks=$lt_need_locks
26412
26413 # Do we need the lib prefix for modules?
26414 need_lib_prefix=$need_lib_prefix
26415
26416 # Do we need a version for libraries?
26417 need_version=$need_version
26418
26419 # Whether dlopen is supported.
26420 dlopen_support=$enable_dlopen
26421
26422 # Whether dlopen of programs is supported.
26423 dlopen_self=$enable_dlopen_self
26424
26425 # Whether dlopen of statically linked programs is supported.
26426 dlopen_self_static=$enable_dlopen_self_static
26427
26428 # Compiler flag to prevent dynamic linking.
26429 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26430
26431 # Compiler flag to turn off builtin functions.
26432 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26433
26434 # Compiler flag to allow reflexive dlopens.
26435 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26436
26437 # Compiler flag to generate shared objects directly from archives.
26438 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26439
26440 # Compiler flag to generate thread-safe objects.
26441 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26442
26443 # Library versioning type.
26444 version_type=$version_type
26445
26446 # Format of library name prefix.
26447 libname_spec=$lt_libname_spec
26448
26449 # List of archive names.  First name is the real one, the rest are links.
26450 # The last name is the one that the linker finds with -lNAME.
26451 library_names_spec=$lt_library_names_spec
26452
26453 # The coded name of the library, if different from the real name.
26454 soname_spec=$lt_soname_spec
26455
26456 # Commands used to build and install an old-style archive.
26457 RANLIB=$lt_RANLIB
26458 old_archive_cmds=$lt_old_archive_cmds_GCJ
26459 old_postinstall_cmds=$lt_old_postinstall_cmds
26460 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26461
26462 # Create an old-style archive from a shared archive.
26463 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26464
26465 # Create a temporary old-style archive to link instead of a shared archive.
26466 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26467
26468 # Commands used to build and install a shared archive.
26469 archive_cmds=$lt_archive_cmds_GCJ
26470 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26471 postinstall_cmds=$lt_postinstall_cmds
26472 postuninstall_cmds=$lt_postuninstall_cmds
26473
26474 # Commands used to build a loadable module (assumed same as above if empty)
26475 module_cmds=$lt_module_cmds_GCJ
26476 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26477
26478 # Commands to strip libraries.
26479 old_striplib=$lt_old_striplib
26480 striplib=$lt_striplib
26481
26482 # Dependencies to place before the objects being linked to create a
26483 # shared library.
26484 predep_objects=$lt_predep_objects_GCJ
26485
26486 # Dependencies to place after the objects being linked to create a
26487 # shared library.
26488 postdep_objects=$lt_postdep_objects_GCJ
26489
26490 # Dependencies to place before the objects being linked to create a
26491 # shared library.
26492 predeps=$lt_predeps_GCJ
26493
26494 # Dependencies to place after the objects being linked to create a
26495 # shared library.
26496 postdeps=$lt_postdeps_GCJ
26497
26498 # The library search path used internally by the compiler when linking
26499 # a shared library.
26500 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26501
26502 # Method to check whether dependent libraries are shared objects.
26503 deplibs_check_method=$lt_deplibs_check_method
26504
26505 # Command to use when deplibs_check_method == file_magic.
26506 file_magic_cmd=$lt_file_magic_cmd
26507
26508 # Flag that allows shared libraries with undefined symbols to be built.
26509 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26510
26511 # Flag that forces no undefined symbols.
26512 no_undefined_flag=$lt_no_undefined_flag_GCJ
26513
26514 # Commands used to finish a libtool library installation in a directory.
26515 finish_cmds=$lt_finish_cmds
26516
26517 # Same as above, but a single script fragment to be evaled but not shown.
26518 finish_eval=$lt_finish_eval
26519
26520 # Take the output of nm and produce a listing of raw symbols and C names.
26521 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26522
26523 # Transform the output of nm in a proper C declaration
26524 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26525
26526 # Transform the output of nm in a C name address pair
26527 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26528
26529 # This is the shared library runtime path variable.
26530 runpath_var=$runpath_var
26531
26532 # This is the shared library path variable.
26533 shlibpath_var=$shlibpath_var
26534
26535 # Is shlibpath searched before the hard-coded library search path?
26536 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26537
26538 # How to hardcode a shared library path into an executable.
26539 hardcode_action=$hardcode_action_GCJ
26540
26541 # Whether we should hardcode library paths into libraries.
26542 hardcode_into_libs=$hardcode_into_libs
26543
26544 # Flag to hardcode \$libdir into a binary during linking.
26545 # This must work even if \$libdir does not exist.
26546 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26547
26548 # If ld is used when linking, flag to hardcode \$libdir into
26549 # a binary during linking. This must work even if \$libdir does
26550 # not exist.
26551 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26552
26553 # Whether we need a single -rpath flag with a separated argument.
26554 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26555
26556 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26557 # resulting binary.
26558 hardcode_direct=$hardcode_direct_GCJ
26559
26560 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26561 # resulting binary.
26562 hardcode_minus_L=$hardcode_minus_L_GCJ
26563
26564 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26565 # the resulting binary.
26566 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26567
26568 # Set to yes if building a shared library automatically hardcodes DIR into the library
26569 # and all subsequent libraries and executables linked against it.
26570 hardcode_automatic=$hardcode_automatic_GCJ
26571
26572 # Variables whose values should be saved in libtool wrapper scripts and
26573 # restored at relink time.
26574 variables_saved_for_relink="$variables_saved_for_relink"
26575
26576 # Whether libtool must link a program against all its dependency libraries.
26577 link_all_deplibs=$link_all_deplibs_GCJ
26578
26579 # Compile-time system search path for libraries
26580 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26581
26582 # Run-time system search path for libraries
26583 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26584
26585 # Fix the shell variable \$srcfile for the compiler.
26586 fix_srcfile_path="$fix_srcfile_path_GCJ"
26587
26588 # Set to yes if exported symbols are required.
26589 always_export_symbols=$always_export_symbols_GCJ
26590
26591 # The commands to list exported symbols.
26592 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26593
26594 # The commands to extract the exported symbol list from a shared archive.
26595 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26596
26597 # Symbols that should not be listed in the preloaded symbols.
26598 exclude_expsyms=$lt_exclude_expsyms_GCJ
26599
26600 # Symbols that must always be exported.
26601 include_expsyms=$lt_include_expsyms_GCJ
26602
26603 # ### END LIBTOOL TAG CONFIG: $tagname
26604
26605 __EOF__
26606
26607
26608 else
26609   # If there is no Makefile yet, we rely on a make rule to execute
26610   # `config.status --recheck' to rerun these tests and create the
26611   # libtool script then.
26612   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26613   if test -f "$ltmain_in"; then
26614     test -f Makefile && make "$ltmain"
26615   fi
26616 fi
26617
26618
26619 ac_ext=c
26620 ac_cpp='$CPP $CPPFLAGS'
26621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26624
26625 CC="$lt_save_CC"
26626
26627         else
26628           tagname=""
26629         fi
26630         ;;
26631
26632       RC)
26633         ac_ext=c
26634 ac_cpp='$CPP $CPPFLAGS'
26635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26638
26639
26640 # Source file extension for RC test sources.
26641 ac_ext=rc
26642
26643 # Object file extension for compiled RC test sources.
26644 objext=o
26645 objext_RC=$objext
26646
26647 # Code to be used in simple compile tests
26648 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26649
26650 # Code to be used in simple link tests
26651 lt_simple_link_test_code="$lt_simple_compile_test_code"
26652
26653 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26654
26655 # If no C compiler was specified, use CC.
26656 LTCC=${LTCC-"$CC"}
26657
26658 # If no C compiler flags were specified, use CFLAGS.
26659 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26660
26661 # Allow CC to be a program name with arguments.
26662 compiler=$CC
26663
26664
26665 # save warnings/boilerplate of simple test code
26666 ac_outfile=conftest.$ac_objext
26667 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26668 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26669 _lt_compiler_boilerplate=`cat conftest.err`
26670 $rm conftest*
26671
26672 ac_outfile=conftest.$ac_objext
26673 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26674 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26675 _lt_linker_boilerplate=`cat conftest.err`
26676 $rm conftest*
26677
26678
26679 # Allow CC to be a program name with arguments.
26680 lt_save_CC="$CC"
26681 CC=${RC-"windres"}
26682 compiler=$CC
26683 compiler_RC=$CC
26684 for cc_temp in $compiler""; do
26685   case $cc_temp in
26686     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26687     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26688     \-*) ;;
26689     *) break;;
26690   esac
26691 done
26692 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26693
26694 lt_cv_prog_compiler_c_o_RC=yes
26695
26696 # The else clause should only fire when bootstrapping the
26697 # libtool distribution, otherwise you forgot to ship ltmain.sh
26698 # with your package, and you will get complaints that there are
26699 # no rules to generate ltmain.sh.
26700 if test -f "$ltmain"; then
26701   # See if we are running on zsh, and set the options which allow our commands through
26702   # without removal of \ escapes.
26703   if test -n "${ZSH_VERSION+set}" ; then
26704     setopt NO_GLOB_SUBST
26705   fi
26706   # Now quote all the things that may contain metacharacters while being
26707   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26708   # variables and quote the copies for generation of the libtool script.
26709   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26710     SED SHELL STRIP \
26711     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26712     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26713     deplibs_check_method reload_flag reload_cmds need_locks \
26714     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26715     lt_cv_sys_global_symbol_to_c_name_address \
26716     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26717     old_postinstall_cmds old_postuninstall_cmds \
26718     compiler_RC \
26719     CC_RC \
26720     LD_RC \
26721     lt_prog_compiler_wl_RC \
26722     lt_prog_compiler_pic_RC \
26723     lt_prog_compiler_static_RC \
26724     lt_prog_compiler_no_builtin_flag_RC \
26725     export_dynamic_flag_spec_RC \
26726     thread_safe_flag_spec_RC \
26727     whole_archive_flag_spec_RC \
26728     enable_shared_with_static_runtimes_RC \
26729     old_archive_cmds_RC \
26730     old_archive_from_new_cmds_RC \
26731     predep_objects_RC \
26732     postdep_objects_RC \
26733     predeps_RC \
26734     postdeps_RC \
26735     compiler_lib_search_path_RC \
26736     archive_cmds_RC \
26737     archive_expsym_cmds_RC \
26738     postinstall_cmds_RC \
26739     postuninstall_cmds_RC \
26740     old_archive_from_expsyms_cmds_RC \
26741     allow_undefined_flag_RC \
26742     no_undefined_flag_RC \
26743     export_symbols_cmds_RC \
26744     hardcode_libdir_flag_spec_RC \
26745     hardcode_libdir_flag_spec_ld_RC \
26746     hardcode_libdir_separator_RC \
26747     hardcode_automatic_RC \
26748     module_cmds_RC \
26749     module_expsym_cmds_RC \
26750     lt_cv_prog_compiler_c_o_RC \
26751     exclude_expsyms_RC \
26752     include_expsyms_RC; do
26753
26754     case $var in
26755     old_archive_cmds_RC | \
26756     old_archive_from_new_cmds_RC | \
26757     archive_cmds_RC | \
26758     archive_expsym_cmds_RC | \
26759     module_cmds_RC | \
26760     module_expsym_cmds_RC | \
26761     old_archive_from_expsyms_cmds_RC | \
26762     export_symbols_cmds_RC | \
26763     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26764     postinstall_cmds | postuninstall_cmds | \
26765     old_postinstall_cmds | old_postuninstall_cmds | \
26766     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26767       # Double-quote double-evaled strings.
26768       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26769       ;;
26770     *)
26771       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26772       ;;
26773     esac
26774   done
26775
26776   case $lt_echo in
26777   *'\$0 --fallback-echo"')
26778     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26779     ;;
26780   esac
26781
26782 cfgfile="$ofile"
26783
26784   cat <<__EOF__ >> "$cfgfile"
26785 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26786
26787 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26788
26789 # Shell to use when invoking shell scripts.
26790 SHELL=$lt_SHELL
26791
26792 # Whether or not to build shared libraries.
26793 build_libtool_libs=$enable_shared
26794
26795 # Whether or not to build static libraries.
26796 build_old_libs=$enable_static
26797
26798 # Whether or not to add -lc for building shared libraries.
26799 build_libtool_need_lc=$archive_cmds_need_lc_RC
26800
26801 # Whether or not to disallow shared libs when runtime libs are static
26802 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26803
26804 # Whether or not to optimize for fast installation.
26805 fast_install=$enable_fast_install
26806
26807 # The host system.
26808 host_alias=$host_alias
26809 host=$host
26810 host_os=$host_os
26811
26812 # The build system.
26813 build_alias=$build_alias
26814 build=$build
26815 build_os=$build_os
26816
26817 # An echo program that does not interpret backslashes.
26818 echo=$lt_echo
26819
26820 # The archiver.
26821 AR=$lt_AR
26822 AR_FLAGS=$lt_AR_FLAGS
26823
26824 # A C compiler.
26825 LTCC=$lt_LTCC
26826
26827 # LTCC compiler flags.
26828 LTCFLAGS=$lt_LTCFLAGS
26829
26830 # A language-specific compiler.
26831 CC=$lt_compiler_RC
26832
26833 # Is the compiler the GNU C compiler?
26834 with_gcc=$GCC_RC
26835
26836 # An ERE matcher.
26837 EGREP=$lt_EGREP
26838
26839 # The linker used to build libraries.
26840 LD=$lt_LD_RC
26841
26842 # Whether we need hard or soft links.
26843 LN_S=$lt_LN_S
26844
26845 # A BSD-compatible nm program.
26846 NM=$lt_NM
26847
26848 # A symbol stripping program
26849 STRIP=$lt_STRIP
26850
26851 # Used to examine libraries when file_magic_cmd begins "file"
26852 MAGIC_CMD=$MAGIC_CMD
26853
26854 # Used on cygwin: DLL creation program.
26855 DLLTOOL="$DLLTOOL"
26856
26857 # Used on cygwin: object dumper.
26858 OBJDUMP="$OBJDUMP"
26859
26860 # Used on cygwin: assembler.
26861 AS="$AS"
26862
26863 # The name of the directory that contains temporary libtool files.
26864 objdir=$objdir
26865
26866 # How to create reloadable object files.
26867 reload_flag=$lt_reload_flag
26868 reload_cmds=$lt_reload_cmds
26869
26870 # How to pass a linker flag through the compiler.
26871 wl=$lt_lt_prog_compiler_wl_RC
26872
26873 # Object file suffix (normally "o").
26874 objext="$ac_objext"
26875
26876 # Old archive suffix (normally "a").
26877 libext="$libext"
26878
26879 # Shared library suffix (normally ".so").
26880 shrext_cmds='$shrext_cmds'
26881
26882 # Executable file suffix (normally "").
26883 exeext="$exeext"
26884
26885 # Additional compiler flags for building library objects.
26886 pic_flag=$lt_lt_prog_compiler_pic_RC
26887 pic_mode=$pic_mode
26888
26889 # What is the maximum length of a command?
26890 max_cmd_len=$lt_cv_sys_max_cmd_len
26891
26892 # Does compiler simultaneously support -c and -o options?
26893 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26894
26895 # Must we lock files when doing compilation?
26896 need_locks=$lt_need_locks
26897
26898 # Do we need the lib prefix for modules?
26899 need_lib_prefix=$need_lib_prefix
26900
26901 # Do we need a version for libraries?
26902 need_version=$need_version
26903
26904 # Whether dlopen is supported.
26905 dlopen_support=$enable_dlopen
26906
26907 # Whether dlopen of programs is supported.
26908 dlopen_self=$enable_dlopen_self
26909
26910 # Whether dlopen of statically linked programs is supported.
26911 dlopen_self_static=$enable_dlopen_self_static
26912
26913 # Compiler flag to prevent dynamic linking.
26914 link_static_flag=$lt_lt_prog_compiler_static_RC
26915
26916 # Compiler flag to turn off builtin functions.
26917 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26918
26919 # Compiler flag to allow reflexive dlopens.
26920 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26921
26922 # Compiler flag to generate shared objects directly from archives.
26923 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26924
26925 # Compiler flag to generate thread-safe objects.
26926 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26927
26928 # Library versioning type.
26929 version_type=$version_type
26930
26931 # Format of library name prefix.
26932 libname_spec=$lt_libname_spec
26933
26934 # List of archive names.  First name is the real one, the rest are links.
26935 # The last name is the one that the linker finds with -lNAME.
26936 library_names_spec=$lt_library_names_spec
26937
26938 # The coded name of the library, if different from the real name.
26939 soname_spec=$lt_soname_spec
26940
26941 # Commands used to build and install an old-style archive.
26942 RANLIB=$lt_RANLIB
26943 old_archive_cmds=$lt_old_archive_cmds_RC
26944 old_postinstall_cmds=$lt_old_postinstall_cmds
26945 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26946
26947 # Create an old-style archive from a shared archive.
26948 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26949
26950 # Create a temporary old-style archive to link instead of a shared archive.
26951 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26952
26953 # Commands used to build and install a shared archive.
26954 archive_cmds=$lt_archive_cmds_RC
26955 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26956 postinstall_cmds=$lt_postinstall_cmds
26957 postuninstall_cmds=$lt_postuninstall_cmds
26958
26959 # Commands used to build a loadable module (assumed same as above if empty)
26960 module_cmds=$lt_module_cmds_RC
26961 module_expsym_cmds=$lt_module_expsym_cmds_RC
26962
26963 # Commands to strip libraries.
26964 old_striplib=$lt_old_striplib
26965 striplib=$lt_striplib
26966
26967 # Dependencies to place before the objects being linked to create a
26968 # shared library.
26969 predep_objects=$lt_predep_objects_RC
26970
26971 # Dependencies to place after the objects being linked to create a
26972 # shared library.
26973 postdep_objects=$lt_postdep_objects_RC
26974
26975 # Dependencies to place before the objects being linked to create a
26976 # shared library.
26977 predeps=$lt_predeps_RC
26978
26979 # Dependencies to place after the objects being linked to create a
26980 # shared library.
26981 postdeps=$lt_postdeps_RC
26982
26983 # The library search path used internally by the compiler when linking
26984 # a shared library.
26985 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26986
26987 # Method to check whether dependent libraries are shared objects.
26988 deplibs_check_method=$lt_deplibs_check_method
26989
26990 # Command to use when deplibs_check_method == file_magic.
26991 file_magic_cmd=$lt_file_magic_cmd
26992
26993 # Flag that allows shared libraries with undefined symbols to be built.
26994 allow_undefined_flag=$lt_allow_undefined_flag_RC
26995
26996 # Flag that forces no undefined symbols.
26997 no_undefined_flag=$lt_no_undefined_flag_RC
26998
26999 # Commands used to finish a libtool library installation in a directory.
27000 finish_cmds=$lt_finish_cmds
27001
27002 # Same as above, but a single script fragment to be evaled but not shown.
27003 finish_eval=$lt_finish_eval
27004
27005 # Take the output of nm and produce a listing of raw symbols and C names.
27006 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27007
27008 # Transform the output of nm in a proper C declaration
27009 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27010
27011 # Transform the output of nm in a C name address pair
27012 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27013
27014 # This is the shared library runtime path variable.
27015 runpath_var=$runpath_var
27016
27017 # This is the shared library path variable.
27018 shlibpath_var=$shlibpath_var
27019
27020 # Is shlibpath searched before the hard-coded library search path?
27021 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27022
27023 # How to hardcode a shared library path into an executable.
27024 hardcode_action=$hardcode_action_RC
27025
27026 # Whether we should hardcode library paths into libraries.
27027 hardcode_into_libs=$hardcode_into_libs
27028
27029 # Flag to hardcode \$libdir into a binary during linking.
27030 # This must work even if \$libdir does not exist.
27031 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27032
27033 # If ld is used when linking, flag to hardcode \$libdir into
27034 # a binary during linking. This must work even if \$libdir does
27035 # not exist.
27036 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27037
27038 # Whether we need a single -rpath flag with a separated argument.
27039 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27040
27041 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27042 # resulting binary.
27043 hardcode_direct=$hardcode_direct_RC
27044
27045 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27046 # resulting binary.
27047 hardcode_minus_L=$hardcode_minus_L_RC
27048
27049 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27050 # the resulting binary.
27051 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27052
27053 # Set to yes if building a shared library automatically hardcodes DIR into the library
27054 # and all subsequent libraries and executables linked against it.
27055 hardcode_automatic=$hardcode_automatic_RC
27056
27057 # Variables whose values should be saved in libtool wrapper scripts and
27058 # restored at relink time.
27059 variables_saved_for_relink="$variables_saved_for_relink"
27060
27061 # Whether libtool must link a program against all its dependency libraries.
27062 link_all_deplibs=$link_all_deplibs_RC
27063
27064 # Compile-time system search path for libraries
27065 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27066
27067 # Run-time system search path for libraries
27068 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27069
27070 # Fix the shell variable \$srcfile for the compiler.
27071 fix_srcfile_path="$fix_srcfile_path_RC"
27072
27073 # Set to yes if exported symbols are required.
27074 always_export_symbols=$always_export_symbols_RC
27075
27076 # The commands to list exported symbols.
27077 export_symbols_cmds=$lt_export_symbols_cmds_RC
27078
27079 # The commands to extract the exported symbol list from a shared archive.
27080 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27081
27082 # Symbols that should not be listed in the preloaded symbols.
27083 exclude_expsyms=$lt_exclude_expsyms_RC
27084
27085 # Symbols that must always be exported.
27086 include_expsyms=$lt_include_expsyms_RC
27087
27088 # ### END LIBTOOL TAG CONFIG: $tagname
27089
27090 __EOF__
27091
27092
27093 else
27094   # If there is no Makefile yet, we rely on a make rule to execute
27095   # `config.status --recheck' to rerun these tests and create the
27096   # libtool script then.
27097   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27098   if test -f "$ltmain_in"; then
27099     test -f Makefile && make "$ltmain"
27100   fi
27101 fi
27102
27103
27104 ac_ext=c
27105 ac_cpp='$CPP $CPPFLAGS'
27106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27109
27110 CC="$lt_save_CC"
27111
27112         ;;
27113
27114       *)
27115         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27116 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27117    { (exit 1); exit 1; }; }
27118         ;;
27119       esac
27120
27121       # Append the new tag name to the list of available tags.
27122       if test -n "$tagname" ; then
27123       available_tags="$available_tags $tagname"
27124     fi
27125     fi
27126   done
27127   IFS="$lt_save_ifs"
27128
27129   # Now substitute the updated list of available tags.
27130   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27131     mv "${ofile}T" "$ofile"
27132     chmod +x "$ofile"
27133   else
27134     rm -f "${ofile}T"
27135     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27136 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27137    { (exit 1); exit 1; }; }
27138   fi
27139 fi
27140
27141
27142
27143 # This can be used to rebuild libtool when needed
27144 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27145
27146 # Always use our own libtool.
27147 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27148
27149 # Prevent multiple expansion
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169
27170
27171 if test "$lt_cv_dlopen_self" = "yes" ; then
27172
27173 cat >>confdefs.h <<\_ACEOF
27174 #define CAN_DLOPEN_SELF 1
27175 _ACEOF
27176
27177 fi
27178
27179
27180 if test "$WITH_LLVMGCCDIR" = "default" ; then
27181   LLVMGCC="llvm-gcc${EXEEXT}"
27182   LLVMGXX="llvm-g++${EXEEXT}"
27183   LLVMGCCCOMMAND="$LLVMGCC"
27184   LLVMGXXCOMMAND="$LLVMGXX"
27185   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27186
27187   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27188
27189   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27190 set dummy $LLVMGCC; ac_word=$2
27191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27193 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27194   echo $ECHO_N "(cached) $ECHO_C" >&6
27195 else
27196   case $LLVMGCC in
27197   [\\/]* | ?:[\\/]*)
27198   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27199   ;;
27200   *)
27201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27202 for as_dir in $PATH
27203 do
27204   IFS=$as_save_IFS
27205   test -z "$as_dir" && as_dir=.
27206   for ac_exec_ext in '' $ac_executable_extensions; do
27207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27208     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27210     break 2
27211   fi
27212 done
27213 done
27214 IFS=$as_save_IFS
27215
27216   ;;
27217 esac
27218 fi
27219 LLVMGCC=$ac_cv_path_LLVMGCC
27220 if test -n "$LLVMGCC"; then
27221   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27222 echo "${ECHO_T}$LLVMGCC" >&6; }
27223 else
27224   { echo "$as_me:$LINENO: result: no" >&5
27225 echo "${ECHO_T}no" >&6; }
27226 fi
27227
27228
27229   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27230 set dummy $LLVMGXX; ac_word=$2
27231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27233 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27234   echo $ECHO_N "(cached) $ECHO_C" >&6
27235 else
27236   case $LLVMGXX in
27237   [\\/]* | ?:[\\/]*)
27238   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27239   ;;
27240   *)
27241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27242 for as_dir in $PATH
27243 do
27244   IFS=$as_save_IFS
27245   test -z "$as_dir" && as_dir=.
27246   for ac_exec_ext in '' $ac_executable_extensions; do
27247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27248     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27250     break 2
27251   fi
27252 done
27253 done
27254 IFS=$as_save_IFS
27255
27256   ;;
27257 esac
27258 fi
27259 LLVMGXX=$ac_cv_path_LLVMGXX
27260 if test -n "$LLVMGXX"; then
27261   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27262 echo "${ECHO_T}$LLVMGXX" >&6; }
27263 else
27264   { echo "$as_me:$LINENO: result: no" >&5
27265 echo "${ECHO_T}no" >&6; }
27266 fi
27267
27268
27269 else
27270   if test -z "$LLVMGCC"; then
27271     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27272     LLVMGCCCOMMAND="$LLVMGCC"
27273   fi
27274   if test -z "$LLVMGXX"; then
27275     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27276     LLVMGXXCOMMAND="$LLVMGXX"
27277   fi
27278
27279   LLVMGCC=$LLVMGCC
27280
27281   LLVMGXX=$LLVMGXX
27282
27283   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27284
27285   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27286
27287 fi
27288
27289
27290 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27291 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27292
27293 ICC=no
27294 IXX=no
27295 case $CC in
27296   icc*|icpc*)
27297     ICC=yes
27298     IXX=yes
27299     ;;
27300    *)
27301     ;;
27302 esac
27303
27304 if test "$GCC" != "yes" && test "$ICC" != "yes"
27305 then
27306   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27307 echo "$as_me: error: gcc|icc required but not found" >&2;}
27308    { (exit 1); exit 1; }; }
27309 fi
27310
27311 if test "$GXX" != "yes" && test "$IXX" != "yes"
27312 then
27313   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27314 echo "$as_me: error: g++|icc required but not found" >&2;}
27315    { (exit 1); exit 1; }; }
27316 fi
27317
27318 if test "$GCC" = "yes"
27319 then
27320   cat >conftest.$ac_ext <<_ACEOF
27321 #if !defined(__GNUC__) || __GNUC__ < 3
27322 #error Unsupported GCC version
27323 #endif
27324
27325 _ACEOF
27326 rm -f conftest.$ac_objext
27327 if { (ac_try="$ac_compile"
27328 case "(($ac_try" in
27329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27330   *) ac_try_echo=$ac_try;;
27331 esac
27332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27333   (eval "$ac_compile") 2>conftest.er1
27334   ac_status=$?
27335   grep -v '^ *+' conftest.er1 >conftest.err
27336   rm -f conftest.er1
27337   cat conftest.err >&5
27338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27339   (exit $ac_status); } &&
27340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27341   { (case "(($ac_try" in
27342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27343   *) ac_try_echo=$ac_try;;
27344 esac
27345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27346   (eval "$ac_try") 2>&5
27347   ac_status=$?
27348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349   (exit $ac_status); }; } &&
27350          { ac_try='test -s conftest.$ac_objext'
27351   { (case "(($ac_try" in
27352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27353   *) ac_try_echo=$ac_try;;
27354 esac
27355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27356   (eval "$ac_try") 2>&5
27357   ac_status=$?
27358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359   (exit $ac_status); }; }; then
27360   :
27361 else
27362   echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.$ac_ext >&5
27364
27365         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27366 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27367    { (exit 1); exit 1; }; }
27368 fi
27369
27370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27371 fi
27372
27373 if test -z "$llvm_cv_gnu_make_command"
27374 then
27375   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27376 echo "$as_me: error: GNU Make required but not found" >&2;}
27377    { (exit 1); exit 1; }; }
27378 fi
27379
27380 { echo "$as_me:$LINENO: result: ok" >&5
27381 echo "${ECHO_T}ok" >&6; }
27382
27383
27384
27385 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27386 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27387 if test "${ac_cv_lib_m_sin+set}" = set; then
27388   echo $ECHO_N "(cached) $ECHO_C" >&6
27389 else
27390   ac_check_lib_save_LIBS=$LIBS
27391 LIBS="-lm  $LIBS"
27392 cat >conftest.$ac_ext <<_ACEOF
27393 /* confdefs.h.  */
27394 _ACEOF
27395 cat confdefs.h >>conftest.$ac_ext
27396 cat >>conftest.$ac_ext <<_ACEOF
27397 /* end confdefs.h.  */
27398
27399 /* Override any GCC internal prototype to avoid an error.
27400    Use char because int might match the return type of a GCC
27401    builtin and then its argument prototype would still apply.  */
27402 #ifdef __cplusplus
27403 extern "C"
27404 #endif
27405 char sin ();
27406 int
27407 main ()
27408 {
27409 return sin ();
27410   ;
27411   return 0;
27412 }
27413 _ACEOF
27414 rm -f conftest.$ac_objext conftest$ac_exeext
27415 if { (ac_try="$ac_link"
27416 case "(($ac_try" in
27417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27418   *) ac_try_echo=$ac_try;;
27419 esac
27420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27421   (eval "$ac_link") 2>conftest.er1
27422   ac_status=$?
27423   grep -v '^ *+' conftest.er1 >conftest.err
27424   rm -f conftest.er1
27425   cat conftest.err >&5
27426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427   (exit $ac_status); } &&
27428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27429   { (case "(($ac_try" in
27430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27431   *) ac_try_echo=$ac_try;;
27432 esac
27433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27434   (eval "$ac_try") 2>&5
27435   ac_status=$?
27436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437   (exit $ac_status); }; } &&
27438          { ac_try='test -s conftest$ac_exeext'
27439   { (case "(($ac_try" in
27440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27441   *) ac_try_echo=$ac_try;;
27442 esac
27443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27444   (eval "$ac_try") 2>&5
27445   ac_status=$?
27446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447   (exit $ac_status); }; }; then
27448   ac_cv_lib_m_sin=yes
27449 else
27450   echo "$as_me: failed program was:" >&5
27451 sed 's/^/| /' conftest.$ac_ext >&5
27452
27453         ac_cv_lib_m_sin=no
27454 fi
27455
27456 rm -f core conftest.err conftest.$ac_objext \
27457       conftest$ac_exeext conftest.$ac_ext
27458 LIBS=$ac_check_lib_save_LIBS
27459 fi
27460 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27461 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27462 if test $ac_cv_lib_m_sin = yes; then
27463   cat >>confdefs.h <<_ACEOF
27464 #define HAVE_LIBM 1
27465 _ACEOF
27466
27467   LIBS="-lm $LIBS"
27468
27469 fi
27470
27471 if test "$llvm_cv_os_type" = "MingW" ; then
27472
27473 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27474 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27475 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27476   echo $ECHO_N "(cached) $ECHO_C" >&6
27477 else
27478   ac_check_lib_save_LIBS=$LIBS
27479 LIBS="-limagehlp  $LIBS"
27480 cat >conftest.$ac_ext <<_ACEOF
27481 /* confdefs.h.  */
27482 _ACEOF
27483 cat confdefs.h >>conftest.$ac_ext
27484 cat >>conftest.$ac_ext <<_ACEOF
27485 /* end confdefs.h.  */
27486
27487
27488 int
27489 main ()
27490 {
27491 return main ();
27492   ;
27493   return 0;
27494 }
27495 _ACEOF
27496 rm -f conftest.$ac_objext conftest$ac_exeext
27497 if { (ac_try="$ac_link"
27498 case "(($ac_try" in
27499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27500   *) ac_try_echo=$ac_try;;
27501 esac
27502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27503   (eval "$ac_link") 2>conftest.er1
27504   ac_status=$?
27505   grep -v '^ *+' conftest.er1 >conftest.err
27506   rm -f conftest.er1
27507   cat conftest.err >&5
27508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509   (exit $ac_status); } &&
27510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27511   { (case "(($ac_try" in
27512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27513   *) ac_try_echo=$ac_try;;
27514 esac
27515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27516   (eval "$ac_try") 2>&5
27517   ac_status=$?
27518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519   (exit $ac_status); }; } &&
27520          { ac_try='test -s conftest$ac_exeext'
27521   { (case "(($ac_try" in
27522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27523   *) ac_try_echo=$ac_try;;
27524 esac
27525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27526   (eval "$ac_try") 2>&5
27527   ac_status=$?
27528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529   (exit $ac_status); }; }; then
27530   ac_cv_lib_imagehlp_main=yes
27531 else
27532   echo "$as_me: failed program was:" >&5
27533 sed 's/^/| /' conftest.$ac_ext >&5
27534
27535         ac_cv_lib_imagehlp_main=no
27536 fi
27537
27538 rm -f core conftest.err conftest.$ac_objext \
27539       conftest$ac_exeext conftest.$ac_ext
27540 LIBS=$ac_check_lib_save_LIBS
27541 fi
27542 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27543 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27544 if test $ac_cv_lib_imagehlp_main = yes; then
27545   cat >>confdefs.h <<_ACEOF
27546 #define HAVE_LIBIMAGEHLP 1
27547 _ACEOF
27548
27549   LIBS="-limagehlp $LIBS"
27550
27551 fi
27552
27553
27554 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27555 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27556 if test "${ac_cv_lib_psapi_main+set}" = set; then
27557   echo $ECHO_N "(cached) $ECHO_C" >&6
27558 else
27559   ac_check_lib_save_LIBS=$LIBS
27560 LIBS="-lpsapi  $LIBS"
27561 cat >conftest.$ac_ext <<_ACEOF
27562 /* confdefs.h.  */
27563 _ACEOF
27564 cat confdefs.h >>conftest.$ac_ext
27565 cat >>conftest.$ac_ext <<_ACEOF
27566 /* end confdefs.h.  */
27567
27568
27569 int
27570 main ()
27571 {
27572 return main ();
27573   ;
27574   return 0;
27575 }
27576 _ACEOF
27577 rm -f conftest.$ac_objext conftest$ac_exeext
27578 if { (ac_try="$ac_link"
27579 case "(($ac_try" in
27580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27581   *) ac_try_echo=$ac_try;;
27582 esac
27583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27584   (eval "$ac_link") 2>conftest.er1
27585   ac_status=$?
27586   grep -v '^ *+' conftest.er1 >conftest.err
27587   rm -f conftest.er1
27588   cat conftest.err >&5
27589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590   (exit $ac_status); } &&
27591          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27592   { (case "(($ac_try" in
27593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27594   *) ac_try_echo=$ac_try;;
27595 esac
27596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27597   (eval "$ac_try") 2>&5
27598   ac_status=$?
27599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600   (exit $ac_status); }; } &&
27601          { ac_try='test -s conftest$ac_exeext'
27602   { (case "(($ac_try" in
27603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27604   *) ac_try_echo=$ac_try;;
27605 esac
27606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27607   (eval "$ac_try") 2>&5
27608   ac_status=$?
27609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610   (exit $ac_status); }; }; then
27611   ac_cv_lib_psapi_main=yes
27612 else
27613   echo "$as_me: failed program was:" >&5
27614 sed 's/^/| /' conftest.$ac_ext >&5
27615
27616         ac_cv_lib_psapi_main=no
27617 fi
27618
27619 rm -f core conftest.err conftest.$ac_objext \
27620       conftest$ac_exeext conftest.$ac_ext
27621 LIBS=$ac_check_lib_save_LIBS
27622 fi
27623 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27624 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27625 if test $ac_cv_lib_psapi_main = yes; then
27626   cat >>confdefs.h <<_ACEOF
27627 #define HAVE_LIBPSAPI 1
27628 _ACEOF
27629
27630   LIBS="-lpsapi $LIBS"
27631
27632 fi
27633
27634 fi
27635
27636 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27637 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27638 if test "${ac_cv_search_dlopen+set}" = set; then
27639   echo $ECHO_N "(cached) $ECHO_C" >&6
27640 else
27641   ac_func_search_save_LIBS=$LIBS
27642 cat >conftest.$ac_ext <<_ACEOF
27643 /* confdefs.h.  */
27644 _ACEOF
27645 cat confdefs.h >>conftest.$ac_ext
27646 cat >>conftest.$ac_ext <<_ACEOF
27647 /* end confdefs.h.  */
27648
27649 /* Override any GCC internal prototype to avoid an error.
27650    Use char because int might match the return type of a GCC
27651    builtin and then its argument prototype would still apply.  */
27652 #ifdef __cplusplus
27653 extern "C"
27654 #endif
27655 char dlopen ();
27656 int
27657 main ()
27658 {
27659 return dlopen ();
27660   ;
27661   return 0;
27662 }
27663 _ACEOF
27664 for ac_lib in '' dl; do
27665   if test -z "$ac_lib"; then
27666     ac_res="none required"
27667   else
27668     ac_res=-l$ac_lib
27669     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27670   fi
27671   rm -f conftest.$ac_objext conftest$ac_exeext
27672 if { (ac_try="$ac_link"
27673 case "(($ac_try" in
27674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27675   *) ac_try_echo=$ac_try;;
27676 esac
27677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27678   (eval "$ac_link") 2>conftest.er1
27679   ac_status=$?
27680   grep -v '^ *+' conftest.er1 >conftest.err
27681   rm -f conftest.er1
27682   cat conftest.err >&5
27683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684   (exit $ac_status); } &&
27685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27686   { (case "(($ac_try" in
27687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27688   *) ac_try_echo=$ac_try;;
27689 esac
27690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27691   (eval "$ac_try") 2>&5
27692   ac_status=$?
27693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694   (exit $ac_status); }; } &&
27695          { ac_try='test -s conftest$ac_exeext'
27696   { (case "(($ac_try" in
27697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27698   *) ac_try_echo=$ac_try;;
27699 esac
27700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27701   (eval "$ac_try") 2>&5
27702   ac_status=$?
27703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704   (exit $ac_status); }; }; then
27705   ac_cv_search_dlopen=$ac_res
27706 else
27707   echo "$as_me: failed program was:" >&5
27708 sed 's/^/| /' conftest.$ac_ext >&5
27709
27710
27711 fi
27712
27713 rm -f core conftest.err conftest.$ac_objext \
27714       conftest$ac_exeext
27715   if test "${ac_cv_search_dlopen+set}" = set; then
27716   break
27717 fi
27718 done
27719 if test "${ac_cv_search_dlopen+set}" = set; then
27720   :
27721 else
27722   ac_cv_search_dlopen=no
27723 fi
27724 rm conftest.$ac_ext
27725 LIBS=$ac_func_search_save_LIBS
27726 fi
27727 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27728 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27729 ac_res=$ac_cv_search_dlopen
27730 if test "$ac_res" != no; then
27731   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27732
27733 cat >>confdefs.h <<\_ACEOF
27734 #define HAVE_DLOPEN 1
27735 _ACEOF
27736
27737 else
27738   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27739 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27740 fi
27741
27742
27743 if test "$llvm_cv_enable_libffi" = "yes" ; then
27744   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27745 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27746 if test "${ac_cv_search_ffi_call+set}" = set; then
27747   echo $ECHO_N "(cached) $ECHO_C" >&6
27748 else
27749   ac_func_search_save_LIBS=$LIBS
27750 cat >conftest.$ac_ext <<_ACEOF
27751 /* confdefs.h.  */
27752 _ACEOF
27753 cat confdefs.h >>conftest.$ac_ext
27754 cat >>conftest.$ac_ext <<_ACEOF
27755 /* end confdefs.h.  */
27756
27757 /* Override any GCC internal prototype to avoid an error.
27758    Use char because int might match the return type of a GCC
27759    builtin and then its argument prototype would still apply.  */
27760 #ifdef __cplusplus
27761 extern "C"
27762 #endif
27763 char ffi_call ();
27764 int
27765 main ()
27766 {
27767 return ffi_call ();
27768   ;
27769   return 0;
27770 }
27771 _ACEOF
27772 for ac_lib in '' ffi; do
27773   if test -z "$ac_lib"; then
27774     ac_res="none required"
27775   else
27776     ac_res=-l$ac_lib
27777     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27778   fi
27779   rm -f conftest.$ac_objext conftest$ac_exeext
27780 if { (ac_try="$ac_link"
27781 case "(($ac_try" in
27782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27783   *) ac_try_echo=$ac_try;;
27784 esac
27785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27786   (eval "$ac_link") 2>conftest.er1
27787   ac_status=$?
27788   grep -v '^ *+' conftest.er1 >conftest.err
27789   rm -f conftest.er1
27790   cat conftest.err >&5
27791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792   (exit $ac_status); } &&
27793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27794   { (case "(($ac_try" in
27795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27796   *) ac_try_echo=$ac_try;;
27797 esac
27798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27799   (eval "$ac_try") 2>&5
27800   ac_status=$?
27801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802   (exit $ac_status); }; } &&
27803          { ac_try='test -s conftest$ac_exeext'
27804   { (case "(($ac_try" in
27805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27806   *) ac_try_echo=$ac_try;;
27807 esac
27808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27809   (eval "$ac_try") 2>&5
27810   ac_status=$?
27811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812   (exit $ac_status); }; }; then
27813   ac_cv_search_ffi_call=$ac_res
27814 else
27815   echo "$as_me: failed program was:" >&5
27816 sed 's/^/| /' conftest.$ac_ext >&5
27817
27818
27819 fi
27820
27821 rm -f core conftest.err conftest.$ac_objext \
27822       conftest$ac_exeext
27823   if test "${ac_cv_search_ffi_call+set}" = set; then
27824   break
27825 fi
27826 done
27827 if test "${ac_cv_search_ffi_call+set}" = set; then
27828   :
27829 else
27830   ac_cv_search_ffi_call=no
27831 fi
27832 rm conftest.$ac_ext
27833 LIBS=$ac_func_search_save_LIBS
27834 fi
27835 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27836 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27837 ac_res=$ac_cv_search_ffi_call
27838 if test "$ac_res" != no; then
27839   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27840
27841 cat >>confdefs.h <<\_ACEOF
27842 #define HAVE_FFI_CALL 1
27843 _ACEOF
27844
27845 else
27846   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27847 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27848 fi
27849
27850 fi
27851
27852 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27853 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27854 if test "${ac_cv_search_mallinfo+set}" = set; then
27855   echo $ECHO_N "(cached) $ECHO_C" >&6
27856 else
27857   ac_func_search_save_LIBS=$LIBS
27858 cat >conftest.$ac_ext <<_ACEOF
27859 /* confdefs.h.  */
27860 _ACEOF
27861 cat confdefs.h >>conftest.$ac_ext
27862 cat >>conftest.$ac_ext <<_ACEOF
27863 /* end confdefs.h.  */
27864
27865 /* Override any GCC internal prototype to avoid an error.
27866    Use char because int might match the return type of a GCC
27867    builtin and then its argument prototype would still apply.  */
27868 #ifdef __cplusplus
27869 extern "C"
27870 #endif
27871 char mallinfo ();
27872 int
27873 main ()
27874 {
27875 return mallinfo ();
27876   ;
27877   return 0;
27878 }
27879 _ACEOF
27880 for ac_lib in '' malloc; do
27881   if test -z "$ac_lib"; then
27882     ac_res="none required"
27883   else
27884     ac_res=-l$ac_lib
27885     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27886   fi
27887   rm -f conftest.$ac_objext conftest$ac_exeext
27888 if { (ac_try="$ac_link"
27889 case "(($ac_try" in
27890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891   *) ac_try_echo=$ac_try;;
27892 esac
27893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27894   (eval "$ac_link") 2>conftest.er1
27895   ac_status=$?
27896   grep -v '^ *+' conftest.er1 >conftest.err
27897   rm -f conftest.er1
27898   cat conftest.err >&5
27899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900   (exit $ac_status); } &&
27901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27902   { (case "(($ac_try" in
27903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27904   *) ac_try_echo=$ac_try;;
27905 esac
27906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27907   (eval "$ac_try") 2>&5
27908   ac_status=$?
27909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27910   (exit $ac_status); }; } &&
27911          { ac_try='test -s conftest$ac_exeext'
27912   { (case "(($ac_try" in
27913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27914   *) ac_try_echo=$ac_try;;
27915 esac
27916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27917   (eval "$ac_try") 2>&5
27918   ac_status=$?
27919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920   (exit $ac_status); }; }; then
27921   ac_cv_search_mallinfo=$ac_res
27922 else
27923   echo "$as_me: failed program was:" >&5
27924 sed 's/^/| /' conftest.$ac_ext >&5
27925
27926
27927 fi
27928
27929 rm -f core conftest.err conftest.$ac_objext \
27930       conftest$ac_exeext
27931   if test "${ac_cv_search_mallinfo+set}" = set; then
27932   break
27933 fi
27934 done
27935 if test "${ac_cv_search_mallinfo+set}" = set; then
27936   :
27937 else
27938   ac_cv_search_mallinfo=no
27939 fi
27940 rm conftest.$ac_ext
27941 LIBS=$ac_func_search_save_LIBS
27942 fi
27943 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27944 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27945 ac_res=$ac_cv_search_mallinfo
27946 if test "$ac_res" != no; then
27947   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27948
27949 cat >>confdefs.h <<\_ACEOF
27950 #define HAVE_MALLINFO 1
27951 _ACEOF
27952
27953 fi
27954
27955
27956 if test "$ENABLE_THREADS" -eq 1 ; then
27957
27958 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27959 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27960 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27961   echo $ECHO_N "(cached) $ECHO_C" >&6
27962 else
27963   ac_check_lib_save_LIBS=$LIBS
27964 LIBS="-lpthread  $LIBS"
27965 cat >conftest.$ac_ext <<_ACEOF
27966 /* confdefs.h.  */
27967 _ACEOF
27968 cat confdefs.h >>conftest.$ac_ext
27969 cat >>conftest.$ac_ext <<_ACEOF
27970 /* end confdefs.h.  */
27971
27972 /* Override any GCC internal prototype to avoid an error.
27973    Use char because int might match the return type of a GCC
27974    builtin and then its argument prototype would still apply.  */
27975 #ifdef __cplusplus
27976 extern "C"
27977 #endif
27978 char pthread_mutex_init ();
27979 int
27980 main ()
27981 {
27982 return pthread_mutex_init ();
27983   ;
27984   return 0;
27985 }
27986 _ACEOF
27987 rm -f conftest.$ac_objext conftest$ac_exeext
27988 if { (ac_try="$ac_link"
27989 case "(($ac_try" in
27990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27991   *) ac_try_echo=$ac_try;;
27992 esac
27993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27994   (eval "$ac_link") 2>conftest.er1
27995   ac_status=$?
27996   grep -v '^ *+' conftest.er1 >conftest.err
27997   rm -f conftest.er1
27998   cat conftest.err >&5
27999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000   (exit $ac_status); } &&
28001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28002   { (case "(($ac_try" in
28003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28004   *) ac_try_echo=$ac_try;;
28005 esac
28006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28007   (eval "$ac_try") 2>&5
28008   ac_status=$?
28009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010   (exit $ac_status); }; } &&
28011          { ac_try='test -s conftest$ac_exeext'
28012   { (case "(($ac_try" in
28013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28014   *) ac_try_echo=$ac_try;;
28015 esac
28016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28017   (eval "$ac_try") 2>&5
28018   ac_status=$?
28019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020   (exit $ac_status); }; }; then
28021   ac_cv_lib_pthread_pthread_mutex_init=yes
28022 else
28023   echo "$as_me: failed program was:" >&5
28024 sed 's/^/| /' conftest.$ac_ext >&5
28025
28026         ac_cv_lib_pthread_pthread_mutex_init=no
28027 fi
28028
28029 rm -f core conftest.err conftest.$ac_objext \
28030       conftest$ac_exeext conftest.$ac_ext
28031 LIBS=$ac_check_lib_save_LIBS
28032 fi
28033 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28034 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28035 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28036   cat >>confdefs.h <<_ACEOF
28037 #define HAVE_LIBPTHREAD 1
28038 _ACEOF
28039
28040   LIBS="-lpthread $LIBS"
28041
28042 fi
28043
28044   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28045 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28046 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28047   echo $ECHO_N "(cached) $ECHO_C" >&6
28048 else
28049   ac_func_search_save_LIBS=$LIBS
28050 cat >conftest.$ac_ext <<_ACEOF
28051 /* confdefs.h.  */
28052 _ACEOF
28053 cat confdefs.h >>conftest.$ac_ext
28054 cat >>conftest.$ac_ext <<_ACEOF
28055 /* end confdefs.h.  */
28056
28057 /* Override any GCC internal prototype to avoid an error.
28058    Use char because int might match the return type of a GCC
28059    builtin and then its argument prototype would still apply.  */
28060 #ifdef __cplusplus
28061 extern "C"
28062 #endif
28063 char pthread_mutex_lock ();
28064 int
28065 main ()
28066 {
28067 return pthread_mutex_lock ();
28068   ;
28069   return 0;
28070 }
28071 _ACEOF
28072 for ac_lib in '' pthread; do
28073   if test -z "$ac_lib"; then
28074     ac_res="none required"
28075   else
28076     ac_res=-l$ac_lib
28077     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28078   fi
28079   rm -f conftest.$ac_objext conftest$ac_exeext
28080 if { (ac_try="$ac_link"
28081 case "(($ac_try" in
28082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28083   *) ac_try_echo=$ac_try;;
28084 esac
28085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28086   (eval "$ac_link") 2>conftest.er1
28087   ac_status=$?
28088   grep -v '^ *+' conftest.er1 >conftest.err
28089   rm -f conftest.er1
28090   cat conftest.err >&5
28091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092   (exit $ac_status); } &&
28093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28094   { (case "(($ac_try" in
28095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28096   *) ac_try_echo=$ac_try;;
28097 esac
28098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28099   (eval "$ac_try") 2>&5
28100   ac_status=$?
28101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102   (exit $ac_status); }; } &&
28103          { ac_try='test -s conftest$ac_exeext'
28104   { (case "(($ac_try" in
28105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28106   *) ac_try_echo=$ac_try;;
28107 esac
28108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28109   (eval "$ac_try") 2>&5
28110   ac_status=$?
28111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112   (exit $ac_status); }; }; then
28113   ac_cv_search_pthread_mutex_lock=$ac_res
28114 else
28115   echo "$as_me: failed program was:" >&5
28116 sed 's/^/| /' conftest.$ac_ext >&5
28117
28118
28119 fi
28120
28121 rm -f core conftest.err conftest.$ac_objext \
28122       conftest$ac_exeext
28123   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28124   break
28125 fi
28126 done
28127 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28128   :
28129 else
28130   ac_cv_search_pthread_mutex_lock=no
28131 fi
28132 rm conftest.$ac_ext
28133 LIBS=$ac_func_search_save_LIBS
28134 fi
28135 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28136 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28137 ac_res=$ac_cv_search_pthread_mutex_lock
28138 if test "$ac_res" != no; then
28139   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28140
28141 cat >>confdefs.h <<\_ACEOF
28142 #define HAVE_PTHREAD_MUTEX_LOCK 1
28143 _ACEOF
28144
28145 fi
28146
28147   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28148 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28149 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28150   echo $ECHO_N "(cached) $ECHO_C" >&6
28151 else
28152   ac_func_search_save_LIBS=$LIBS
28153 cat >conftest.$ac_ext <<_ACEOF
28154 /* confdefs.h.  */
28155 _ACEOF
28156 cat confdefs.h >>conftest.$ac_ext
28157 cat >>conftest.$ac_ext <<_ACEOF
28158 /* end confdefs.h.  */
28159
28160 /* Override any GCC internal prototype to avoid an error.
28161    Use char because int might match the return type of a GCC
28162    builtin and then its argument prototype would still apply.  */
28163 #ifdef __cplusplus
28164 extern "C"
28165 #endif
28166 char pthread_rwlock_init ();
28167 int
28168 main ()
28169 {
28170 return pthread_rwlock_init ();
28171   ;
28172   return 0;
28173 }
28174 _ACEOF
28175 for ac_lib in '' pthread; do
28176   if test -z "$ac_lib"; then
28177     ac_res="none required"
28178   else
28179     ac_res=-l$ac_lib
28180     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28181   fi
28182   rm -f conftest.$ac_objext conftest$ac_exeext
28183 if { (ac_try="$ac_link"
28184 case "(($ac_try" in
28185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186   *) ac_try_echo=$ac_try;;
28187 esac
28188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189   (eval "$ac_link") 2>conftest.er1
28190   ac_status=$?
28191   grep -v '^ *+' conftest.er1 >conftest.err
28192   rm -f conftest.er1
28193   cat conftest.err >&5
28194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195   (exit $ac_status); } &&
28196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28197   { (case "(($ac_try" in
28198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199   *) ac_try_echo=$ac_try;;
28200 esac
28201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202   (eval "$ac_try") 2>&5
28203   ac_status=$?
28204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205   (exit $ac_status); }; } &&
28206          { ac_try='test -s conftest$ac_exeext'
28207   { (case "(($ac_try" in
28208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28209   *) ac_try_echo=$ac_try;;
28210 esac
28211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28212   (eval "$ac_try") 2>&5
28213   ac_status=$?
28214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215   (exit $ac_status); }; }; then
28216   ac_cv_search_pthread_rwlock_init=$ac_res
28217 else
28218   echo "$as_me: failed program was:" >&5
28219 sed 's/^/| /' conftest.$ac_ext >&5
28220
28221
28222 fi
28223
28224 rm -f core conftest.err conftest.$ac_objext \
28225       conftest$ac_exeext
28226   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28227   break
28228 fi
28229 done
28230 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28231   :
28232 else
28233   ac_cv_search_pthread_rwlock_init=no
28234 fi
28235 rm conftest.$ac_ext
28236 LIBS=$ac_func_search_save_LIBS
28237 fi
28238 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28239 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28240 ac_res=$ac_cv_search_pthread_rwlock_init
28241 if test "$ac_res" != no; then
28242   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28243
28244 cat >>confdefs.h <<\_ACEOF
28245 #define HAVE_PTHREAD_RWLOCK_INIT 1
28246 _ACEOF
28247
28248 fi
28249
28250   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28251 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28252 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28253   echo $ECHO_N "(cached) $ECHO_C" >&6
28254 else
28255   ac_func_search_save_LIBS=$LIBS
28256 cat >conftest.$ac_ext <<_ACEOF
28257 /* confdefs.h.  */
28258 _ACEOF
28259 cat confdefs.h >>conftest.$ac_ext
28260 cat >>conftest.$ac_ext <<_ACEOF
28261 /* end confdefs.h.  */
28262
28263 /* Override any GCC internal prototype to avoid an error.
28264    Use char because int might match the return type of a GCC
28265    builtin and then its argument prototype would still apply.  */
28266 #ifdef __cplusplus
28267 extern "C"
28268 #endif
28269 char pthread_getspecific ();
28270 int
28271 main ()
28272 {
28273 return pthread_getspecific ();
28274   ;
28275   return 0;
28276 }
28277 _ACEOF
28278 for ac_lib in '' pthread; do
28279   if test -z "$ac_lib"; then
28280     ac_res="none required"
28281   else
28282     ac_res=-l$ac_lib
28283     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28284   fi
28285   rm -f conftest.$ac_objext conftest$ac_exeext
28286 if { (ac_try="$ac_link"
28287 case "(($ac_try" in
28288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28289   *) ac_try_echo=$ac_try;;
28290 esac
28291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28292   (eval "$ac_link") 2>conftest.er1
28293   ac_status=$?
28294   grep -v '^ *+' conftest.er1 >conftest.err
28295   rm -f conftest.er1
28296   cat conftest.err >&5
28297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298   (exit $ac_status); } &&
28299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28300   { (case "(($ac_try" in
28301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28302   *) ac_try_echo=$ac_try;;
28303 esac
28304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28305   (eval "$ac_try") 2>&5
28306   ac_status=$?
28307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308   (exit $ac_status); }; } &&
28309          { ac_try='test -s conftest$ac_exeext'
28310   { (case "(($ac_try" in
28311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28312   *) ac_try_echo=$ac_try;;
28313 esac
28314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28315   (eval "$ac_try") 2>&5
28316   ac_status=$?
28317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318   (exit $ac_status); }; }; then
28319   ac_cv_search_pthread_getspecific=$ac_res
28320 else
28321   echo "$as_me: failed program was:" >&5
28322 sed 's/^/| /' conftest.$ac_ext >&5
28323
28324
28325 fi
28326
28327 rm -f core conftest.err conftest.$ac_objext \
28328       conftest$ac_exeext
28329   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28330   break
28331 fi
28332 done
28333 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28334   :
28335 else
28336   ac_cv_search_pthread_getspecific=no
28337 fi
28338 rm conftest.$ac_ext
28339 LIBS=$ac_func_search_save_LIBS
28340 fi
28341 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28342 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28343 ac_res=$ac_cv_search_pthread_getspecific
28344 if test "$ac_res" != no; then
28345   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28346
28347 cat >>confdefs.h <<\_ACEOF
28348 #define HAVE_PTHREAD_GETSPECIFIC 1
28349 _ACEOF
28350
28351 fi
28352
28353 fi
28354
28355
28356 # Check whether --with-udis86 was given.
28357 if test "${with_udis86+set}" = set; then
28358   withval=$with_udis86;
28359       USE_UDIS86=1
28360
28361       case "$withval" in
28362         /usr/lib|yes) ;;
28363         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28364       esac
28365
28366 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28367 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28368 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28369   echo $ECHO_N "(cached) $ECHO_C" >&6
28370 else
28371   ac_check_lib_save_LIBS=$LIBS
28372 LIBS="-ludis86  $LIBS"
28373 cat >conftest.$ac_ext <<_ACEOF
28374 /* confdefs.h.  */
28375 _ACEOF
28376 cat confdefs.h >>conftest.$ac_ext
28377 cat >>conftest.$ac_ext <<_ACEOF
28378 /* end confdefs.h.  */
28379
28380 /* Override any GCC internal prototype to avoid an error.
28381    Use char because int might match the return type of a GCC
28382    builtin and then its argument prototype would still apply.  */
28383 #ifdef __cplusplus
28384 extern "C"
28385 #endif
28386 char ud_init ();
28387 int
28388 main ()
28389 {
28390 return ud_init ();
28391   ;
28392   return 0;
28393 }
28394 _ACEOF
28395 rm -f conftest.$ac_objext conftest$ac_exeext
28396 if { (ac_try="$ac_link"
28397 case "(($ac_try" in
28398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28399   *) ac_try_echo=$ac_try;;
28400 esac
28401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28402   (eval "$ac_link") 2>conftest.er1
28403   ac_status=$?
28404   grep -v '^ *+' conftest.er1 >conftest.err
28405   rm -f conftest.er1
28406   cat conftest.err >&5
28407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408   (exit $ac_status); } &&
28409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28410   { (case "(($ac_try" in
28411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28412   *) ac_try_echo=$ac_try;;
28413 esac
28414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28415   (eval "$ac_try") 2>&5
28416   ac_status=$?
28417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418   (exit $ac_status); }; } &&
28419          { ac_try='test -s conftest$ac_exeext'
28420   { (case "(($ac_try" in
28421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422   *) ac_try_echo=$ac_try;;
28423 esac
28424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425   (eval "$ac_try") 2>&5
28426   ac_status=$?
28427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428   (exit $ac_status); }; }; then
28429   ac_cv_lib_udis86_ud_init=yes
28430 else
28431   echo "$as_me: failed program was:" >&5
28432 sed 's/^/| /' conftest.$ac_ext >&5
28433
28434         ac_cv_lib_udis86_ud_init=no
28435 fi
28436
28437 rm -f core conftest.err conftest.$ac_objext \
28438       conftest$ac_exeext conftest.$ac_ext
28439 LIBS=$ac_check_lib_save_LIBS
28440 fi
28441 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28442 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28443 if test $ac_cv_lib_udis86_ud_init = yes; then
28444   cat >>confdefs.h <<_ACEOF
28445 #define HAVE_LIBUDIS86 1
28446 _ACEOF
28447
28448   LIBS="-ludis86 $LIBS"
28449
28450 else
28451
28452         echo "Error! You need to have libudis86 around."
28453         exit -1
28454
28455 fi
28456
28457
28458 else
28459   USE_UDIS86=0
28460
28461 fi
28462
28463
28464 cat >>confdefs.h <<_ACEOF
28465 #define USE_UDIS86 $USE_UDIS86
28466 _ACEOF
28467
28468
28469
28470 # Check whether --with-oprofile was given.
28471 if test "${with_oprofile+set}" = set; then
28472   withval=$with_oprofile;
28473       USE_OPROFILE=1
28474
28475       case "$withval" in
28476         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28477         *) llvm_cv_oppath="${withval}/lib/oprofile"
28478            CPPFLAGS="-I${withval}/include";;
28479       esac
28480       LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28481       { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28482 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28483 if test "${ac_cv_search_op_open_agent+set}" = set; then
28484   echo $ECHO_N "(cached) $ECHO_C" >&6
28485 else
28486   ac_func_search_save_LIBS=$LIBS
28487 cat >conftest.$ac_ext <<_ACEOF
28488 /* confdefs.h.  */
28489 _ACEOF
28490 cat confdefs.h >>conftest.$ac_ext
28491 cat >>conftest.$ac_ext <<_ACEOF
28492 /* end confdefs.h.  */
28493
28494 /* Override any GCC internal prototype to avoid an error.
28495    Use char because int might match the return type of a GCC
28496    builtin and then its argument prototype would still apply.  */
28497 #ifdef __cplusplus
28498 extern "C"
28499 #endif
28500 char op_open_agent ();
28501 int
28502 main ()
28503 {
28504 return op_open_agent ();
28505   ;
28506   return 0;
28507 }
28508 _ACEOF
28509 for ac_lib in '' opagent; do
28510   if test -z "$ac_lib"; then
28511     ac_res="none required"
28512   else
28513     ac_res=-l$ac_lib
28514     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28515   fi
28516   rm -f conftest.$ac_objext conftest$ac_exeext
28517 if { (ac_try="$ac_link"
28518 case "(($ac_try" in
28519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28520   *) ac_try_echo=$ac_try;;
28521 esac
28522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28523   (eval "$ac_link") 2>conftest.er1
28524   ac_status=$?
28525   grep -v '^ *+' conftest.er1 >conftest.err
28526   rm -f conftest.er1
28527   cat conftest.err >&5
28528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529   (exit $ac_status); } &&
28530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28531   { (case "(($ac_try" in
28532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28533   *) ac_try_echo=$ac_try;;
28534 esac
28535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28536   (eval "$ac_try") 2>&5
28537   ac_status=$?
28538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539   (exit $ac_status); }; } &&
28540          { ac_try='test -s conftest$ac_exeext'
28541   { (case "(($ac_try" in
28542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28543   *) ac_try_echo=$ac_try;;
28544 esac
28545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546   (eval "$ac_try") 2>&5
28547   ac_status=$?
28548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549   (exit $ac_status); }; }; then
28550   ac_cv_search_op_open_agent=$ac_res
28551 else
28552   echo "$as_me: failed program was:" >&5
28553 sed 's/^/| /' conftest.$ac_ext >&5
28554
28555
28556 fi
28557
28558 rm -f core conftest.err conftest.$ac_objext \
28559       conftest$ac_exeext
28560   if test "${ac_cv_search_op_open_agent+set}" = set; then
28561   break
28562 fi
28563 done
28564 if test "${ac_cv_search_op_open_agent+set}" = set; then
28565   :
28566 else
28567   ac_cv_search_op_open_agent=no
28568 fi
28569 rm conftest.$ac_ext
28570 LIBS=$ac_func_search_save_LIBS
28571 fi
28572 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28573 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28574 ac_res=$ac_cv_search_op_open_agent
28575 if test "$ac_res" != no; then
28576   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28577
28578 else
28579
28580         echo "Error! You need to have libopagent around."
28581         exit -1
28582
28583 fi
28584
28585       if test "${ac_cv_header_opagent_h+set}" = set; then
28586   { echo "$as_me:$LINENO: checking for opagent.h" >&5
28587 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28588 if test "${ac_cv_header_opagent_h+set}" = set; then
28589   echo $ECHO_N "(cached) $ECHO_C" >&6
28590 fi
28591 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28592 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28593 else
28594   # Is the header compilable?
28595 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28596 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28597 cat >conftest.$ac_ext <<_ACEOF
28598 /* confdefs.h.  */
28599 _ACEOF
28600 cat confdefs.h >>conftest.$ac_ext
28601 cat >>conftest.$ac_ext <<_ACEOF
28602 /* end confdefs.h.  */
28603 $ac_includes_default
28604 #include <opagent.h>
28605 _ACEOF
28606 rm -f conftest.$ac_objext
28607 if { (ac_try="$ac_compile"
28608 case "(($ac_try" in
28609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28610   *) ac_try_echo=$ac_try;;
28611 esac
28612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28613   (eval "$ac_compile") 2>conftest.er1
28614   ac_status=$?
28615   grep -v '^ *+' conftest.er1 >conftest.err
28616   rm -f conftest.er1
28617   cat conftest.err >&5
28618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619   (exit $ac_status); } &&
28620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28621   { (case "(($ac_try" in
28622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28623   *) ac_try_echo=$ac_try;;
28624 esac
28625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28626   (eval "$ac_try") 2>&5
28627   ac_status=$?
28628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629   (exit $ac_status); }; } &&
28630          { ac_try='test -s conftest.$ac_objext'
28631   { (case "(($ac_try" in
28632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28633   *) ac_try_echo=$ac_try;;
28634 esac
28635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28636   (eval "$ac_try") 2>&5
28637   ac_status=$?
28638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28639   (exit $ac_status); }; }; then
28640   ac_header_compiler=yes
28641 else
28642   echo "$as_me: failed program was:" >&5
28643 sed 's/^/| /' conftest.$ac_ext >&5
28644
28645         ac_header_compiler=no
28646 fi
28647
28648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28650 echo "${ECHO_T}$ac_header_compiler" >&6; }
28651
28652 # Is the header present?
28653 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28654 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28655 cat >conftest.$ac_ext <<_ACEOF
28656 /* confdefs.h.  */
28657 _ACEOF
28658 cat confdefs.h >>conftest.$ac_ext
28659 cat >>conftest.$ac_ext <<_ACEOF
28660 /* end confdefs.h.  */
28661 #include <opagent.h>
28662 _ACEOF
28663 if { (ac_try="$ac_cpp conftest.$ac_ext"
28664 case "(($ac_try" in
28665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28666   *) ac_try_echo=$ac_try;;
28667 esac
28668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28669   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28670   ac_status=$?
28671   grep -v '^ *+' conftest.er1 >conftest.err
28672   rm -f conftest.er1
28673   cat conftest.err >&5
28674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675   (exit $ac_status); } >/dev/null; then
28676   if test -s conftest.err; then
28677     ac_cpp_err=$ac_c_preproc_warn_flag
28678     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28679   else
28680     ac_cpp_err=
28681   fi
28682 else
28683   ac_cpp_err=yes
28684 fi
28685 if test -z "$ac_cpp_err"; then
28686   ac_header_preproc=yes
28687 else
28688   echo "$as_me: failed program was:" >&5
28689 sed 's/^/| /' conftest.$ac_ext >&5
28690
28691   ac_header_preproc=no
28692 fi
28693
28694 rm -f conftest.err conftest.$ac_ext
28695 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28696 echo "${ECHO_T}$ac_header_preproc" >&6; }
28697
28698 # So?  What about this header?
28699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28700   yes:no: )
28701     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28702 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28703     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28704 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28705     ac_header_preproc=yes
28706     ;;
28707   no:yes:* )
28708     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28709 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28710     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
28711 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
28712     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28713 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28714     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
28715 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28716     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28717 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28718     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28719 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28720     ( cat <<\_ASBOX
28721 ## ----------------------------------- ##
28722 ## Report this to llvmbugs@cs.uiuc.edu ##
28723 ## ----------------------------------- ##
28724 _ASBOX
28725      ) | sed "s/^/$as_me: WARNING:     /" >&2
28726     ;;
28727 esac
28728 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28729 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28730 if test "${ac_cv_header_opagent_h+set}" = set; then
28731   echo $ECHO_N "(cached) $ECHO_C" >&6
28732 else
28733   ac_cv_header_opagent_h=$ac_header_preproc
28734 fi
28735 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28736 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28737
28738 fi
28739 if test $ac_cv_header_opagent_h = yes; then
28740   :
28741 else
28742
28743         echo "Error! You need to have opagent.h around."
28744         exit -1
28745
28746 fi
28747
28748
28749
28750 else
28751
28752       llvm_cv_old_LIBS="$LIBS"
28753       LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28754             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28755 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28756 if test "${ac_cv_search_op_open_agent+set}" = set; then
28757   echo $ECHO_N "(cached) $ECHO_C" >&6
28758 else
28759   ac_func_search_save_LIBS=$LIBS
28760 cat >conftest.$ac_ext <<_ACEOF
28761 /* confdefs.h.  */
28762 _ACEOF
28763 cat confdefs.h >>conftest.$ac_ext
28764 cat >>conftest.$ac_ext <<_ACEOF
28765 /* end confdefs.h.  */
28766
28767 /* Override any GCC internal prototype to avoid an error.
28768    Use char because int might match the return type of a GCC
28769    builtin and then its argument prototype would still apply.  */
28770 #ifdef __cplusplus
28771 extern "C"
28772 #endif
28773 char op_open_agent ();
28774 int
28775 main ()
28776 {
28777 return op_open_agent ();
28778   ;
28779   return 0;
28780 }
28781 _ACEOF
28782 for ac_lib in '' opagent; do
28783   if test -z "$ac_lib"; then
28784     ac_res="none required"
28785   else
28786     ac_res=-l$ac_lib
28787     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28788   fi
28789   rm -f conftest.$ac_objext conftest$ac_exeext
28790 if { (ac_try="$ac_link"
28791 case "(($ac_try" in
28792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28793   *) ac_try_echo=$ac_try;;
28794 esac
28795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28796   (eval "$ac_link") 2>conftest.er1
28797   ac_status=$?
28798   grep -v '^ *+' conftest.er1 >conftest.err
28799   rm -f conftest.er1
28800   cat conftest.err >&5
28801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802   (exit $ac_status); } &&
28803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28804   { (case "(($ac_try" in
28805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28806   *) ac_try_echo=$ac_try;;
28807 esac
28808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28809   (eval "$ac_try") 2>&5
28810   ac_status=$?
28811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812   (exit $ac_status); }; } &&
28813          { ac_try='test -s conftest$ac_exeext'
28814   { (case "(($ac_try" in
28815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28816   *) ac_try_echo=$ac_try;;
28817 esac
28818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28819   (eval "$ac_try") 2>&5
28820   ac_status=$?
28821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822   (exit $ac_status); }; }; then
28823   ac_cv_search_op_open_agent=$ac_res
28824 else
28825   echo "$as_me: failed program was:" >&5
28826 sed 's/^/| /' conftest.$ac_ext >&5
28827
28828
28829 fi
28830
28831 rm -f core conftest.err conftest.$ac_objext \
28832       conftest$ac_exeext
28833   if test "${ac_cv_search_op_open_agent+set}" = set; then
28834   break
28835 fi
28836 done
28837 if test "${ac_cv_search_op_open_agent+set}" = set; then
28838   :
28839 else
28840   ac_cv_search_op_open_agent=no
28841 fi
28842 rm conftest.$ac_ext
28843 LIBS=$ac_func_search_save_LIBS
28844 fi
28845 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28846 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28847 ac_res=$ac_cv_search_op_open_agent
28848 if test "$ac_res" != no; then
28849   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28850   USE_OPROFILE=1
28851
28852 else
28853   LIBS="$llvm_cv_old_LIBS"
28854                       USE_OPROFILE=0
28855
28856 fi
28857
28858       if test "${ac_cv_header_opagent_h+set}" = set; then
28859   { echo "$as_me:$LINENO: checking for opagent.h" >&5
28860 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28861 if test "${ac_cv_header_opagent_h+set}" = set; then
28862   echo $ECHO_N "(cached) $ECHO_C" >&6
28863 fi
28864 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28865 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28866 else
28867   # Is the header compilable?
28868 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28869 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28870 cat >conftest.$ac_ext <<_ACEOF
28871 /* confdefs.h.  */
28872 _ACEOF
28873 cat confdefs.h >>conftest.$ac_ext
28874 cat >>conftest.$ac_ext <<_ACEOF
28875 /* end confdefs.h.  */
28876 $ac_includes_default
28877 #include <opagent.h>
28878 _ACEOF
28879 rm -f conftest.$ac_objext
28880 if { (ac_try="$ac_compile"
28881 case "(($ac_try" in
28882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28883   *) ac_try_echo=$ac_try;;
28884 esac
28885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28886   (eval "$ac_compile") 2>conftest.er1
28887   ac_status=$?
28888   grep -v '^ *+' conftest.er1 >conftest.err
28889   rm -f conftest.er1
28890   cat conftest.err >&5
28891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892   (exit $ac_status); } &&
28893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28894   { (case "(($ac_try" in
28895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28896   *) ac_try_echo=$ac_try;;
28897 esac
28898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28899   (eval "$ac_try") 2>&5
28900   ac_status=$?
28901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902   (exit $ac_status); }; } &&
28903          { ac_try='test -s conftest.$ac_objext'
28904   { (case "(($ac_try" in
28905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28906   *) ac_try_echo=$ac_try;;
28907 esac
28908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28909   (eval "$ac_try") 2>&5
28910   ac_status=$?
28911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912   (exit $ac_status); }; }; then
28913   ac_header_compiler=yes
28914 else
28915   echo "$as_me: failed program was:" >&5
28916 sed 's/^/| /' conftest.$ac_ext >&5
28917
28918         ac_header_compiler=no
28919 fi
28920
28921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28923 echo "${ECHO_T}$ac_header_compiler" >&6; }
28924
28925 # Is the header present?
28926 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28927 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28928 cat >conftest.$ac_ext <<_ACEOF
28929 /* confdefs.h.  */
28930 _ACEOF
28931 cat confdefs.h >>conftest.$ac_ext
28932 cat >>conftest.$ac_ext <<_ACEOF
28933 /* end confdefs.h.  */
28934 #include <opagent.h>
28935 _ACEOF
28936 if { (ac_try="$ac_cpp conftest.$ac_ext"
28937 case "(($ac_try" in
28938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28939   *) ac_try_echo=$ac_try;;
28940 esac
28941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28942   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28943   ac_status=$?
28944   grep -v '^ *+' conftest.er1 >conftest.err
28945   rm -f conftest.er1
28946   cat conftest.err >&5
28947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948   (exit $ac_status); } >/dev/null; then
28949   if test -s conftest.err; then
28950     ac_cpp_err=$ac_c_preproc_warn_flag
28951     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28952   else
28953     ac_cpp_err=
28954   fi
28955 else
28956   ac_cpp_err=yes
28957 fi
28958 if test -z "$ac_cpp_err"; then
28959   ac_header_preproc=yes
28960 else
28961   echo "$as_me: failed program was:" >&5
28962 sed 's/^/| /' conftest.$ac_ext >&5
28963
28964   ac_header_preproc=no
28965 fi
28966
28967 rm -f conftest.err conftest.$ac_ext
28968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28969 echo "${ECHO_T}$ac_header_preproc" >&6; }
28970
28971 # So?  What about this header?
28972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28973   yes:no: )
28974     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28975 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28976     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28977 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28978     ac_header_preproc=yes
28979     ;;
28980   no:yes:* )
28981     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28982 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28983     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
28984 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
28985     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28986 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28987     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
28988 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28989     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28990 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28991     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28992 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28993     ( cat <<\_ASBOX
28994 ## ----------------------------------- ##
28995 ## Report this to llvmbugs@cs.uiuc.edu ##
28996 ## ----------------------------------- ##
28997 _ASBOX
28998      ) | sed "s/^/$as_me: WARNING:     /" >&2
28999     ;;
29000 esac
29001 { echo "$as_me:$LINENO: checking for opagent.h" >&5
29002 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29003 if test "${ac_cv_header_opagent_h+set}" = set; then
29004   echo $ECHO_N "(cached) $ECHO_C" >&6
29005 else
29006   ac_cv_header_opagent_h=$ac_header_preproc
29007 fi
29008 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29009 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29010
29011 fi
29012 if test $ac_cv_header_opagent_h = yes; then
29013   :
29014 else
29015
29016         LIBS="$llvm_cv_old_LIBS"
29017         USE_OPROFILE=0
29018
29019
29020 fi
29021
29022
29023
29024 fi
29025
29026
29027 cat >>confdefs.h <<_ACEOF
29028 #define USE_OPROFILE $USE_OPROFILE
29029 _ACEOF
29030
29031
29032
29033
29034
29035
29036
29037
29038 ac_header_dirent=no
29039 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29040   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29041 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29042 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29044   echo $ECHO_N "(cached) $ECHO_C" >&6
29045 else
29046   cat >conftest.$ac_ext <<_ACEOF
29047 /* confdefs.h.  */
29048 _ACEOF
29049 cat confdefs.h >>conftest.$ac_ext
29050 cat >>conftest.$ac_ext <<_ACEOF
29051 /* end confdefs.h.  */
29052 #include <sys/types.h>
29053 #include <$ac_hdr>
29054
29055 int
29056 main ()
29057 {
29058 if ((DIR *) 0)
29059 return 0;
29060   ;
29061   return 0;
29062 }
29063 _ACEOF
29064 rm -f conftest.$ac_objext
29065 if { (ac_try="$ac_compile"
29066 case "(($ac_try" in
29067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29068   *) ac_try_echo=$ac_try;;
29069 esac
29070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29071   (eval "$ac_compile") 2>conftest.er1
29072   ac_status=$?
29073   grep -v '^ *+' conftest.er1 >conftest.err
29074   rm -f conftest.er1
29075   cat conftest.err >&5
29076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29077   (exit $ac_status); } &&
29078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29079   { (case "(($ac_try" in
29080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29081   *) ac_try_echo=$ac_try;;
29082 esac
29083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29084   (eval "$ac_try") 2>&5
29085   ac_status=$?
29086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087   (exit $ac_status); }; } &&
29088          { ac_try='test -s conftest.$ac_objext'
29089   { (case "(($ac_try" in
29090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091   *) ac_try_echo=$ac_try;;
29092 esac
29093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094   (eval "$ac_try") 2>&5
29095   ac_status=$?
29096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097   (exit $ac_status); }; }; then
29098   eval "$as_ac_Header=yes"
29099 else
29100   echo "$as_me: failed program was:" >&5
29101 sed 's/^/| /' conftest.$ac_ext >&5
29102
29103         eval "$as_ac_Header=no"
29104 fi
29105
29106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29107 fi
29108 ac_res=`eval echo '${'$as_ac_Header'}'`
29109                { echo "$as_me:$LINENO: result: $ac_res" >&5
29110 echo "${ECHO_T}$ac_res" >&6; }
29111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29112   cat >>confdefs.h <<_ACEOF
29113 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29114 _ACEOF
29115
29116 ac_header_dirent=$ac_hdr; break
29117 fi
29118
29119 done
29120 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29121 if test $ac_header_dirent = dirent.h; then
29122   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29123 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29124 if test "${ac_cv_search_opendir+set}" = set; then
29125   echo $ECHO_N "(cached) $ECHO_C" >&6
29126 else
29127   ac_func_search_save_LIBS=$LIBS
29128 cat >conftest.$ac_ext <<_ACEOF
29129 /* confdefs.h.  */
29130 _ACEOF
29131 cat confdefs.h >>conftest.$ac_ext
29132 cat >>conftest.$ac_ext <<_ACEOF
29133 /* end confdefs.h.  */
29134
29135 /* Override any GCC internal prototype to avoid an error.
29136    Use char because int might match the return type of a GCC
29137    builtin and then its argument prototype would still apply.  */
29138 #ifdef __cplusplus
29139 extern "C"
29140 #endif
29141 char opendir ();
29142 int
29143 main ()
29144 {
29145 return opendir ();
29146   ;
29147   return 0;
29148 }
29149 _ACEOF
29150 for ac_lib in '' dir; do
29151   if test -z "$ac_lib"; then
29152     ac_res="none required"
29153   else
29154     ac_res=-l$ac_lib
29155     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29156   fi
29157   rm -f conftest.$ac_objext conftest$ac_exeext
29158 if { (ac_try="$ac_link"
29159 case "(($ac_try" in
29160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29161   *) ac_try_echo=$ac_try;;
29162 esac
29163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29164   (eval "$ac_link") 2>conftest.er1
29165   ac_status=$?
29166   grep -v '^ *+' conftest.er1 >conftest.err
29167   rm -f conftest.er1
29168   cat conftest.err >&5
29169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170   (exit $ac_status); } &&
29171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29172   { (case "(($ac_try" in
29173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29174   *) ac_try_echo=$ac_try;;
29175 esac
29176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29177   (eval "$ac_try") 2>&5
29178   ac_status=$?
29179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180   (exit $ac_status); }; } &&
29181          { ac_try='test -s conftest$ac_exeext'
29182   { (case "(($ac_try" in
29183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29184   *) ac_try_echo=$ac_try;;
29185 esac
29186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29187   (eval "$ac_try") 2>&5
29188   ac_status=$?
29189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190   (exit $ac_status); }; }; then
29191   ac_cv_search_opendir=$ac_res
29192 else
29193   echo "$as_me: failed program was:" >&5
29194 sed 's/^/| /' conftest.$ac_ext >&5
29195
29196
29197 fi
29198
29199 rm -f core conftest.err conftest.$ac_objext \
29200       conftest$ac_exeext
29201   if test "${ac_cv_search_opendir+set}" = set; then
29202   break
29203 fi
29204 done
29205 if test "${ac_cv_search_opendir+set}" = set; then
29206   :
29207 else
29208   ac_cv_search_opendir=no
29209 fi
29210 rm conftest.$ac_ext
29211 LIBS=$ac_func_search_save_LIBS
29212 fi
29213 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29214 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29215 ac_res=$ac_cv_search_opendir
29216 if test "$ac_res" != no; then
29217   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29218
29219 fi
29220
29221 else
29222   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29223 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29224 if test "${ac_cv_search_opendir+set}" = set; then
29225   echo $ECHO_N "(cached) $ECHO_C" >&6
29226 else
29227   ac_func_search_save_LIBS=$LIBS
29228 cat >conftest.$ac_ext <<_ACEOF
29229 /* confdefs.h.  */
29230 _ACEOF
29231 cat confdefs.h >>conftest.$ac_ext
29232 cat >>conftest.$ac_ext <<_ACEOF
29233 /* end confdefs.h.  */
29234
29235 /* Override any GCC internal prototype to avoid an error.
29236    Use char because int might match the return type of a GCC
29237    builtin and then its argument prototype would still apply.  */
29238 #ifdef __cplusplus
29239 extern "C"
29240 #endif
29241 char opendir ();
29242 int
29243 main ()
29244 {
29245 return opendir ();
29246   ;
29247   return 0;
29248 }
29249 _ACEOF
29250 for ac_lib in '' x; do
29251   if test -z "$ac_lib"; then
29252     ac_res="none required"
29253   else
29254     ac_res=-l$ac_lib
29255     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29256   fi
29257   rm -f conftest.$ac_objext conftest$ac_exeext
29258 if { (ac_try="$ac_link"
29259 case "(($ac_try" in
29260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29261   *) ac_try_echo=$ac_try;;
29262 esac
29263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29264   (eval "$ac_link") 2>conftest.er1
29265   ac_status=$?
29266   grep -v '^ *+' conftest.er1 >conftest.err
29267   rm -f conftest.er1
29268   cat conftest.err >&5
29269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270   (exit $ac_status); } &&
29271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29272   { (case "(($ac_try" in
29273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29274   *) ac_try_echo=$ac_try;;
29275 esac
29276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29277   (eval "$ac_try") 2>&5
29278   ac_status=$?
29279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280   (exit $ac_status); }; } &&
29281          { ac_try='test -s conftest$ac_exeext'
29282   { (case "(($ac_try" in
29283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29284   *) ac_try_echo=$ac_try;;
29285 esac
29286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29287   (eval "$ac_try") 2>&5
29288   ac_status=$?
29289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290   (exit $ac_status); }; }; then
29291   ac_cv_search_opendir=$ac_res
29292 else
29293   echo "$as_me: failed program was:" >&5
29294 sed 's/^/| /' conftest.$ac_ext >&5
29295
29296
29297 fi
29298
29299 rm -f core conftest.err conftest.$ac_objext \
29300       conftest$ac_exeext
29301   if test "${ac_cv_search_opendir+set}" = set; then
29302   break
29303 fi
29304 done
29305 if test "${ac_cv_search_opendir+set}" = set; then
29306   :
29307 else
29308   ac_cv_search_opendir=no
29309 fi
29310 rm conftest.$ac_ext
29311 LIBS=$ac_func_search_save_LIBS
29312 fi
29313 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29314 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29315 ac_res=$ac_cv_search_opendir
29316 if test "$ac_res" != no; then
29317   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29318
29319 fi
29320
29321 fi
29322
29323 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29324 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29325 if test "${ac_cv_header_mmap_anon+set}" = set; then
29326   echo $ECHO_N "(cached) $ECHO_C" >&6
29327 else
29328    ac_ext=c
29329 ac_cpp='$CPP $CPPFLAGS'
29330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29333
29334   cat >conftest.$ac_ext <<_ACEOF
29335 /* confdefs.h.  */
29336 _ACEOF
29337 cat confdefs.h >>conftest.$ac_ext
29338 cat >>conftest.$ac_ext <<_ACEOF
29339 /* end confdefs.h.  */
29340 #include <sys/mman.h>
29341 #include <unistd.h>
29342 #include <fcntl.h>
29343 int
29344 main ()
29345 {
29346 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29347   ;
29348   return 0;
29349 }
29350 _ACEOF
29351 rm -f conftest.$ac_objext
29352 if { (ac_try="$ac_compile"
29353 case "(($ac_try" in
29354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29355   *) ac_try_echo=$ac_try;;
29356 esac
29357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29358   (eval "$ac_compile") 2>conftest.er1
29359   ac_status=$?
29360   grep -v '^ *+' conftest.er1 >conftest.err
29361   rm -f conftest.er1
29362   cat conftest.err >&5
29363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364   (exit $ac_status); } &&
29365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29366   { (case "(($ac_try" in
29367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29368   *) ac_try_echo=$ac_try;;
29369 esac
29370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29371   (eval "$ac_try") 2>&5
29372   ac_status=$?
29373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374   (exit $ac_status); }; } &&
29375          { ac_try='test -s conftest.$ac_objext'
29376   { (case "(($ac_try" in
29377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29378   *) ac_try_echo=$ac_try;;
29379 esac
29380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29381   (eval "$ac_try") 2>&5
29382   ac_status=$?
29383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384   (exit $ac_status); }; }; then
29385   ac_cv_header_mmap_anon=yes
29386 else
29387   echo "$as_me: failed program was:" >&5
29388 sed 's/^/| /' conftest.$ac_ext >&5
29389
29390         ac_cv_header_mmap_anon=no
29391 fi
29392
29393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29394   ac_ext=c
29395 ac_cpp='$CPP $CPPFLAGS'
29396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29399
29400
29401 fi
29402 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29403 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29404 if test "$ac_cv_header_mmap_anon" = yes; then
29405
29406 cat >>confdefs.h <<\_ACEOF
29407 #define HAVE_MMAP_ANONYMOUS 1
29408 _ACEOF
29409
29410 fi
29411
29412 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29413 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29414 if test "${ac_cv_header_stat_broken+set}" = set; then
29415   echo $ECHO_N "(cached) $ECHO_C" >&6
29416 else
29417   cat >conftest.$ac_ext <<_ACEOF
29418 /* confdefs.h.  */
29419 _ACEOF
29420 cat confdefs.h >>conftest.$ac_ext
29421 cat >>conftest.$ac_ext <<_ACEOF
29422 /* end confdefs.h.  */
29423 #include <sys/types.h>
29424 #include <sys/stat.h>
29425
29426 #if defined S_ISBLK && defined S_IFDIR
29427 # if S_ISBLK (S_IFDIR)
29428 You lose.
29429 # endif
29430 #endif
29431
29432 #if defined S_ISBLK && defined S_IFCHR
29433 # if S_ISBLK (S_IFCHR)
29434 You lose.
29435 # endif
29436 #endif
29437
29438 #if defined S_ISLNK && defined S_IFREG
29439 # if S_ISLNK (S_IFREG)
29440 You lose.
29441 # endif
29442 #endif
29443
29444 #if defined S_ISSOCK && defined S_IFREG
29445 # if S_ISSOCK (S_IFREG)
29446 You lose.
29447 # endif
29448 #endif
29449
29450 _ACEOF
29451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29452   $EGREP "You lose" >/dev/null 2>&1; then
29453   ac_cv_header_stat_broken=yes
29454 else
29455   ac_cv_header_stat_broken=no
29456 fi
29457 rm -f conftest*
29458
29459 fi
29460 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29461 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29462 if test $ac_cv_header_stat_broken = yes; then
29463
29464 cat >>confdefs.h <<\_ACEOF
29465 #define STAT_MACROS_BROKEN 1
29466 _ACEOF
29467
29468 fi
29469
29470 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29471 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29472 if test "${ac_cv_header_stdc+set}" = set; then
29473   echo $ECHO_N "(cached) $ECHO_C" >&6
29474 else
29475   cat >conftest.$ac_ext <<_ACEOF
29476 /* confdefs.h.  */
29477 _ACEOF
29478 cat confdefs.h >>conftest.$ac_ext
29479 cat >>conftest.$ac_ext <<_ACEOF
29480 /* end confdefs.h.  */
29481 #include <stdlib.h>
29482 #include <stdarg.h>
29483 #include <string.h>
29484 #include <float.h>
29485
29486 int
29487 main ()
29488 {
29489
29490   ;
29491   return 0;
29492 }
29493 _ACEOF
29494 rm -f conftest.$ac_objext
29495 if { (ac_try="$ac_compile"
29496 case "(($ac_try" in
29497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29498   *) ac_try_echo=$ac_try;;
29499 esac
29500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29501   (eval "$ac_compile") 2>conftest.er1
29502   ac_status=$?
29503   grep -v '^ *+' conftest.er1 >conftest.err
29504   rm -f conftest.er1
29505   cat conftest.err >&5
29506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29507   (exit $ac_status); } &&
29508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29509   { (case "(($ac_try" in
29510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29511   *) ac_try_echo=$ac_try;;
29512 esac
29513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29514   (eval "$ac_try") 2>&5
29515   ac_status=$?
29516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517   (exit $ac_status); }; } &&
29518          { ac_try='test -s conftest.$ac_objext'
29519   { (case "(($ac_try" in
29520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29521   *) ac_try_echo=$ac_try;;
29522 esac
29523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29524   (eval "$ac_try") 2>&5
29525   ac_status=$?
29526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527   (exit $ac_status); }; }; then
29528   ac_cv_header_stdc=yes
29529 else
29530   echo "$as_me: failed program was:" >&5
29531 sed 's/^/| /' conftest.$ac_ext >&5
29532
29533         ac_cv_header_stdc=no
29534 fi
29535
29536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29537
29538 if test $ac_cv_header_stdc = yes; then
29539   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29540   cat >conftest.$ac_ext <<_ACEOF
29541 /* confdefs.h.  */
29542 _ACEOF
29543 cat confdefs.h >>conftest.$ac_ext
29544 cat >>conftest.$ac_ext <<_ACEOF
29545 /* end confdefs.h.  */
29546 #include <string.h>
29547
29548 _ACEOF
29549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29550   $EGREP "memchr" >/dev/null 2>&1; then
29551   :
29552 else
29553   ac_cv_header_stdc=no
29554 fi
29555 rm -f conftest*
29556
29557 fi
29558
29559 if test $ac_cv_header_stdc = yes; then
29560   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29561   cat >conftest.$ac_ext <<_ACEOF
29562 /* confdefs.h.  */
29563 _ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h.  */
29567 #include <stdlib.h>
29568
29569 _ACEOF
29570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29571   $EGREP "free" >/dev/null 2>&1; then
29572   :
29573 else
29574   ac_cv_header_stdc=no
29575 fi
29576 rm -f conftest*
29577
29578 fi
29579
29580 if test $ac_cv_header_stdc = yes; then
29581   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29582   if test "$cross_compiling" = yes; then
29583   :
29584 else
29585   cat >conftest.$ac_ext <<_ACEOF
29586 /* confdefs.h.  */
29587 _ACEOF
29588 cat confdefs.h >>conftest.$ac_ext
29589 cat >>conftest.$ac_ext <<_ACEOF
29590 /* end confdefs.h.  */
29591 #include <ctype.h>
29592 #include <stdlib.h>
29593 #if ((' ' & 0x0FF) == 0x020)
29594 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29595 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29596 #else
29597 # define ISLOWER(c) \
29598                    (('a' <= (c) && (c) <= 'i') \
29599                      || ('j' <= (c) && (c) <= 'r') \
29600                      || ('s' <= (c) && (c) <= 'z'))
29601 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29602 #endif
29603
29604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29605 int
29606 main ()
29607 {
29608   int i;
29609   for (i = 0; i < 256; i++)
29610     if (XOR (islower (i), ISLOWER (i))
29611         || toupper (i) != TOUPPER (i))
29612       return 2;
29613   return 0;
29614 }
29615 _ACEOF
29616 rm -f conftest$ac_exeext
29617 if { (ac_try="$ac_link"
29618 case "(($ac_try" in
29619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29620   *) ac_try_echo=$ac_try;;
29621 esac
29622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29623   (eval "$ac_link") 2>&5
29624   ac_status=$?
29625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29627   { (case "(($ac_try" in
29628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29629   *) ac_try_echo=$ac_try;;
29630 esac
29631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29632   (eval "$ac_try") 2>&5
29633   ac_status=$?
29634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635   (exit $ac_status); }; }; then
29636   :
29637 else
29638   echo "$as_me: program exited with status $ac_status" >&5
29639 echo "$as_me: failed program was:" >&5
29640 sed 's/^/| /' conftest.$ac_ext >&5
29641
29642 ( exit $ac_status )
29643 ac_cv_header_stdc=no
29644 fi
29645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29646 fi
29647
29648
29649 fi
29650 fi
29651 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29652 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29653 if test $ac_cv_header_stdc = yes; then
29654
29655 cat >>confdefs.h <<\_ACEOF
29656 #define STDC_HEADERS 1
29657 _ACEOF
29658
29659 fi
29660
29661 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29662 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29663 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29664   echo $ECHO_N "(cached) $ECHO_C" >&6
29665 else
29666   cat >conftest.$ac_ext <<_ACEOF
29667 /* confdefs.h.  */
29668 _ACEOF
29669 cat confdefs.h >>conftest.$ac_ext
29670 cat >>conftest.$ac_ext <<_ACEOF
29671 /* end confdefs.h.  */
29672 #include <sys/types.h>
29673 #include <sys/wait.h>
29674 #ifndef WEXITSTATUS
29675 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29676 #endif
29677 #ifndef WIFEXITED
29678 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29679 #endif
29680
29681 int
29682 main ()
29683 {
29684   int s;
29685   wait (&s);
29686   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29687   ;
29688   return 0;
29689 }
29690 _ACEOF
29691 rm -f conftest.$ac_objext
29692 if { (ac_try="$ac_compile"
29693 case "(($ac_try" in
29694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29695   *) ac_try_echo=$ac_try;;
29696 esac
29697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29698   (eval "$ac_compile") 2>conftest.er1
29699   ac_status=$?
29700   grep -v '^ *+' conftest.er1 >conftest.err
29701   rm -f conftest.er1
29702   cat conftest.err >&5
29703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704   (exit $ac_status); } &&
29705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29706   { (case "(($ac_try" in
29707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29708   *) ac_try_echo=$ac_try;;
29709 esac
29710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29711   (eval "$ac_try") 2>&5
29712   ac_status=$?
29713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714   (exit $ac_status); }; } &&
29715          { ac_try='test -s conftest.$ac_objext'
29716   { (case "(($ac_try" in
29717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29718   *) ac_try_echo=$ac_try;;
29719 esac
29720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29721   (eval "$ac_try") 2>&5
29722   ac_status=$?
29723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724   (exit $ac_status); }; }; then
29725   ac_cv_header_sys_wait_h=yes
29726 else
29727   echo "$as_me: failed program was:" >&5
29728 sed 's/^/| /' conftest.$ac_ext >&5
29729
29730         ac_cv_header_sys_wait_h=no
29731 fi
29732
29733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29734 fi
29735 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29736 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29737 if test $ac_cv_header_sys_wait_h = yes; then
29738
29739 cat >>confdefs.h <<\_ACEOF
29740 #define HAVE_SYS_WAIT_H 1
29741 _ACEOF
29742
29743 fi
29744
29745 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29746 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29747 if test "${ac_cv_header_time+set}" = set; then
29748   echo $ECHO_N "(cached) $ECHO_C" >&6
29749 else
29750   cat >conftest.$ac_ext <<_ACEOF
29751 /* confdefs.h.  */
29752 _ACEOF
29753 cat confdefs.h >>conftest.$ac_ext
29754 cat >>conftest.$ac_ext <<_ACEOF
29755 /* end confdefs.h.  */
29756 #include <sys/types.h>
29757 #include <sys/time.h>
29758 #include <time.h>
29759
29760 int
29761 main ()
29762 {
29763 if ((struct tm *) 0)
29764 return 0;
29765   ;
29766   return 0;
29767 }
29768 _ACEOF
29769 rm -f conftest.$ac_objext
29770 if { (ac_try="$ac_compile"
29771 case "(($ac_try" in
29772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29773   *) ac_try_echo=$ac_try;;
29774 esac
29775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29776   (eval "$ac_compile") 2>conftest.er1
29777   ac_status=$?
29778   grep -v '^ *+' conftest.er1 >conftest.err
29779   rm -f conftest.er1
29780   cat conftest.err >&5
29781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29782   (exit $ac_status); } &&
29783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29784   { (case "(($ac_try" in
29785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29786   *) ac_try_echo=$ac_try;;
29787 esac
29788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29789   (eval "$ac_try") 2>&5
29790   ac_status=$?
29791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792   (exit $ac_status); }; } &&
29793          { ac_try='test -s conftest.$ac_objext'
29794   { (case "(($ac_try" in
29795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29796   *) ac_try_echo=$ac_try;;
29797 esac
29798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29799   (eval "$ac_try") 2>&5
29800   ac_status=$?
29801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802   (exit $ac_status); }; }; then
29803   ac_cv_header_time=yes
29804 else
29805   echo "$as_me: failed program was:" >&5
29806 sed 's/^/| /' conftest.$ac_ext >&5
29807
29808         ac_cv_header_time=no
29809 fi
29810
29811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29812 fi
29813 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29814 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29815 if test $ac_cv_header_time = yes; then
29816
29817 cat >>confdefs.h <<\_ACEOF
29818 #define TIME_WITH_SYS_TIME 1
29819 _ACEOF
29820
29821 fi
29822
29823
29824
29825
29826
29827
29828
29829
29830 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29831 do
29832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29834   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29837   echo $ECHO_N "(cached) $ECHO_C" >&6
29838 fi
29839 ac_res=`eval echo '${'$as_ac_Header'}'`
29840                { echo "$as_me:$LINENO: result: $ac_res" >&5
29841 echo "${ECHO_T}$ac_res" >&6; }
29842 else
29843   # Is the header compilable?
29844 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29846 cat >conftest.$ac_ext <<_ACEOF
29847 /* confdefs.h.  */
29848 _ACEOF
29849 cat confdefs.h >>conftest.$ac_ext
29850 cat >>conftest.$ac_ext <<_ACEOF
29851 /* end confdefs.h.  */
29852 $ac_includes_default
29853 #include <$ac_header>
29854 _ACEOF
29855 rm -f conftest.$ac_objext
29856 if { (ac_try="$ac_compile"
29857 case "(($ac_try" in
29858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29859   *) ac_try_echo=$ac_try;;
29860 esac
29861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29862   (eval "$ac_compile") 2>conftest.er1
29863   ac_status=$?
29864   grep -v '^ *+' conftest.er1 >conftest.err
29865   rm -f conftest.er1
29866   cat conftest.err >&5
29867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868   (exit $ac_status); } &&
29869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29870   { (case "(($ac_try" in
29871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29872   *) ac_try_echo=$ac_try;;
29873 esac
29874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29875   (eval "$ac_try") 2>&5
29876   ac_status=$?
29877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878   (exit $ac_status); }; } &&
29879          { ac_try='test -s conftest.$ac_objext'
29880   { (case "(($ac_try" in
29881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882   *) ac_try_echo=$ac_try;;
29883 esac
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885   (eval "$ac_try") 2>&5
29886   ac_status=$?
29887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888   (exit $ac_status); }; }; then
29889   ac_header_compiler=yes
29890 else
29891   echo "$as_me: failed program was:" >&5
29892 sed 's/^/| /' conftest.$ac_ext >&5
29893
29894         ac_header_compiler=no
29895 fi
29896
29897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29899 echo "${ECHO_T}$ac_header_compiler" >&6; }
29900
29901 # Is the header present?
29902 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29904 cat >conftest.$ac_ext <<_ACEOF
29905 /* confdefs.h.  */
29906 _ACEOF
29907 cat confdefs.h >>conftest.$ac_ext
29908 cat >>conftest.$ac_ext <<_ACEOF
29909 /* end confdefs.h.  */
29910 #include <$ac_header>
29911 _ACEOF
29912 if { (ac_try="$ac_cpp conftest.$ac_ext"
29913 case "(($ac_try" in
29914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29915   *) ac_try_echo=$ac_try;;
29916 esac
29917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29919   ac_status=$?
29920   grep -v '^ *+' conftest.er1 >conftest.err
29921   rm -f conftest.er1
29922   cat conftest.err >&5
29923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924   (exit $ac_status); } >/dev/null; then
29925   if test -s conftest.err; then
29926     ac_cpp_err=$ac_c_preproc_warn_flag
29927     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29928   else
29929     ac_cpp_err=
29930   fi
29931 else
29932   ac_cpp_err=yes
29933 fi
29934 if test -z "$ac_cpp_err"; then
29935   ac_header_preproc=yes
29936 else
29937   echo "$as_me: failed program was:" >&5
29938 sed 's/^/| /' conftest.$ac_ext >&5
29939
29940   ac_header_preproc=no
29941 fi
29942
29943 rm -f conftest.err conftest.$ac_ext
29944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29945 echo "${ECHO_T}$ac_header_preproc" >&6; }
29946
29947 # So?  What about this header?
29948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29949   yes:no: )
29950     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29954     ac_header_preproc=yes
29955     ;;
29956   no:yes:* )
29957     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29959     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29960 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29961     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29963     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29964 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29965     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29967     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29969     ( cat <<\_ASBOX
29970 ## ----------------------------------- ##
29971 ## Report this to llvmbugs@cs.uiuc.edu ##
29972 ## ----------------------------------- ##
29973 _ASBOX
29974      ) | sed "s/^/$as_me: WARNING:     /" >&2
29975     ;;
29976 esac
29977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29980   echo $ECHO_N "(cached) $ECHO_C" >&6
29981 else
29982   eval "$as_ac_Header=\$ac_header_preproc"
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
29988 fi
29989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29990   cat >>confdefs.h <<_ACEOF
29991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29992 _ACEOF
29993
29994 fi
29995
29996 done
29997
29998
29999
30000
30001
30002
30003
30004 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
30005 do
30006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30008   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30011   echo $ECHO_N "(cached) $ECHO_C" >&6
30012 fi
30013 ac_res=`eval echo '${'$as_ac_Header'}'`
30014                { echo "$as_me:$LINENO: result: $ac_res" >&5
30015 echo "${ECHO_T}$ac_res" >&6; }
30016 else
30017   # Is the header compilable?
30018 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30020 cat >conftest.$ac_ext <<_ACEOF
30021 /* confdefs.h.  */
30022 _ACEOF
30023 cat confdefs.h >>conftest.$ac_ext
30024 cat >>conftest.$ac_ext <<_ACEOF
30025 /* end confdefs.h.  */
30026 $ac_includes_default
30027 #include <$ac_header>
30028 _ACEOF
30029 rm -f conftest.$ac_objext
30030 if { (ac_try="$ac_compile"
30031 case "(($ac_try" in
30032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30033   *) ac_try_echo=$ac_try;;
30034 esac
30035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30036   (eval "$ac_compile") 2>conftest.er1
30037   ac_status=$?
30038   grep -v '^ *+' conftest.er1 >conftest.err
30039   rm -f conftest.er1
30040   cat conftest.err >&5
30041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042   (exit $ac_status); } &&
30043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30044   { (case "(($ac_try" in
30045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30046   *) ac_try_echo=$ac_try;;
30047 esac
30048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30049   (eval "$ac_try") 2>&5
30050   ac_status=$?
30051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052   (exit $ac_status); }; } &&
30053          { ac_try='test -s conftest.$ac_objext'
30054   { (case "(($ac_try" in
30055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30056   *) ac_try_echo=$ac_try;;
30057 esac
30058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30059   (eval "$ac_try") 2>&5
30060   ac_status=$?
30061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062   (exit $ac_status); }; }; then
30063   ac_header_compiler=yes
30064 else
30065   echo "$as_me: failed program was:" >&5
30066 sed 's/^/| /' conftest.$ac_ext >&5
30067
30068         ac_header_compiler=no
30069 fi
30070
30071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30073 echo "${ECHO_T}$ac_header_compiler" >&6; }
30074
30075 # Is the header present?
30076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30078 cat >conftest.$ac_ext <<_ACEOF
30079 /* confdefs.h.  */
30080 _ACEOF
30081 cat confdefs.h >>conftest.$ac_ext
30082 cat >>conftest.$ac_ext <<_ACEOF
30083 /* end confdefs.h.  */
30084 #include <$ac_header>
30085 _ACEOF
30086 if { (ac_try="$ac_cpp conftest.$ac_ext"
30087 case "(($ac_try" in
30088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30089   *) ac_try_echo=$ac_try;;
30090 esac
30091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30092   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30093   ac_status=$?
30094   grep -v '^ *+' conftest.er1 >conftest.err
30095   rm -f conftest.er1
30096   cat conftest.err >&5
30097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098   (exit $ac_status); } >/dev/null; then
30099   if test -s conftest.err; then
30100     ac_cpp_err=$ac_c_preproc_warn_flag
30101     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30102   else
30103     ac_cpp_err=
30104   fi
30105 else
30106   ac_cpp_err=yes
30107 fi
30108 if test -z "$ac_cpp_err"; then
30109   ac_header_preproc=yes
30110 else
30111   echo "$as_me: failed program was:" >&5
30112 sed 's/^/| /' conftest.$ac_ext >&5
30113
30114   ac_header_preproc=no
30115 fi
30116
30117 rm -f conftest.err conftest.$ac_ext
30118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30119 echo "${ECHO_T}$ac_header_preproc" >&6; }
30120
30121 # So?  What about this header?
30122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30123   yes:no: )
30124     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30128     ac_header_preproc=yes
30129     ;;
30130   no:yes:* )
30131     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30133     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30134 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30135     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30137     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30138 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30139     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30141     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30143     ( cat <<\_ASBOX
30144 ## ----------------------------------- ##
30145 ## Report this to llvmbugs@cs.uiuc.edu ##
30146 ## ----------------------------------- ##
30147 _ASBOX
30148      ) | sed "s/^/$as_me: WARNING:     /" >&2
30149     ;;
30150 esac
30151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30154   echo $ECHO_N "(cached) $ECHO_C" >&6
30155 else
30156   eval "$as_ac_Header=\$ac_header_preproc"
30157 fi
30158 ac_res=`eval echo '${'$as_ac_Header'}'`
30159                { echo "$as_me:$LINENO: result: $ac_res" >&5
30160 echo "${ECHO_T}$ac_res" >&6; }
30161
30162 fi
30163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30164   cat >>confdefs.h <<_ACEOF
30165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30166 _ACEOF
30167
30168 fi
30169
30170 done
30171
30172
30173
30174 for ac_header in utime.h windows.h
30175 do
30176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30178   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30181   echo $ECHO_N "(cached) $ECHO_C" >&6
30182 fi
30183 ac_res=`eval echo '${'$as_ac_Header'}'`
30184                { echo "$as_me:$LINENO: result: $ac_res" >&5
30185 echo "${ECHO_T}$ac_res" >&6; }
30186 else
30187   # Is the header compilable?
30188 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30190 cat >conftest.$ac_ext <<_ACEOF
30191 /* confdefs.h.  */
30192 _ACEOF
30193 cat confdefs.h >>conftest.$ac_ext
30194 cat >>conftest.$ac_ext <<_ACEOF
30195 /* end confdefs.h.  */
30196 $ac_includes_default
30197 #include <$ac_header>
30198 _ACEOF
30199 rm -f conftest.$ac_objext
30200 if { (ac_try="$ac_compile"
30201 case "(($ac_try" in
30202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30203   *) ac_try_echo=$ac_try;;
30204 esac
30205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30206   (eval "$ac_compile") 2>conftest.er1
30207   ac_status=$?
30208   grep -v '^ *+' conftest.er1 >conftest.err
30209   rm -f conftest.er1
30210   cat conftest.err >&5
30211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212   (exit $ac_status); } &&
30213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30214   { (case "(($ac_try" in
30215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30216   *) ac_try_echo=$ac_try;;
30217 esac
30218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30219   (eval "$ac_try") 2>&5
30220   ac_status=$?
30221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222   (exit $ac_status); }; } &&
30223          { ac_try='test -s conftest.$ac_objext'
30224   { (case "(($ac_try" in
30225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30226   *) ac_try_echo=$ac_try;;
30227 esac
30228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30229   (eval "$ac_try") 2>&5
30230   ac_status=$?
30231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232   (exit $ac_status); }; }; then
30233   ac_header_compiler=yes
30234 else
30235   echo "$as_me: failed program was:" >&5
30236 sed 's/^/| /' conftest.$ac_ext >&5
30237
30238         ac_header_compiler=no
30239 fi
30240
30241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30243 echo "${ECHO_T}$ac_header_compiler" >&6; }
30244
30245 # Is the header present?
30246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30248 cat >conftest.$ac_ext <<_ACEOF
30249 /* confdefs.h.  */
30250 _ACEOF
30251 cat confdefs.h >>conftest.$ac_ext
30252 cat >>conftest.$ac_ext <<_ACEOF
30253 /* end confdefs.h.  */
30254 #include <$ac_header>
30255 _ACEOF
30256 if { (ac_try="$ac_cpp conftest.$ac_ext"
30257 case "(($ac_try" in
30258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30259   *) ac_try_echo=$ac_try;;
30260 esac
30261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30262   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30263   ac_status=$?
30264   grep -v '^ *+' conftest.er1 >conftest.err
30265   rm -f conftest.er1
30266   cat conftest.err >&5
30267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268   (exit $ac_status); } >/dev/null; then
30269   if test -s conftest.err; then
30270     ac_cpp_err=$ac_c_preproc_warn_flag
30271     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30272   else
30273     ac_cpp_err=
30274   fi
30275 else
30276   ac_cpp_err=yes
30277 fi
30278 if test -z "$ac_cpp_err"; then
30279   ac_header_preproc=yes
30280 else
30281   echo "$as_me: failed program was:" >&5
30282 sed 's/^/| /' conftest.$ac_ext >&5
30283
30284   ac_header_preproc=no
30285 fi
30286
30287 rm -f conftest.err conftest.$ac_ext
30288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30289 echo "${ECHO_T}$ac_header_preproc" >&6; }
30290
30291 # So?  What about this header?
30292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30293   yes:no: )
30294     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30298     ac_header_preproc=yes
30299     ;;
30300   no:yes:* )
30301     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30303     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30304 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30305     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30307     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30308 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30311     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30313     ( cat <<\_ASBOX
30314 ## ----------------------------------- ##
30315 ## Report this to llvmbugs@cs.uiuc.edu ##
30316 ## ----------------------------------- ##
30317 _ASBOX
30318      ) | sed "s/^/$as_me: WARNING:     /" >&2
30319     ;;
30320 esac
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 else
30326   eval "$as_ac_Header=\$ac_header_preproc"
30327 fi
30328 ac_res=`eval echo '${'$as_ac_Header'}'`
30329                { echo "$as_me:$LINENO: result: $ac_res" >&5
30330 echo "${ECHO_T}$ac_res" >&6; }
30331
30332 fi
30333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30334   cat >>confdefs.h <<_ACEOF
30335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30336 _ACEOF
30337
30338 fi
30339
30340 done
30341
30342
30343
30344
30345
30346 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30347 do
30348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30350   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30353   echo $ECHO_N "(cached) $ECHO_C" >&6
30354 fi
30355 ac_res=`eval echo '${'$as_ac_Header'}'`
30356                { echo "$as_me:$LINENO: result: $ac_res" >&5
30357 echo "${ECHO_T}$ac_res" >&6; }
30358 else
30359   # Is the header compilable?
30360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30362 cat >conftest.$ac_ext <<_ACEOF
30363 /* confdefs.h.  */
30364 _ACEOF
30365 cat confdefs.h >>conftest.$ac_ext
30366 cat >>conftest.$ac_ext <<_ACEOF
30367 /* end confdefs.h.  */
30368 $ac_includes_default
30369 #include <$ac_header>
30370 _ACEOF
30371 rm -f conftest.$ac_objext
30372 if { (ac_try="$ac_compile"
30373 case "(($ac_try" in
30374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30375   *) ac_try_echo=$ac_try;;
30376 esac
30377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30378   (eval "$ac_compile") 2>conftest.er1
30379   ac_status=$?
30380   grep -v '^ *+' conftest.er1 >conftest.err
30381   rm -f conftest.er1
30382   cat conftest.err >&5
30383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384   (exit $ac_status); } &&
30385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30386   { (case "(($ac_try" in
30387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30388   *) ac_try_echo=$ac_try;;
30389 esac
30390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30391   (eval "$ac_try") 2>&5
30392   ac_status=$?
30393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394   (exit $ac_status); }; } &&
30395          { ac_try='test -s conftest.$ac_objext'
30396   { (case "(($ac_try" in
30397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30398   *) ac_try_echo=$ac_try;;
30399 esac
30400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30401   (eval "$ac_try") 2>&5
30402   ac_status=$?
30403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404   (exit $ac_status); }; }; then
30405   ac_header_compiler=yes
30406 else
30407   echo "$as_me: failed program was:" >&5
30408 sed 's/^/| /' conftest.$ac_ext >&5
30409
30410         ac_header_compiler=no
30411 fi
30412
30413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30415 echo "${ECHO_T}$ac_header_compiler" >&6; }
30416
30417 # Is the header present?
30418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30420 cat >conftest.$ac_ext <<_ACEOF
30421 /* confdefs.h.  */
30422 _ACEOF
30423 cat confdefs.h >>conftest.$ac_ext
30424 cat >>conftest.$ac_ext <<_ACEOF
30425 /* end confdefs.h.  */
30426 #include <$ac_header>
30427 _ACEOF
30428 if { (ac_try="$ac_cpp conftest.$ac_ext"
30429 case "(($ac_try" in
30430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30431   *) ac_try_echo=$ac_try;;
30432 esac
30433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30435   ac_status=$?
30436   grep -v '^ *+' conftest.er1 >conftest.err
30437   rm -f conftest.er1
30438   cat conftest.err >&5
30439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440   (exit $ac_status); } >/dev/null; then
30441   if test -s conftest.err; then
30442     ac_cpp_err=$ac_c_preproc_warn_flag
30443     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30444   else
30445     ac_cpp_err=
30446   fi
30447 else
30448   ac_cpp_err=yes
30449 fi
30450 if test -z "$ac_cpp_err"; then
30451   ac_header_preproc=yes
30452 else
30453   echo "$as_me: failed program was:" >&5
30454 sed 's/^/| /' conftest.$ac_ext >&5
30455
30456   ac_header_preproc=no
30457 fi
30458
30459 rm -f conftest.err conftest.$ac_ext
30460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30461 echo "${ECHO_T}$ac_header_preproc" >&6; }
30462
30463 # So?  What about this header?
30464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30465   yes:no: )
30466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30470     ac_header_preproc=yes
30471     ;;
30472   no:yes:* )
30473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30475     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30476 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30477     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30479     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30480 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30483     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30485     ( cat <<\_ASBOX
30486 ## ----------------------------------- ##
30487 ## Report this to llvmbugs@cs.uiuc.edu ##
30488 ## ----------------------------------- ##
30489 _ASBOX
30490      ) | sed "s/^/$as_me: WARNING:     /" >&2
30491     ;;
30492 esac
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 else
30498   eval "$as_ac_Header=\$ac_header_preproc"
30499 fi
30500 ac_res=`eval echo '${'$as_ac_Header'}'`
30501                { echo "$as_me:$LINENO: result: $ac_res" >&5
30502 echo "${ECHO_T}$ac_res" >&6; }
30503
30504 fi
30505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30506   cat >>confdefs.h <<_ACEOF
30507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30508 _ACEOF
30509
30510 fi
30511
30512 done
30513
30514
30515
30516
30517
30518 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30519 do
30520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30522   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30525   echo $ECHO_N "(cached) $ECHO_C" >&6
30526 fi
30527 ac_res=`eval echo '${'$as_ac_Header'}'`
30528                { echo "$as_me:$LINENO: result: $ac_res" >&5
30529 echo "${ECHO_T}$ac_res" >&6; }
30530 else
30531   # Is the header compilable?
30532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30534 cat >conftest.$ac_ext <<_ACEOF
30535 /* confdefs.h.  */
30536 _ACEOF
30537 cat confdefs.h >>conftest.$ac_ext
30538 cat >>conftest.$ac_ext <<_ACEOF
30539 /* end confdefs.h.  */
30540 $ac_includes_default
30541 #include <$ac_header>
30542 _ACEOF
30543 rm -f conftest.$ac_objext
30544 if { (ac_try="$ac_compile"
30545 case "(($ac_try" in
30546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30547   *) ac_try_echo=$ac_try;;
30548 esac
30549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30550   (eval "$ac_compile") 2>conftest.er1
30551   ac_status=$?
30552   grep -v '^ *+' conftest.er1 >conftest.err
30553   rm -f conftest.er1
30554   cat conftest.err >&5
30555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556   (exit $ac_status); } &&
30557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30558   { (case "(($ac_try" in
30559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30560   *) ac_try_echo=$ac_try;;
30561 esac
30562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30563   (eval "$ac_try") 2>&5
30564   ac_status=$?
30565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30566   (exit $ac_status); }; } &&
30567          { ac_try='test -s conftest.$ac_objext'
30568   { (case "(($ac_try" in
30569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30570   *) ac_try_echo=$ac_try;;
30571 esac
30572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30573   (eval "$ac_try") 2>&5
30574   ac_status=$?
30575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576   (exit $ac_status); }; }; then
30577   ac_header_compiler=yes
30578 else
30579   echo "$as_me: failed program was:" >&5
30580 sed 's/^/| /' conftest.$ac_ext >&5
30581
30582         ac_header_compiler=no
30583 fi
30584
30585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30587 echo "${ECHO_T}$ac_header_compiler" >&6; }
30588
30589 # Is the header present?
30590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30592 cat >conftest.$ac_ext <<_ACEOF
30593 /* confdefs.h.  */
30594 _ACEOF
30595 cat confdefs.h >>conftest.$ac_ext
30596 cat >>conftest.$ac_ext <<_ACEOF
30597 /* end confdefs.h.  */
30598 #include <$ac_header>
30599 _ACEOF
30600 if { (ac_try="$ac_cpp conftest.$ac_ext"
30601 case "(($ac_try" in
30602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30603   *) ac_try_echo=$ac_try;;
30604 esac
30605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30607   ac_status=$?
30608   grep -v '^ *+' conftest.er1 >conftest.err
30609   rm -f conftest.er1
30610   cat conftest.err >&5
30611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612   (exit $ac_status); } >/dev/null; then
30613   if test -s conftest.err; then
30614     ac_cpp_err=$ac_c_preproc_warn_flag
30615     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30616   else
30617     ac_cpp_err=
30618   fi
30619 else
30620   ac_cpp_err=yes
30621 fi
30622 if test -z "$ac_cpp_err"; then
30623   ac_header_preproc=yes
30624 else
30625   echo "$as_me: failed program was:" >&5
30626 sed 's/^/| /' conftest.$ac_ext >&5
30627
30628   ac_header_preproc=no
30629 fi
30630
30631 rm -f conftest.err conftest.$ac_ext
30632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30633 echo "${ECHO_T}$ac_header_preproc" >&6; }
30634
30635 # So?  What about this header?
30636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30637   yes:no: )
30638     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30642     ac_header_preproc=yes
30643     ;;
30644   no:yes:* )
30645     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30647     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30648 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30649     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30651     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30652 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30655     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30657     ( cat <<\_ASBOX
30658 ## ----------------------------------- ##
30659 ## Report this to llvmbugs@cs.uiuc.edu ##
30660 ## ----------------------------------- ##
30661 _ASBOX
30662      ) | sed "s/^/$as_me: WARNING:     /" >&2
30663     ;;
30664 esac
30665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30668   echo $ECHO_N "(cached) $ECHO_C" >&6
30669 else
30670   eval "$as_ac_Header=\$ac_header_preproc"
30671 fi
30672 ac_res=`eval echo '${'$as_ac_Header'}'`
30673                { echo "$as_me:$LINENO: result: $ac_res" >&5
30674 echo "${ECHO_T}$ac_res" >&6; }
30675
30676 fi
30677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30678   cat >>confdefs.h <<_ACEOF
30679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30680 _ACEOF
30681
30682 fi
30683
30684 done
30685
30686 if test "$ENABLE_THREADS" -eq 1 ; then
30687
30688 for ac_header in pthread.h
30689 do
30690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30692   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30695   echo $ECHO_N "(cached) $ECHO_C" >&6
30696 fi
30697 ac_res=`eval echo '${'$as_ac_Header'}'`
30698                { echo "$as_me:$LINENO: result: $ac_res" >&5
30699 echo "${ECHO_T}$ac_res" >&6; }
30700 else
30701   # Is the header compilable?
30702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30704 cat >conftest.$ac_ext <<_ACEOF
30705 /* confdefs.h.  */
30706 _ACEOF
30707 cat confdefs.h >>conftest.$ac_ext
30708 cat >>conftest.$ac_ext <<_ACEOF
30709 /* end confdefs.h.  */
30710 $ac_includes_default
30711 #include <$ac_header>
30712 _ACEOF
30713 rm -f conftest.$ac_objext
30714 if { (ac_try="$ac_compile"
30715 case "(($ac_try" in
30716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30717   *) ac_try_echo=$ac_try;;
30718 esac
30719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30720   (eval "$ac_compile") 2>conftest.er1
30721   ac_status=$?
30722   grep -v '^ *+' conftest.er1 >conftest.err
30723   rm -f conftest.er1
30724   cat conftest.err >&5
30725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726   (exit $ac_status); } &&
30727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30728   { (case "(($ac_try" in
30729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30730   *) ac_try_echo=$ac_try;;
30731 esac
30732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30733   (eval "$ac_try") 2>&5
30734   ac_status=$?
30735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736   (exit $ac_status); }; } &&
30737          { ac_try='test -s conftest.$ac_objext'
30738   { (case "(($ac_try" in
30739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30740   *) ac_try_echo=$ac_try;;
30741 esac
30742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30743   (eval "$ac_try") 2>&5
30744   ac_status=$?
30745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746   (exit $ac_status); }; }; then
30747   ac_header_compiler=yes
30748 else
30749   echo "$as_me: failed program was:" >&5
30750 sed 's/^/| /' conftest.$ac_ext >&5
30751
30752         ac_header_compiler=no
30753 fi
30754
30755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30757 echo "${ECHO_T}$ac_header_compiler" >&6; }
30758
30759 # Is the header present?
30760 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30762 cat >conftest.$ac_ext <<_ACEOF
30763 /* confdefs.h.  */
30764 _ACEOF
30765 cat confdefs.h >>conftest.$ac_ext
30766 cat >>conftest.$ac_ext <<_ACEOF
30767 /* end confdefs.h.  */
30768 #include <$ac_header>
30769 _ACEOF
30770 if { (ac_try="$ac_cpp conftest.$ac_ext"
30771 case "(($ac_try" in
30772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30773   *) ac_try_echo=$ac_try;;
30774 esac
30775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30777   ac_status=$?
30778   grep -v '^ *+' conftest.er1 >conftest.err
30779   rm -f conftest.er1
30780   cat conftest.err >&5
30781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782   (exit $ac_status); } >/dev/null; then
30783   if test -s conftest.err; then
30784     ac_cpp_err=$ac_c_preproc_warn_flag
30785     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30786   else
30787     ac_cpp_err=
30788   fi
30789 else
30790   ac_cpp_err=yes
30791 fi
30792 if test -z "$ac_cpp_err"; then
30793   ac_header_preproc=yes
30794 else
30795   echo "$as_me: failed program was:" >&5
30796 sed 's/^/| /' conftest.$ac_ext >&5
30797
30798   ac_header_preproc=no
30799 fi
30800
30801 rm -f conftest.err conftest.$ac_ext
30802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30803 echo "${ECHO_T}$ac_header_preproc" >&6; }
30804
30805 # So?  What about this header?
30806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30807   yes:no: )
30808     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30812     ac_header_preproc=yes
30813     ;;
30814   no:yes:* )
30815     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30817     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30818 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30819     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30821     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30822 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30825     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30827     ( cat <<\_ASBOX
30828 ## ----------------------------------- ##
30829 ## Report this to llvmbugs@cs.uiuc.edu ##
30830 ## ----------------------------------- ##
30831 _ASBOX
30832      ) | sed "s/^/$as_me: WARNING:     /" >&2
30833     ;;
30834 esac
30835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30838   echo $ECHO_N "(cached) $ECHO_C" >&6
30839 else
30840   eval "$as_ac_Header=\$ac_header_preproc"
30841 fi
30842 ac_res=`eval echo '${'$as_ac_Header'}'`
30843                { echo "$as_me:$LINENO: result: $ac_res" >&5
30844 echo "${ECHO_T}$ac_res" >&6; }
30845
30846 fi
30847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30848   cat >>confdefs.h <<_ACEOF
30849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30850 _ACEOF
30851  HAVE_PTHREAD=1
30852
30853 else
30854   HAVE_PTHREAD=0
30855
30856 fi
30857
30858 done
30859
30860 else
30861   HAVE_PTHREAD=0
30862
30863 fi
30864
30865 if test "$llvm_cv_enable_libffi" = "yes" ; then
30866
30867
30868 for ac_header in ffi.h ffi/ffi.h
30869 do
30870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30872   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30875   echo $ECHO_N "(cached) $ECHO_C" >&6
30876 fi
30877 ac_res=`eval echo '${'$as_ac_Header'}'`
30878                { echo "$as_me:$LINENO: result: $ac_res" >&5
30879 echo "${ECHO_T}$ac_res" >&6; }
30880 else
30881   # Is the header compilable?
30882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30884 cat >conftest.$ac_ext <<_ACEOF
30885 /* confdefs.h.  */
30886 _ACEOF
30887 cat confdefs.h >>conftest.$ac_ext
30888 cat >>conftest.$ac_ext <<_ACEOF
30889 /* end confdefs.h.  */
30890 $ac_includes_default
30891 #include <$ac_header>
30892 _ACEOF
30893 rm -f conftest.$ac_objext
30894 if { (ac_try="$ac_compile"
30895 case "(($ac_try" in
30896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30897   *) ac_try_echo=$ac_try;;
30898 esac
30899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30900   (eval "$ac_compile") 2>conftest.er1
30901   ac_status=$?
30902   grep -v '^ *+' conftest.er1 >conftest.err
30903   rm -f conftest.er1
30904   cat conftest.err >&5
30905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906   (exit $ac_status); } &&
30907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30908   { (case "(($ac_try" in
30909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30910   *) ac_try_echo=$ac_try;;
30911 esac
30912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30913   (eval "$ac_try") 2>&5
30914   ac_status=$?
30915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916   (exit $ac_status); }; } &&
30917          { ac_try='test -s conftest.$ac_objext'
30918   { (case "(($ac_try" in
30919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30920   *) ac_try_echo=$ac_try;;
30921 esac
30922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30923   (eval "$ac_try") 2>&5
30924   ac_status=$?
30925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30926   (exit $ac_status); }; }; then
30927   ac_header_compiler=yes
30928 else
30929   echo "$as_me: failed program was:" >&5
30930 sed 's/^/| /' conftest.$ac_ext >&5
30931
30932         ac_header_compiler=no
30933 fi
30934
30935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30937 echo "${ECHO_T}$ac_header_compiler" >&6; }
30938
30939 # Is the header present?
30940 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30942 cat >conftest.$ac_ext <<_ACEOF
30943 /* confdefs.h.  */
30944 _ACEOF
30945 cat confdefs.h >>conftest.$ac_ext
30946 cat >>conftest.$ac_ext <<_ACEOF
30947 /* end confdefs.h.  */
30948 #include <$ac_header>
30949 _ACEOF
30950 if { (ac_try="$ac_cpp conftest.$ac_ext"
30951 case "(($ac_try" in
30952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953   *) ac_try_echo=$ac_try;;
30954 esac
30955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30957   ac_status=$?
30958   grep -v '^ *+' conftest.er1 >conftest.err
30959   rm -f conftest.er1
30960   cat conftest.err >&5
30961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30962   (exit $ac_status); } >/dev/null; then
30963   if test -s conftest.err; then
30964     ac_cpp_err=$ac_c_preproc_warn_flag
30965     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30966   else
30967     ac_cpp_err=
30968   fi
30969 else
30970   ac_cpp_err=yes
30971 fi
30972 if test -z "$ac_cpp_err"; then
30973   ac_header_preproc=yes
30974 else
30975   echo "$as_me: failed program was:" >&5
30976 sed 's/^/| /' conftest.$ac_ext >&5
30977
30978   ac_header_preproc=no
30979 fi
30980
30981 rm -f conftest.err conftest.$ac_ext
30982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30983 echo "${ECHO_T}$ac_header_preproc" >&6; }
30984
30985 # So?  What about this header?
30986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30987   yes:no: )
30988     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30992     ac_header_preproc=yes
30993     ;;
30994   no:yes:* )
30995     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30997     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30998 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30999     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31001     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31002 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31005     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31007     ( cat <<\_ASBOX
31008 ## ----------------------------------- ##
31009 ## Report this to llvmbugs@cs.uiuc.edu ##
31010 ## ----------------------------------- ##
31011 _ASBOX
31012      ) | sed "s/^/$as_me: WARNING:     /" >&2
31013     ;;
31014 esac
31015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31018   echo $ECHO_N "(cached) $ECHO_C" >&6
31019 else
31020   eval "$as_ac_Header=\$ac_header_preproc"
31021 fi
31022 ac_res=`eval echo '${'$as_ac_Header'}'`
31023                { echo "$as_me:$LINENO: result: $ac_res" >&5
31024 echo "${ECHO_T}$ac_res" >&6; }
31025
31026 fi
31027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31028   cat >>confdefs.h <<_ACEOF
31029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31030 _ACEOF
31031
31032 fi
31033
31034 done
31035
31036 fi
31037
31038
31039
31040   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31041 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31042 if test "${ac_cv_huge_val_sanity+set}" = set; then
31043   echo $ECHO_N "(cached) $ECHO_C" >&6
31044 else
31045
31046     ac_ext=cpp
31047 ac_cpp='$CXXCPP $CPPFLAGS'
31048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31051
31052     CXXFLAGS=-pedantic
31053     if test "$cross_compiling" = yes; then
31054   ac_cv_huge_val_sanity=yes
31055 else
31056   cat >conftest.$ac_ext <<_ACEOF
31057 /* confdefs.h.  */
31058 _ACEOF
31059 cat confdefs.h >>conftest.$ac_ext
31060 cat >>conftest.$ac_ext <<_ACEOF
31061 /* end confdefs.h.  */
31062 #include <math.h>
31063 int
31064 main ()
31065 {
31066 double x = HUGE_VAL; return x != x;
31067   ;
31068   return 0;
31069 }
31070 _ACEOF
31071 rm -f conftest$ac_exeext
31072 if { (ac_try="$ac_link"
31073 case "(($ac_try" in
31074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31075   *) ac_try_echo=$ac_try;;
31076 esac
31077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31078   (eval "$ac_link") 2>&5
31079   ac_status=$?
31080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31082   { (case "(($ac_try" in
31083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31084   *) ac_try_echo=$ac_try;;
31085 esac
31086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31087   (eval "$ac_try") 2>&5
31088   ac_status=$?
31089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31090   (exit $ac_status); }; }; then
31091   ac_cv_huge_val_sanity=yes
31092 else
31093   echo "$as_me: program exited with status $ac_status" >&5
31094 echo "$as_me: failed program was:" >&5
31095 sed 's/^/| /' conftest.$ac_ext >&5
31096
31097 ( exit $ac_status )
31098 ac_cv_huge_val_sanity=no
31099 fi
31100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31101 fi
31102
31103
31104     ac_ext=c
31105 ac_cpp='$CPP $CPPFLAGS'
31106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31109
31110
31111 fi
31112 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31113 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31114   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31115
31116
31117 { echo "$as_me:$LINENO: checking for pid_t" >&5
31118 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31119 if test "${ac_cv_type_pid_t+set}" = set; then
31120   echo $ECHO_N "(cached) $ECHO_C" >&6
31121 else
31122   cat >conftest.$ac_ext <<_ACEOF
31123 /* confdefs.h.  */
31124 _ACEOF
31125 cat confdefs.h >>conftest.$ac_ext
31126 cat >>conftest.$ac_ext <<_ACEOF
31127 /* end confdefs.h.  */
31128 $ac_includes_default
31129 typedef pid_t ac__type_new_;
31130 int
31131 main ()
31132 {
31133 if ((ac__type_new_ *) 0)
31134   return 0;
31135 if (sizeof (ac__type_new_))
31136   return 0;
31137   ;
31138   return 0;
31139 }
31140 _ACEOF
31141 rm -f conftest.$ac_objext
31142 if { (ac_try="$ac_compile"
31143 case "(($ac_try" in
31144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31145   *) ac_try_echo=$ac_try;;
31146 esac
31147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31148   (eval "$ac_compile") 2>conftest.er1
31149   ac_status=$?
31150   grep -v '^ *+' conftest.er1 >conftest.err
31151   rm -f conftest.er1
31152   cat conftest.err >&5
31153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31154   (exit $ac_status); } &&
31155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31156   { (case "(($ac_try" in
31157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31158   *) ac_try_echo=$ac_try;;
31159 esac
31160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31161   (eval "$ac_try") 2>&5
31162   ac_status=$?
31163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164   (exit $ac_status); }; } &&
31165          { ac_try='test -s conftest.$ac_objext'
31166   { (case "(($ac_try" in
31167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31168   *) ac_try_echo=$ac_try;;
31169 esac
31170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31171   (eval "$ac_try") 2>&5
31172   ac_status=$?
31173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174   (exit $ac_status); }; }; then
31175   ac_cv_type_pid_t=yes
31176 else
31177   echo "$as_me: failed program was:" >&5
31178 sed 's/^/| /' conftest.$ac_ext >&5
31179
31180         ac_cv_type_pid_t=no
31181 fi
31182
31183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31184 fi
31185 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31186 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31187 if test $ac_cv_type_pid_t = yes; then
31188   :
31189 else
31190
31191 cat >>confdefs.h <<_ACEOF
31192 #define pid_t int
31193 _ACEOF
31194
31195 fi
31196
31197 { echo "$as_me:$LINENO: checking for size_t" >&5
31198 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31199 if test "${ac_cv_type_size_t+set}" = set; then
31200   echo $ECHO_N "(cached) $ECHO_C" >&6
31201 else
31202   cat >conftest.$ac_ext <<_ACEOF
31203 /* confdefs.h.  */
31204 _ACEOF
31205 cat confdefs.h >>conftest.$ac_ext
31206 cat >>conftest.$ac_ext <<_ACEOF
31207 /* end confdefs.h.  */
31208 $ac_includes_default
31209 typedef size_t ac__type_new_;
31210 int
31211 main ()
31212 {
31213 if ((ac__type_new_ *) 0)
31214   return 0;
31215 if (sizeof (ac__type_new_))
31216   return 0;
31217   ;
31218   return 0;
31219 }
31220 _ACEOF
31221 rm -f conftest.$ac_objext
31222 if { (ac_try="$ac_compile"
31223 case "(($ac_try" in
31224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31225   *) ac_try_echo=$ac_try;;
31226 esac
31227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31228   (eval "$ac_compile") 2>conftest.er1
31229   ac_status=$?
31230   grep -v '^ *+' conftest.er1 >conftest.err
31231   rm -f conftest.er1
31232   cat conftest.err >&5
31233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234   (exit $ac_status); } &&
31235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31236   { (case "(($ac_try" in
31237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31238   *) ac_try_echo=$ac_try;;
31239 esac
31240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31241   (eval "$ac_try") 2>&5
31242   ac_status=$?
31243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244   (exit $ac_status); }; } &&
31245          { ac_try='test -s conftest.$ac_objext'
31246   { (case "(($ac_try" in
31247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31248   *) ac_try_echo=$ac_try;;
31249 esac
31250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31251   (eval "$ac_try") 2>&5
31252   ac_status=$?
31253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31254   (exit $ac_status); }; }; then
31255   ac_cv_type_size_t=yes
31256 else
31257   echo "$as_me: failed program was:" >&5
31258 sed 's/^/| /' conftest.$ac_ext >&5
31259
31260         ac_cv_type_size_t=no
31261 fi
31262
31263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31264 fi
31265 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31266 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31267 if test $ac_cv_type_size_t = yes; then
31268   :
31269 else
31270
31271 cat >>confdefs.h <<_ACEOF
31272 #define size_t unsigned int
31273 _ACEOF
31274
31275 fi
31276
31277 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31278 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31279 if test "${ac_cv_type_signal+set}" = set; then
31280   echo $ECHO_N "(cached) $ECHO_C" >&6
31281 else
31282   cat >conftest.$ac_ext <<_ACEOF
31283 /* confdefs.h.  */
31284 _ACEOF
31285 cat confdefs.h >>conftest.$ac_ext
31286 cat >>conftest.$ac_ext <<_ACEOF
31287 /* end confdefs.h.  */
31288 #include <sys/types.h>
31289 #include <signal.h>
31290
31291 int
31292 main ()
31293 {
31294 return *(signal (0, 0)) (0) == 1;
31295   ;
31296   return 0;
31297 }
31298 _ACEOF
31299 rm -f conftest.$ac_objext
31300 if { (ac_try="$ac_compile"
31301 case "(($ac_try" in
31302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31303   *) ac_try_echo=$ac_try;;
31304 esac
31305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31306   (eval "$ac_compile") 2>conftest.er1
31307   ac_status=$?
31308   grep -v '^ *+' conftest.er1 >conftest.err
31309   rm -f conftest.er1
31310   cat conftest.err >&5
31311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31312   (exit $ac_status); } &&
31313          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31314   { (case "(($ac_try" in
31315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31316   *) ac_try_echo=$ac_try;;
31317 esac
31318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31319   (eval "$ac_try") 2>&5
31320   ac_status=$?
31321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322   (exit $ac_status); }; } &&
31323          { ac_try='test -s conftest.$ac_objext'
31324   { (case "(($ac_try" in
31325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31326   *) ac_try_echo=$ac_try;;
31327 esac
31328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31329   (eval "$ac_try") 2>&5
31330   ac_status=$?
31331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332   (exit $ac_status); }; }; then
31333   ac_cv_type_signal=int
31334 else
31335   echo "$as_me: failed program was:" >&5
31336 sed 's/^/| /' conftest.$ac_ext >&5
31337
31338         ac_cv_type_signal=void
31339 fi
31340
31341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31342 fi
31343 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31344 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31345
31346 cat >>confdefs.h <<_ACEOF
31347 #define RETSIGTYPE $ac_cv_type_signal
31348 _ACEOF
31349
31350
31351 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31352 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31353 if test "${ac_cv_struct_tm+set}" = set; then
31354   echo $ECHO_N "(cached) $ECHO_C" >&6
31355 else
31356   cat >conftest.$ac_ext <<_ACEOF
31357 /* confdefs.h.  */
31358 _ACEOF
31359 cat confdefs.h >>conftest.$ac_ext
31360 cat >>conftest.$ac_ext <<_ACEOF
31361 /* end confdefs.h.  */
31362 #include <sys/types.h>
31363 #include <time.h>
31364
31365 int
31366 main ()
31367 {
31368 struct tm *tp; tp->tm_sec;
31369   ;
31370   return 0;
31371 }
31372 _ACEOF
31373 rm -f conftest.$ac_objext
31374 if { (ac_try="$ac_compile"
31375 case "(($ac_try" in
31376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31377   *) ac_try_echo=$ac_try;;
31378 esac
31379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31380   (eval "$ac_compile") 2>conftest.er1
31381   ac_status=$?
31382   grep -v '^ *+' conftest.er1 >conftest.err
31383   rm -f conftest.er1
31384   cat conftest.err >&5
31385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386   (exit $ac_status); } &&
31387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31388   { (case "(($ac_try" in
31389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31390   *) ac_try_echo=$ac_try;;
31391 esac
31392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31393   (eval "$ac_try") 2>&5
31394   ac_status=$?
31395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31396   (exit $ac_status); }; } &&
31397          { ac_try='test -s conftest.$ac_objext'
31398   { (case "(($ac_try" in
31399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31400   *) ac_try_echo=$ac_try;;
31401 esac
31402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31403   (eval "$ac_try") 2>&5
31404   ac_status=$?
31405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406   (exit $ac_status); }; }; then
31407   ac_cv_struct_tm=time.h
31408 else
31409   echo "$as_me: failed program was:" >&5
31410 sed 's/^/| /' conftest.$ac_ext >&5
31411
31412         ac_cv_struct_tm=sys/time.h
31413 fi
31414
31415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31416 fi
31417 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31418 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31419 if test $ac_cv_struct_tm = sys/time.h; then
31420
31421 cat >>confdefs.h <<\_ACEOF
31422 #define TM_IN_SYS_TIME 1
31423 _ACEOF
31424
31425 fi
31426
31427 { echo "$as_me:$LINENO: checking for int64_t" >&5
31428 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31429 if test "${ac_cv_type_int64_t+set}" = set; then
31430   echo $ECHO_N "(cached) $ECHO_C" >&6
31431 else
31432   cat >conftest.$ac_ext <<_ACEOF
31433 /* confdefs.h.  */
31434 _ACEOF
31435 cat confdefs.h >>conftest.$ac_ext
31436 cat >>conftest.$ac_ext <<_ACEOF
31437 /* end confdefs.h.  */
31438 $ac_includes_default
31439 typedef int64_t ac__type_new_;
31440 int
31441 main ()
31442 {
31443 if ((ac__type_new_ *) 0)
31444   return 0;
31445 if (sizeof (ac__type_new_))
31446   return 0;
31447   ;
31448   return 0;
31449 }
31450 _ACEOF
31451 rm -f conftest.$ac_objext
31452 if { (ac_try="$ac_compile"
31453 case "(($ac_try" in
31454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31455   *) ac_try_echo=$ac_try;;
31456 esac
31457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31458   (eval "$ac_compile") 2>conftest.er1
31459   ac_status=$?
31460   grep -v '^ *+' conftest.er1 >conftest.err
31461   rm -f conftest.er1
31462   cat conftest.err >&5
31463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464   (exit $ac_status); } &&
31465          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31466   { (case "(($ac_try" in
31467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31468   *) ac_try_echo=$ac_try;;
31469 esac
31470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31471   (eval "$ac_try") 2>&5
31472   ac_status=$?
31473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31474   (exit $ac_status); }; } &&
31475          { ac_try='test -s conftest.$ac_objext'
31476   { (case "(($ac_try" in
31477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31478   *) ac_try_echo=$ac_try;;
31479 esac
31480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31481   (eval "$ac_try") 2>&5
31482   ac_status=$?
31483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484   (exit $ac_status); }; }; then
31485   ac_cv_type_int64_t=yes
31486 else
31487   echo "$as_me: failed program was:" >&5
31488 sed 's/^/| /' conftest.$ac_ext >&5
31489
31490         ac_cv_type_int64_t=no
31491 fi
31492
31493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31494 fi
31495 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31496 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31497 if test $ac_cv_type_int64_t = yes; then
31498
31499 cat >>confdefs.h <<_ACEOF
31500 #define HAVE_INT64_T 1
31501 _ACEOF
31502
31503
31504 else
31505   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31506 echo "$as_me: error: Type int64_t required but not found" >&2;}
31507    { (exit 1); exit 1; }; }
31508 fi
31509
31510 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31511 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31512 if test "${ac_cv_type_uint64_t+set}" = set; then
31513   echo $ECHO_N "(cached) $ECHO_C" >&6
31514 else
31515   cat >conftest.$ac_ext <<_ACEOF
31516 /* confdefs.h.  */
31517 _ACEOF
31518 cat confdefs.h >>conftest.$ac_ext
31519 cat >>conftest.$ac_ext <<_ACEOF
31520 /* end confdefs.h.  */
31521 $ac_includes_default
31522 typedef uint64_t ac__type_new_;
31523 int
31524 main ()
31525 {
31526 if ((ac__type_new_ *) 0)
31527   return 0;
31528 if (sizeof (ac__type_new_))
31529   return 0;
31530   ;
31531   return 0;
31532 }
31533 _ACEOF
31534 rm -f conftest.$ac_objext
31535 if { (ac_try="$ac_compile"
31536 case "(($ac_try" in
31537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538   *) ac_try_echo=$ac_try;;
31539 esac
31540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541   (eval "$ac_compile") 2>conftest.er1
31542   ac_status=$?
31543   grep -v '^ *+' conftest.er1 >conftest.err
31544   rm -f conftest.er1
31545   cat conftest.err >&5
31546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547   (exit $ac_status); } &&
31548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31549   { (case "(($ac_try" in
31550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31551   *) ac_try_echo=$ac_try;;
31552 esac
31553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554   (eval "$ac_try") 2>&5
31555   ac_status=$?
31556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557   (exit $ac_status); }; } &&
31558          { ac_try='test -s conftest.$ac_objext'
31559   { (case "(($ac_try" in
31560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31561   *) ac_try_echo=$ac_try;;
31562 esac
31563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31564   (eval "$ac_try") 2>&5
31565   ac_status=$?
31566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567   (exit $ac_status); }; }; then
31568   ac_cv_type_uint64_t=yes
31569 else
31570   echo "$as_me: failed program was:" >&5
31571 sed 's/^/| /' conftest.$ac_ext >&5
31572
31573         ac_cv_type_uint64_t=no
31574 fi
31575
31576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31577 fi
31578 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31579 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31580 if test $ac_cv_type_uint64_t = yes; then
31581
31582 cat >>confdefs.h <<_ACEOF
31583 #define HAVE_UINT64_T 1
31584 _ACEOF
31585
31586
31587 else
31588   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31589 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31590 if test "${ac_cv_type_u_int64_t+set}" = set; then
31591   echo $ECHO_N "(cached) $ECHO_C" >&6
31592 else
31593   cat >conftest.$ac_ext <<_ACEOF
31594 /* confdefs.h.  */
31595 _ACEOF
31596 cat confdefs.h >>conftest.$ac_ext
31597 cat >>conftest.$ac_ext <<_ACEOF
31598 /* end confdefs.h.  */
31599 $ac_includes_default
31600 typedef u_int64_t ac__type_new_;
31601 int
31602 main ()
31603 {
31604 if ((ac__type_new_ *) 0)
31605   return 0;
31606 if (sizeof (ac__type_new_))
31607   return 0;
31608   ;
31609   return 0;
31610 }
31611 _ACEOF
31612 rm -f conftest.$ac_objext
31613 if { (ac_try="$ac_compile"
31614 case "(($ac_try" in
31615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31616   *) ac_try_echo=$ac_try;;
31617 esac
31618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31619   (eval "$ac_compile") 2>conftest.er1
31620   ac_status=$?
31621   grep -v '^ *+' conftest.er1 >conftest.err
31622   rm -f conftest.er1
31623   cat conftest.err >&5
31624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625   (exit $ac_status); } &&
31626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31627   { (case "(($ac_try" in
31628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31629   *) ac_try_echo=$ac_try;;
31630 esac
31631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31632   (eval "$ac_try") 2>&5
31633   ac_status=$?
31634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635   (exit $ac_status); }; } &&
31636          { ac_try='test -s conftest.$ac_objext'
31637   { (case "(($ac_try" in
31638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31639   *) ac_try_echo=$ac_try;;
31640 esac
31641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31642   (eval "$ac_try") 2>&5
31643   ac_status=$?
31644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31645   (exit $ac_status); }; }; then
31646   ac_cv_type_u_int64_t=yes
31647 else
31648   echo "$as_me: failed program was:" >&5
31649 sed 's/^/| /' conftest.$ac_ext >&5
31650
31651         ac_cv_type_u_int64_t=no
31652 fi
31653
31654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31655 fi
31656 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31657 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31658 if test $ac_cv_type_u_int64_t = yes; then
31659
31660 cat >>confdefs.h <<_ACEOF
31661 #define HAVE_U_INT64_T 1
31662 _ACEOF
31663
31664
31665 else
31666   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31667 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31668    { (exit 1); exit 1; }; }
31669 fi
31670
31671 fi
31672
31673
31674
31675
31676
31677
31678
31679
31680
31681
31682 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31683 do
31684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31688   echo $ECHO_N "(cached) $ECHO_C" >&6
31689 else
31690   cat >conftest.$ac_ext <<_ACEOF
31691 /* confdefs.h.  */
31692 _ACEOF
31693 cat confdefs.h >>conftest.$ac_ext
31694 cat >>conftest.$ac_ext <<_ACEOF
31695 /* end confdefs.h.  */
31696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31698 #define $ac_func innocuous_$ac_func
31699
31700 /* System header to define __stub macros and hopefully few prototypes,
31701     which can conflict with char $ac_func (); below.
31702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31703     <limits.h> exists even on freestanding compilers.  */
31704
31705 #ifdef __STDC__
31706 # include <limits.h>
31707 #else
31708 # include <assert.h>
31709 #endif
31710
31711 #undef $ac_func
31712
31713 /* Override any GCC internal prototype to avoid an error.
31714    Use char because int might match the return type of a GCC
31715    builtin and then its argument prototype would still apply.  */
31716 #ifdef __cplusplus
31717 extern "C"
31718 #endif
31719 char $ac_func ();
31720 /* The GNU C library defines this for functions which it implements
31721     to always fail with ENOSYS.  Some functions are actually named
31722     something starting with __ and the normal name is an alias.  */
31723 #if defined __stub_$ac_func || defined __stub___$ac_func
31724 choke me
31725 #endif
31726
31727 int
31728 main ()
31729 {
31730 return $ac_func ();
31731   ;
31732   return 0;
31733 }
31734 _ACEOF
31735 rm -f conftest.$ac_objext conftest$ac_exeext
31736 if { (ac_try="$ac_link"
31737 case "(($ac_try" in
31738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31739   *) ac_try_echo=$ac_try;;
31740 esac
31741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31742   (eval "$ac_link") 2>conftest.er1
31743   ac_status=$?
31744   grep -v '^ *+' conftest.er1 >conftest.err
31745   rm -f conftest.er1
31746   cat conftest.err >&5
31747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31748   (exit $ac_status); } &&
31749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31750   { (case "(($ac_try" in
31751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31752   *) ac_try_echo=$ac_try;;
31753 esac
31754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31755   (eval "$ac_try") 2>&5
31756   ac_status=$?
31757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758   (exit $ac_status); }; } &&
31759          { ac_try='test -s conftest$ac_exeext'
31760   { (case "(($ac_try" in
31761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31762   *) ac_try_echo=$ac_try;;
31763 esac
31764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31765   (eval "$ac_try") 2>&5
31766   ac_status=$?
31767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31768   (exit $ac_status); }; }; then
31769   eval "$as_ac_var=yes"
31770 else
31771   echo "$as_me: failed program was:" >&5
31772 sed 's/^/| /' conftest.$ac_ext >&5
31773
31774         eval "$as_ac_var=no"
31775 fi
31776
31777 rm -f core conftest.err conftest.$ac_objext \
31778       conftest$ac_exeext conftest.$ac_ext
31779 fi
31780 ac_res=`eval echo '${'$as_ac_var'}'`
31781                { echo "$as_me:$LINENO: result: $ac_res" >&5
31782 echo "${ECHO_T}$ac_res" >&6; }
31783 if test `eval echo '${'$as_ac_var'}'` = yes; then
31784   cat >>confdefs.h <<_ACEOF
31785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31786 _ACEOF
31787
31788 fi
31789 done
31790
31791
31792
31793
31794
31795 for ac_func in powf fmodf strtof round
31796 do
31797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31798 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31800 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31801   echo $ECHO_N "(cached) $ECHO_C" >&6
31802 else
31803   cat >conftest.$ac_ext <<_ACEOF
31804 /* confdefs.h.  */
31805 _ACEOF
31806 cat confdefs.h >>conftest.$ac_ext
31807 cat >>conftest.$ac_ext <<_ACEOF
31808 /* end confdefs.h.  */
31809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31811 #define $ac_func innocuous_$ac_func
31812
31813 /* System header to define __stub macros and hopefully few prototypes,
31814     which can conflict with char $ac_func (); below.
31815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31816     <limits.h> exists even on freestanding compilers.  */
31817
31818 #ifdef __STDC__
31819 # include <limits.h>
31820 #else
31821 # include <assert.h>
31822 #endif
31823
31824 #undef $ac_func
31825
31826 /* Override any GCC internal prototype to avoid an error.
31827    Use char because int might match the return type of a GCC
31828    builtin and then its argument prototype would still apply.  */
31829 #ifdef __cplusplus
31830 extern "C"
31831 #endif
31832 char $ac_func ();
31833 /* The GNU C library defines this for functions which it implements
31834     to always fail with ENOSYS.  Some functions are actually named
31835     something starting with __ and the normal name is an alias.  */
31836 #if defined __stub_$ac_func || defined __stub___$ac_func
31837 choke me
31838 #endif
31839
31840 int
31841 main ()
31842 {
31843 return $ac_func ();
31844   ;
31845   return 0;
31846 }
31847 _ACEOF
31848 rm -f conftest.$ac_objext conftest$ac_exeext
31849 if { (ac_try="$ac_link"
31850 case "(($ac_try" in
31851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31852   *) ac_try_echo=$ac_try;;
31853 esac
31854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31855   (eval "$ac_link") 2>conftest.er1
31856   ac_status=$?
31857   grep -v '^ *+' conftest.er1 >conftest.err
31858   rm -f conftest.er1
31859   cat conftest.err >&5
31860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31861   (exit $ac_status); } &&
31862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31863   { (case "(($ac_try" in
31864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31865   *) ac_try_echo=$ac_try;;
31866 esac
31867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31868   (eval "$ac_try") 2>&5
31869   ac_status=$?
31870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871   (exit $ac_status); }; } &&
31872          { ac_try='test -s conftest$ac_exeext'
31873   { (case "(($ac_try" in
31874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31875   *) ac_try_echo=$ac_try;;
31876 esac
31877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31878   (eval "$ac_try") 2>&5
31879   ac_status=$?
31880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31881   (exit $ac_status); }; }; then
31882   eval "$as_ac_var=yes"
31883 else
31884   echo "$as_me: failed program was:" >&5
31885 sed 's/^/| /' conftest.$ac_ext >&5
31886
31887         eval "$as_ac_var=no"
31888 fi
31889
31890 rm -f core conftest.err conftest.$ac_objext \
31891       conftest$ac_exeext conftest.$ac_ext
31892 fi
31893 ac_res=`eval echo '${'$as_ac_var'}'`
31894                { echo "$as_me:$LINENO: result: $ac_res" >&5
31895 echo "${ECHO_T}$ac_res" >&6; }
31896 if test `eval echo '${'$as_ac_var'}'` = yes; then
31897   cat >>confdefs.h <<_ACEOF
31898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31899 _ACEOF
31900
31901 fi
31902 done
31903
31904
31905
31906
31907
31908
31909 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31910 do
31911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31912 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31915   echo $ECHO_N "(cached) $ECHO_C" >&6
31916 else
31917   cat >conftest.$ac_ext <<_ACEOF
31918 /* confdefs.h.  */
31919 _ACEOF
31920 cat confdefs.h >>conftest.$ac_ext
31921 cat >>conftest.$ac_ext <<_ACEOF
31922 /* end confdefs.h.  */
31923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31925 #define $ac_func innocuous_$ac_func
31926
31927 /* System header to define __stub macros and hopefully few prototypes,
31928     which can conflict with char $ac_func (); below.
31929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31930     <limits.h> exists even on freestanding compilers.  */
31931
31932 #ifdef __STDC__
31933 # include <limits.h>
31934 #else
31935 # include <assert.h>
31936 #endif
31937
31938 #undef $ac_func
31939
31940 /* Override any GCC internal prototype to avoid an error.
31941    Use char because int might match the return type of a GCC
31942    builtin and then its argument prototype would still apply.  */
31943 #ifdef __cplusplus
31944 extern "C"
31945 #endif
31946 char $ac_func ();
31947 /* The GNU C library defines this for functions which it implements
31948     to always fail with ENOSYS.  Some functions are actually named
31949     something starting with __ and the normal name is an alias.  */
31950 #if defined __stub_$ac_func || defined __stub___$ac_func
31951 choke me
31952 #endif
31953
31954 int
31955 main ()
31956 {
31957 return $ac_func ();
31958   ;
31959   return 0;
31960 }
31961 _ACEOF
31962 rm -f conftest.$ac_objext conftest$ac_exeext
31963 if { (ac_try="$ac_link"
31964 case "(($ac_try" in
31965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31966   *) ac_try_echo=$ac_try;;
31967 esac
31968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31969   (eval "$ac_link") 2>conftest.er1
31970   ac_status=$?
31971   grep -v '^ *+' conftest.er1 >conftest.err
31972   rm -f conftest.er1
31973   cat conftest.err >&5
31974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31975   (exit $ac_status); } &&
31976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31977   { (case "(($ac_try" in
31978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31979   *) ac_try_echo=$ac_try;;
31980 esac
31981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31982   (eval "$ac_try") 2>&5
31983   ac_status=$?
31984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985   (exit $ac_status); }; } &&
31986          { ac_try='test -s conftest$ac_exeext'
31987   { (case "(($ac_try" in
31988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31989   *) ac_try_echo=$ac_try;;
31990 esac
31991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31992   (eval "$ac_try") 2>&5
31993   ac_status=$?
31994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995   (exit $ac_status); }; }; then
31996   eval "$as_ac_var=yes"
31997 else
31998   echo "$as_me: failed program was:" >&5
31999 sed 's/^/| /' conftest.$ac_ext >&5
32000
32001         eval "$as_ac_var=no"
32002 fi
32003
32004 rm -f core conftest.err conftest.$ac_objext \
32005       conftest$ac_exeext conftest.$ac_ext
32006 fi
32007 ac_res=`eval echo '${'$as_ac_var'}'`
32008                { echo "$as_me:$LINENO: result: $ac_res" >&5
32009 echo "${ECHO_T}$ac_res" >&6; }
32010 if test `eval echo '${'$as_ac_var'}'` = yes; then
32011   cat >>confdefs.h <<_ACEOF
32012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32013 _ACEOF
32014
32015 fi
32016 done
32017
32018
32019
32020
32021 for ac_func in isatty mkdtemp mkstemp
32022 do
32023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32024 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32027   echo $ECHO_N "(cached) $ECHO_C" >&6
32028 else
32029   cat >conftest.$ac_ext <<_ACEOF
32030 /* confdefs.h.  */
32031 _ACEOF
32032 cat confdefs.h >>conftest.$ac_ext
32033 cat >>conftest.$ac_ext <<_ACEOF
32034 /* end confdefs.h.  */
32035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32037 #define $ac_func innocuous_$ac_func
32038
32039 /* System header to define __stub macros and hopefully few prototypes,
32040     which can conflict with char $ac_func (); below.
32041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32042     <limits.h> exists even on freestanding compilers.  */
32043
32044 #ifdef __STDC__
32045 # include <limits.h>
32046 #else
32047 # include <assert.h>
32048 #endif
32049
32050 #undef $ac_func
32051
32052 /* Override any GCC internal prototype to avoid an error.
32053    Use char because int might match the return type of a GCC
32054    builtin and then its argument prototype would still apply.  */
32055 #ifdef __cplusplus
32056 extern "C"
32057 #endif
32058 char $ac_func ();
32059 /* The GNU C library defines this for functions which it implements
32060     to always fail with ENOSYS.  Some functions are actually named
32061     something starting with __ and the normal name is an alias.  */
32062 #if defined __stub_$ac_func || defined __stub___$ac_func
32063 choke me
32064 #endif
32065
32066 int
32067 main ()
32068 {
32069 return $ac_func ();
32070   ;
32071   return 0;
32072 }
32073 _ACEOF
32074 rm -f conftest.$ac_objext conftest$ac_exeext
32075 if { (ac_try="$ac_link"
32076 case "(($ac_try" in
32077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32078   *) ac_try_echo=$ac_try;;
32079 esac
32080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32081   (eval "$ac_link") 2>conftest.er1
32082   ac_status=$?
32083   grep -v '^ *+' conftest.er1 >conftest.err
32084   rm -f conftest.er1
32085   cat conftest.err >&5
32086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32087   (exit $ac_status); } &&
32088          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32089   { (case "(($ac_try" in
32090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32091   *) ac_try_echo=$ac_try;;
32092 esac
32093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32094   (eval "$ac_try") 2>&5
32095   ac_status=$?
32096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32097   (exit $ac_status); }; } &&
32098          { ac_try='test -s conftest$ac_exeext'
32099   { (case "(($ac_try" in
32100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32101   *) ac_try_echo=$ac_try;;
32102 esac
32103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32104   (eval "$ac_try") 2>&5
32105   ac_status=$?
32106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32107   (exit $ac_status); }; }; then
32108   eval "$as_ac_var=yes"
32109 else
32110   echo "$as_me: failed program was:" >&5
32111 sed 's/^/| /' conftest.$ac_ext >&5
32112
32113         eval "$as_ac_var=no"
32114 fi
32115
32116 rm -f core conftest.err conftest.$ac_objext \
32117       conftest$ac_exeext conftest.$ac_ext
32118 fi
32119 ac_res=`eval echo '${'$as_ac_var'}'`
32120                { echo "$as_me:$LINENO: result: $ac_res" >&5
32121 echo "${ECHO_T}$ac_res" >&6; }
32122 if test `eval echo '${'$as_ac_var'}'` = yes; then
32123   cat >>confdefs.h <<_ACEOF
32124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32125 _ACEOF
32126
32127 fi
32128 done
32129
32130
32131
32132
32133
32134
32135 for ac_func in mktemp realpath sbrk setrlimit strdup
32136 do
32137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32141   echo $ECHO_N "(cached) $ECHO_C" >&6
32142 else
32143   cat >conftest.$ac_ext <<_ACEOF
32144 /* confdefs.h.  */
32145 _ACEOF
32146 cat confdefs.h >>conftest.$ac_ext
32147 cat >>conftest.$ac_ext <<_ACEOF
32148 /* end confdefs.h.  */
32149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32151 #define $ac_func innocuous_$ac_func
32152
32153 /* System header to define __stub macros and hopefully few prototypes,
32154     which can conflict with char $ac_func (); below.
32155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32156     <limits.h> exists even on freestanding compilers.  */
32157
32158 #ifdef __STDC__
32159 # include <limits.h>
32160 #else
32161 # include <assert.h>
32162 #endif
32163
32164 #undef $ac_func
32165
32166 /* Override any GCC internal prototype to avoid an error.
32167    Use char because int might match the return type of a GCC
32168    builtin and then its argument prototype would still apply.  */
32169 #ifdef __cplusplus
32170 extern "C"
32171 #endif
32172 char $ac_func ();
32173 /* The GNU C library defines this for functions which it implements
32174     to always fail with ENOSYS.  Some functions are actually named
32175     something starting with __ and the normal name is an alias.  */
32176 #if defined __stub_$ac_func || defined __stub___$ac_func
32177 choke me
32178 #endif
32179
32180 int
32181 main ()
32182 {
32183 return $ac_func ();
32184   ;
32185   return 0;
32186 }
32187 _ACEOF
32188 rm -f conftest.$ac_objext conftest$ac_exeext
32189 if { (ac_try="$ac_link"
32190 case "(($ac_try" in
32191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32192   *) ac_try_echo=$ac_try;;
32193 esac
32194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32195   (eval "$ac_link") 2>conftest.er1
32196   ac_status=$?
32197   grep -v '^ *+' conftest.er1 >conftest.err
32198   rm -f conftest.er1
32199   cat conftest.err >&5
32200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201   (exit $ac_status); } &&
32202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32203   { (case "(($ac_try" in
32204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32205   *) ac_try_echo=$ac_try;;
32206 esac
32207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32208   (eval "$ac_try") 2>&5
32209   ac_status=$?
32210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211   (exit $ac_status); }; } &&
32212          { ac_try='test -s conftest$ac_exeext'
32213   { (case "(($ac_try" in
32214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215   *) ac_try_echo=$ac_try;;
32216 esac
32217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218   (eval "$ac_try") 2>&5
32219   ac_status=$?
32220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221   (exit $ac_status); }; }; then
32222   eval "$as_ac_var=yes"
32223 else
32224   echo "$as_me: failed program was:" >&5
32225 sed 's/^/| /' conftest.$ac_ext >&5
32226
32227         eval "$as_ac_var=no"
32228 fi
32229
32230 rm -f core conftest.err conftest.$ac_objext \
32231       conftest$ac_exeext conftest.$ac_ext
32232 fi
32233 ac_res=`eval echo '${'$as_ac_var'}'`
32234                { echo "$as_me:$LINENO: result: $ac_res" >&5
32235 echo "${ECHO_T}$ac_res" >&6; }
32236 if test `eval echo '${'$as_ac_var'}'` = yes; then
32237   cat >>confdefs.h <<_ACEOF
32238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32239 _ACEOF
32240
32241 fi
32242 done
32243
32244
32245
32246
32247 for ac_func in strerror strerror_r strerror_s
32248 do
32249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32250 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32252 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32253   echo $ECHO_N "(cached) $ECHO_C" >&6
32254 else
32255   cat >conftest.$ac_ext <<_ACEOF
32256 /* confdefs.h.  */
32257 _ACEOF
32258 cat confdefs.h >>conftest.$ac_ext
32259 cat >>conftest.$ac_ext <<_ACEOF
32260 /* end confdefs.h.  */
32261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32263 #define $ac_func innocuous_$ac_func
32264
32265 /* System header to define __stub macros and hopefully few prototypes,
32266     which can conflict with char $ac_func (); below.
32267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32268     <limits.h> exists even on freestanding compilers.  */
32269
32270 #ifdef __STDC__
32271 # include <limits.h>
32272 #else
32273 # include <assert.h>
32274 #endif
32275
32276 #undef $ac_func
32277
32278 /* Override any GCC internal prototype to avoid an error.
32279    Use char because int might match the return type of a GCC
32280    builtin and then its argument prototype would still apply.  */
32281 #ifdef __cplusplus
32282 extern "C"
32283 #endif
32284 char $ac_func ();
32285 /* The GNU C library defines this for functions which it implements
32286     to always fail with ENOSYS.  Some functions are actually named
32287     something starting with __ and the normal name is an alias.  */
32288 #if defined __stub_$ac_func || defined __stub___$ac_func
32289 choke me
32290 #endif
32291
32292 int
32293 main ()
32294 {
32295 return $ac_func ();
32296   ;
32297   return 0;
32298 }
32299 _ACEOF
32300 rm -f conftest.$ac_objext conftest$ac_exeext
32301 if { (ac_try="$ac_link"
32302 case "(($ac_try" in
32303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32304   *) ac_try_echo=$ac_try;;
32305 esac
32306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32307   (eval "$ac_link") 2>conftest.er1
32308   ac_status=$?
32309   grep -v '^ *+' conftest.er1 >conftest.err
32310   rm -f conftest.er1
32311   cat conftest.err >&5
32312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313   (exit $ac_status); } &&
32314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32315   { (case "(($ac_try" in
32316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32317   *) ac_try_echo=$ac_try;;
32318 esac
32319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32320   (eval "$ac_try") 2>&5
32321   ac_status=$?
32322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323   (exit $ac_status); }; } &&
32324          { ac_try='test -s conftest$ac_exeext'
32325   { (case "(($ac_try" in
32326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32327   *) ac_try_echo=$ac_try;;
32328 esac
32329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32330   (eval "$ac_try") 2>&5
32331   ac_status=$?
32332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333   (exit $ac_status); }; }; then
32334   eval "$as_ac_var=yes"
32335 else
32336   echo "$as_me: failed program was:" >&5
32337 sed 's/^/| /' conftest.$ac_ext >&5
32338
32339         eval "$as_ac_var=no"
32340 fi
32341
32342 rm -f core conftest.err conftest.$ac_objext \
32343       conftest$ac_exeext conftest.$ac_ext
32344 fi
32345 ac_res=`eval echo '${'$as_ac_var'}'`
32346                { echo "$as_me:$LINENO: result: $ac_res" >&5
32347 echo "${ECHO_T}$ac_res" >&6; }
32348 if test `eval echo '${'$as_ac_var'}'` = yes; then
32349   cat >>confdefs.h <<_ACEOF
32350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32351 _ACEOF
32352
32353 fi
32354 done
32355
32356
32357
32358
32359
32360 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32361 do
32362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32366   echo $ECHO_N "(cached) $ECHO_C" >&6
32367 else
32368   cat >conftest.$ac_ext <<_ACEOF
32369 /* confdefs.h.  */
32370 _ACEOF
32371 cat confdefs.h >>conftest.$ac_ext
32372 cat >>conftest.$ac_ext <<_ACEOF
32373 /* end confdefs.h.  */
32374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32376 #define $ac_func innocuous_$ac_func
32377
32378 /* System header to define __stub macros and hopefully few prototypes,
32379     which can conflict with char $ac_func (); below.
32380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32381     <limits.h> exists even on freestanding compilers.  */
32382
32383 #ifdef __STDC__
32384 # include <limits.h>
32385 #else
32386 # include <assert.h>
32387 #endif
32388
32389 #undef $ac_func
32390
32391 /* Override any GCC internal prototype to avoid an error.
32392    Use char because int might match the return type of a GCC
32393    builtin and then its argument prototype would still apply.  */
32394 #ifdef __cplusplus
32395 extern "C"
32396 #endif
32397 char $ac_func ();
32398 /* The GNU C library defines this for functions which it implements
32399     to always fail with ENOSYS.  Some functions are actually named
32400     something starting with __ and the normal name is an alias.  */
32401 #if defined __stub_$ac_func || defined __stub___$ac_func
32402 choke me
32403 #endif
32404
32405 int
32406 main ()
32407 {
32408 return $ac_func ();
32409   ;
32410   return 0;
32411 }
32412 _ACEOF
32413 rm -f conftest.$ac_objext conftest$ac_exeext
32414 if { (ac_try="$ac_link"
32415 case "(($ac_try" in
32416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32417   *) ac_try_echo=$ac_try;;
32418 esac
32419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32420   (eval "$ac_link") 2>conftest.er1
32421   ac_status=$?
32422   grep -v '^ *+' conftest.er1 >conftest.err
32423   rm -f conftest.er1
32424   cat conftest.err >&5
32425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32426   (exit $ac_status); } &&
32427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32428   { (case "(($ac_try" in
32429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32430   *) ac_try_echo=$ac_try;;
32431 esac
32432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32433   (eval "$ac_try") 2>&5
32434   ac_status=$?
32435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436   (exit $ac_status); }; } &&
32437          { ac_try='test -s conftest$ac_exeext'
32438   { (case "(($ac_try" in
32439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32440   *) ac_try_echo=$ac_try;;
32441 esac
32442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32443   (eval "$ac_try") 2>&5
32444   ac_status=$?
32445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446   (exit $ac_status); }; }; then
32447   eval "$as_ac_var=yes"
32448 else
32449   echo "$as_me: failed program was:" >&5
32450 sed 's/^/| /' conftest.$ac_ext >&5
32451
32452         eval "$as_ac_var=no"
32453 fi
32454
32455 rm -f core conftest.err conftest.$ac_objext \
32456       conftest$ac_exeext conftest.$ac_ext
32457 fi
32458 ac_res=`eval echo '${'$as_ac_var'}'`
32459                { echo "$as_me:$LINENO: result: $ac_res" >&5
32460 echo "${ECHO_T}$ac_res" >&6; }
32461 if test `eval echo '${'$as_ac_var'}'` = yes; then
32462   cat >>confdefs.h <<_ACEOF
32463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32464 _ACEOF
32465
32466 fi
32467 done
32468
32469
32470
32471
32472
32473 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32474 do
32475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32479   echo $ECHO_N "(cached) $ECHO_C" >&6
32480 else
32481   cat >conftest.$ac_ext <<_ACEOF
32482 /* confdefs.h.  */
32483 _ACEOF
32484 cat confdefs.h >>conftest.$ac_ext
32485 cat >>conftest.$ac_ext <<_ACEOF
32486 /* end confdefs.h.  */
32487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32489 #define $ac_func innocuous_$ac_func
32490
32491 /* System header to define __stub macros and hopefully few prototypes,
32492     which can conflict with char $ac_func (); below.
32493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32494     <limits.h> exists even on freestanding compilers.  */
32495
32496 #ifdef __STDC__
32497 # include <limits.h>
32498 #else
32499 # include <assert.h>
32500 #endif
32501
32502 #undef $ac_func
32503
32504 /* Override any GCC internal prototype to avoid an error.
32505    Use char because int might match the return type of a GCC
32506    builtin and then its argument prototype would still apply.  */
32507 #ifdef __cplusplus
32508 extern "C"
32509 #endif
32510 char $ac_func ();
32511 /* The GNU C library defines this for functions which it implements
32512     to always fail with ENOSYS.  Some functions are actually named
32513     something starting with __ and the normal name is an alias.  */
32514 #if defined __stub_$ac_func || defined __stub___$ac_func
32515 choke me
32516 #endif
32517
32518 int
32519 main ()
32520 {
32521 return $ac_func ();
32522   ;
32523   return 0;
32524 }
32525 _ACEOF
32526 rm -f conftest.$ac_objext conftest$ac_exeext
32527 if { (ac_try="$ac_link"
32528 case "(($ac_try" in
32529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32530   *) ac_try_echo=$ac_try;;
32531 esac
32532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32533   (eval "$ac_link") 2>conftest.er1
32534   ac_status=$?
32535   grep -v '^ *+' conftest.er1 >conftest.err
32536   rm -f conftest.er1
32537   cat conftest.err >&5
32538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32539   (exit $ac_status); } &&
32540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32541   { (case "(($ac_try" in
32542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32543   *) ac_try_echo=$ac_try;;
32544 esac
32545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32546   (eval "$ac_try") 2>&5
32547   ac_status=$?
32548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549   (exit $ac_status); }; } &&
32550          { ac_try='test -s conftest$ac_exeext'
32551   { (case "(($ac_try" in
32552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32553   *) ac_try_echo=$ac_try;;
32554 esac
32555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32556   (eval "$ac_try") 2>&5
32557   ac_status=$?
32558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32559   (exit $ac_status); }; }; then
32560   eval "$as_ac_var=yes"
32561 else
32562   echo "$as_me: failed program was:" >&5
32563 sed 's/^/| /' conftest.$ac_ext >&5
32564
32565         eval "$as_ac_var=no"
32566 fi
32567
32568 rm -f core conftest.err conftest.$ac_objext \
32569       conftest$ac_exeext conftest.$ac_ext
32570 fi
32571 ac_res=`eval echo '${'$as_ac_var'}'`
32572                { echo "$as_me:$LINENO: result: $ac_res" >&5
32573 echo "${ECHO_T}$ac_res" >&6; }
32574 if test `eval echo '${'$as_ac_var'}'` = yes; then
32575   cat >>confdefs.h <<_ACEOF
32576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32577 _ACEOF
32578
32579 fi
32580 done
32581
32582 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32583 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32584 if test "${llvm_cv_c_printf_a+set}" = set; then
32585   echo $ECHO_N "(cached) $ECHO_C" >&6
32586 else
32587   ac_ext=c
32588 ac_cpp='$CPP $CPPFLAGS'
32589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32592
32593  if test "$cross_compiling" = yes; then
32594   llvmac_cv_c_printf_a=no
32595 else
32596   cat >conftest.$ac_ext <<_ACEOF
32597
32598   /* confdefs.h.  */
32599 _ACEOF
32600 cat confdefs.h >>conftest.$ac_ext
32601 cat >>conftest.$ac_ext <<_ACEOF
32602 /* end confdefs.h.  */
32603
32604 #include <stdio.h>
32605 #include <stdlib.h>
32606
32607 int
32608 main ()
32609 {
32610
32611 volatile double A, B;
32612 char Buffer[100];
32613 A = 1;
32614 A /= 10.0;
32615 sprintf(Buffer, "%a", A);
32616 B = atof(Buffer);
32617 if (A != B)
32618   return (1);
32619 if (A != 0x1.999999999999ap-4)
32620   return (1);
32621 return (0);
32622   ;
32623   return 0;
32624 }
32625 _ACEOF
32626 rm -f conftest$ac_exeext
32627 if { (ac_try="$ac_link"
32628 case "(($ac_try" in
32629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32630   *) ac_try_echo=$ac_try;;
32631 esac
32632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32633   (eval "$ac_link") 2>&5
32634   ac_status=$?
32635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32637   { (case "(($ac_try" in
32638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32639   *) ac_try_echo=$ac_try;;
32640 esac
32641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32642   (eval "$ac_try") 2>&5
32643   ac_status=$?
32644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645   (exit $ac_status); }; }; then
32646   llvm_cv_c_printf_a=yes
32647 else
32648   echo "$as_me: program exited with status $ac_status" >&5
32649 echo "$as_me: failed program was:" >&5
32650 sed 's/^/| /' conftest.$ac_ext >&5
32651
32652 ( exit $ac_status )
32653 llvmac_cv_c_printf_a=no
32654 fi
32655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32656 fi
32657
32658
32659  ac_ext=c
32660 ac_cpp='$CPP $CPPFLAGS'
32661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32664
32665 fi
32666 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32667 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32668  if test "$llvm_cv_c_printf_a" = "yes"; then
32669
32670 cat >>confdefs.h <<\_ACEOF
32671 #define HAVE_PRINTF_A 1
32672 _ACEOF
32673
32674  fi
32675
32676 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32677 # for constant arguments.  Useless!
32678 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32679 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32680 if test "${ac_cv_working_alloca_h+set}" = set; then
32681   echo $ECHO_N "(cached) $ECHO_C" >&6
32682 else
32683   cat >conftest.$ac_ext <<_ACEOF
32684 /* confdefs.h.  */
32685 _ACEOF
32686 cat confdefs.h >>conftest.$ac_ext
32687 cat >>conftest.$ac_ext <<_ACEOF
32688 /* end confdefs.h.  */
32689 #include <alloca.h>
32690 int
32691 main ()
32692 {
32693 char *p = (char *) alloca (2 * sizeof (int));
32694                           if (p) return 0;
32695   ;
32696   return 0;
32697 }
32698 _ACEOF
32699 rm -f conftest.$ac_objext conftest$ac_exeext
32700 if { (ac_try="$ac_link"
32701 case "(($ac_try" in
32702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32703   *) ac_try_echo=$ac_try;;
32704 esac
32705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32706   (eval "$ac_link") 2>conftest.er1
32707   ac_status=$?
32708   grep -v '^ *+' conftest.er1 >conftest.err
32709   rm -f conftest.er1
32710   cat conftest.err >&5
32711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32712   (exit $ac_status); } &&
32713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32714   { (case "(($ac_try" in
32715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32716   *) ac_try_echo=$ac_try;;
32717 esac
32718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32719   (eval "$ac_try") 2>&5
32720   ac_status=$?
32721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722   (exit $ac_status); }; } &&
32723          { ac_try='test -s conftest$ac_exeext'
32724   { (case "(($ac_try" in
32725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32726   *) ac_try_echo=$ac_try;;
32727 esac
32728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32729   (eval "$ac_try") 2>&5
32730   ac_status=$?
32731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732   (exit $ac_status); }; }; then
32733   ac_cv_working_alloca_h=yes
32734 else
32735   echo "$as_me: failed program was:" >&5
32736 sed 's/^/| /' conftest.$ac_ext >&5
32737
32738         ac_cv_working_alloca_h=no
32739 fi
32740
32741 rm -f core conftest.err conftest.$ac_objext \
32742       conftest$ac_exeext conftest.$ac_ext
32743 fi
32744 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32745 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32746 if test $ac_cv_working_alloca_h = yes; then
32747
32748 cat >>confdefs.h <<\_ACEOF
32749 #define HAVE_ALLOCA_H 1
32750 _ACEOF
32751
32752 fi
32753
32754 { echo "$as_me:$LINENO: checking for alloca" >&5
32755 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32756 if test "${ac_cv_func_alloca_works+set}" = set; then
32757   echo $ECHO_N "(cached) $ECHO_C" >&6
32758 else
32759   cat >conftest.$ac_ext <<_ACEOF
32760 /* confdefs.h.  */
32761 _ACEOF
32762 cat confdefs.h >>conftest.$ac_ext
32763 cat >>conftest.$ac_ext <<_ACEOF
32764 /* end confdefs.h.  */
32765 #ifdef __GNUC__
32766 # define alloca __builtin_alloca
32767 #else
32768 # ifdef _MSC_VER
32769 #  include <malloc.h>
32770 #  define alloca _alloca
32771 # else
32772 #  if HAVE_ALLOCA_H
32773 #   include <alloca.h>
32774 #  else
32775 #   ifdef _AIX
32776  #pragma alloca
32777 #   else
32778 #    ifndef alloca /* predefined by HP cc +Olibcalls */
32779 char *alloca ();
32780 #    endif
32781 #   endif
32782 #  endif
32783 # endif
32784 #endif
32785
32786 int
32787 main ()
32788 {
32789 char *p = (char *) alloca (1);
32790                                     if (p) return 0;
32791   ;
32792   return 0;
32793 }
32794 _ACEOF
32795 rm -f conftest.$ac_objext conftest$ac_exeext
32796 if { (ac_try="$ac_link"
32797 case "(($ac_try" in
32798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32799   *) ac_try_echo=$ac_try;;
32800 esac
32801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32802   (eval "$ac_link") 2>conftest.er1
32803   ac_status=$?
32804   grep -v '^ *+' conftest.er1 >conftest.err
32805   rm -f conftest.er1
32806   cat conftest.err >&5
32807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808   (exit $ac_status); } &&
32809          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32810   { (case "(($ac_try" in
32811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32812   *) ac_try_echo=$ac_try;;
32813 esac
32814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32815   (eval "$ac_try") 2>&5
32816   ac_status=$?
32817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818   (exit $ac_status); }; } &&
32819          { ac_try='test -s conftest$ac_exeext'
32820   { (case "(($ac_try" in
32821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822   *) ac_try_echo=$ac_try;;
32823 esac
32824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32825   (eval "$ac_try") 2>&5
32826   ac_status=$?
32827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828   (exit $ac_status); }; }; then
32829   ac_cv_func_alloca_works=yes
32830 else
32831   echo "$as_me: failed program was:" >&5
32832 sed 's/^/| /' conftest.$ac_ext >&5
32833
32834         ac_cv_func_alloca_works=no
32835 fi
32836
32837 rm -f core conftest.err conftest.$ac_objext \
32838       conftest$ac_exeext conftest.$ac_ext
32839 fi
32840 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32841 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32842
32843 if test $ac_cv_func_alloca_works = yes; then
32844
32845 cat >>confdefs.h <<\_ACEOF
32846 #define HAVE_ALLOCA 1
32847 _ACEOF
32848
32849 else
32850   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32851 # that cause trouble.  Some versions do not even contain alloca or
32852 # contain a buggy version.  If you still want to use their alloca,
32853 # use ar to extract alloca.o from them instead of compiling alloca.c.
32854
32855 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32856
32857 cat >>confdefs.h <<\_ACEOF
32858 #define C_ALLOCA 1
32859 _ACEOF
32860
32861
32862 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32863 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32864 if test "${ac_cv_os_cray+set}" = set; then
32865   echo $ECHO_N "(cached) $ECHO_C" >&6
32866 else
32867   cat >conftest.$ac_ext <<_ACEOF
32868 /* confdefs.h.  */
32869 _ACEOF
32870 cat confdefs.h >>conftest.$ac_ext
32871 cat >>conftest.$ac_ext <<_ACEOF
32872 /* end confdefs.h.  */
32873 #if defined CRAY && ! defined CRAY2
32874 webecray
32875 #else
32876 wenotbecray
32877 #endif
32878
32879 _ACEOF
32880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32881   $EGREP "webecray" >/dev/null 2>&1; then
32882   ac_cv_os_cray=yes
32883 else
32884   ac_cv_os_cray=no
32885 fi
32886 rm -f conftest*
32887
32888 fi
32889 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32890 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32891 if test $ac_cv_os_cray = yes; then
32892   for ac_func in _getb67 GETB67 getb67; do
32893     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32897   echo $ECHO_N "(cached) $ECHO_C" >&6
32898 else
32899   cat >conftest.$ac_ext <<_ACEOF
32900 /* confdefs.h.  */
32901 _ACEOF
32902 cat confdefs.h >>conftest.$ac_ext
32903 cat >>conftest.$ac_ext <<_ACEOF
32904 /* end confdefs.h.  */
32905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32907 #define $ac_func innocuous_$ac_func
32908
32909 /* System header to define __stub macros and hopefully few prototypes,
32910     which can conflict with char $ac_func (); below.
32911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32912     <limits.h> exists even on freestanding compilers.  */
32913
32914 #ifdef __STDC__
32915 # include <limits.h>
32916 #else
32917 # include <assert.h>
32918 #endif
32919
32920 #undef $ac_func
32921
32922 /* Override any GCC internal prototype to avoid an error.
32923    Use char because int might match the return type of a GCC
32924    builtin and then its argument prototype would still apply.  */
32925 #ifdef __cplusplus
32926 extern "C"
32927 #endif
32928 char $ac_func ();
32929 /* The GNU C library defines this for functions which it implements
32930     to always fail with ENOSYS.  Some functions are actually named
32931     something starting with __ and the normal name is an alias.  */
32932 #if defined __stub_$ac_func || defined __stub___$ac_func
32933 choke me
32934 #endif
32935
32936 int
32937 main ()
32938 {
32939 return $ac_func ();
32940   ;
32941   return 0;
32942 }
32943 _ACEOF
32944 rm -f conftest.$ac_objext conftest$ac_exeext
32945 if { (ac_try="$ac_link"
32946 case "(($ac_try" in
32947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32948   *) ac_try_echo=$ac_try;;
32949 esac
32950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32951   (eval "$ac_link") 2>conftest.er1
32952   ac_status=$?
32953   grep -v '^ *+' conftest.er1 >conftest.err
32954   rm -f conftest.er1
32955   cat conftest.err >&5
32956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957   (exit $ac_status); } &&
32958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32959   { (case "(($ac_try" in
32960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32961   *) ac_try_echo=$ac_try;;
32962 esac
32963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32964   (eval "$ac_try") 2>&5
32965   ac_status=$?
32966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32967   (exit $ac_status); }; } &&
32968          { ac_try='test -s conftest$ac_exeext'
32969   { (case "(($ac_try" in
32970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32971   *) ac_try_echo=$ac_try;;
32972 esac
32973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32974   (eval "$ac_try") 2>&5
32975   ac_status=$?
32976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32977   (exit $ac_status); }; }; then
32978   eval "$as_ac_var=yes"
32979 else
32980   echo "$as_me: failed program was:" >&5
32981 sed 's/^/| /' conftest.$ac_ext >&5
32982
32983         eval "$as_ac_var=no"
32984 fi
32985
32986 rm -f core conftest.err conftest.$ac_objext \
32987       conftest$ac_exeext conftest.$ac_ext
32988 fi
32989 ac_res=`eval echo '${'$as_ac_var'}'`
32990                { echo "$as_me:$LINENO: result: $ac_res" >&5
32991 echo "${ECHO_T}$ac_res" >&6; }
32992 if test `eval echo '${'$as_ac_var'}'` = yes; then
32993
32994 cat >>confdefs.h <<_ACEOF
32995 #define CRAY_STACKSEG_END $ac_func
32996 _ACEOF
32997
32998     break
32999 fi
33000
33001   done
33002 fi
33003
33004 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33005 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33006 if test "${ac_cv_c_stack_direction+set}" = set; then
33007   echo $ECHO_N "(cached) $ECHO_C" >&6
33008 else
33009   if test "$cross_compiling" = yes; then
33010   ac_cv_c_stack_direction=0
33011 else
33012   cat >conftest.$ac_ext <<_ACEOF
33013 /* confdefs.h.  */
33014 _ACEOF
33015 cat confdefs.h >>conftest.$ac_ext
33016 cat >>conftest.$ac_ext <<_ACEOF
33017 /* end confdefs.h.  */
33018 $ac_includes_default
33019 int
33020 find_stack_direction ()
33021 {
33022   static char *addr = 0;
33023   auto char dummy;
33024   if (addr == 0)
33025     {
33026       addr = &dummy;
33027       return find_stack_direction ();
33028     }
33029   else
33030     return (&dummy > addr) ? 1 : -1;
33031 }
33032
33033 int
33034 main ()
33035 {
33036   return find_stack_direction () < 0;
33037 }
33038 _ACEOF
33039 rm -f conftest$ac_exeext
33040 if { (ac_try="$ac_link"
33041 case "(($ac_try" in
33042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33043   *) ac_try_echo=$ac_try;;
33044 esac
33045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33046   (eval "$ac_link") 2>&5
33047   ac_status=$?
33048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33050   { (case "(($ac_try" in
33051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33052   *) ac_try_echo=$ac_try;;
33053 esac
33054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33055   (eval "$ac_try") 2>&5
33056   ac_status=$?
33057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33058   (exit $ac_status); }; }; then
33059   ac_cv_c_stack_direction=1
33060 else
33061   echo "$as_me: program exited with status $ac_status" >&5
33062 echo "$as_me: failed program was:" >&5
33063 sed 's/^/| /' conftest.$ac_ext >&5
33064
33065 ( exit $ac_status )
33066 ac_cv_c_stack_direction=-1
33067 fi
33068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33069 fi
33070
33071
33072 fi
33073 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33074 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33075
33076 cat >>confdefs.h <<_ACEOF
33077 #define STACK_DIRECTION $ac_cv_c_stack_direction
33078 _ACEOF
33079
33080
33081 fi
33082
33083
33084 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33085 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33086 if test "${ac_cv_func_rand48+set}" = set; then
33087   echo $ECHO_N "(cached) $ECHO_C" >&6
33088 else
33089   ac_ext=cpp
33090 ac_cpp='$CXXCPP $CPPFLAGS'
33091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33094
33095    cat >conftest.$ac_ext <<_ACEOF
33096 /* confdefs.h.  */
33097 _ACEOF
33098 cat confdefs.h >>conftest.$ac_ext
33099 cat >>conftest.$ac_ext <<_ACEOF
33100 /* end confdefs.h.  */
33101 #include <stdlib.h>
33102 int
33103 main ()
33104 {
33105 srand48(0);lrand48();drand48();
33106   ;
33107   return 0;
33108 }
33109 _ACEOF
33110 rm -f conftest.$ac_objext
33111 if { (ac_try="$ac_compile"
33112 case "(($ac_try" in
33113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33114   *) ac_try_echo=$ac_try;;
33115 esac
33116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33117   (eval "$ac_compile") 2>conftest.er1
33118   ac_status=$?
33119   grep -v '^ *+' conftest.er1 >conftest.err
33120   rm -f conftest.er1
33121   cat conftest.err >&5
33122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33123   (exit $ac_status); } &&
33124          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33125   { (case "(($ac_try" in
33126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33127   *) ac_try_echo=$ac_try;;
33128 esac
33129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33130   (eval "$ac_try") 2>&5
33131   ac_status=$?
33132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33133   (exit $ac_status); }; } &&
33134          { ac_try='test -s conftest.$ac_objext'
33135   { (case "(($ac_try" in
33136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33137   *) ac_try_echo=$ac_try;;
33138 esac
33139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33140   (eval "$ac_try") 2>&5
33141   ac_status=$?
33142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33143   (exit $ac_status); }; }; then
33144   ac_cv_func_rand48=yes
33145 else
33146   echo "$as_me: failed program was:" >&5
33147 sed 's/^/| /' conftest.$ac_ext >&5
33148
33149         ac_cv_func_rand48=no
33150 fi
33151
33152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33153   ac_ext=c
33154 ac_cpp='$CPP $CPPFLAGS'
33155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33158
33159 fi
33160 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33161 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33162
33163 if test "$ac_cv_func_rand48" = "yes" ; then
33164
33165 cat >>confdefs.h <<\_ACEOF
33166 #define HAVE_RAND48 1
33167 _ACEOF
33168
33169 fi
33170
33171
33172 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33173 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33174 if test "${ac_cv_cxx_namespaces+set}" = set; then
33175   echo $ECHO_N "(cached) $ECHO_C" >&6
33176 else
33177   ac_ext=cpp
33178 ac_cpp='$CXXCPP $CPPFLAGS'
33179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33182
33183  cat >conftest.$ac_ext <<_ACEOF
33184 /* confdefs.h.  */
33185 _ACEOF
33186 cat confdefs.h >>conftest.$ac_ext
33187 cat >>conftest.$ac_ext <<_ACEOF
33188 /* end confdefs.h.  */
33189 namespace Outer { namespace Inner { int i = 0; }}
33190 int
33191 main ()
33192 {
33193 using namespace Outer::Inner; return i;
33194   ;
33195   return 0;
33196 }
33197 _ACEOF
33198 rm -f conftest.$ac_objext
33199 if { (ac_try="$ac_compile"
33200 case "(($ac_try" in
33201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33202   *) ac_try_echo=$ac_try;;
33203 esac
33204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33205   (eval "$ac_compile") 2>conftest.er1
33206   ac_status=$?
33207   grep -v '^ *+' conftest.er1 >conftest.err
33208   rm -f conftest.er1
33209   cat conftest.err >&5
33210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211   (exit $ac_status); } &&
33212          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33213   { (case "(($ac_try" in
33214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33215   *) ac_try_echo=$ac_try;;
33216 esac
33217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33218   (eval "$ac_try") 2>&5
33219   ac_status=$?
33220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221   (exit $ac_status); }; } &&
33222          { ac_try='test -s conftest.$ac_objext'
33223   { (case "(($ac_try" in
33224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33225   *) ac_try_echo=$ac_try;;
33226 esac
33227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33228   (eval "$ac_try") 2>&5
33229   ac_status=$?
33230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33231   (exit $ac_status); }; }; then
33232   ac_cv_cxx_namespaces=yes
33233 else
33234   echo "$as_me: failed program was:" >&5
33235 sed 's/^/| /' conftest.$ac_ext >&5
33236
33237         ac_cv_cxx_namespaces=no
33238 fi
33239
33240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33241  ac_ext=c
33242 ac_cpp='$CPP $CPPFLAGS'
33243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33246
33247
33248 fi
33249 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33250 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33251 if test "$ac_cv_cxx_namespaces" = yes; then
33252
33253 cat >>confdefs.h <<\_ACEOF
33254 #define HAVE_NAMESPACES
33255 _ACEOF
33256
33257 fi
33258
33259 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33260 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33261 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33262   echo $ECHO_N "(cached) $ECHO_C" >&6
33263 else
33264
33265   ac_ext=cpp
33266 ac_cpp='$CXXCPP $CPPFLAGS'
33267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33270
33271   cat >conftest.$ac_ext <<_ACEOF
33272 /* confdefs.h.  */
33273 _ACEOF
33274 cat confdefs.h >>conftest.$ac_ext
33275 cat >>conftest.$ac_ext <<_ACEOF
33276 /* end confdefs.h.  */
33277 #include <iterator>
33278 #ifdef HAVE_NAMESPACES
33279 using namespace std;
33280 #endif
33281 int
33282 main ()
33283 {
33284 iterator<int,int,int> t; return 0;
33285   ;
33286   return 0;
33287 }
33288 _ACEOF
33289 rm -f conftest.$ac_objext
33290 if { (ac_try="$ac_compile"
33291 case "(($ac_try" in
33292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33293   *) ac_try_echo=$ac_try;;
33294 esac
33295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33296   (eval "$ac_compile") 2>conftest.er1
33297   ac_status=$?
33298   grep -v '^ *+' conftest.er1 >conftest.err
33299   rm -f conftest.er1
33300   cat conftest.err >&5
33301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33302   (exit $ac_status); } &&
33303          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33304   { (case "(($ac_try" in
33305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33306   *) ac_try_echo=$ac_try;;
33307 esac
33308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33309   (eval "$ac_try") 2>&5
33310   ac_status=$?
33311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312   (exit $ac_status); }; } &&
33313          { ac_try='test -s conftest.$ac_objext'
33314   { (case "(($ac_try" in
33315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33316   *) ac_try_echo=$ac_try;;
33317 esac
33318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33319   (eval "$ac_try") 2>&5
33320   ac_status=$?
33321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322   (exit $ac_status); }; }; then
33323   ac_cv_cxx_have_std_iterator=yes
33324 else
33325   echo "$as_me: failed program was:" >&5
33326 sed 's/^/| /' conftest.$ac_ext >&5
33327
33328         ac_cv_cxx_have_std_iterator=no
33329 fi
33330
33331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33332   ac_ext=c
33333 ac_cpp='$CPP $CPPFLAGS'
33334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33337
33338
33339 fi
33340 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33341 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33342 if test "$ac_cv_cxx_have_std_iterator" = yes
33343 then
33344
33345 cat >>confdefs.h <<\_ACEOF
33346 #define HAVE_STD_ITERATOR 1
33347 _ACEOF
33348
33349 else
33350
33351 cat >>confdefs.h <<\_ACEOF
33352 #define HAVE_STD_ITERATOR 0
33353 _ACEOF
33354
33355 fi
33356
33357 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33358 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33359 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33360   echo $ECHO_N "(cached) $ECHO_C" >&6
33361 else
33362
33363   ac_ext=cpp
33364 ac_cpp='$CXXCPP $CPPFLAGS'
33365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33368
33369   cat >conftest.$ac_ext <<_ACEOF
33370 /* confdefs.h.  */
33371 _ACEOF
33372 cat confdefs.h >>conftest.$ac_ext
33373 cat >>conftest.$ac_ext <<_ACEOF
33374 /* end confdefs.h.  */
33375 #include <iterator>
33376 #ifdef HAVE_NAMESPACES
33377 using namespace std;
33378 #endif
33379 int
33380 main ()
33381 {
33382 bidirectional_iterator<int,int> t; return 0;
33383   ;
33384   return 0;
33385 }
33386 _ACEOF
33387 rm -f conftest.$ac_objext
33388 if { (ac_try="$ac_compile"
33389 case "(($ac_try" in
33390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33391   *) ac_try_echo=$ac_try;;
33392 esac
33393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33394   (eval "$ac_compile") 2>conftest.er1
33395   ac_status=$?
33396   grep -v '^ *+' conftest.er1 >conftest.err
33397   rm -f conftest.er1
33398   cat conftest.err >&5
33399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400   (exit $ac_status); } &&
33401          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33402   { (case "(($ac_try" in
33403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33404   *) ac_try_echo=$ac_try;;
33405 esac
33406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33407   (eval "$ac_try") 2>&5
33408   ac_status=$?
33409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33410   (exit $ac_status); }; } &&
33411          { ac_try='test -s conftest.$ac_objext'
33412   { (case "(($ac_try" in
33413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33414   *) ac_try_echo=$ac_try;;
33415 esac
33416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33417   (eval "$ac_try") 2>&5
33418   ac_status=$?
33419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420   (exit $ac_status); }; }; then
33421   ac_cv_cxx_have_bi_iterator=yes
33422 else
33423   echo "$as_me: failed program was:" >&5
33424 sed 's/^/| /' conftest.$ac_ext >&5
33425
33426         ac_cv_cxx_have_bi_iterator=no
33427 fi
33428
33429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33430   ac_ext=c
33431 ac_cpp='$CPP $CPPFLAGS'
33432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33435
33436
33437 fi
33438 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33439 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33440 if test "$ac_cv_cxx_have_bi_iterator" = yes
33441 then
33442
33443 cat >>confdefs.h <<\_ACEOF
33444 #define HAVE_BI_ITERATOR 1
33445 _ACEOF
33446
33447 else
33448
33449 cat >>confdefs.h <<\_ACEOF
33450 #define HAVE_BI_ITERATOR 0
33451 _ACEOF
33452
33453 fi
33454
33455 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33456 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33457 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33458   echo $ECHO_N "(cached) $ECHO_C" >&6
33459 else
33460
33461   ac_ext=cpp
33462 ac_cpp='$CXXCPP $CPPFLAGS'
33463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33466
33467   cat >conftest.$ac_ext <<_ACEOF
33468 /* confdefs.h.  */
33469 _ACEOF
33470 cat confdefs.h >>conftest.$ac_ext
33471 cat >>conftest.$ac_ext <<_ACEOF
33472 /* end confdefs.h.  */
33473 #include <iterator>
33474 #ifdef HAVE_NAMESPACES
33475 using namespace std;
33476 #endif
33477 int
33478 main ()
33479 {
33480 forward_iterator<int,int> t; return 0;
33481   ;
33482   return 0;
33483 }
33484 _ACEOF
33485 rm -f conftest.$ac_objext
33486 if { (ac_try="$ac_compile"
33487 case "(($ac_try" in
33488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33489   *) ac_try_echo=$ac_try;;
33490 esac
33491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33492   (eval "$ac_compile") 2>conftest.er1
33493   ac_status=$?
33494   grep -v '^ *+' conftest.er1 >conftest.err
33495   rm -f conftest.er1
33496   cat conftest.err >&5
33497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33498   (exit $ac_status); } &&
33499          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33500   { (case "(($ac_try" in
33501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33502   *) ac_try_echo=$ac_try;;
33503 esac
33504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33505   (eval "$ac_try") 2>&5
33506   ac_status=$?
33507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33508   (exit $ac_status); }; } &&
33509          { ac_try='test -s conftest.$ac_objext'
33510   { (case "(($ac_try" in
33511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33512   *) ac_try_echo=$ac_try;;
33513 esac
33514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33515   (eval "$ac_try") 2>&5
33516   ac_status=$?
33517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33518   (exit $ac_status); }; }; then
33519   ac_cv_cxx_have_fwd_iterator=yes
33520 else
33521   echo "$as_me: failed program was:" >&5
33522 sed 's/^/| /' conftest.$ac_ext >&5
33523
33524         ac_cv_cxx_have_fwd_iterator=no
33525 fi
33526
33527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33528   ac_ext=c
33529 ac_cpp='$CPP $CPPFLAGS'
33530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33533
33534
33535 fi
33536 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33537 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33538 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33539 then
33540
33541 cat >>confdefs.h <<\_ACEOF
33542 #define HAVE_FWD_ITERATOR 1
33543 _ACEOF
33544
33545 else
33546
33547 cat >>confdefs.h <<\_ACEOF
33548 #define HAVE_FWD_ITERATOR 0
33549 _ACEOF
33550
33551 fi
33552
33553
33554 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33555 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33556 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33557   echo $ECHO_N "(cached) $ECHO_C" >&6
33558 else
33559   ac_ext=cpp
33560 ac_cpp='$CXXCPP $CPPFLAGS'
33561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33564
33565    cat >conftest.$ac_ext <<_ACEOF
33566 /* confdefs.h.  */
33567 _ACEOF
33568 cat confdefs.h >>conftest.$ac_ext
33569 cat >>conftest.$ac_ext <<_ACEOF
33570 /* end confdefs.h.  */
33571 #include <math.h>
33572 int
33573 main ()
33574 {
33575 float f; isnan(f);
33576   ;
33577   return 0;
33578 }
33579 _ACEOF
33580 rm -f conftest.$ac_objext
33581 if { (ac_try="$ac_compile"
33582 case "(($ac_try" in
33583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33584   *) ac_try_echo=$ac_try;;
33585 esac
33586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33587   (eval "$ac_compile") 2>conftest.er1
33588   ac_status=$?
33589   grep -v '^ *+' conftest.er1 >conftest.err
33590   rm -f conftest.er1
33591   cat conftest.err >&5
33592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33593   (exit $ac_status); } &&
33594          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33595   { (case "(($ac_try" in
33596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33597   *) ac_try_echo=$ac_try;;
33598 esac
33599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33600   (eval "$ac_try") 2>&5
33601   ac_status=$?
33602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33603   (exit $ac_status); }; } &&
33604          { ac_try='test -s conftest.$ac_objext'
33605   { (case "(($ac_try" in
33606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33607   *) ac_try_echo=$ac_try;;
33608 esac
33609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33610   (eval "$ac_try") 2>&5
33611   ac_status=$?
33612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33613   (exit $ac_status); }; }; then
33614   ac_cv_func_isnan_in_math_h=yes
33615 else
33616   echo "$as_me: failed program was:" >&5
33617 sed 's/^/| /' conftest.$ac_ext >&5
33618
33619         ac_cv_func_isnan_in_math_h=no
33620 fi
33621
33622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33623   ac_ext=c
33624 ac_cpp='$CPP $CPPFLAGS'
33625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33628
33629 fi
33630 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33631 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33632
33633
33634 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33635
33636 cat >>confdefs.h <<\_ACEOF
33637 #define HAVE_ISNAN_IN_MATH_H 1
33638 _ACEOF
33639
33640 fi
33641
33642 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33643 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33644 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33645   echo $ECHO_N "(cached) $ECHO_C" >&6
33646 else
33647   ac_ext=cpp
33648 ac_cpp='$CXXCPP $CPPFLAGS'
33649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33652
33653    cat >conftest.$ac_ext <<_ACEOF
33654 /* confdefs.h.  */
33655 _ACEOF
33656 cat confdefs.h >>conftest.$ac_ext
33657 cat >>conftest.$ac_ext <<_ACEOF
33658 /* end confdefs.h.  */
33659 #include <cmath>
33660 int
33661 main ()
33662 {
33663 float f; isnan(f);
33664   ;
33665   return 0;
33666 }
33667 _ACEOF
33668 rm -f conftest.$ac_objext
33669 if { (ac_try="$ac_compile"
33670 case "(($ac_try" in
33671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33672   *) ac_try_echo=$ac_try;;
33673 esac
33674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33675   (eval "$ac_compile") 2>conftest.er1
33676   ac_status=$?
33677   grep -v '^ *+' conftest.er1 >conftest.err
33678   rm -f conftest.er1
33679   cat conftest.err >&5
33680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33681   (exit $ac_status); } &&
33682          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33683   { (case "(($ac_try" in
33684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33685   *) ac_try_echo=$ac_try;;
33686 esac
33687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33688   (eval "$ac_try") 2>&5
33689   ac_status=$?
33690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33691   (exit $ac_status); }; } &&
33692          { ac_try='test -s conftest.$ac_objext'
33693   { (case "(($ac_try" in
33694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33695   *) ac_try_echo=$ac_try;;
33696 esac
33697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33698   (eval "$ac_try") 2>&5
33699   ac_status=$?
33700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701   (exit $ac_status); }; }; then
33702   ac_cv_func_isnan_in_cmath=yes
33703 else
33704   echo "$as_me: failed program was:" >&5
33705 sed 's/^/| /' conftest.$ac_ext >&5
33706
33707         ac_cv_func_isnan_in_cmath=no
33708 fi
33709
33710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33711   ac_ext=c
33712 ac_cpp='$CPP $CPPFLAGS'
33713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33716
33717 fi
33718 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33719 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33720
33721 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33722
33723 cat >>confdefs.h <<\_ACEOF
33724 #define HAVE_ISNAN_IN_CMATH 1
33725 _ACEOF
33726
33727 fi
33728
33729 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33730 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33731 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33732   echo $ECHO_N "(cached) $ECHO_C" >&6
33733 else
33734   ac_ext=cpp
33735 ac_cpp='$CXXCPP $CPPFLAGS'
33736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33739
33740    cat >conftest.$ac_ext <<_ACEOF
33741 /* confdefs.h.  */
33742 _ACEOF
33743 cat confdefs.h >>conftest.$ac_ext
33744 cat >>conftest.$ac_ext <<_ACEOF
33745 /* end confdefs.h.  */
33746 #include <cmath>
33747 int
33748 main ()
33749 {
33750 float f; std::isnan(f);
33751   ;
33752   return 0;
33753 }
33754 _ACEOF
33755 rm -f conftest.$ac_objext
33756 if { (ac_try="$ac_compile"
33757 case "(($ac_try" in
33758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33759   *) ac_try_echo=$ac_try;;
33760 esac
33761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33762   (eval "$ac_compile") 2>conftest.er1
33763   ac_status=$?
33764   grep -v '^ *+' conftest.er1 >conftest.err
33765   rm -f conftest.er1
33766   cat conftest.err >&5
33767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33768   (exit $ac_status); } &&
33769          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33770   { (case "(($ac_try" in
33771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33772   *) ac_try_echo=$ac_try;;
33773 esac
33774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33775   (eval "$ac_try") 2>&5
33776   ac_status=$?
33777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33778   (exit $ac_status); }; } &&
33779          { ac_try='test -s conftest.$ac_objext'
33780   { (case "(($ac_try" in
33781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33782   *) ac_try_echo=$ac_try;;
33783 esac
33784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33785   (eval "$ac_try") 2>&5
33786   ac_status=$?
33787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788   (exit $ac_status); }; }; then
33789   ac_cv_func_std_isnan_in_cmath=yes
33790 else
33791   echo "$as_me: failed program was:" >&5
33792 sed 's/^/| /' conftest.$ac_ext >&5
33793
33794         ac_cv_func_std_isnan_in_cmath=no
33795 fi
33796
33797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33798   ac_ext=c
33799 ac_cpp='$CPP $CPPFLAGS'
33800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33803
33804 fi
33805 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33806 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33807
33808 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33809
33810 cat >>confdefs.h <<\_ACEOF
33811 #define HAVE_STD_ISNAN_IN_CMATH 1
33812 _ACEOF
33813
33814 fi
33815
33816
33817 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33818 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33819 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33820   echo $ECHO_N "(cached) $ECHO_C" >&6
33821 else
33822   ac_ext=cpp
33823 ac_cpp='$CXXCPP $CPPFLAGS'
33824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33827
33828    cat >conftest.$ac_ext <<_ACEOF
33829 /* confdefs.h.  */
33830 _ACEOF
33831 cat confdefs.h >>conftest.$ac_ext
33832 cat >>conftest.$ac_ext <<_ACEOF
33833 /* end confdefs.h.  */
33834 #include <math.h>
33835 int
33836 main ()
33837 {
33838 float f; isinf(f);
33839   ;
33840   return 0;
33841 }
33842 _ACEOF
33843 rm -f conftest.$ac_objext
33844 if { (ac_try="$ac_compile"
33845 case "(($ac_try" in
33846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33847   *) ac_try_echo=$ac_try;;
33848 esac
33849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33850   (eval "$ac_compile") 2>conftest.er1
33851   ac_status=$?
33852   grep -v '^ *+' conftest.er1 >conftest.err
33853   rm -f conftest.er1
33854   cat conftest.err >&5
33855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33856   (exit $ac_status); } &&
33857          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33858   { (case "(($ac_try" in
33859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33860   *) ac_try_echo=$ac_try;;
33861 esac
33862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33863   (eval "$ac_try") 2>&5
33864   ac_status=$?
33865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866   (exit $ac_status); }; } &&
33867          { ac_try='test -s conftest.$ac_objext'
33868   { (case "(($ac_try" in
33869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33870   *) ac_try_echo=$ac_try;;
33871 esac
33872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33873   (eval "$ac_try") 2>&5
33874   ac_status=$?
33875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33876   (exit $ac_status); }; }; then
33877   ac_cv_func_isinf_in_math_h=yes
33878 else
33879   echo "$as_me: failed program was:" >&5
33880 sed 's/^/| /' conftest.$ac_ext >&5
33881
33882         ac_cv_func_isinf_in_math_h=no
33883 fi
33884
33885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33886   ac_ext=c
33887 ac_cpp='$CPP $CPPFLAGS'
33888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33891
33892 fi
33893 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33894 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33895
33896 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33897
33898 cat >>confdefs.h <<\_ACEOF
33899 #define HAVE_ISINF_IN_MATH_H 1
33900 _ACEOF
33901
33902 fi
33903
33904 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33905 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33906 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33907   echo $ECHO_N "(cached) $ECHO_C" >&6
33908 else
33909   ac_ext=cpp
33910 ac_cpp='$CXXCPP $CPPFLAGS'
33911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33914
33915    cat >conftest.$ac_ext <<_ACEOF
33916 /* confdefs.h.  */
33917 _ACEOF
33918 cat confdefs.h >>conftest.$ac_ext
33919 cat >>conftest.$ac_ext <<_ACEOF
33920 /* end confdefs.h.  */
33921 #include <cmath>
33922 int
33923 main ()
33924 {
33925 float f; isinf(f);
33926   ;
33927   return 0;
33928 }
33929 _ACEOF
33930 rm -f conftest.$ac_objext
33931 if { (ac_try="$ac_compile"
33932 case "(($ac_try" in
33933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33934   *) ac_try_echo=$ac_try;;
33935 esac
33936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33937   (eval "$ac_compile") 2>conftest.er1
33938   ac_status=$?
33939   grep -v '^ *+' conftest.er1 >conftest.err
33940   rm -f conftest.er1
33941   cat conftest.err >&5
33942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33943   (exit $ac_status); } &&
33944          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33945   { (case "(($ac_try" in
33946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33947   *) ac_try_echo=$ac_try;;
33948 esac
33949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33950   (eval "$ac_try") 2>&5
33951   ac_status=$?
33952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33953   (exit $ac_status); }; } &&
33954          { ac_try='test -s conftest.$ac_objext'
33955   { (case "(($ac_try" in
33956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33957   *) ac_try_echo=$ac_try;;
33958 esac
33959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33960   (eval "$ac_try") 2>&5
33961   ac_status=$?
33962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33963   (exit $ac_status); }; }; then
33964   ac_cv_func_isinf_in_cmath=yes
33965 else
33966   echo "$as_me: failed program was:" >&5
33967 sed 's/^/| /' conftest.$ac_ext >&5
33968
33969         ac_cv_func_isinf_in_cmath=no
33970 fi
33971
33972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33973   ac_ext=c
33974 ac_cpp='$CPP $CPPFLAGS'
33975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33978
33979 fi
33980 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33981 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33982
33983 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33984
33985 cat >>confdefs.h <<\_ACEOF
33986 #define HAVE_ISINF_IN_CMATH 1
33987 _ACEOF
33988
33989 fi
33990
33991 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33992 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33993 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33994   echo $ECHO_N "(cached) $ECHO_C" >&6
33995 else
33996   ac_ext=cpp
33997 ac_cpp='$CXXCPP $CPPFLAGS'
33998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34001
34002    cat >conftest.$ac_ext <<_ACEOF
34003 /* confdefs.h.  */
34004 _ACEOF
34005 cat confdefs.h >>conftest.$ac_ext
34006 cat >>conftest.$ac_ext <<_ACEOF
34007 /* end confdefs.h.  */
34008 #include <cmath>
34009 int
34010 main ()
34011 {
34012 float f; std::isinf(f)}
34013   ;
34014   return 0;
34015 }
34016 _ACEOF
34017 rm -f conftest.$ac_objext
34018 if { (ac_try="$ac_compile"
34019 case "(($ac_try" in
34020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34021   *) ac_try_echo=$ac_try;;
34022 esac
34023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34024   (eval "$ac_compile") 2>conftest.er1
34025   ac_status=$?
34026   grep -v '^ *+' conftest.er1 >conftest.err
34027   rm -f conftest.er1
34028   cat conftest.err >&5
34029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34030   (exit $ac_status); } &&
34031          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34032   { (case "(($ac_try" in
34033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34034   *) ac_try_echo=$ac_try;;
34035 esac
34036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34037   (eval "$ac_try") 2>&5
34038   ac_status=$?
34039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34040   (exit $ac_status); }; } &&
34041          { ac_try='test -s conftest.$ac_objext'
34042   { (case "(($ac_try" in
34043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34044   *) ac_try_echo=$ac_try;;
34045 esac
34046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34047   (eval "$ac_try") 2>&5
34048   ac_status=$?
34049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34050   (exit $ac_status); }; }; then
34051   ac_cv_func_std_isinf_in_cmath=yes
34052 else
34053   echo "$as_me: failed program was:" >&5
34054 sed 's/^/| /' conftest.$ac_ext >&5
34055
34056         ac_cv_func_std_isinf_in_cmath=no
34057 fi
34058
34059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34060   ac_ext=c
34061 ac_cpp='$CPP $CPPFLAGS'
34062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34065
34066 fi
34067 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34068 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34069
34070 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34071
34072 cat >>confdefs.h <<\_ACEOF
34073 #define HAVE_STD_ISINF_IN_CMATH 1
34074 _ACEOF
34075
34076 fi
34077
34078 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34079 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34080 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34081   echo $ECHO_N "(cached) $ECHO_C" >&6
34082 else
34083   ac_ext=cpp
34084 ac_cpp='$CXXCPP $CPPFLAGS'
34085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34088
34089    cat >conftest.$ac_ext <<_ACEOF
34090 /* confdefs.h.  */
34091 _ACEOF
34092 cat confdefs.h >>conftest.$ac_ext
34093 cat >>conftest.$ac_ext <<_ACEOF
34094 /* end confdefs.h.  */
34095 #include <ieeefp.h>
34096 int
34097 main ()
34098 {
34099 float f; finite(f);
34100   ;
34101   return 0;
34102 }
34103 _ACEOF
34104 rm -f conftest.$ac_objext
34105 if { (ac_try="$ac_compile"
34106 case "(($ac_try" in
34107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34108   *) ac_try_echo=$ac_try;;
34109 esac
34110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34111   (eval "$ac_compile") 2>conftest.er1
34112   ac_status=$?
34113   grep -v '^ *+' conftest.er1 >conftest.err
34114   rm -f conftest.er1
34115   cat conftest.err >&5
34116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117   (exit $ac_status); } &&
34118          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34119   { (case "(($ac_try" in
34120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34121   *) ac_try_echo=$ac_try;;
34122 esac
34123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34124   (eval "$ac_try") 2>&5
34125   ac_status=$?
34126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34127   (exit $ac_status); }; } &&
34128          { ac_try='test -s conftest.$ac_objext'
34129   { (case "(($ac_try" in
34130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34131   *) ac_try_echo=$ac_try;;
34132 esac
34133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34134   (eval "$ac_try") 2>&5
34135   ac_status=$?
34136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34137   (exit $ac_status); }; }; then
34138   ac_cv_func_finite_in_ieeefp_h=yes
34139 else
34140   echo "$as_me: failed program was:" >&5
34141 sed 's/^/| /' conftest.$ac_ext >&5
34142
34143         ac_cv_func_finite_in_ieeefp_h=no
34144 fi
34145
34146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34147   ac_ext=c
34148 ac_cpp='$CPP $CPPFLAGS'
34149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34152
34153 fi
34154 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34155 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34156
34157 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34158
34159 cat >>confdefs.h <<\_ACEOF
34160 #define HAVE_FINITE_IN_IEEEFP_H 1
34161 _ACEOF
34162
34163 fi
34164
34165
34166
34167 if test "$llvm_cv_platform_type" = "Unix" ; then
34168
34169
34170 for ac_header in stdlib.h unistd.h
34171 do
34172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34174   { echo "$as_me:$LINENO: checking for $ac_header" >&5
34175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34177   echo $ECHO_N "(cached) $ECHO_C" >&6
34178 fi
34179 ac_res=`eval echo '${'$as_ac_Header'}'`
34180                { echo "$as_me:$LINENO: result: $ac_res" >&5
34181 echo "${ECHO_T}$ac_res" >&6; }
34182 else
34183   # Is the header compilable?
34184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34186 cat >conftest.$ac_ext <<_ACEOF
34187 /* confdefs.h.  */
34188 _ACEOF
34189 cat confdefs.h >>conftest.$ac_ext
34190 cat >>conftest.$ac_ext <<_ACEOF
34191 /* end confdefs.h.  */
34192 $ac_includes_default
34193 #include <$ac_header>
34194 _ACEOF
34195 rm -f conftest.$ac_objext
34196 if { (ac_try="$ac_compile"
34197 case "(($ac_try" in
34198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34199   *) ac_try_echo=$ac_try;;
34200 esac
34201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34202   (eval "$ac_compile") 2>conftest.er1
34203   ac_status=$?
34204   grep -v '^ *+' conftest.er1 >conftest.err
34205   rm -f conftest.er1
34206   cat conftest.err >&5
34207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34208   (exit $ac_status); } &&
34209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34210   { (case "(($ac_try" in
34211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34212   *) ac_try_echo=$ac_try;;
34213 esac
34214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34215   (eval "$ac_try") 2>&5
34216   ac_status=$?
34217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34218   (exit $ac_status); }; } &&
34219          { ac_try='test -s conftest.$ac_objext'
34220   { (case "(($ac_try" in
34221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34222   *) ac_try_echo=$ac_try;;
34223 esac
34224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34225   (eval "$ac_try") 2>&5
34226   ac_status=$?
34227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228   (exit $ac_status); }; }; then
34229   ac_header_compiler=yes
34230 else
34231   echo "$as_me: failed program was:" >&5
34232 sed 's/^/| /' conftest.$ac_ext >&5
34233
34234         ac_header_compiler=no
34235 fi
34236
34237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34239 echo "${ECHO_T}$ac_header_compiler" >&6; }
34240
34241 # Is the header present?
34242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34244 cat >conftest.$ac_ext <<_ACEOF
34245 /* confdefs.h.  */
34246 _ACEOF
34247 cat confdefs.h >>conftest.$ac_ext
34248 cat >>conftest.$ac_ext <<_ACEOF
34249 /* end confdefs.h.  */
34250 #include <$ac_header>
34251 _ACEOF
34252 if { (ac_try="$ac_cpp conftest.$ac_ext"
34253 case "(($ac_try" in
34254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34255   *) ac_try_echo=$ac_try;;
34256 esac
34257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34259   ac_status=$?
34260   grep -v '^ *+' conftest.er1 >conftest.err
34261   rm -f conftest.er1
34262   cat conftest.err >&5
34263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34264   (exit $ac_status); } >/dev/null; then
34265   if test -s conftest.err; then
34266     ac_cpp_err=$ac_c_preproc_warn_flag
34267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34268   else
34269     ac_cpp_err=
34270   fi
34271 else
34272   ac_cpp_err=yes
34273 fi
34274 if test -z "$ac_cpp_err"; then
34275   ac_header_preproc=yes
34276 else
34277   echo "$as_me: failed program was:" >&5
34278 sed 's/^/| /' conftest.$ac_ext >&5
34279
34280   ac_header_preproc=no
34281 fi
34282
34283 rm -f conftest.err conftest.$ac_ext
34284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34285 echo "${ECHO_T}$ac_header_preproc" >&6; }
34286
34287 # So?  What about this header?
34288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34289   yes:no: )
34290     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34294     ac_header_preproc=yes
34295     ;;
34296   no:yes:* )
34297     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34299     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34300 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34301     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34303     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34304 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34307     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34309     ( cat <<\_ASBOX
34310 ## ----------------------------------- ##
34311 ## Report this to llvmbugs@cs.uiuc.edu ##
34312 ## ----------------------------------- ##
34313 _ASBOX
34314      ) | sed "s/^/$as_me: WARNING:     /" >&2
34315     ;;
34316 esac
34317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34320   echo $ECHO_N "(cached) $ECHO_C" >&6
34321 else
34322   eval "$as_ac_Header=\$ac_header_preproc"
34323 fi
34324 ac_res=`eval echo '${'$as_ac_Header'}'`
34325                { echo "$as_me:$LINENO: result: $ac_res" >&5
34326 echo "${ECHO_T}$ac_res" >&6; }
34327
34328 fi
34329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34330   cat >>confdefs.h <<_ACEOF
34331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34332 _ACEOF
34333
34334 fi
34335
34336 done
34337
34338
34339 for ac_func in getpagesize
34340 do
34341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34345   echo $ECHO_N "(cached) $ECHO_C" >&6
34346 else
34347   cat >conftest.$ac_ext <<_ACEOF
34348 /* confdefs.h.  */
34349 _ACEOF
34350 cat confdefs.h >>conftest.$ac_ext
34351 cat >>conftest.$ac_ext <<_ACEOF
34352 /* end confdefs.h.  */
34353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34355 #define $ac_func innocuous_$ac_func
34356
34357 /* System header to define __stub macros and hopefully few prototypes,
34358     which can conflict with char $ac_func (); below.
34359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34360     <limits.h> exists even on freestanding compilers.  */
34361
34362 #ifdef __STDC__
34363 # include <limits.h>
34364 #else
34365 # include <assert.h>
34366 #endif
34367
34368 #undef $ac_func
34369
34370 /* Override any GCC internal prototype to avoid an error.
34371    Use char because int might match the return type of a GCC
34372    builtin and then its argument prototype would still apply.  */
34373 #ifdef __cplusplus
34374 extern "C"
34375 #endif
34376 char $ac_func ();
34377 /* The GNU C library defines this for functions which it implements
34378     to always fail with ENOSYS.  Some functions are actually named
34379     something starting with __ and the normal name is an alias.  */
34380 #if defined __stub_$ac_func || defined __stub___$ac_func
34381 choke me
34382 #endif
34383
34384 int
34385 main ()
34386 {
34387 return $ac_func ();
34388   ;
34389   return 0;
34390 }
34391 _ACEOF
34392 rm -f conftest.$ac_objext conftest$ac_exeext
34393 if { (ac_try="$ac_link"
34394 case "(($ac_try" in
34395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34396   *) ac_try_echo=$ac_try;;
34397 esac
34398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34399   (eval "$ac_link") 2>conftest.er1
34400   ac_status=$?
34401   grep -v '^ *+' conftest.er1 >conftest.err
34402   rm -f conftest.er1
34403   cat conftest.err >&5
34404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34405   (exit $ac_status); } &&
34406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34407   { (case "(($ac_try" in
34408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34409   *) ac_try_echo=$ac_try;;
34410 esac
34411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34412   (eval "$ac_try") 2>&5
34413   ac_status=$?
34414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34415   (exit $ac_status); }; } &&
34416          { ac_try='test -s conftest$ac_exeext'
34417   { (case "(($ac_try" in
34418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34419   *) ac_try_echo=$ac_try;;
34420 esac
34421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34422   (eval "$ac_try") 2>&5
34423   ac_status=$?
34424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425   (exit $ac_status); }; }; then
34426   eval "$as_ac_var=yes"
34427 else
34428   echo "$as_me: failed program was:" >&5
34429 sed 's/^/| /' conftest.$ac_ext >&5
34430
34431         eval "$as_ac_var=no"
34432 fi
34433
34434 rm -f core conftest.err conftest.$ac_objext \
34435       conftest$ac_exeext conftest.$ac_ext
34436 fi
34437 ac_res=`eval echo '${'$as_ac_var'}'`
34438                { echo "$as_me:$LINENO: result: $ac_res" >&5
34439 echo "${ECHO_T}$ac_res" >&6; }
34440 if test `eval echo '${'$as_ac_var'}'` = yes; then
34441   cat >>confdefs.h <<_ACEOF
34442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34443 _ACEOF
34444
34445 fi
34446 done
34447
34448 { echo "$as_me:$LINENO: checking for working mmap" >&5
34449 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34450 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34451   echo $ECHO_N "(cached) $ECHO_C" >&6
34452 else
34453   if test "$cross_compiling" = yes; then
34454   ac_cv_func_mmap_fixed_mapped=no
34455 else
34456   cat >conftest.$ac_ext <<_ACEOF
34457 /* confdefs.h.  */
34458 _ACEOF
34459 cat confdefs.h >>conftest.$ac_ext
34460 cat >>conftest.$ac_ext <<_ACEOF
34461 /* end confdefs.h.  */
34462 $ac_includes_default
34463 /* malloc might have been renamed as rpl_malloc. */
34464 #undef malloc
34465
34466 /* Thanks to Mike Haertel and Jim Avera for this test.
34467    Here is a matrix of mmap possibilities:
34468         mmap private not fixed
34469         mmap private fixed at somewhere currently unmapped
34470         mmap private fixed at somewhere already mapped
34471         mmap shared not fixed
34472         mmap shared fixed at somewhere currently unmapped
34473         mmap shared fixed at somewhere already mapped
34474    For private mappings, we should verify that changes cannot be read()
34475    back from the file, nor mmap's back from the file at a different
34476    address.  (There have been systems where private was not correctly
34477    implemented like the infamous i386 svr4.0, and systems where the
34478    VM page cache was not coherent with the file system buffer cache
34479    like early versions of FreeBSD and possibly contemporary NetBSD.)
34480    For shared mappings, we should conversely verify that changes get
34481    propagated back to all the places they're supposed to be.
34482
34483    Grep wants private fixed already mapped.
34484    The main things grep needs to know about mmap are:
34485    * does it exist and is it safe to write into the mmap'd area
34486    * how to use it (BSD variants)  */
34487
34488 #include <fcntl.h>
34489 #include <sys/mman.h>
34490
34491 #if !STDC_HEADERS && !HAVE_STDLIB_H
34492 char *malloc ();
34493 #endif
34494
34495 /* This mess was copied from the GNU getpagesize.h.  */
34496 #if !HAVE_GETPAGESIZE
34497 /* Assume that all systems that can run configure have sys/param.h.  */
34498 # if !HAVE_SYS_PARAM_H
34499 #  define HAVE_SYS_PARAM_H 1
34500 # endif
34501
34502 # ifdef _SC_PAGESIZE
34503 #  define getpagesize() sysconf(_SC_PAGESIZE)
34504 # else /* no _SC_PAGESIZE */
34505 #  if HAVE_SYS_PARAM_H
34506 #   include <sys/param.h>
34507 #   ifdef EXEC_PAGESIZE
34508 #    define getpagesize() EXEC_PAGESIZE
34509 #   else /* no EXEC_PAGESIZE */
34510 #    ifdef NBPG
34511 #     define getpagesize() NBPG * CLSIZE
34512 #     ifndef CLSIZE
34513 #      define CLSIZE 1
34514 #     endif /* no CLSIZE */
34515 #    else /* no NBPG */
34516 #     ifdef NBPC
34517 #      define getpagesize() NBPC
34518 #     else /* no NBPC */
34519 #      ifdef PAGESIZE
34520 #       define getpagesize() PAGESIZE
34521 #      endif /* PAGESIZE */
34522 #     endif /* no NBPC */
34523 #    endif /* no NBPG */
34524 #   endif /* no EXEC_PAGESIZE */
34525 #  else /* no HAVE_SYS_PARAM_H */
34526 #   define getpagesize() 8192   /* punt totally */
34527 #  endif /* no HAVE_SYS_PARAM_H */
34528 # endif /* no _SC_PAGESIZE */
34529
34530 #endif /* no HAVE_GETPAGESIZE */
34531
34532 int
34533 main ()
34534 {
34535   char *data, *data2, *data3;
34536   int i, pagesize;
34537   int fd;
34538
34539   pagesize = getpagesize ();
34540
34541   /* First, make a file with some known garbage in it. */
34542   data = (char *) malloc (pagesize);
34543   if (!data)
34544     return 1;
34545   for (i = 0; i < pagesize; ++i)
34546     *(data + i) = rand ();
34547   umask (0);
34548   fd = creat ("conftest.mmap", 0600);
34549   if (fd < 0)
34550     return 1;
34551   if (write (fd, data, pagesize) != pagesize)
34552     return 1;
34553   close (fd);
34554
34555   /* Next, try to mmap the file at a fixed address which already has
34556      something else allocated at it.  If we can, also make sure that
34557      we see the same garbage.  */
34558   fd = open ("conftest.mmap", O_RDWR);
34559   if (fd < 0)
34560     return 1;
34561   data2 = (char *) malloc (2 * pagesize);
34562   if (!data2)
34563     return 1;
34564   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34565   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34566                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
34567     return 1;
34568   for (i = 0; i < pagesize; ++i)
34569     if (*(data + i) != *(data2 + i))
34570       return 1;
34571
34572   /* Finally, make sure that changes to the mapped area do not
34573      percolate back to the file as seen by read().  (This is a bug on
34574      some variants of i386 svr4.0.)  */
34575   for (i = 0; i < pagesize; ++i)
34576     *(data2 + i) = *(data2 + i) + 1;
34577   data3 = (char *) malloc (pagesize);
34578   if (!data3)
34579     return 1;
34580   if (read (fd, data3, pagesize) != pagesize)
34581     return 1;
34582   for (i = 0; i < pagesize; ++i)
34583     if (*(data + i) != *(data3 + i))
34584       return 1;
34585   close (fd);
34586   return 0;
34587 }
34588 _ACEOF
34589 rm -f conftest$ac_exeext
34590 if { (ac_try="$ac_link"
34591 case "(($ac_try" in
34592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34593   *) ac_try_echo=$ac_try;;
34594 esac
34595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34596   (eval "$ac_link") 2>&5
34597   ac_status=$?
34598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34599   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34600   { (case "(($ac_try" in
34601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34602   *) ac_try_echo=$ac_try;;
34603 esac
34604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34605   (eval "$ac_try") 2>&5
34606   ac_status=$?
34607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34608   (exit $ac_status); }; }; then
34609   ac_cv_func_mmap_fixed_mapped=yes
34610 else
34611   echo "$as_me: program exited with status $ac_status" >&5
34612 echo "$as_me: failed program was:" >&5
34613 sed 's/^/| /' conftest.$ac_ext >&5
34614
34615 ( exit $ac_status )
34616 ac_cv_func_mmap_fixed_mapped=no
34617 fi
34618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34619 fi
34620
34621
34622 fi
34623 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34624 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34625 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34626
34627 cat >>confdefs.h <<\_ACEOF
34628 #define HAVE_MMAP 1
34629 _ACEOF
34630
34631 fi
34632 rm -f conftest.mmap
34633
34634   { echo "$as_me:$LINENO: checking for mmap of files" >&5
34635 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34636 if test "${ac_cv_func_mmap_file+set}" = set; then
34637   echo $ECHO_N "(cached) $ECHO_C" >&6
34638 else
34639    ac_ext=c
34640 ac_cpp='$CPP $CPPFLAGS'
34641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34644
34645   if test "$cross_compiling" = yes; then
34646   ac_cv_func_mmap_file=no
34647 else
34648   cat >conftest.$ac_ext <<_ACEOF
34649
34650     /* confdefs.h.  */
34651 _ACEOF
34652 cat confdefs.h >>conftest.$ac_ext
34653 cat >>conftest.$ac_ext <<_ACEOF
34654 /* end confdefs.h.  */
34655
34656 #include <sys/types.h>
34657 #include <sys/mman.h>
34658 #include <fcntl.h>
34659
34660 int
34661 main ()
34662 {
34663
34664   int fd;
34665   fd = creat ("foo",0777);
34666   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34667   unlink ("foo");
34668   return (fd != (int) MAP_FAILED);
34669   ;
34670   return 0;
34671 }
34672 _ACEOF
34673 rm -f conftest$ac_exeext
34674 if { (ac_try="$ac_link"
34675 case "(($ac_try" in
34676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34677   *) ac_try_echo=$ac_try;;
34678 esac
34679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34680   (eval "$ac_link") 2>&5
34681   ac_status=$?
34682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34684   { (case "(($ac_try" in
34685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34686   *) ac_try_echo=$ac_try;;
34687 esac
34688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34689   (eval "$ac_try") 2>&5
34690   ac_status=$?
34691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34692   (exit $ac_status); }; }; then
34693   ac_cv_func_mmap_file=yes
34694 else
34695   echo "$as_me: program exited with status $ac_status" >&5
34696 echo "$as_me: failed program was:" >&5
34697 sed 's/^/| /' conftest.$ac_ext >&5
34698
34699 ( exit $ac_status )
34700 ac_cv_func_mmap_file=no
34701 fi
34702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34703 fi
34704
34705
34706   ac_ext=c
34707 ac_cpp='$CPP $CPPFLAGS'
34708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34711
34712
34713 fi
34714 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34715 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34716 if test "$ac_cv_func_mmap_file" = yes; then
34717
34718 cat >>confdefs.h <<\_ACEOF
34719 #define HAVE_MMAP_FILE
34720 _ACEOF
34721
34722    MMAP_FILE=yes
34723
34724 fi
34725
34726   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34727 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34728 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34729   echo $ECHO_N "(cached) $ECHO_C" >&6
34730 else
34731   if test "$llvm_cv_os_type" = "Interix" ; then
34732    ac_cv_need_dev_zero_for_mmap=yes
34733  else
34734    ac_cv_need_dev_zero_for_mmap=no
34735  fi
34736
34737 fi
34738 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34739 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34740 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34741
34742 cat >>confdefs.h <<\_ACEOF
34743 #define NEED_DEV_ZERO_FOR_MMAP 1
34744 _ACEOF
34745
34746 fi
34747
34748   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34749   then
34750     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34751 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34752   fi
34753   if test "$ac_cv_func_mmap_file" = "no"
34754   then
34755     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34756 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34757   fi
34758 fi
34759
34760 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34761 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34762 cat >conftest.$ac_ext <<_ACEOF
34763 /* confdefs.h.  */
34764 _ACEOF
34765 cat confdefs.h >>conftest.$ac_ext
34766 cat >>conftest.$ac_ext <<_ACEOF
34767 /* end confdefs.h.  */
34768 int main() {
34769         volatile unsigned long val = 1;
34770         __sync_synchronize();
34771         __sync_val_compare_and_swap(&val, 1, 0);
34772         __sync_add_and_fetch(&val, 1);
34773         __sync_sub_and_fetch(&val, 1);
34774         return 0;
34775       }
34776
34777 _ACEOF
34778 rm -f conftest.$ac_objext conftest$ac_exeext
34779 if { (ac_try="$ac_link"
34780 case "(($ac_try" in
34781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34782   *) ac_try_echo=$ac_try;;
34783 esac
34784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34785   (eval "$ac_link") 2>conftest.er1
34786   ac_status=$?
34787   grep -v '^ *+' conftest.er1 >conftest.err
34788   rm -f conftest.er1
34789   cat conftest.err >&5
34790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791   (exit $ac_status); } &&
34792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34793   { (case "(($ac_try" in
34794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34795   *) ac_try_echo=$ac_try;;
34796 esac
34797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34798   (eval "$ac_try") 2>&5
34799   ac_status=$?
34800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34801   (exit $ac_status); }; } &&
34802          { ac_try='test -s conftest$ac_exeext'
34803   { (case "(($ac_try" in
34804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34805   *) ac_try_echo=$ac_try;;
34806 esac
34807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34808   (eval "$ac_try") 2>&5
34809   ac_status=$?
34810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34811   (exit $ac_status); }; }; then
34812   { echo "$as_me:$LINENO: result: yes" >&5
34813 echo "${ECHO_T}yes" >&6; }
34814
34815 cat >>confdefs.h <<\_ACEOF
34816 #define LLVM_MULTITHREADED 1
34817 _ACEOF
34818
34819 else
34820   echo "$as_me: failed program was:" >&5
34821 sed 's/^/| /' conftest.$ac_ext >&5
34822
34823         { echo "$as_me:$LINENO: result: no" >&5
34824 echo "${ECHO_T}no" >&6; }
34825
34826 cat >>confdefs.h <<\_ACEOF
34827 #define LLVM_MULTITHREADED 0
34828 _ACEOF
34829
34830   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34831 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34832 fi
34833
34834 rm -f core conftest.err conftest.$ac_objext \
34835       conftest$ac_exeext conftest.$ac_ext
34836
34837
34838
34839
34840 for ac_func in __dso_handle
34841 do
34842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34843 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34846   echo $ECHO_N "(cached) $ECHO_C" >&6
34847 else
34848   cat >conftest.$ac_ext <<_ACEOF
34849 /* confdefs.h.  */
34850 _ACEOF
34851 cat confdefs.h >>conftest.$ac_ext
34852 cat >>conftest.$ac_ext <<_ACEOF
34853 /* end confdefs.h.  */
34854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34856 #define $ac_func innocuous_$ac_func
34857
34858 /* System header to define __stub macros and hopefully few prototypes,
34859     which can conflict with char $ac_func (); below.
34860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34861     <limits.h> exists even on freestanding compilers.  */
34862
34863 #ifdef __STDC__
34864 # include <limits.h>
34865 #else
34866 # include <assert.h>
34867 #endif
34868
34869 #undef $ac_func
34870
34871 /* Override any GCC internal prototype to avoid an error.
34872    Use char because int might match the return type of a GCC
34873    builtin and then its argument prototype would still apply.  */
34874 #ifdef __cplusplus
34875 extern "C"
34876 #endif
34877 char $ac_func ();
34878 /* The GNU C library defines this for functions which it implements
34879     to always fail with ENOSYS.  Some functions are actually named
34880     something starting with __ and the normal name is an alias.  */
34881 #if defined __stub_$ac_func || defined __stub___$ac_func
34882 choke me
34883 #endif
34884
34885 int
34886 main ()
34887 {
34888 return $ac_func ();
34889   ;
34890   return 0;
34891 }
34892 _ACEOF
34893 rm -f conftest.$ac_objext conftest$ac_exeext
34894 if { (ac_try="$ac_link"
34895 case "(($ac_try" in
34896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34897   *) ac_try_echo=$ac_try;;
34898 esac
34899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34900   (eval "$ac_link") 2>conftest.er1
34901   ac_status=$?
34902   grep -v '^ *+' conftest.er1 >conftest.err
34903   rm -f conftest.er1
34904   cat conftest.err >&5
34905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34906   (exit $ac_status); } &&
34907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34908   { (case "(($ac_try" in
34909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34910   *) ac_try_echo=$ac_try;;
34911 esac
34912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34913   (eval "$ac_try") 2>&5
34914   ac_status=$?
34915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34916   (exit $ac_status); }; } &&
34917          { ac_try='test -s conftest$ac_exeext'
34918   { (case "(($ac_try" in
34919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34920   *) ac_try_echo=$ac_try;;
34921 esac
34922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34923   (eval "$ac_try") 2>&5
34924   ac_status=$?
34925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926   (exit $ac_status); }; }; then
34927   eval "$as_ac_var=yes"
34928 else
34929   echo "$as_me: failed program was:" >&5
34930 sed 's/^/| /' conftest.$ac_ext >&5
34931
34932         eval "$as_ac_var=no"
34933 fi
34934
34935 rm -f core conftest.err conftest.$ac_objext \
34936       conftest$ac_exeext conftest.$ac_ext
34937 fi
34938 ac_res=`eval echo '${'$as_ac_var'}'`
34939                { echo "$as_me:$LINENO: result: $ac_res" >&5
34940 echo "${ECHO_T}$ac_res" >&6; }
34941 if test `eval echo '${'$as_ac_var'}'` = yes; then
34942   cat >>confdefs.h <<_ACEOF
34943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34944 _ACEOF
34945
34946 fi
34947 done
34948
34949
34950 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34951 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34952 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34953   echo $ECHO_N "(cached) $ECHO_C" >&6
34954 else
34955   llvm_cv_llvmgcc_sanity="no"
34956 if test -x "$LLVMGCC" ; then
34957   cp /dev/null conftest.c
34958   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34959       grep 'target datalayout =' > /dev/null 2>&1
34960   if test $? -eq 0 ; then
34961     llvm_cv_llvmgcc_sanity="yes"
34962   fi
34963   rm conftest.c
34964 fi
34965 fi
34966 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34967 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34968
34969 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34970   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34971 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34972   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34973   LLVMCC1=$llvmcc1path
34974
34975   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34976   LLVMCC1PLUS=$llvmcc1pluspath
34977
34978   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34979   LLVMGCCDIR=$llvmgccdir
34980
34981   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34982   LLVMGCCLIBEXEC=$llvmgcclibexec
34983
34984   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34985   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34986   LLVMGCC_VERSION=$llvmgccversion
34987
34988   LLVMGCC_MAJVERS=$llvmgccmajvers
34989
34990   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34991   LLVMGCC_LANGS=$llvmgcclangs
34992
34993   { echo "$as_me:$LINENO: result: ok" >&5
34994 echo "${ECHO_T}ok" >&6; }
34995 fi
34996
34997 SHLIBEXT=$libltdl_cv_shlibext
34998
34999
35000 # Translate the various configuration directories and other basic
35001 # information into substitutions that will end up in Makefile.config.in
35002 # that these configured values can be used by the makefiles
35003 if test "${prefix}" = "NONE" ; then
35004   prefix="/usr/local"
35005 fi
35006 eval LLVM_PREFIX="${prefix}";
35007 eval LLVM_BINDIR="${prefix}/bin";
35008 eval LLVM_LIBDIR="${prefix}/lib";
35009 eval LLVM_DATADIR="${prefix}/share/llvm";
35010 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35011 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35012 eval LLVM_INCLUDEDIR="${prefix}/include";
35013 eval LLVM_INFODIR="${prefix}/info";
35014 eval LLVM_MANDIR="${prefix}/man";
35015 LLVM_CONFIGTIME=`date`
35016
35017
35018
35019
35020
35021
35022
35023
35024
35025
35026
35027 # Place the various directores into the config.h file as #defines so that we
35028 # can know about the installation paths within LLVM.
35029
35030 cat >>confdefs.h <<_ACEOF
35031 #define LLVM_PREFIX "$LLVM_PREFIX"
35032 _ACEOF
35033
35034
35035 cat >>confdefs.h <<_ACEOF
35036 #define LLVM_BINDIR "$LLVM_BINDIR"
35037 _ACEOF
35038
35039
35040 cat >>confdefs.h <<_ACEOF
35041 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35042 _ACEOF
35043
35044
35045 cat >>confdefs.h <<_ACEOF
35046 #define LLVM_DATADIR "$LLVM_DATADIR"
35047 _ACEOF
35048
35049
35050 cat >>confdefs.h <<_ACEOF
35051 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35052 _ACEOF
35053
35054
35055 cat >>confdefs.h <<_ACEOF
35056 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35057 _ACEOF
35058
35059
35060 cat >>confdefs.h <<_ACEOF
35061 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35062 _ACEOF
35063
35064
35065 cat >>confdefs.h <<_ACEOF
35066 #define LLVM_INFODIR "$LLVM_INFODIR"
35067 _ACEOF
35068
35069
35070 cat >>confdefs.h <<_ACEOF
35071 #define LLVM_MANDIR "$LLVM_MANDIR"
35072 _ACEOF
35073
35074
35075 cat >>confdefs.h <<_ACEOF
35076 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35077 _ACEOF
35078
35079
35080 cat >>confdefs.h <<_ACEOF
35081 #define LLVM_HOSTTRIPLE "$host"
35082 _ACEOF
35083
35084
35085 # Determine which bindings to build.
35086 if test "$BINDINGS_TO_BUILD" = auto ; then
35087   BINDINGS_TO_BUILD=""
35088   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35089     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35090   fi
35091 fi
35092 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35093
35094
35095 # This isn't really configurey, but it avoids having to repeat the list in
35096 # other files.
35097 ALL_BINDINGS=ocaml
35098
35099
35100 # Do any work necessary to ensure that bindings have what they need.
35101 binding_prereqs_failed=0
35102 for a_binding in $BINDINGS_TO_BUILD ; do
35103   case "$a_binding" in
35104   ocaml)
35105     if test "x$OCAMLC" = x ; then
35106       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35107 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35108       binding_prereqs_failed=1
35109     fi
35110     if test "x$OCAMLDEP" = x ; then
35111       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35112 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35113       binding_prereqs_failed=1
35114     fi
35115     if test "x$OCAMLOPT" = x ; then
35116       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35117 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35118           fi
35119     if test "x$with_ocaml_libdir" != xauto ; then
35120       OCAML_LIBDIR=$with_ocaml_libdir
35121
35122     else
35123       ocaml_stdlib="`"$OCAMLC" -where`"
35124       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35125       then
35126         # ocaml stdlib is beneath our prefix; use stdlib
35127         OCAML_LIBDIR=$ocaml_stdlib
35128
35129       else
35130         # ocaml stdlib is outside our prefix; use libdir/ocaml
35131         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35132
35133       fi
35134     fi
35135     ;;
35136   esac
35137 done
35138 if test "$binding_prereqs_failed" = 1 ; then
35139   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35140 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35141    { (exit 1); exit 1; }; }
35142 fi
35143
35144 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35145 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35146 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35147   echo $ECHO_N "(cached) $ECHO_C" >&6
35148 else
35149    ac_ext=cpp
35150 ac_cpp='$CXXCPP $CPPFLAGS'
35151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35154
35155   oldcxxflags="$CXXFLAGS"
35156   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35157   cat >conftest.$ac_ext <<_ACEOF
35158 /* confdefs.h.  */
35159 _ACEOF
35160 cat confdefs.h >>conftest.$ac_ext
35161 cat >>conftest.$ac_ext <<_ACEOF
35162 /* end confdefs.h.  */
35163
35164 int
35165 main ()
35166 {
35167
35168   ;
35169   return 0;
35170 }
35171 _ACEOF
35172 rm -f conftest.$ac_objext
35173 if { (ac_try="$ac_compile"
35174 case "(($ac_try" in
35175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35176   *) ac_try_echo=$ac_try;;
35177 esac
35178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35179   (eval "$ac_compile") 2>conftest.er1
35180   ac_status=$?
35181   grep -v '^ *+' conftest.er1 >conftest.err
35182   rm -f conftest.er1
35183   cat conftest.err >&5
35184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185   (exit $ac_status); } &&
35186          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35187   { (case "(($ac_try" in
35188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35189   *) ac_try_echo=$ac_try;;
35190 esac
35191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35192   (eval "$ac_try") 2>&5
35193   ac_status=$?
35194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35195   (exit $ac_status); }; } &&
35196          { ac_try='test -s conftest.$ac_objext'
35197   { (case "(($ac_try" in
35198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35199   *) ac_try_echo=$ac_try;;
35200 esac
35201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35202   (eval "$ac_try") 2>&5
35203   ac_status=$?
35204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35205   (exit $ac_status); }; }; then
35206   llvm_cv_cxx_visibility_inlines_hidden=yes
35207 else
35208   echo "$as_me: failed program was:" >&5
35209 sed 's/^/| /' conftest.$ac_ext >&5
35210
35211         llvm_cv_cxx_visibility_inlines_hidden=no
35212 fi
35213
35214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35215   CXXFLAGS="$oldcxxflags"
35216   ac_ext=c
35217 ac_cpp='$CPP $CPPFLAGS'
35218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35221
35222
35223 fi
35224 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35225 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35226 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35227   ENABLE_VISIBILITY_INLINES_HIDDEN=1
35228
35229 else
35230   ENABLE_VISIBILITY_INLINES_HIDDEN=0
35231
35232 fi
35233
35234
35235 if test "$llvm_cv_link_use_r" = "yes" ; then
35236   RPATH="-Wl,-R"
35237 else
35238   RPATH="-Wl,-rpath"
35239 fi
35240
35241
35242 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35243   RDYNAMIC="-Wl,-export-dynamic"
35244 else
35245   RDYNAMIC=""
35246 fi
35247
35248
35249
35250 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35251
35252 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35253
35254 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35255
35256 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35257
35258 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35259
35260 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
35261
35262
35263 ac_config_files="$ac_config_files Makefile.config"
35264
35265
35266 ac_config_files="$ac_config_files llvm.spec"
35267
35268
35269 ac_config_files="$ac_config_files docs/doxygen.cfg"
35270
35271
35272 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35273
35274
35275 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35276
35277
35278 ac_config_commands="$ac_config_commands setup"
35279
35280 ac_config_commands="$ac_config_commands Makefile"
35281
35282
35283 ac_config_commands="$ac_config_commands Makefile.common"
35284
35285
35286 ac_config_commands="$ac_config_commands examples/Makefile"
35287
35288
35289 ac_config_commands="$ac_config_commands lib/Makefile"
35290
35291
35292 ac_config_commands="$ac_config_commands runtime/Makefile"
35293
35294
35295 ac_config_commands="$ac_config_commands test/Makefile"
35296
35297
35298 ac_config_commands="$ac_config_commands test/Makefile.tests"
35299
35300
35301 ac_config_commands="$ac_config_commands unittests/Makefile"
35302
35303
35304 ac_config_commands="$ac_config_commands tools/Makefile"
35305
35306
35307 ac_config_commands="$ac_config_commands utils/Makefile"
35308
35309
35310 ac_config_commands="$ac_config_commands projects/Makefile"
35311
35312
35313 ac_config_commands="$ac_config_commands bindings/Makefile"
35314
35315
35316 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35317
35318
35319
35320 cat >confcache <<\_ACEOF
35321 # This file is a shell script that caches the results of configure
35322 # tests run on this system so they can be shared between configure
35323 # scripts and configure runs, see configure's option --config-cache.
35324 # It is not useful on other systems.  If it contains results you don't
35325 # want to keep, you may remove or edit it.
35326 #
35327 # config.status only pays attention to the cache file if you give it
35328 # the --recheck option to rerun configure.
35329 #
35330 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35331 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35332 # following values.
35333
35334 _ACEOF
35335
35336 # The following way of writing the cache mishandles newlines in values,
35337 # but we know of no workaround that is simple, portable, and efficient.
35338 # So, we kill variables containing newlines.
35339 # Ultrix sh set writes to stderr and can't be redirected directly,
35340 # and sets the high bit in the cache file unless we assign to the vars.
35341 (
35342   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35343     eval ac_val=\$$ac_var
35344     case $ac_val in #(
35345     *${as_nl}*)
35346       case $ac_var in #(
35347       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35348 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35349       esac
35350       case $ac_var in #(
35351       _ | IFS | as_nl) ;; #(
35352       *) $as_unset $ac_var ;;
35353       esac ;;
35354     esac
35355   done
35356
35357   (set) 2>&1 |
35358     case $as_nl`(ac_space=' '; set) 2>&1` in #(
35359     *${as_nl}ac_space=\ *)
35360       # `set' does not quote correctly, so add quotes (double-quote
35361       # substitution turns \\\\ into \\, and sed turns \\ into \).
35362       sed -n \
35363         "s/'/'\\\\''/g;
35364           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35365       ;; #(
35366     *)
35367       # `set' quotes correctly as required by POSIX, so do not add quotes.
35368       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35369       ;;
35370     esac |
35371     sort
35372 ) |
35373   sed '
35374      /^ac_cv_env_/b end
35375      t clear
35376      :clear
35377      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35378      t end
35379      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35380      :end' >>confcache
35381 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35382   if test -w "$cache_file"; then
35383     test "x$cache_file" != "x/dev/null" &&
35384       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35385 echo "$as_me: updating cache $cache_file" >&6;}
35386     cat confcache >$cache_file
35387   else
35388     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35389 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35390   fi
35391 fi
35392 rm -f confcache
35393
35394 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35395 # Let make expand exec_prefix.
35396 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35397
35398 DEFS=-DHAVE_CONFIG_H
35399
35400 ac_libobjs=
35401 ac_ltlibobjs=
35402 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35403   # 1. Remove the extension, and $U if already installed.
35404   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35405   ac_i=`echo "$ac_i" | sed "$ac_script"`
35406   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35407   #    will be set to the directory where LIBOBJS objects are built.
35408   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35409   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35410 done
35411 LIBOBJS=$ac_libobjs
35412
35413 LTLIBOBJS=$ac_ltlibobjs
35414
35415
35416 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35417   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35418 Usually this means the macro was only invoked conditionally." >&5
35419 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35420 Usually this means the macro was only invoked conditionally." >&2;}
35421    { (exit 1); exit 1; }; }
35422 fi
35423 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35424   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35425 Usually this means the macro was only invoked conditionally." >&5
35426 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35427 Usually this means the macro was only invoked conditionally." >&2;}
35428    { (exit 1); exit 1; }; }
35429 fi
35430
35431 : ${CONFIG_STATUS=./config.status}
35432 ac_clean_files_save=$ac_clean_files
35433 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35434 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35435 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35436 cat >$CONFIG_STATUS <<_ACEOF
35437 #! $SHELL
35438 # Generated by $as_me.
35439 # Run this file to recreate the current configuration.
35440 # Compiler output produced by configure, useful for debugging
35441 # configure, is in config.log if it exists.
35442
35443 debug=false
35444 ac_cs_recheck=false
35445 ac_cs_silent=false
35446 SHELL=\${CONFIG_SHELL-$SHELL}
35447 _ACEOF
35448
35449 cat >>$CONFIG_STATUS <<\_ACEOF
35450 ## --------------------- ##
35451 ## M4sh Initialization.  ##
35452 ## --------------------- ##
35453
35454 # Be Bourne compatible
35455 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35456   emulate sh
35457   NULLCMD=:
35458   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35459   # is contrary to our usage.  Disable this feature.
35460   alias -g '${1+"$@"}'='"$@"'
35461   setopt NO_GLOB_SUBST
35462 else
35463   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35464 fi
35465 BIN_SH=xpg4; export BIN_SH # for Tru64
35466 DUALCASE=1; export DUALCASE # for MKS sh
35467
35468
35469 # PATH needs CR
35470 # Avoid depending upon Character Ranges.
35471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35474 as_cr_digits='0123456789'
35475 as_cr_alnum=$as_cr_Letters$as_cr_digits
35476
35477 # The user is always right.
35478 if test "${PATH_SEPARATOR+set}" != set; then
35479   echo "#! /bin/sh" >conf$$.sh
35480   echo  "exit 0"   >>conf$$.sh
35481   chmod +x conf$$.sh
35482   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35483     PATH_SEPARATOR=';'
35484   else
35485     PATH_SEPARATOR=:
35486   fi
35487   rm -f conf$$.sh
35488 fi
35489
35490 # Support unset when possible.
35491 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35492   as_unset=unset
35493 else
35494   as_unset=false
35495 fi
35496
35497
35498 # IFS
35499 # We need space, tab and new line, in precisely that order.  Quoting is
35500 # there to prevent editors from complaining about space-tab.
35501 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35502 # splitting by setting IFS to empty value.)
35503 as_nl='
35504 '
35505 IFS=" ""        $as_nl"
35506
35507 # Find who we are.  Look in the path if we contain no directory separator.
35508 case $0 in
35509   *[\\/]* ) as_myself=$0 ;;
35510   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35511 for as_dir in $PATH
35512 do
35513   IFS=$as_save_IFS
35514   test -z "$as_dir" && as_dir=.
35515   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35516 done
35517 IFS=$as_save_IFS
35518
35519      ;;
35520 esac
35521 # We did not find ourselves, most probably we were run as `sh COMMAND'
35522 # in which case we are not to be found in the path.
35523 if test "x$as_myself" = x; then
35524   as_myself=$0
35525 fi
35526 if test ! -f "$as_myself"; then
35527   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35528   { (exit 1); exit 1; }
35529 fi
35530
35531 # Work around bugs in pre-3.0 UWIN ksh.
35532 for as_var in ENV MAIL MAILPATH
35533 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35534 done
35535 PS1='$ '
35536 PS2='> '
35537 PS4='+ '
35538
35539 # NLS nuisances.
35540 for as_var in \
35541   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35542   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35543   LC_TELEPHONE LC_TIME
35544 do
35545   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35546     eval $as_var=C; export $as_var
35547   else
35548     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35549   fi
35550 done
35551
35552 # Required to use basename.
35553 if expr a : '\(a\)' >/dev/null 2>&1 &&
35554    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35555   as_expr=expr
35556 else
35557   as_expr=false
35558 fi
35559
35560 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35561   as_basename=basename
35562 else
35563   as_basename=false
35564 fi
35565
35566
35567 # Name of the executable.
35568 as_me=`$as_basename -- "$0" ||
35569 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35570          X"$0" : 'X\(//\)$' \| \
35571          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35572 echo X/"$0" |
35573     sed '/^.*\/\([^/][^/]*\)\/*$/{
35574             s//\1/
35575             q
35576           }
35577           /^X\/\(\/\/\)$/{
35578             s//\1/
35579             q
35580           }
35581           /^X\/\(\/\).*/{
35582             s//\1/
35583             q
35584           }
35585           s/.*/./; q'`
35586
35587 # CDPATH.
35588 $as_unset CDPATH
35589
35590
35591
35592   as_lineno_1=$LINENO
35593   as_lineno_2=$LINENO
35594   test "x$as_lineno_1" != "x$as_lineno_2" &&
35595   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35596
35597   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35598   # uniformly replaced by the line number.  The first 'sed' inserts a
35599   # line-number line after each line using $LINENO; the second 'sed'
35600   # does the real work.  The second script uses 'N' to pair each
35601   # line-number line with the line containing $LINENO, and appends
35602   # trailing '-' during substitution so that $LINENO is not a special
35603   # case at line end.
35604   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35605   # scripts with optimization help from Paolo Bonzini.  Blame Lee
35606   # E. McMahon (1931-1989) for sed's syntax.  :-)
35607   sed -n '
35608     p
35609     /[$]LINENO/=
35610   ' <$as_myself |
35611     sed '
35612       s/[$]LINENO.*/&-/
35613       t lineno
35614       b
35615       :lineno
35616       N
35617       :loop
35618       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35619       t loop
35620       s/-\n.*//
35621     ' >$as_me.lineno &&
35622   chmod +x "$as_me.lineno" ||
35623     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35624    { (exit 1); exit 1; }; }
35625
35626   # Don't try to exec as it changes $[0], causing all sort of problems
35627   # (the dirname of $[0] is not the place where we might find the
35628   # original and so on.  Autoconf is especially sensitive to this).
35629   . "./$as_me.lineno"
35630   # Exit status is that of the last command.
35631   exit
35632 }
35633
35634
35635 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35636   as_dirname=dirname
35637 else
35638   as_dirname=false
35639 fi
35640
35641 ECHO_C= ECHO_N= ECHO_T=
35642 case `echo -n x` in
35643 -n*)
35644   case `echo 'x\c'` in
35645   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35646   *)   ECHO_C='\c';;
35647   esac;;
35648 *)
35649   ECHO_N='-n';;
35650 esac
35651
35652 if expr a : '\(a\)' >/dev/null 2>&1 &&
35653    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35654   as_expr=expr
35655 else
35656   as_expr=false
35657 fi
35658
35659 rm -f conf$$ conf$$.exe conf$$.file
35660 if test -d conf$$.dir; then
35661   rm -f conf$$.dir/conf$$.file
35662 else
35663   rm -f conf$$.dir
35664   mkdir conf$$.dir
35665 fi
35666 echo >conf$$.file
35667 if ln -s conf$$.file conf$$ 2>/dev/null; then
35668   as_ln_s='ln -s'
35669   # ... but there are two gotchas:
35670   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35671   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35672   # In both cases, we have to default to `cp -p'.
35673   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35674     as_ln_s='cp -p'
35675 elif ln conf$$.file conf$$ 2>/dev/null; then
35676   as_ln_s=ln
35677 else
35678   as_ln_s='cp -p'
35679 fi
35680 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35681 rmdir conf$$.dir 2>/dev/null
35682
35683 if mkdir -p . 2>/dev/null; then
35684   as_mkdir_p=:
35685 else
35686   test -d ./-p && rmdir ./-p
35687   as_mkdir_p=false
35688 fi
35689
35690 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
35691 # systems may use methods other than mode bits to determine executability.
35692 cat >conf$$.file <<_ASEOF
35693 #! /bin/sh
35694 exit 0
35695 _ASEOF
35696 chmod +x conf$$.file
35697 if test -x conf$$.file >/dev/null 2>&1; then
35698   as_executable_p="test -x"
35699 else
35700   as_executable_p=:
35701 fi
35702 rm -f conf$$.file
35703
35704 # Sed expression to map a string onto a valid CPP name.
35705 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35706
35707 # Sed expression to map a string onto a valid variable name.
35708 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35709
35710
35711 exec 6>&1
35712
35713 # Save the log message, to keep $[0] and so on meaningful, and to
35714 # report actual input values of CONFIG_FILES etc. instead of their
35715 # values after options handling.
35716 ac_log="
35717 This file was extended by llvm $as_me 2.6svn, which was
35718 generated by GNU Autoconf 2.60.  Invocation command line was
35719
35720   CONFIG_FILES    = $CONFIG_FILES
35721   CONFIG_HEADERS  = $CONFIG_HEADERS
35722   CONFIG_LINKS    = $CONFIG_LINKS
35723   CONFIG_COMMANDS = $CONFIG_COMMANDS
35724   $ $0 $@
35725
35726 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35727 "
35728
35729 _ACEOF
35730
35731 cat >>$CONFIG_STATUS <<_ACEOF
35732 # Files that config.status was made for.
35733 config_files="$ac_config_files"
35734 config_headers="$ac_config_headers"
35735 config_commands="$ac_config_commands"
35736
35737 _ACEOF
35738
35739 cat >>$CONFIG_STATUS <<\_ACEOF
35740 ac_cs_usage="\
35741 \`$as_me' instantiates files from templates according to the
35742 current configuration.
35743
35744 Usage: $0 [OPTIONS] [FILE]...
35745
35746   -h, --help       print this help, then exit
35747   -V, --version    print version number, then exit
35748   -q, --quiet      do not print progress messages
35749   -d, --debug      don't remove temporary files
35750       --recheck    update $as_me by reconfiguring in the same conditions
35751   --file=FILE[:TEMPLATE]
35752                    instantiate the configuration file FILE
35753   --header=FILE[:TEMPLATE]
35754                    instantiate the configuration header FILE
35755
35756 Configuration files:
35757 $config_files
35758
35759 Configuration headers:
35760 $config_headers
35761
35762 Configuration commands:
35763 $config_commands
35764
35765 Report bugs to <bug-autoconf@gnu.org>."
35766
35767 _ACEOF
35768 cat >>$CONFIG_STATUS <<_ACEOF
35769 ac_cs_version="\\
35770 llvm config.status 2.6svn
35771 configured by $0, generated by GNU Autoconf 2.60,
35772   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35773
35774 Copyright (C) 2006 Free Software Foundation, Inc.
35775 This config.status script is free software; the Free Software Foundation
35776 gives unlimited permission to copy, distribute and modify it."
35777
35778 ac_pwd='$ac_pwd'
35779 srcdir='$srcdir'
35780 INSTALL='$INSTALL'
35781 _ACEOF
35782
35783 cat >>$CONFIG_STATUS <<\_ACEOF
35784 # If no file are specified by the user, then we need to provide default
35785 # value.  By we need to know if files were specified by the user.
35786 ac_need_defaults=:
35787 while test $# != 0
35788 do
35789   case $1 in
35790   --*=*)
35791     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35792     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35793     ac_shift=:
35794     ;;
35795   *)
35796     ac_option=$1
35797     ac_optarg=$2
35798     ac_shift=shift
35799     ;;
35800   esac
35801
35802   case $ac_option in
35803   # Handling of the options.
35804   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35805     ac_cs_recheck=: ;;
35806   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35807     echo "$ac_cs_version"; exit ;;
35808   --debug | --debu | --deb | --de | --d | -d )
35809     debug=: ;;
35810   --file | --fil | --fi | --f )
35811     $ac_shift
35812     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35813     ac_need_defaults=false;;
35814   --header | --heade | --head | --hea )
35815     $ac_shift
35816     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35817     ac_need_defaults=false;;
35818   --he | --h)
35819     # Conflict between --help and --header
35820     { echo "$as_me: error: ambiguous option: $1
35821 Try \`$0 --help' for more information." >&2
35822    { (exit 1); exit 1; }; };;
35823   --help | --hel | -h )
35824     echo "$ac_cs_usage"; exit ;;
35825   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35826   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35827     ac_cs_silent=: ;;
35828
35829   # This is an error.
35830   -*) { echo "$as_me: error: unrecognized option: $1
35831 Try \`$0 --help' for more information." >&2
35832    { (exit 1); exit 1; }; } ;;
35833
35834   *) ac_config_targets="$ac_config_targets $1"
35835      ac_need_defaults=false ;;
35836
35837   esac
35838   shift
35839 done
35840
35841 ac_configure_extra_args=
35842
35843 if $ac_cs_silent; then
35844   exec 6>/dev/null
35845   ac_configure_extra_args="$ac_configure_extra_args --silent"
35846 fi
35847
35848 _ACEOF
35849 cat >>$CONFIG_STATUS <<_ACEOF
35850 if \$ac_cs_recheck; then
35851   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35852   CONFIG_SHELL=$SHELL
35853   export CONFIG_SHELL
35854   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35855 fi
35856
35857 _ACEOF
35858 cat >>$CONFIG_STATUS <<\_ACEOF
35859 exec 5>>config.log
35860 {
35861   echo
35862   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35863 ## Running $as_me. ##
35864 _ASBOX
35865   echo "$ac_log"
35866 } >&5
35867
35868 _ACEOF
35869 cat >>$CONFIG_STATUS <<_ACEOF
35870 #
35871 # INIT-COMMANDS
35872 #
35873 llvm_src="${srcdir}"
35874
35875 _ACEOF
35876
35877 cat >>$CONFIG_STATUS <<\_ACEOF
35878
35879 # Handling of arguments.
35880 for ac_config_target in $ac_config_targets
35881 do
35882   case $ac_config_target in
35883     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35884     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35885     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35886     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35887     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35888     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35889     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35890     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35891     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35892     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35893     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35894     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35895     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35896     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35897     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35898     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35899     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35900     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35901     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35902     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35903     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35904     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35905     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35906     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35907     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35908
35909   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35910 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35911    { (exit 1); exit 1; }; };;
35912   esac
35913 done
35914
35915
35916 # If the user did not use the arguments to specify the items to instantiate,
35917 # then the envvar interface is used.  Set only those that are not.
35918 # We use the long form for the default assignment because of an extremely
35919 # bizarre bug on SunOS 4.1.3.
35920 if $ac_need_defaults; then
35921   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35922   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35923   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35924 fi
35925
35926 # Have a temporary directory for convenience.  Make it in the build tree
35927 # simply because there is no reason against having it here, and in addition,
35928 # creating and moving files from /tmp can sometimes cause problems.
35929 # Hook for its removal unless debugging.
35930 # Note that there is a small window in which the directory will not be cleaned:
35931 # after its creation but before its name has been assigned to `$tmp'.
35932 $debug ||
35933 {
35934   tmp=
35935   trap 'exit_status=$?
35936   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35937 ' 0
35938   trap '{ (exit 1); exit 1; }' 1 2 13 15
35939 }
35940 # Create a (secure) tmp directory for tmp files.
35941
35942 {
35943   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35944   test -n "$tmp" && test -d "$tmp"
35945 }  ||
35946 {
35947   tmp=./conf$$-$RANDOM
35948   (umask 077 && mkdir "$tmp")
35949 } ||
35950 {
35951    echo "$me: cannot create a temporary directory in ." >&2
35952    { (exit 1); exit 1; }
35953 }
35954
35955 #
35956 # Set up the sed scripts for CONFIG_FILES section.
35957 #
35958
35959 # No need to generate the scripts if there are no CONFIG_FILES.
35960 # This happens for instance when ./config.status config.h
35961 if test -n "$CONFIG_FILES"; then
35962
35963 _ACEOF
35964
35965
35966
35967 ac_delim='%!_!# '
35968 for ac_last_try in false false false false false :; do
35969   cat >conf$$subs.sed <<_ACEOF
35970 SHELL!$SHELL$ac_delim
35971 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35972 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35973 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35974 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35975 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35976 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35977 exec_prefix!$exec_prefix$ac_delim
35978 prefix!$prefix$ac_delim
35979 program_transform_name!$program_transform_name$ac_delim
35980 bindir!$bindir$ac_delim
35981 sbindir!$sbindir$ac_delim
35982 libexecdir!$libexecdir$ac_delim
35983 datarootdir!$datarootdir$ac_delim
35984 datadir!$datadir$ac_delim
35985 sysconfdir!$sysconfdir$ac_delim
35986 sharedstatedir!$sharedstatedir$ac_delim
35987 localstatedir!$localstatedir$ac_delim
35988 includedir!$includedir$ac_delim
35989 oldincludedir!$oldincludedir$ac_delim
35990 docdir!$docdir$ac_delim
35991 infodir!$infodir$ac_delim
35992 htmldir!$htmldir$ac_delim
35993 dvidir!$dvidir$ac_delim
35994 pdfdir!$pdfdir$ac_delim
35995 psdir!$psdir$ac_delim
35996 libdir!$libdir$ac_delim
35997 localedir!$localedir$ac_delim
35998 mandir!$mandir$ac_delim
35999 DEFS!$DEFS$ac_delim
36000 ECHO_C!$ECHO_C$ac_delim
36001 ECHO_N!$ECHO_N$ac_delim
36002 ECHO_T!$ECHO_T$ac_delim
36003 LIBS!$LIBS$ac_delim
36004 build_alias!$build_alias$ac_delim
36005 host_alias!$host_alias$ac_delim
36006 target_alias!$target_alias$ac_delim
36007 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36008 subdirs!$subdirs$ac_delim
36009 build!$build$ac_delim
36010 build_cpu!$build_cpu$ac_delim
36011 build_vendor!$build_vendor$ac_delim
36012 build_os!$build_os$ac_delim
36013 host!$host$ac_delim
36014 host_cpu!$host_cpu$ac_delim
36015 host_vendor!$host_vendor$ac_delim
36016 host_os!$host_os$ac_delim
36017 target!$target$ac_delim
36018 target_cpu!$target_cpu$ac_delim
36019 target_vendor!$target_vendor$ac_delim
36020 target_os!$target_os$ac_delim
36021 OS!$OS$ac_delim
36022 LINKALL!$LINKALL$ac_delim
36023 NOLINKALL!$NOLINKALL$ac_delim
36024 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36025 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36026 ARCH!$ARCH$ac_delim
36027 ENDIAN!$ENDIAN$ac_delim
36028 CC!$CC$ac_delim
36029 CFLAGS!$CFLAGS$ac_delim
36030 LDFLAGS!$LDFLAGS$ac_delim
36031 CPPFLAGS!$CPPFLAGS$ac_delim
36032 ac_ct_CC!$ac_ct_CC$ac_delim
36033 EXEEXT!$EXEEXT$ac_delim
36034 OBJEXT!$OBJEXT$ac_delim
36035 CPP!$CPP$ac_delim
36036 GREP!$GREP$ac_delim
36037 EGREP!$EGREP$ac_delim
36038 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36039 BUILD_CC!$BUILD_CC$ac_delim
36040 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36041 BUILD_CXX!$BUILD_CXX$ac_delim
36042 CVSBUILD!$CVSBUILD$ac_delim
36043 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36044 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36045 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36046 LLVM_COMPACT_SENTINELS!$LLVM_COMPACT_SENTINELS$ac_delim
36047 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36048 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36049 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36050 JIT!$JIT$ac_delim
36051 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36052 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36053 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36054 ENABLE_PIC!$ENABLE_PIC$ac_delim
36055 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36056 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36057 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36058 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36059 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36060 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36061 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36062 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36063 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36064 CXX!$CXX$ac_delim
36065 CXXFLAGS!$CXXFLAGS$ac_delim
36066 ac_ct_CXX!$ac_ct_CXX$ac_delim
36067 _ACEOF
36068
36069   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36070     break
36071   elif $ac_last_try; then
36072     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36073 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36074    { (exit 1); exit 1; }; }
36075   else
36076     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36077   fi
36078 done
36079
36080 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36081 if test -n "$ac_eof"; then
36082   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36083   ac_eof=`expr $ac_eof + 1`
36084 fi
36085
36086 cat >>$CONFIG_STATUS <<_ACEOF
36087 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36088 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36089 _ACEOF
36090 sed '
36091 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36092 s/^/s,@/; s/!/@,|#_!!_#|/
36093 :n
36094 t n
36095 s/'"$ac_delim"'$/,g/; t
36096 s/$/\\/; p
36097 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36098 ' >>$CONFIG_STATUS <conf$$subs.sed
36099 rm -f conf$$subs.sed
36100 cat >>$CONFIG_STATUS <<_ACEOF
36101 CEOF$ac_eof
36102 _ACEOF
36103
36104
36105 ac_delim='%!_!# '
36106 for ac_last_try in false false false false false :; do
36107   cat >conf$$subs.sed <<_ACEOF
36108 NM!$NM$ac_delim
36109 ifGNUmake!$ifGNUmake$ac_delim
36110 LN_S!$LN_S$ac_delim
36111 CMP!$CMP$ac_delim
36112 CP!$CP$ac_delim
36113 DATE!$DATE$ac_delim
36114 FIND!$FIND$ac_delim
36115 MKDIR!$MKDIR$ac_delim
36116 MV!$MV$ac_delim
36117 RANLIB!$RANLIB$ac_delim
36118 RM!$RM$ac_delim
36119 SED!$SED$ac_delim
36120 TAR!$TAR$ac_delim
36121 BINPWD!$BINPWD$ac_delim
36122 GRAPHVIZ!$GRAPHVIZ$ac_delim
36123 DOT!$DOT$ac_delim
36124 FDP!$FDP$ac_delim
36125 NEATO!$NEATO$ac_delim
36126 TWOPI!$TWOPI$ac_delim
36127 CIRCO!$CIRCO$ac_delim
36128 GV!$GV$ac_delim
36129 DOTTY!$DOTTY$ac_delim
36130 PERL!$PERL$ac_delim
36131 HAVE_PERL!$HAVE_PERL$ac_delim
36132 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36133 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36134 INSTALL_DATA!$INSTALL_DATA$ac_delim
36135 BZIP2!$BZIP2$ac_delim
36136 DOXYGEN!$DOXYGEN$ac_delim
36137 GROFF!$GROFF$ac_delim
36138 GZIP!$GZIP$ac_delim
36139 POD2HTML!$POD2HTML$ac_delim
36140 POD2MAN!$POD2MAN$ac_delim
36141 RUNTEST!$RUNTEST$ac_delim
36142 TCLSH!$TCLSH$ac_delim
36143 ZIP!$ZIP$ac_delim
36144 OCAMLC!$OCAMLC$ac_delim
36145 OCAMLOPT!$OCAMLOPT$ac_delim
36146 OCAMLDEP!$OCAMLDEP$ac_delim
36147 OCAMLDOC!$OCAMLDOC$ac_delim
36148 GAS!$GAS$ac_delim
36149 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36150 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36151 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36152 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36153 LIBADD_DL!$LIBADD_DL$ac_delim
36154 ECHO!$ECHO$ac_delim
36155 AR!$AR$ac_delim
36156 STRIP!$STRIP$ac_delim
36157 CXXCPP!$CXXCPP$ac_delim
36158 F77!$F77$ac_delim
36159 FFLAGS!$FFLAGS$ac_delim
36160 ac_ct_F77!$ac_ct_F77$ac_delim
36161 LIBTOOL!$LIBTOOL$ac_delim
36162 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36163 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36164 LLVMGCC!$LLVMGCC$ac_delim
36165 LLVMGXX!$LLVMGXX$ac_delim
36166 USE_UDIS86!$USE_UDIS86$ac_delim
36167 USE_OPROFILE!$USE_OPROFILE$ac_delim
36168 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36169 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36170 ALLOCA!$ALLOCA$ac_delim
36171 MMAP_FILE!$MMAP_FILE$ac_delim
36172 LLVMCC1!$LLVMCC1$ac_delim
36173 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36174 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36175 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36176 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36177 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36178 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36179 SHLIBEXT!$SHLIBEXT$ac_delim
36180 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36181 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36182 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36183 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36184 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36185 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36186 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36187 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36188 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36189 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36190 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36191 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36192 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36193 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36194 RPATH!$RPATH$ac_delim
36195 RDYNAMIC!$RDYNAMIC$ac_delim
36196 LIBOBJS!$LIBOBJS$ac_delim
36197 LTLIBOBJS!$LTLIBOBJS$ac_delim
36198 _ACEOF
36199
36200   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
36201     break
36202   elif $ac_last_try; then
36203     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36204 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36205    { (exit 1); exit 1; }; }
36206   else
36207     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36208   fi
36209 done
36210
36211 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36212 if test -n "$ac_eof"; then
36213   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36214   ac_eof=`expr $ac_eof + 1`
36215 fi
36216
36217 cat >>$CONFIG_STATUS <<_ACEOF
36218 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36219 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36220 _ACEOF
36221 sed '
36222 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36223 s/^/s,@/; s/!/@,|#_!!_#|/
36224 :n
36225 t n
36226 s/'"$ac_delim"'$/,g/; t
36227 s/$/\\/; p
36228 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36229 ' >>$CONFIG_STATUS <conf$$subs.sed
36230 rm -f conf$$subs.sed
36231 cat >>$CONFIG_STATUS <<_ACEOF
36232 :end
36233 s/|#_!!_#|//g
36234 CEOF$ac_eof
36235 _ACEOF
36236
36237
36238 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36239 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36240 # trailing colons and then remove the whole line if VPATH becomes empty
36241 # (actually we leave an empty line to preserve line numbers).
36242 if test "x$srcdir" = x.; then
36243   ac_vpsub='/^[  ]*VPATH[        ]*=/{
36244 s/:*\$(srcdir):*/:/
36245 s/:*\${srcdir}:*/:/
36246 s/:*@srcdir@:*/:/
36247 s/^\([^=]*=[     ]*\):*/\1/
36248 s/:*$//
36249 s/^[^=]*=[       ]*$//
36250 }'
36251 fi
36252
36253 cat >>$CONFIG_STATUS <<\_ACEOF
36254 fi # test -n "$CONFIG_FILES"
36255
36256
36257 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
36258 do
36259   case $ac_tag in
36260   :[FHLC]) ac_mode=$ac_tag; continue;;
36261   esac
36262   case $ac_mode$ac_tag in
36263   :[FHL]*:*);;
36264   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36265 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36266    { (exit 1); exit 1; }; };;
36267   :[FH]-) ac_tag=-:-;;
36268   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36269   esac
36270   ac_save_IFS=$IFS
36271   IFS=:
36272   set x $ac_tag
36273   IFS=$ac_save_IFS
36274   shift
36275   ac_file=$1
36276   shift
36277
36278   case $ac_mode in
36279   :L) ac_source=$1;;
36280   :[FH])
36281     ac_file_inputs=
36282     for ac_f
36283     do
36284       case $ac_f in
36285       -) ac_f="$tmp/stdin";;
36286       *) # Look for the file first in the build tree, then in the source tree
36287          # (if the path is not absolute).  The absolute path cannot be DOS-style,
36288          # because $ac_f cannot contain `:'.
36289          test -f "$ac_f" ||
36290            case $ac_f in
36291            [\\/$]*) false;;
36292            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36293            esac ||
36294            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36295 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36296    { (exit 1); exit 1; }; };;
36297       esac
36298       ac_file_inputs="$ac_file_inputs $ac_f"
36299     done
36300
36301     # Let's still pretend it is `configure' which instantiates (i.e., don't
36302     # use $as_me), people would be surprised to read:
36303     #    /* config.h.  Generated by config.status.  */
36304     configure_input="Generated from "`IFS=:
36305           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36306     if test x"$ac_file" != x-; then
36307       configure_input="$ac_file.  $configure_input"
36308       { echo "$as_me:$LINENO: creating $ac_file" >&5
36309 echo "$as_me: creating $ac_file" >&6;}
36310     fi
36311
36312     case $ac_tag in
36313     *:-:* | *:-) cat >"$tmp/stdin";;
36314     esac
36315     ;;
36316   esac
36317
36318   ac_dir=`$as_dirname -- "$ac_file" ||
36319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36320          X"$ac_file" : 'X\(//\)[^/]' \| \
36321          X"$ac_file" : 'X\(//\)$' \| \
36322          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36323 echo X"$ac_file" |
36324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36325             s//\1/
36326             q
36327           }
36328           /^X\(\/\/\)[^/].*/{
36329             s//\1/
36330             q
36331           }
36332           /^X\(\/\/\)$/{
36333             s//\1/
36334             q
36335           }
36336           /^X\(\/\).*/{
36337             s//\1/
36338             q
36339           }
36340           s/.*/./; q'`
36341   { as_dir="$ac_dir"
36342   case $as_dir in #(
36343   -*) as_dir=./$as_dir;;
36344   esac
36345   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36346     as_dirs=
36347     while :; do
36348       case $as_dir in #(
36349       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36350       *) as_qdir=$as_dir;;
36351       esac
36352       as_dirs="'$as_qdir' $as_dirs"
36353       as_dir=`$as_dirname -- "$as_dir" ||
36354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36355          X"$as_dir" : 'X\(//\)[^/]' \| \
36356          X"$as_dir" : 'X\(//\)$' \| \
36357          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36358 echo X"$as_dir" |
36359     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36360             s//\1/
36361             q
36362           }
36363           /^X\(\/\/\)[^/].*/{
36364             s//\1/
36365             q
36366           }
36367           /^X\(\/\/\)$/{
36368             s//\1/
36369             q
36370           }
36371           /^X\(\/\).*/{
36372             s//\1/
36373             q
36374           }
36375           s/.*/./; q'`
36376       test -d "$as_dir" && break
36377     done
36378     test -z "$as_dirs" || eval "mkdir $as_dirs"
36379   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36380 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36381    { (exit 1); exit 1; }; }; }
36382   ac_builddir=.
36383
36384 case "$ac_dir" in
36385 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36386 *)
36387   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36388   # A ".." for each directory in $ac_dir_suffix.
36389   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36390   case $ac_top_builddir_sub in
36391   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36392   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36393   esac ;;
36394 esac
36395 ac_abs_top_builddir=$ac_pwd
36396 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36397 # for backward compatibility:
36398 ac_top_builddir=$ac_top_build_prefix
36399
36400 case $srcdir in
36401   .)  # We are building in place.
36402     ac_srcdir=.
36403     ac_top_srcdir=$ac_top_builddir_sub
36404     ac_abs_top_srcdir=$ac_pwd ;;
36405   [\\/]* | ?:[\\/]* )  # Absolute name.
36406     ac_srcdir=$srcdir$ac_dir_suffix;
36407     ac_top_srcdir=$srcdir
36408     ac_abs_top_srcdir=$srcdir ;;
36409   *) # Relative name.
36410     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36411     ac_top_srcdir=$ac_top_build_prefix$srcdir
36412     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36413 esac
36414 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36415
36416
36417   case $ac_mode in
36418   :F)
36419   #
36420   # CONFIG_FILE
36421   #
36422
36423   case $INSTALL in
36424   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36425   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36426   esac
36427 _ACEOF
36428
36429 cat >>$CONFIG_STATUS <<\_ACEOF
36430 # If the template does not know about datarootdir, expand it.
36431 # FIXME: This hack should be removed a few years after 2.60.
36432 ac_datarootdir_hack=; ac_datarootdir_seen=
36433
36434 case `sed -n '/datarootdir/ {
36435   p
36436   q
36437 }
36438 /@datadir@/p
36439 /@docdir@/p
36440 /@infodir@/p
36441 /@localedir@/p
36442 /@mandir@/p
36443 ' $ac_file_inputs` in
36444 *datarootdir*) ac_datarootdir_seen=yes;;
36445 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36446   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36447 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36448 _ACEOF
36449 cat >>$CONFIG_STATUS <<_ACEOF
36450   ac_datarootdir_hack='
36451   s&@datadir@&$datadir&g
36452   s&@docdir@&$docdir&g
36453   s&@infodir@&$infodir&g
36454   s&@localedir@&$localedir&g
36455   s&@mandir@&$mandir&g
36456     s&\\\${datarootdir}&$datarootdir&g' ;;
36457 esac
36458 _ACEOF
36459
36460 # Neutralize VPATH when `$srcdir' = `.'.
36461 # Shell code in configure.ac might set extrasub.
36462 # FIXME: do we really want to maintain this feature?
36463 cat >>$CONFIG_STATUS <<_ACEOF
36464   sed "$ac_vpsub
36465 $extrasub
36466 _ACEOF
36467 cat >>$CONFIG_STATUS <<\_ACEOF
36468 :t
36469 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36470 s&@configure_input@&$configure_input&;t t
36471 s&@top_builddir@&$ac_top_builddir_sub&;t t
36472 s&@srcdir@&$ac_srcdir&;t t
36473 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36474 s&@top_srcdir@&$ac_top_srcdir&;t t
36475 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36476 s&@builddir@&$ac_builddir&;t t
36477 s&@abs_builddir@&$ac_abs_builddir&;t t
36478 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36479 s&@INSTALL@&$ac_INSTALL&;t t
36480 $ac_datarootdir_hack
36481 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36482
36483 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36484   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36485   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36486   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36487 which seems to be undefined.  Please make sure it is defined." >&5
36488 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36489 which seems to be undefined.  Please make sure it is defined." >&2;}
36490
36491   rm -f "$tmp/stdin"
36492   case $ac_file in
36493   -) cat "$tmp/out"; rm -f "$tmp/out";;
36494   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36495   esac
36496  ;;
36497   :H)
36498   #
36499   # CONFIG_HEADER
36500   #
36501 _ACEOF
36502
36503 # Transform confdefs.h into a sed script `conftest.defines', that
36504 # substitutes the proper values into config.h.in to produce config.h.
36505 rm -f conftest.defines conftest.tail
36506 # First, append a space to every undef/define line, to ease matching.
36507 echo 's/$/ /' >conftest.defines
36508 # Then, protect against being on the right side of a sed subst, or in
36509 # an unquoted here document, in config.status.  If some macros were
36510 # called several times there might be several #defines for the same
36511 # symbol, which is useless.  But do not sort them, since the last
36512 # AC_DEFINE must be honored.
36513 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36514 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36515 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36516 # PARAMS is the parameter list in the macro definition--in most cases, it's
36517 # just an empty string.
36518 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
36519 ac_dB='\\)[      (].*,\\1define\\2'
36520 ac_dC=' '
36521 ac_dD=' ,'
36522
36523 uniq confdefs.h |
36524   sed -n '
36525         t rset
36526         :rset
36527         s/^[     ]*#[    ]*define[       ][      ]*//
36528         t ok
36529         d
36530         :ok
36531         s/[\\&,]/\\&/g
36532         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36533         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36534   ' >>conftest.defines
36535
36536 # Remove the space that was appended to ease matching.
36537 # Then replace #undef with comments.  This is necessary, for
36538 # example, in the case of _POSIX_SOURCE, which is predefined and required
36539 # on some systems where configure will not decide to define it.
36540 # (The regexp can be short, since the line contains either #define or #undef.)
36541 echo 's/ $//
36542 s,^[     #]*u.*,/* & */,' >>conftest.defines
36543
36544 # Break up conftest.defines:
36545 ac_max_sed_lines=50
36546
36547 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36548 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36549 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36550 # et cetera.
36551 ac_in='$ac_file_inputs'
36552 ac_out='"$tmp/out1"'
36553 ac_nxt='"$tmp/out2"'
36554
36555 while :
36556 do
36557   # Write a here document:
36558     cat >>$CONFIG_STATUS <<_ACEOF
36559     # First, check the format of the line:
36560     cat >"\$tmp/defines.sed" <<\\CEOF
36561 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
36562 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
36563 b
36564 :def
36565 _ACEOF
36566   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36567   echo 'CEOF
36568     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36569   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36570   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36571   grep . conftest.tail >/dev/null || break
36572   rm -f conftest.defines
36573   mv conftest.tail conftest.defines
36574 done
36575 rm -f conftest.defines conftest.tail
36576
36577 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36578 cat >>$CONFIG_STATUS <<\_ACEOF
36579   if test x"$ac_file" != x-; then
36580     echo "/* $configure_input  */" >"$tmp/config.h"
36581     cat "$ac_result" >>"$tmp/config.h"
36582     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36583       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36584 echo "$as_me: $ac_file is unchanged" >&6;}
36585     else
36586       rm -f $ac_file
36587       mv "$tmp/config.h" $ac_file
36588     fi
36589   else
36590     echo "/* $configure_input  */"
36591     cat "$ac_result"
36592   fi
36593   rm -f "$tmp/out12"
36594  ;;
36595
36596   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36597 echo "$as_me: executing $ac_file commands" >&6;}
36598  ;;
36599   esac
36600
36601
36602   case $ac_file$ac_mode in
36603     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36604    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36605     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36606    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36607     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36608    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36609     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36610    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
36611     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36612    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36613     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36614    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36615     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36616    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36617     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36618    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36619     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36620    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36621     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36622    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36623     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36624    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
36625     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36626    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36627     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36628    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36629
36630   esac
36631 done # for ac_tag
36632
36633
36634 { (exit 0); exit 0; }
36635 _ACEOF
36636 chmod +x $CONFIG_STATUS
36637 ac_clean_files=$ac_clean_files_save
36638
36639
36640 # configure is writing to config.log, and then calls config.status.
36641 # config.status does its own redirection, appending to config.log.
36642 # Unfortunately, on DOS this fails, as config.log is still kept open
36643 # by configure, so config.status won't be able to write to it; its
36644 # output is simply discarded.  So we exec the FD to /dev/null,
36645 # effectively closing config.log, so it can be properly (re)opened and
36646 # appended to by config.status.  When coming back to configure, we
36647 # need to make the FD available again.
36648 if test "$no_create" != yes; then
36649   ac_cs_success=:
36650   ac_config_status_args=
36651   test "$silent" = yes &&
36652     ac_config_status_args="$ac_config_status_args --quiet"
36653   exec 5>/dev/null
36654   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36655   exec 5>>config.log
36656   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36657   # would make configure fail if this is the last instruction.
36658   $ac_cs_success || { (exit 1); exit 1; }
36659 fi
36660
36661 #
36662 # CONFIG_SUBDIRS section.
36663 #
36664 if test "$no_recursion" != yes; then
36665
36666   # Remove --cache-file and --srcdir arguments so they do not pile up.
36667   ac_sub_configure_args=
36668   ac_prev=
36669   eval "set x $ac_configure_args"
36670   shift
36671   for ac_arg
36672   do
36673     if test -n "$ac_prev"; then
36674       ac_prev=
36675       continue
36676     fi
36677     case $ac_arg in
36678     -cache-file | --cache-file | --cache-fil | --cache-fi \
36679     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36680       ac_prev=cache_file ;;
36681     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36682     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36683     | --c=*)
36684       ;;
36685     --config-cache | -C)
36686       ;;
36687     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36688       ac_prev=srcdir ;;
36689     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36690       ;;
36691     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36692       ac_prev=prefix ;;
36693     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36694       ;;
36695     *)
36696       case $ac_arg in
36697       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36698       esac
36699       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36700     esac
36701   done
36702
36703   # Always prepend --prefix to ensure using the same prefix
36704   # in subdir configurations.
36705   ac_arg="--prefix=$prefix"
36706   case $ac_arg in
36707   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36708   esac
36709   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36710
36711   ac_popdir=`pwd`
36712   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36713
36714     # Do not complain, so a configure script can configure whichever
36715     # parts of a large source tree are present.
36716     test -d "$srcdir/$ac_dir" || continue
36717
36718     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36719     echo "$as_me:$LINENO: $ac_msg" >&5
36720     echo "$ac_msg" >&6
36721     { as_dir="$ac_dir"
36722   case $as_dir in #(
36723   -*) as_dir=./$as_dir;;
36724   esac
36725   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36726     as_dirs=
36727     while :; do
36728       case $as_dir in #(
36729       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36730       *) as_qdir=$as_dir;;
36731       esac
36732       as_dirs="'$as_qdir' $as_dirs"
36733       as_dir=`$as_dirname -- "$as_dir" ||
36734 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36735          X"$as_dir" : 'X\(//\)[^/]' \| \
36736          X"$as_dir" : 'X\(//\)$' \| \
36737          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36738 echo X"$as_dir" |
36739     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36740             s//\1/
36741             q
36742           }
36743           /^X\(\/\/\)[^/].*/{
36744             s//\1/
36745             q
36746           }
36747           /^X\(\/\/\)$/{
36748             s//\1/
36749             q
36750           }
36751           /^X\(\/\).*/{
36752             s//\1/
36753             q
36754           }
36755           s/.*/./; q'`
36756       test -d "$as_dir" && break
36757     done
36758     test -z "$as_dirs" || eval "mkdir $as_dirs"
36759   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36760 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36761    { (exit 1); exit 1; }; }; }
36762     ac_builddir=.
36763
36764 case "$ac_dir" in
36765 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36766 *)
36767   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36768   # A ".." for each directory in $ac_dir_suffix.
36769   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36770   case $ac_top_builddir_sub in
36771   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36772   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36773   esac ;;
36774 esac
36775 ac_abs_top_builddir=$ac_pwd
36776 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36777 # for backward compatibility:
36778 ac_top_builddir=$ac_top_build_prefix
36779
36780 case $srcdir in
36781   .)  # We are building in place.
36782     ac_srcdir=.
36783     ac_top_srcdir=$ac_top_builddir_sub
36784     ac_abs_top_srcdir=$ac_pwd ;;
36785   [\\/]* | ?:[\\/]* )  # Absolute name.
36786     ac_srcdir=$srcdir$ac_dir_suffix;
36787     ac_top_srcdir=$srcdir
36788     ac_abs_top_srcdir=$srcdir ;;
36789   *) # Relative name.
36790     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36791     ac_top_srcdir=$ac_top_build_prefix$srcdir
36792     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36793 esac
36794 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36795
36796
36797     cd "$ac_dir"
36798
36799     # Check for guested configure; otherwise get Cygnus style configure.
36800     if test -f "$ac_srcdir/configure.gnu"; then
36801       ac_sub_configure=$ac_srcdir/configure.gnu
36802     elif test -f "$ac_srcdir/configure"; then
36803       ac_sub_configure=$ac_srcdir/configure
36804     elif test -f "$ac_srcdir/configure.in"; then
36805       # This should be Cygnus configure.
36806       ac_sub_configure=$ac_aux_dir/configure
36807     else
36808       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36809 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36810       ac_sub_configure=
36811     fi
36812
36813     # The recursion is here.
36814     if test -n "$ac_sub_configure"; then
36815       # Make the cache file name correct relative to the subdirectory.
36816       case $cache_file in
36817       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36818       *) # Relative name.
36819         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36820       esac
36821
36822       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36823 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36824       # The eval makes quoting arguments work.
36825       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36826            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36827         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36828 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36829    { (exit 1); exit 1; }; }
36830     fi
36831
36832     cd "$ac_popdir"
36833   done
36834 fi
36835