Regenerate.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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-2009 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.7svn'
719 PACKAGE_STRING='llvm 2.7svn'
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 HOST_OS
812 TARGET_OS
813 LINKALL
814 NOLINKALL
815 LLVM_ON_UNIX
816 LLVM_ON_WIN32
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 ARCH
825 ENDIAN
826 CPP
827 GREP
828 EGREP
829 LLVM_CROSS_COMPILING
830 BUILD_CC
831 BUILD_EXEEXT
832 BUILD_CXX
833 CVSBUILD
834 ENABLE_OPTIMIZED
835 ENABLE_PROFILING
836 DISABLE_ASSERTIONS
837 ENABLE_EXPENSIVE_CHECKS
838 EXPENSIVE_CHECKS
839 DEBUG_RUNTIME
840 DEBUG_SYMBOLS
841 JIT
842 TARGET_HAS_JIT
843 ENABLE_DOXYGEN
844 ENABLE_THREADS
845 ENABLE_PIC
846 TARGETS_TO_BUILD
847 LLVM_ENUM_TARGETS
848 LLVM_ENUM_ASM_PRINTERS
849 LLVM_ENUM_ASM_PARSERS
850 ENABLE_CBE_PRINTF_A
851 EXTRA_OPTIONS
852 BINUTILS_INCDIR
853 ENABLE_LLVMC_DYNAMIC
854 ENABLE_LLVMC_DYNAMIC_PLUGINS
855 CXX
856 CXXFLAGS
857 ac_ct_CXX
858 NM
859 ifGNUmake
860 LN_S
861 CMP
862 CP
863 DATE
864 FIND
865 MKDIR
866 MV
867 RANLIB
868 RM
869 SED
870 TAR
871 BINPWD
872 GRAPHVIZ
873 DOT
874 FDP
875 NEATO
876 TWOPI
877 CIRCO
878 GV
879 DOTTY
880 PERL
881 HAVE_PERL
882 INSTALL_PROGRAM
883 INSTALL_SCRIPT
884 INSTALL_DATA
885 BZIP2
886 DOXYGEN
887 GROFF
888 GZIP
889 POD2HTML
890 POD2MAN
891 RUNTEST
892 TCLSH
893 ZIP
894 OCAMLC
895 OCAMLOPT
896 OCAMLDEP
897 OCAMLDOC
898 GAS
899 INSTALL_LTDL_TRUE
900 INSTALL_LTDL_FALSE
901 CONVENIENCE_LTDL_TRUE
902 CONVENIENCE_LTDL_FALSE
903 LIBADD_DL
904 ECHO
905 AR
906 STRIP
907 CXXCPP
908 F77
909 FFLAGS
910 ac_ct_F77
911 LIBTOOL
912 LLVMGCCCOMMAND
913 LLVMGXXCOMMAND
914 LLVMGCC
915 LLVMGXX
916 USE_UDIS86
917 USE_OPROFILE
918 HAVE_PTHREAD
919 HUGE_VAL_SANITY
920 ALLOCA
921 MMAP_FILE
922 LLVMCC1
923 LLVMCC1PLUS
924 LLVMGCCDIR
925 LLVMGCCLIBEXEC
926 LLVMGCC_VERSION
927 LLVMGCC_MAJVERS
928 LLVMGCC_LANGS
929 SHLIBEXT
930 LLVM_PREFIX
931 LLVM_BINDIR
932 LLVM_LIBDIR
933 LLVM_DATADIR
934 LLVM_DOCSDIR
935 LLVM_ETCDIR
936 LLVM_INCLUDEDIR
937 LLVM_INFODIR
938 LLVM_MANDIR
939 LLVM_CONFIGTIME
940 BINDINGS_TO_BUILD
941 ALL_BINDINGS
942 OCAML_LIBDIR
943 ENABLE_VISIBILITY_INLINES_HIDDEN
944 RPATH
945 RDYNAMIC
946 LIBOBJS
947 LTLIBOBJS'
948 ac_subst_files=''
949       ac_precious_vars='build_alias
950 host_alias
951 target_alias
952 CC
953 CFLAGS
954 LDFLAGS
955 CPPFLAGS
956 CPP
957 CXX
958 CXXFLAGS
959 CCC
960 CXXCPP
961 F77
962 FFLAGS'
963 ac_subdirs_all='projects/sample
964 projects/privbracket
965 projects/llvm-stacker
966 projects/llvm-test
967 projects/test-suite
968 projects/llvm-reopt
969 projects/llvm-gcc
970 projects/llvm-java
971 projects/llvm-tv
972 projects/llvm-poolalloc
973 projects/poolalloc
974 projects/llvm-kernel'
975
976 # Initialize some variables set by options.
977 ac_init_help=
978 ac_init_version=false
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
981 cache_file=/dev/null
982 exec_prefix=NONE
983 no_create=
984 no_recursion=
985 prefix=NONE
986 program_prefix=NONE
987 program_suffix=NONE
988 program_transform_name=s,x,x,
989 silent=
990 site=
991 srcdir=
992 verbose=
993 x_includes=NONE
994 x_libraries=NONE
995
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir='${exec_prefix}/bin'
1003 sbindir='${exec_prefix}/sbin'
1004 libexecdir='${exec_prefix}/libexec'
1005 datarootdir='${prefix}/share'
1006 datadir='${datarootdir}'
1007 sysconfdir='${prefix}/etc'
1008 sharedstatedir='${prefix}/com'
1009 localstatedir='${prefix}/var'
1010 includedir='${prefix}/include'
1011 oldincludedir='/usr/include'
1012 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1013 infodir='${datarootdir}/info'
1014 htmldir='${docdir}'
1015 dvidir='${docdir}'
1016 pdfdir='${docdir}'
1017 psdir='${docdir}'
1018 libdir='${exec_prefix}/lib'
1019 localedir='${datarootdir}/locale'
1020 mandir='${datarootdir}/man'
1021
1022 ac_prev=
1023 ac_dashdash=
1024 for ac_option
1025 do
1026   # If the previous option needs an argument, assign it.
1027   if test -n "$ac_prev"; then
1028     eval $ac_prev=\$ac_option
1029     ac_prev=
1030     continue
1031   fi
1032
1033   case $ac_option in
1034   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035   *)    ac_optarg=yes ;;
1036   esac
1037
1038   # Accept the important Cygnus configure options, so we can diagnose typos.
1039
1040   case $ac_dashdash$ac_option in
1041   --)
1042     ac_dashdash=yes ;;
1043
1044   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045     ac_prev=bindir ;;
1046   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047     bindir=$ac_optarg ;;
1048
1049   -build | --build | --buil | --bui | --bu)
1050     ac_prev=build_alias ;;
1051   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052     build_alias=$ac_optarg ;;
1053
1054   -cache-file | --cache-file | --cache-fil | --cache-fi \
1055   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056     ac_prev=cache_file ;;
1057   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059     cache_file=$ac_optarg ;;
1060
1061   --config-cache | -C)
1062     cache_file=config.cache ;;
1063
1064   -datadir | --datadir | --datadi | --datad)
1065     ac_prev=datadir ;;
1066   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067     datadir=$ac_optarg ;;
1068
1069   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070   | --dataroo | --dataro | --datar)
1071     ac_prev=datarootdir ;;
1072   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074     datarootdir=$ac_optarg ;;
1075
1076   -disable-* | --disable-*)
1077     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078     # Reject names that are not valid shell variable names.
1079     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1080       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1081    { (exit 1); exit 1; }; }
1082     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1083     eval enable_$ac_feature=no ;;
1084
1085   -docdir | --docdir | --docdi | --doc | --do)
1086     ac_prev=docdir ;;
1087   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088     docdir=$ac_optarg ;;
1089
1090   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091     ac_prev=dvidir ;;
1092   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093     dvidir=$ac_optarg ;;
1094
1095   -enable-* | --enable-*)
1096     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097     # Reject names that are not valid shell variable names.
1098     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1099       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1100    { (exit 1); exit 1; }; }
1101     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1102     eval enable_$ac_feature=\$ac_optarg ;;
1103
1104   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106   | --exec | --exe | --ex)
1107     ac_prev=exec_prefix ;;
1108   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110   | --exec=* | --exe=* | --ex=*)
1111     exec_prefix=$ac_optarg ;;
1112
1113   -gas | --gas | --ga | --g)
1114     # Obsolete; use --with-gas.
1115     with_gas=yes ;;
1116
1117   -help | --help | --hel | --he | -h)
1118     ac_init_help=long ;;
1119   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120     ac_init_help=recursive ;;
1121   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122     ac_init_help=short ;;
1123
1124   -host | --host | --hos | --ho)
1125     ac_prev=host_alias ;;
1126   -host=* | --host=* | --hos=* | --ho=*)
1127     host_alias=$ac_optarg ;;
1128
1129   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130     ac_prev=htmldir ;;
1131   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132   | --ht=*)
1133     htmldir=$ac_optarg ;;
1134
1135   -includedir | --includedir | --includedi | --included | --include \
1136   | --includ | --inclu | --incl | --inc)
1137     ac_prev=includedir ;;
1138   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139   | --includ=* | --inclu=* | --incl=* | --inc=*)
1140     includedir=$ac_optarg ;;
1141
1142   -infodir | --infodir | --infodi | --infod | --info | --inf)
1143     ac_prev=infodir ;;
1144   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145     infodir=$ac_optarg ;;
1146
1147   -libdir | --libdir | --libdi | --libd)
1148     ac_prev=libdir ;;
1149   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150     libdir=$ac_optarg ;;
1151
1152   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153   | --libexe | --libex | --libe)
1154     ac_prev=libexecdir ;;
1155   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156   | --libexe=* | --libex=* | --libe=*)
1157     libexecdir=$ac_optarg ;;
1158
1159   -localedir | --localedir | --localedi | --localed | --locale)
1160     ac_prev=localedir ;;
1161   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162     localedir=$ac_optarg ;;
1163
1164   -localstatedir | --localstatedir | --localstatedi | --localstated \
1165   | --localstate | --localstat | --localsta | --localst | --locals)
1166     ac_prev=localstatedir ;;
1167   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169     localstatedir=$ac_optarg ;;
1170
1171   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172     ac_prev=mandir ;;
1173   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174     mandir=$ac_optarg ;;
1175
1176   -nfp | --nfp | --nf)
1177     # Obsolete; use --without-fp.
1178     with_fp=no ;;
1179
1180   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181   | --no-cr | --no-c | -n)
1182     no_create=yes ;;
1183
1184   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186     no_recursion=yes ;;
1187
1188   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190   | --oldin | --oldi | --old | --ol | --o)
1191     ac_prev=oldincludedir ;;
1192   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195     oldincludedir=$ac_optarg ;;
1196
1197   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198     ac_prev=prefix ;;
1199   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200     prefix=$ac_optarg ;;
1201
1202   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203   | --program-pre | --program-pr | --program-p)
1204     ac_prev=program_prefix ;;
1205   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207     program_prefix=$ac_optarg ;;
1208
1209   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210   | --program-suf | --program-su | --program-s)
1211     ac_prev=program_suffix ;;
1212   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214     program_suffix=$ac_optarg ;;
1215
1216   -program-transform-name | --program-transform-name \
1217   | --program-transform-nam | --program-transform-na \
1218   | --program-transform-n | --program-transform- \
1219   | --program-transform | --program-transfor \
1220   | --program-transfo | --program-transf \
1221   | --program-trans | --program-tran \
1222   | --progr-tra | --program-tr | --program-t)
1223     ac_prev=program_transform_name ;;
1224   -program-transform-name=* | --program-transform-name=* \
1225   | --program-transform-nam=* | --program-transform-na=* \
1226   | --program-transform-n=* | --program-transform-=* \
1227   | --program-transform=* | --program-transfor=* \
1228   | --program-transfo=* | --program-transf=* \
1229   | --program-trans=* | --program-tran=* \
1230   | --progr-tra=* | --program-tr=* | --program-t=*)
1231     program_transform_name=$ac_optarg ;;
1232
1233   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234     ac_prev=pdfdir ;;
1235   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236     pdfdir=$ac_optarg ;;
1237
1238   -psdir | --psdir | --psdi | --psd | --ps)
1239     ac_prev=psdir ;;
1240   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241     psdir=$ac_optarg ;;
1242
1243   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244   | -silent | --silent | --silen | --sile | --sil)
1245     silent=yes ;;
1246
1247   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248     ac_prev=sbindir ;;
1249   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250   | --sbi=* | --sb=*)
1251     sbindir=$ac_optarg ;;
1252
1253   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255   | --sharedst | --shareds | --shared | --share | --shar \
1256   | --sha | --sh)
1257     ac_prev=sharedstatedir ;;
1258   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261   | --sha=* | --sh=*)
1262     sharedstatedir=$ac_optarg ;;
1263
1264   -site | --site | --sit)
1265     ac_prev=site ;;
1266   -site=* | --site=* | --sit=*)
1267     site=$ac_optarg ;;
1268
1269   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270     ac_prev=srcdir ;;
1271   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272     srcdir=$ac_optarg ;;
1273
1274   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275   | --syscon | --sysco | --sysc | --sys | --sy)
1276     ac_prev=sysconfdir ;;
1277   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279     sysconfdir=$ac_optarg ;;
1280
1281   -target | --target | --targe | --targ | --tar | --ta | --t)
1282     ac_prev=target_alias ;;
1283   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284     target_alias=$ac_optarg ;;
1285
1286   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287     verbose=yes ;;
1288
1289   -version | --version | --versio | --versi | --vers | -V)
1290     ac_init_version=: ;;
1291
1292   -with-* | --with-*)
1293     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294     # Reject names that are not valid shell variable names.
1295     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1296       { echo "$as_me: error: invalid package name: $ac_package" >&2
1297    { (exit 1); exit 1; }; }
1298     ac_package=`echo $ac_package| sed 's/-/_/g'`
1299     eval with_$ac_package=\$ac_optarg ;;
1300
1301   -without-* | --without-*)
1302     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303     # Reject names that are not valid shell variable names.
1304     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1305       { echo "$as_me: error: invalid package name: $ac_package" >&2
1306    { (exit 1); exit 1; }; }
1307     ac_package=`echo $ac_package | sed 's/-/_/g'`
1308     eval with_$ac_package=no ;;
1309
1310   --x)
1311     # Obsolete; use --with-x.
1312     with_x=yes ;;
1313
1314   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315   | --x-incl | --x-inc | --x-in | --x-i)
1316     ac_prev=x_includes ;;
1317   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319     x_includes=$ac_optarg ;;
1320
1321   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323     ac_prev=x_libraries ;;
1324   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326     x_libraries=$ac_optarg ;;
1327
1328   -*) { echo "$as_me: error: unrecognized option: $ac_option
1329 Try \`$0 --help' for more information." >&2
1330    { (exit 1); exit 1; }; }
1331     ;;
1332
1333   *=*)
1334     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335     # Reject names that are not valid shell variable names.
1336     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1337       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1338    { (exit 1); exit 1; }; }
1339     eval $ac_envvar=\$ac_optarg
1340     export $ac_envvar ;;
1341
1342   *)
1343     # FIXME: should be removed in autoconf 3.0.
1344     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348     ;;
1349
1350   esac
1351 done
1352
1353 if test -n "$ac_prev"; then
1354   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355   { echo "$as_me: error: missing argument to $ac_option" >&2
1356    { (exit 1); exit 1; }; }
1357 fi
1358
1359 # Be sure to have absolute directory names.
1360 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361                 datadir sysconfdir sharedstatedir localstatedir includedir \
1362                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363                 libdir localedir mandir
1364 do
1365   eval ac_val=\$$ac_var
1366   case $ac_val in
1367     [\\/$]* | ?:[\\/]* )  continue;;
1368     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369   esac
1370   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1371    { (exit 1); exit 1; }; }
1372 done
1373
1374 # There might be people who depend on the old broken behavior: `$host'
1375 # used to hold the argument of --host etc.
1376 # FIXME: To remove some day.
1377 build=$build_alias
1378 host=$host_alias
1379 target=$target_alias
1380
1381 # FIXME: To remove some day.
1382 if test "x$host_alias" != x; then
1383   if test "x$build_alias" = x; then
1384     cross_compiling=maybe
1385     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1386     If a cross compiler is detected then cross compile mode will be used." >&2
1387   elif test "x$build_alias" != "x$host_alias"; then
1388     cross_compiling=yes
1389   fi
1390 fi
1391
1392 ac_tool_prefix=
1393 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1394
1395 test "$silent" = yes && exec 6>/dev/null
1396
1397
1398 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399 ac_ls_di=`ls -di .` &&
1400 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401   { echo "$as_me: error: Working directory cannot be determined" >&2
1402    { (exit 1); exit 1; }; }
1403 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404   { echo "$as_me: error: pwd does not report name of working directory" >&2
1405    { (exit 1); exit 1; }; }
1406
1407
1408 # Find the source files, if location was not specified.
1409 if test -z "$srcdir"; then
1410   ac_srcdir_defaulted=yes
1411   # Try the directory containing this script, then the parent directory.
1412   ac_confdir=`$as_dirname -- "$0" ||
1413 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414          X"$0" : 'X\(//\)[^/]' \| \
1415          X"$0" : 'X\(//\)$' \| \
1416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1417 echo X"$0" |
1418     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419             s//\1/
1420             q
1421           }
1422           /^X\(\/\/\)[^/].*/{
1423             s//\1/
1424             q
1425           }
1426           /^X\(\/\/\)$/{
1427             s//\1/
1428             q
1429           }
1430           /^X\(\/\).*/{
1431             s//\1/
1432             q
1433           }
1434           s/.*/./; q'`
1435   srcdir=$ac_confdir
1436   if test ! -r "$srcdir/$ac_unique_file"; then
1437     srcdir=..
1438   fi
1439 else
1440   ac_srcdir_defaulted=no
1441 fi
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1444   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1445    { (exit 1); exit 1; }; }
1446 fi
1447 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448 ac_abs_confdir=`(
1449         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1450    { (exit 1); exit 1; }; }
1451         pwd)`
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1454   srcdir=.
1455 fi
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1459 case $srcdir in
1460 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461 esac
1462 for ac_var in $ac_precious_vars; do
1463   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464   eval ac_env_${ac_var}_value=\$${ac_var}
1465   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 done
1468
1469 #
1470 # Report the --help message.
1471 #
1472 if test "$ac_init_help" = "long"; then
1473   # Omit some internal or obsolete options to make the list less imposing.
1474   # This message is too long to be a string in the A/UX 3.1 sh.
1475   cat <<_ACEOF
1476 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1477
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1479
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE.  See below for descriptions of some of the useful variables.
1482
1483 Defaults for the options are specified in brackets.
1484
1485 Configuration:
1486   -h, --help              display this help and exit
1487       --help=short        display options specific to this package
1488       --help=recursive    display the short help of all the included packages
1489   -V, --version           display version information and exit
1490   -q, --quiet, --silent   do not print \`checking...' messages
1491       --cache-file=FILE   cache test results in FILE [disabled]
1492   -C, --config-cache      alias for \`--cache-file=config.cache'
1493   -n, --no-create         do not create output files
1494       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1495
1496 Installation directories:
1497   --prefix=PREFIX         install architecture-independent files in PREFIX
1498                           [$ac_default_prefix]
1499   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1500                           [PREFIX]
1501
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1506
1507 For better control, use the options below.
1508
1509 Fine tuning of the installation directories:
1510   --bindir=DIR           user executables [EPREFIX/bin]
1511   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1512   --libexecdir=DIR       program executables [EPREFIX/libexec]
1513   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1514   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1515   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1516   --libdir=DIR           object code libraries [EPREFIX/lib]
1517   --includedir=DIR       C header files [PREFIX/include]
1518   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1519   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1520   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1521   --infodir=DIR          info documentation [DATAROOTDIR/info]
1522   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1523   --mandir=DIR           man documentation [DATAROOTDIR/man]
1524   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1525   --htmldir=DIR          html documentation [DOCDIR]
1526   --dvidir=DIR           dvi documentation [DOCDIR]
1527   --pdfdir=DIR           pdf documentation [DOCDIR]
1528   --psdir=DIR            ps documentation [DOCDIR]
1529 _ACEOF
1530
1531   cat <<\_ACEOF
1532
1533 System types:
1534   --build=BUILD     configure for building on BUILD [guessed]
1535   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1536   --target=TARGET   configure for building compilers for TARGET [HOST]
1537 _ACEOF
1538 fi
1539
1540 if test -n "$ac_init_help"; then
1541   case $ac_init_help in
1542      short | recursive ) echo "Configuration of llvm 2.7svn:";;
1543    esac
1544   cat <<\_ACEOF
1545
1546 Optional Features:
1547   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1548   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1549   --enable-optimized      Compile with optimizations enabled (default is NO)
1550   --enable-profiling      Compile with profiling enabled (default is NO)
1551   --enable-assertions     Compile with assertion checks enabled (default is
1552                           YES)
1553   --enable-expensive-checks
1554                           Compile with expensive debug checks enabled (default
1555                           is NO)
1556   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1557                           NO)
1558   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1559                           optimization is on and YES if it's off)
1560   --enable-jit            Enable Just In Time Compiling (default is YES)
1561   --enable-doxygen        Build doxygen documentation (default is NO)
1562   --enable-threads        Use threads if available (default is YES)
1563   --enable-pic            Build LLVM with Position Independent Code (default
1564                           is YES)
1565   --enable-targets        Build specific host targets: all or
1566                           target1,target2,... Valid targets are: host, x86,
1567                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1568                           pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1569                           and cpp (default=all)
1570   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1571                           %a (default is YES)
1572   --enable-bindings       Build specific language bindings:
1573                           all,auto,none,{binding-name} (default=auto)
1574   --enable-libffi         Check for the presence of libffi (default is YES)
1575   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1576                           Win32)
1577   --enable-llvmc-dynamic-plugins
1578                           Enable dynamic LLVMC plugins (default is YES)
1579   --enable-ltdl-install   install libltdl
1580   --enable-shared[=PKGS]  build shared libraries
1581                           [default=yes]
1582   --enable-static[=PKGS]  build static libraries
1583                           [default=yes]
1584   --enable-fast-install[=PKGS]
1585                           optimize for fast installation
1586                           [default=yes]
1587   --disable-libtool-lock  avoid locking (might break parallel builds)
1588
1589 Optional Packages:
1590   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1591   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1592   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1593                           searches PATH)
1594   --with-llvmgcc          Specify location of llvm-gcc driver (default
1595                           searches PATH)
1596   --with-llvmgxx          Specify location of llvm-g++ driver (default
1597                           searches PATH)
1598   --with-extra-options    Specify additional options to compile LLVM with
1599   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1600                           is stdlib)
1601   --with-binutils-include Specify path to binutils/include/ containing
1602                           plugin-api.h file for gold plugin.
1603   --with-tclinclude       directory where tcl headers are
1604   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1605   --with-pic              try to use only PIC/non-PIC objects [default=use
1606                           both]
1607   --with-tags[=TAGS]      include additional configurations [automatic]
1608   --with-udis86=<path>    Use udis86 external x86 disassembler library
1609   --with-oprofile=<prefix>
1610                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1611
1612 Some influential environment variables:
1613   CC          C compiler command
1614   CFLAGS      C compiler flags
1615   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1616               nonstandard directory <lib dir>
1617   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618               you have headers in a nonstandard directory <include dir>
1619   CPP         C preprocessor
1620   CXX         C++ compiler command
1621   CXXFLAGS    C++ compiler flags
1622   CXXCPP      C++ preprocessor
1623   F77         Fortran 77 compiler command
1624   FFLAGS      Fortran 77 compiler flags
1625
1626 Use these variables to override the choices made by `configure' or to help
1627 it to find libraries and programs with nonstandard names/locations.
1628
1629 Report bugs to <llvmbugs@cs.uiuc.edu>.
1630 _ACEOF
1631 ac_status=$?
1632 fi
1633
1634 if test "$ac_init_help" = "recursive"; then
1635   # If there are subdirs, report their specific --help.
1636   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637     test -d "$ac_dir" || continue
1638     ac_builddir=.
1639
1640 case "$ac_dir" in
1641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 *)
1643   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1644   # A ".." for each directory in $ac_dir_suffix.
1645   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1646   case $ac_top_builddir_sub in
1647   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1649   esac ;;
1650 esac
1651 ac_abs_top_builddir=$ac_pwd
1652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653 # for backward compatibility:
1654 ac_top_builddir=$ac_top_build_prefix
1655
1656 case $srcdir in
1657   .)  # We are building in place.
1658     ac_srcdir=.
1659     ac_top_srcdir=$ac_top_builddir_sub
1660     ac_abs_top_srcdir=$ac_pwd ;;
1661   [\\/]* | ?:[\\/]* )  # Absolute name.
1662     ac_srcdir=$srcdir$ac_dir_suffix;
1663     ac_top_srcdir=$srcdir
1664     ac_abs_top_srcdir=$srcdir ;;
1665   *) # Relative name.
1666     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667     ac_top_srcdir=$ac_top_build_prefix$srcdir
1668     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1669 esac
1670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1671
1672     cd "$ac_dir" || { ac_status=$?; continue; }
1673     # Check for guested configure.
1674     if test -f "$ac_srcdir/configure.gnu"; then
1675       echo &&
1676       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677     elif test -f "$ac_srcdir/configure"; then
1678       echo &&
1679       $SHELL "$ac_srcdir/configure" --help=recursive
1680     else
1681       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1682     fi || ac_status=$?
1683     cd "$ac_pwd" || { ac_status=$?; break; }
1684   done
1685 fi
1686
1687 test -n "$ac_init_help" && exit $ac_status
1688 if $ac_init_version; then
1689   cat <<\_ACEOF
1690 llvm configure 2.7svn
1691 generated by GNU Autoconf 2.60
1692
1693 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1694 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1695 This configure script is free software; the Free Software Foundation
1696 gives unlimited permission to copy, distribute and modify it.
1697
1698 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1699 _ACEOF
1700   exit
1701 fi
1702 cat >config.log <<_ACEOF
1703 This file contains any messages produced by compilers while
1704 running configure, to aid debugging if configure makes a mistake.
1705
1706 It was created by llvm $as_me 2.7svn, which was
1707 generated by GNU Autoconf 2.60.  Invocation command line was
1708
1709   $ $0 $@
1710
1711 _ACEOF
1712 exec 5>>config.log
1713 {
1714 cat <<_ASUNAME
1715 ## --------- ##
1716 ## Platform. ##
1717 ## --------- ##
1718
1719 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1720 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1721 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1722 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1723 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1724
1725 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1726 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1727
1728 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1729 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1730 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1731 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1732 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1733 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1734 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1735
1736 _ASUNAME
1737
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739 for as_dir in $PATH
1740 do
1741   IFS=$as_save_IFS
1742   test -z "$as_dir" && as_dir=.
1743   echo "PATH: $as_dir"
1744 done
1745 IFS=$as_save_IFS
1746
1747 } >&5
1748
1749 cat >&5 <<_ACEOF
1750
1751
1752 ## ----------- ##
1753 ## Core tests. ##
1754 ## ----------- ##
1755
1756 _ACEOF
1757
1758
1759 # Keep a trace of the command line.
1760 # Strip out --no-create and --no-recursion so they do not pile up.
1761 # Strip out --silent because we don't want to record it for future runs.
1762 # Also quote any args containing shell meta-characters.
1763 # Make two passes to allow for proper duplicate-argument suppression.
1764 ac_configure_args=
1765 ac_configure_args0=
1766 ac_configure_args1=
1767 ac_must_keep_next=false
1768 for ac_pass in 1 2
1769 do
1770   for ac_arg
1771   do
1772     case $ac_arg in
1773     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775     | -silent | --silent | --silen | --sile | --sil)
1776       continue ;;
1777     *\'*)
1778       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1779     esac
1780     case $ac_pass in
1781     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1782     2)
1783       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1784       if test $ac_must_keep_next = true; then
1785         ac_must_keep_next=false # Got value, back to normal.
1786       else
1787         case $ac_arg in
1788           *=* | --config-cache | -C | -disable-* | --disable-* \
1789           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791           | -with-* | --with-* | -without-* | --without-* | --x)
1792             case "$ac_configure_args0 " in
1793               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1794             esac
1795             ;;
1796           -* ) ac_must_keep_next=true ;;
1797         esac
1798       fi
1799       ac_configure_args="$ac_configure_args '$ac_arg'"
1800       ;;
1801     esac
1802   done
1803 done
1804 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1805 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1806
1807 # When interrupted or exit'd, cleanup temporary files, and complete
1808 # config.log.  We remove comments because anyway the quotes in there
1809 # would cause problems or look ugly.
1810 # WARNING: Use '\'' to represent an apostrophe within the trap.
1811 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1812 trap 'exit_status=$?
1813   # Save into config.log some information that might help in debugging.
1814   {
1815     echo
1816
1817     cat <<\_ASBOX
1818 ## ---------------- ##
1819 ## Cache variables. ##
1820 ## ---------------- ##
1821 _ASBOX
1822     echo
1823     # The following way of writing the cache mishandles newlines in values,
1824 (
1825   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826     eval ac_val=\$$ac_var
1827     case $ac_val in #(
1828     *${as_nl}*)
1829       case $ac_var in #(
1830       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1831 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1832       esac
1833       case $ac_var in #(
1834       _ | IFS | as_nl) ;; #(
1835       *) $as_unset $ac_var ;;
1836       esac ;;
1837     esac
1838   done
1839   (set) 2>&1 |
1840     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1841     *${as_nl}ac_space=\ *)
1842       sed -n \
1843         "s/'\''/'\''\\\\'\'''\''/g;
1844           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1845       ;; #(
1846     *)
1847       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1848       ;;
1849     esac |
1850     sort
1851 )
1852     echo
1853
1854     cat <<\_ASBOX
1855 ## ----------------- ##
1856 ## Output variables. ##
1857 ## ----------------- ##
1858 _ASBOX
1859     echo
1860     for ac_var in $ac_subst_vars
1861     do
1862       eval ac_val=\$$ac_var
1863       case $ac_val in
1864       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1865       esac
1866       echo "$ac_var='\''$ac_val'\''"
1867     done | sort
1868     echo
1869
1870     if test -n "$ac_subst_files"; then
1871       cat <<\_ASBOX
1872 ## ------------------- ##
1873 ## File substitutions. ##
1874 ## ------------------- ##
1875 _ASBOX
1876       echo
1877       for ac_var in $ac_subst_files
1878       do
1879         eval ac_val=\$$ac_var
1880         case $ac_val in
1881         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1882         esac
1883         echo "$ac_var='\''$ac_val'\''"
1884       done | sort
1885       echo
1886     fi
1887
1888     if test -s confdefs.h; then
1889       cat <<\_ASBOX
1890 ## ----------- ##
1891 ## confdefs.h. ##
1892 ## ----------- ##
1893 _ASBOX
1894       echo
1895       cat confdefs.h
1896       echo
1897     fi
1898     test "$ac_signal" != 0 &&
1899       echo "$as_me: caught signal $ac_signal"
1900     echo "$as_me: exit $exit_status"
1901   } >&5
1902   rm -f core *.core core.conftest.* &&
1903     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1904     exit $exit_status
1905 ' 0
1906 for ac_signal in 1 2 13 15; do
1907   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1908 done
1909 ac_signal=0
1910
1911 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1912 rm -f -r conftest* confdefs.h
1913
1914 # Predefined preprocessor variables.
1915
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_NAME "$PACKAGE_NAME"
1918 _ACEOF
1919
1920
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1923 _ACEOF
1924
1925
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1928 _ACEOF
1929
1930
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_STRING "$PACKAGE_STRING"
1933 _ACEOF
1934
1935
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1938 _ACEOF
1939
1940
1941 # Let the site file select an alternate cache file if it wants to.
1942 # Prefer explicitly selected file to automatically selected ones.
1943 if test -n "$CONFIG_SITE"; then
1944   set x "$CONFIG_SITE"
1945 elif test "x$prefix" != xNONE; then
1946   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1947 else
1948   set x "$ac_default_prefix/share/config.site" \
1949         "$ac_default_prefix/etc/config.site"
1950 fi
1951 shift
1952 for ac_site_file
1953 do
1954   if test -r "$ac_site_file"; then
1955     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1956 echo "$as_me: loading site script $ac_site_file" >&6;}
1957     sed 's/^/| /' "$ac_site_file" >&5
1958     . "$ac_site_file"
1959   fi
1960 done
1961
1962 if test -r "$cache_file"; then
1963   # Some versions of bash will fail to source /dev/null (special
1964   # files actually), so we avoid doing that.
1965   if test -f "$cache_file"; then
1966     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1967 echo "$as_me: loading cache $cache_file" >&6;}
1968     case $cache_file in
1969       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1970       *)                      . "./$cache_file";;
1971     esac
1972   fi
1973 else
1974   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1975 echo "$as_me: creating cache $cache_file" >&6;}
1976   >$cache_file
1977 fi
1978
1979 # Check that the precious variables saved in the cache have kept the same
1980 # value.
1981 ac_cache_corrupted=false
1982 for ac_var in $ac_precious_vars; do
1983   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1984   eval ac_new_set=\$ac_env_${ac_var}_set
1985   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1986   eval ac_new_val=\$ac_env_${ac_var}_value
1987   case $ac_old_set,$ac_new_set in
1988     set,)
1989       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1990 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1991       ac_cache_corrupted=: ;;
1992     ,set)
1993       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1994 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1995       ac_cache_corrupted=: ;;
1996     ,);;
1997     *)
1998       if test "x$ac_old_val" != "x$ac_new_val"; then
1999         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2000 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2001         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2002 echo "$as_me:   former value:  $ac_old_val" >&2;}
2003         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2004 echo "$as_me:   current value: $ac_new_val" >&2;}
2005         ac_cache_corrupted=:
2006       fi;;
2007   esac
2008   # Pass precious variables to config.status.
2009   if test "$ac_new_set" = set; then
2010     case $ac_new_val in
2011     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2012     *) ac_arg=$ac_var=$ac_new_val ;;
2013     esac
2014     case " $ac_configure_args " in
2015       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2016       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2017     esac
2018   fi
2019 done
2020 if $ac_cache_corrupted; then
2021   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2022 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2023   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2024 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2025    { (exit 1); exit 1; }; }
2026 fi
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052 ac_ext=c
2053 ac_cpp='$CPP $CPPFLAGS'
2054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057
2058
2059
2060 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2061
2062
2063
2064
2065
2066
2067
2068 ac_aux_dir=
2069 for ac_dir in autoconf "$srcdir"/autoconf; do
2070   if test -f "$ac_dir/install-sh"; then
2071     ac_aux_dir=$ac_dir
2072     ac_install_sh="$ac_aux_dir/install-sh -c"
2073     break
2074   elif test -f "$ac_dir/install.sh"; then
2075     ac_aux_dir=$ac_dir
2076     ac_install_sh="$ac_aux_dir/install.sh -c"
2077     break
2078   elif test -f "$ac_dir/shtool"; then
2079     ac_aux_dir=$ac_dir
2080     ac_install_sh="$ac_aux_dir/shtool install -c"
2081     break
2082   fi
2083 done
2084 if test -z "$ac_aux_dir"; then
2085   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2086 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2087    { (exit 1); exit 1; }; }
2088 fi
2089
2090 # These three variables are undocumented and unsupported,
2091 # and are intended to be withdrawn in a future Autoconf release.
2092 # They can cause serious problems if a builder's source tree is in a directory
2093 # whose full name contains unusual characters.
2094 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2095 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2096 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2097
2098
2099
2100 if test ${srcdir} != "." ; then
2101   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2102     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2103 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2104    { (exit 1); exit 1; }; }
2105   fi
2106 fi
2107
2108 for i in `ls ${srcdir}/projects`
2109 do
2110   if test -d ${srcdir}/projects/${i} ; then
2111     case ${i} in
2112       CVS) ;;
2113       sample)       subdirs="$subdirs projects/sample"
2114     ;;
2115       privbracket)  subdirs="$subdirs projects/privbracket"
2116  ;;
2117       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2118  ;;
2119       # llvm-test is the old name of the test-suite, kept here for backwards
2120       # compatibility
2121       llvm-test)    subdirs="$subdirs projects/llvm-test"
2122  ;;
2123       test-suite)   subdirs="$subdirs projects/test-suite"
2124  ;;
2125       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2126 ;;
2127       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2128   ;;
2129       llvm-java)    subdirs="$subdirs projects/llvm-java"
2130  ;;
2131       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2132    ;;
2133       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2134  ;;
2135       poolalloc)    subdirs="$subdirs projects/poolalloc"
2136  ;;
2137       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2138  ;;
2139       *)
2140         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2141 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2142         ;;
2143     esac
2144   fi
2145 done
2146
2147
2148 # Make sure we can run config.sub.
2149 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2150   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2151 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2152    { (exit 1); exit 1; }; }
2153
2154 { echo "$as_me:$LINENO: checking build system type" >&5
2155 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2156 if test "${ac_cv_build+set}" = set; then
2157   echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159   ac_build_alias=$build_alias
2160 test "x$ac_build_alias" = x &&
2161   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2162 test "x$ac_build_alias" = x &&
2163   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2164 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2165    { (exit 1); exit 1; }; }
2166 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2167   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2168 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2169    { (exit 1); exit 1; }; }
2170
2171 fi
2172 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2173 echo "${ECHO_T}$ac_cv_build" >&6; }
2174 case $ac_cv_build in
2175 *-*-*) ;;
2176 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2177 echo "$as_me: error: invalid value of canonical build" >&2;}
2178    { (exit 1); exit 1; }; };;
2179 esac
2180 build=$ac_cv_build
2181 ac_save_IFS=$IFS; IFS='-'
2182 set x $ac_cv_build
2183 shift
2184 build_cpu=$1
2185 build_vendor=$2
2186 shift; shift
2187 # Remember, the first character of IFS is used to create $*,
2188 # except with old shells:
2189 build_os=$*
2190 IFS=$ac_save_IFS
2191 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2192
2193
2194 { echo "$as_me:$LINENO: checking host system type" >&5
2195 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2196 if test "${ac_cv_host+set}" = set; then
2197   echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199   if test "x$host_alias" = x; then
2200   ac_cv_host=$ac_cv_build
2201 else
2202   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2203     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2204 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2205    { (exit 1); exit 1; }; }
2206 fi
2207
2208 fi
2209 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2210 echo "${ECHO_T}$ac_cv_host" >&6; }
2211 case $ac_cv_host in
2212 *-*-*) ;;
2213 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2214 echo "$as_me: error: invalid value of canonical host" >&2;}
2215    { (exit 1); exit 1; }; };;
2216 esac
2217 host=$ac_cv_host
2218 ac_save_IFS=$IFS; IFS='-'
2219 set x $ac_cv_host
2220 shift
2221 host_cpu=$1
2222 host_vendor=$2
2223 shift; shift
2224 # Remember, the first character of IFS is used to create $*,
2225 # except with old shells:
2226 host_os=$*
2227 IFS=$ac_save_IFS
2228 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2229
2230
2231 { echo "$as_me:$LINENO: checking target system type" >&5
2232 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2233 if test "${ac_cv_target+set}" = set; then
2234   echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236   if test "x$target_alias" = x; then
2237   ac_cv_target=$ac_cv_host
2238 else
2239   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2240     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2241 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2242    { (exit 1); exit 1; }; }
2243 fi
2244
2245 fi
2246 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2247 echo "${ECHO_T}$ac_cv_target" >&6; }
2248 case $ac_cv_target in
2249 *-*-*) ;;
2250 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2251 echo "$as_me: error: invalid value of canonical target" >&2;}
2252    { (exit 1); exit 1; }; };;
2253 esac
2254 target=$ac_cv_target
2255 ac_save_IFS=$IFS; IFS='-'
2256 set x $ac_cv_target
2257 shift
2258 target_cpu=$1
2259 target_vendor=$2
2260 shift; shift
2261 # Remember, the first character of IFS is used to create $*,
2262 # except with old shells:
2263 target_os=$*
2264 IFS=$ac_save_IFS
2265 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2266
2267
2268 # The aliases save the names the user supplied, while $host etc.
2269 # will get canonicalized.
2270 test -n "$target_alias" &&
2271   test "$program_prefix$program_suffix$program_transform_name" = \
2272     NONENONEs,x,x, &&
2273   program_prefix=${target_alias}-
2274
2275 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2276 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2277 if test "${llvm_cv_os_type+set}" = set; then
2278   echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280   case $host in
2281   *-*-aix*)
2282     llvm_cv_link_all_option="-Wl,--whole-archive"
2283     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2284     llvm_cv_os_type="AIX"
2285     llvm_cv_platform_type="Unix" ;;
2286   *-*-irix*)
2287     llvm_cv_link_all_option="-Wl,--whole-archive"
2288     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289     llvm_cv_os_type="IRIX"
2290     llvm_cv_platform_type="Unix" ;;
2291   *-*-cygwin*)
2292     llvm_cv_link_all_option="-Wl,--whole-archive"
2293     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294     llvm_cv_os_type="Cygwin"
2295     llvm_cv_platform_type="Unix" ;;
2296   *-*-darwin*)
2297     llvm_cv_link_all_option="-Wl,-all_load"
2298     llvm_cv_no_link_all_option="-Wl,-noall_load"
2299     llvm_cv_os_type="Darwin"
2300     llvm_cv_platform_type="Unix" ;;
2301   *-*-freebsd*)
2302     llvm_cv_link_all_option="-Wl,--whole-archive"
2303     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2304     llvm_cv_os_type="FreeBSD"
2305     llvm_cv_platform_type="Unix" ;;
2306   *-*-openbsd*)
2307     llvm_cv_link_all_option="-Wl,--whole-archive"
2308     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2309     llvm_cv_os_type="OpenBSD"
2310     llvm_cv_platform_type="Unix" ;;
2311   *-*-netbsd*)
2312     llvm_cv_link_all_option="-Wl,--whole-archive"
2313     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314     llvm_cv_os_type="NetBSD"
2315     llvm_cv_platform_type="Unix" ;;
2316   *-*-dragonfly*)
2317     llvm_cv_link_all_option="-Wl,--whole-archive"
2318     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2319     llvm_cv_os_type="DragonFly"
2320     llvm_cv_platform_type="Unix" ;;
2321   *-*-hpux*)
2322     llvm_cv_link_all_option="-Wl,--whole-archive"
2323     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2324     llvm_cv_os_type="HP-UX"
2325     llvm_cv_platform_type="Unix" ;;
2326   *-*-interix*)
2327     llvm_cv_link_all_option="-Wl,--whole-archive"
2328     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2329     llvm_cv_os_type="Interix"
2330     llvm_cv_platform_type="Unix" ;;
2331   *-*-linux*)
2332     llvm_cv_link_all_option="-Wl,--whole-archive"
2333     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2334     llvm_cv_os_type="Linux"
2335     llvm_cv_platform_type="Unix" ;;
2336   *-*-solaris*)
2337     llvm_cv_link_all_option="-Wl,-z,allextract"
2338     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2339     llvm_cv_os_type="SunOS"
2340     llvm_cv_platform_type="Unix" ;;
2341   *-*-win32*)
2342     llvm_cv_link_all_option="-Wl,--whole-archive"
2343     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2344     llvm_cv_os_type="Win32"
2345     llvm_cv_platform_type="Win32" ;;
2346   *-*-mingw*)
2347     llvm_cv_link_all_option="-Wl,--whole-archive"
2348     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2349     llvm_cv_os_type="MingW"
2350     llvm_cv_platform_type="Win32" ;;
2351   *-unknown-eabi*)
2352     llvm_cv_link_all_option="-Wl,--whole-archive"
2353     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2354     llvm_cv_os_type="Freestanding"
2355     llvm_cv_platform_type="Unix" ;;
2356   *-unknown-elf*)
2357     llvm_cv_link_all_option="-Wl,--whole-archive"
2358     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2359     llvm_cv_os_type="Freestanding"
2360     llvm_cv_platform_type="Unix" ;;
2361   *)
2362     llvm_cv_link_all_option=""
2363     llvm_cv_no_link_all_option=""
2364     llvm_cv_os_type="Unknown"
2365     llvm_cv_platform_type="Unknown" ;;
2366 esac
2367 fi
2368 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2369 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2370
2371 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2372 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2373 if test "${llvm_cv_target_os_type+set}" = set; then
2374   echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376   case $target in
2377   *-*-aix*)
2378     llvm_cv_target_os_type="AIX" ;;
2379   *-*-irix*)
2380     llvm_cv_target_os_type="IRIX" ;;
2381   *-*-cygwin*)
2382     llvm_cv_target_os_type="Cygwin" ;;
2383   *-*-darwin*)
2384     llvm_cv_target_os_type="Darwin" ;;
2385   *-*-freebsd*)
2386     llvm_cv_target_os_type="FreeBSD" ;;
2387   *-*-openbsd*)
2388     llvm_cv_target_os_type="OpenBSD" ;;
2389   *-*-netbsd*)
2390     llvm_cv_target_os_type="NetBSD" ;;
2391   *-*-dragonfly*)
2392     llvm_cv_target_os_type="DragonFly" ;;
2393   *-*-hpux*)
2394     llvm_cv_target_os_type="HP-UX" ;;
2395   *-*-interix*)
2396     llvm_cv_target_os_type="Interix" ;;
2397   *-*-linux*)
2398     llvm_cv_target_os_type="Linux" ;;
2399   *-*-solaris*)
2400     llvm_cv_target_os_type="SunOS" ;;
2401   *-*-win32*)
2402     llvm_cv_target_os_type="Win32" ;;
2403   *-*-mingw*)
2404     llvm_cv_target_os_type="MingW" ;;
2405   *-unknown-eabi*)
2406     llvm_cv_target_os_type="Freestanding" ;;
2407   *)
2408     llvm_cv_target_os_type="Unknown" ;;
2409 esac
2410 fi
2411 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2412 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2413
2414 if test "$llvm_cv_os_type" = "Unknown" ; then
2415   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2416 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2417    { (exit 1); exit 1; }; }
2418 fi
2419
2420 OS=$llvm_cv_os_type
2421
2422 HOST_OS=$llvm_cv_os_type
2423
2424 TARGET_OS=$llvm_cv_target_os_type
2425
2426
2427 LINKALL=$llvm_cv_link_all_option
2428
2429 NOLINKALL=$llvm_cv_no_link_all_option
2430
2431
2432 case $llvm_cv_platform_type in
2433   Unix)
2434
2435 cat >>confdefs.h <<\_ACEOF
2436 #define LLVM_ON_UNIX 1
2437 _ACEOF
2438
2439     LLVM_ON_UNIX=1
2440
2441     LLVM_ON_WIN32=0
2442
2443     ;;
2444   Win32)
2445
2446 cat >>confdefs.h <<\_ACEOF
2447 #define LLVM_ON_WIN32 1
2448 _ACEOF
2449
2450     LLVM_ON_UNIX=0
2451
2452     LLVM_ON_WIN32=1
2453
2454     ;;
2455 esac
2456
2457 { echo "$as_me:$LINENO: checking target architecture" >&5
2458 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2459 if test "${llvm_cv_target_arch+set}" = set; then
2460   echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462   case $target in
2463   i?86-*)                 llvm_cv_target_arch="x86" ;;
2464   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2465   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2466   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2467   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2468   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2469   mips-*)                 llvm_cv_target_arch="Mips" ;;
2470   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2471   xcore-*)                llvm_cv_target_arch="XCore" ;;
2472   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2473   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2474   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2475   *)                      llvm_cv_target_arch="Unknown" ;;
2476 esac
2477 fi
2478 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2479 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2480
2481 if test "$llvm_cv_target_arch" = "Unknown" ; then
2482   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2483 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2484 fi
2485
2486 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
2487   ac_ext=c
2488 ac_cpp='$CPP $CPPFLAGS'
2489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492 if test -n "$ac_tool_prefix"; then
2493   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2494 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2497 if test "${ac_cv_prog_CC+set}" = set; then
2498   echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500   if test -n "$CC"; then
2501   ac_cv_prog_CC="$CC" # Let the user override the test.
2502 else
2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 for as_dir in $PATH
2505 do
2506   IFS=$as_save_IFS
2507   test -z "$as_dir" && as_dir=.
2508   for ac_exec_ext in '' $ac_executable_extensions; do
2509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2510     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512     break 2
2513   fi
2514 done
2515 done
2516 IFS=$as_save_IFS
2517
2518 fi
2519 fi
2520 CC=$ac_cv_prog_CC
2521 if test -n "$CC"; then
2522   { echo "$as_me:$LINENO: result: $CC" >&5
2523 echo "${ECHO_T}$CC" >&6; }
2524 else
2525   { echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6; }
2527 fi
2528
2529
2530 fi
2531 if test -z "$ac_cv_prog_CC"; then
2532   ac_ct_CC=$CC
2533   # Extract the first word of "gcc", so it can be a program name with args.
2534 set dummy gcc; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2538   echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540   if test -n "$ac_ct_CC"; then
2541   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546   IFS=$as_save_IFS
2547   test -z "$as_dir" && as_dir=.
2548   for ac_exec_ext in '' $ac_executable_extensions; do
2549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2550     ac_cv_prog_ac_ct_CC="gcc"
2551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552     break 2
2553   fi
2554 done
2555 done
2556 IFS=$as_save_IFS
2557
2558 fi
2559 fi
2560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2561 if test -n "$ac_ct_CC"; then
2562   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2563 echo "${ECHO_T}$ac_ct_CC" >&6; }
2564 else
2565   { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2567 fi
2568
2569   if test "x$ac_ct_CC" = x; then
2570     CC=""
2571   else
2572     case $cross_compiling:$ac_tool_warned in
2573 yes:)
2574 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2575 whose name does not start with the host triplet.  If you think this
2576 configuration is useful to you, please write to autoconf@gnu.org." >&5
2577 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2578 whose name does not start with the host triplet.  If you think this
2579 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2580 ac_tool_warned=yes ;;
2581 esac
2582     CC=$ac_ct_CC
2583   fi
2584 else
2585   CC="$ac_cv_prog_CC"
2586 fi
2587
2588 if test -z "$CC"; then
2589           if test -n "$ac_tool_prefix"; then
2590     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2591 set dummy ${ac_tool_prefix}cc; ac_word=$2
2592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2594 if test "${ac_cv_prog_CC+set}" = set; then
2595   echo $ECHO_N "(cached) $ECHO_C" >&6
2596 else
2597   if test -n "$CC"; then
2598   ac_cv_prog_CC="$CC" # Let the user override the test.
2599 else
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 for as_dir in $PATH
2602 do
2603   IFS=$as_save_IFS
2604   test -z "$as_dir" && as_dir=.
2605   for ac_exec_ext in '' $ac_executable_extensions; do
2606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2607     ac_cv_prog_CC="${ac_tool_prefix}cc"
2608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609     break 2
2610   fi
2611 done
2612 done
2613 IFS=$as_save_IFS
2614
2615 fi
2616 fi
2617 CC=$ac_cv_prog_CC
2618 if test -n "$CC"; then
2619   { echo "$as_me:$LINENO: result: $CC" >&5
2620 echo "${ECHO_T}$CC" >&6; }
2621 else
2622   { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2624 fi
2625
2626
2627   fi
2628 fi
2629 if test -z "$CC"; then
2630   # Extract the first word of "cc", so it can be a program name with args.
2631 set dummy cc; ac_word=$2
2632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2634 if test "${ac_cv_prog_CC+set}" = set; then
2635   echo $ECHO_N "(cached) $ECHO_C" >&6
2636 else
2637   if test -n "$CC"; then
2638   ac_cv_prog_CC="$CC" # Let the user override the test.
2639 else
2640   ac_prog_rejected=no
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2643 do
2644   IFS=$as_save_IFS
2645   test -z "$as_dir" && as_dir=.
2646   for ac_exec_ext in '' $ac_executable_extensions; do
2647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2648     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2649        ac_prog_rejected=yes
2650        continue
2651      fi
2652     ac_cv_prog_CC="cc"
2653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654     break 2
2655   fi
2656 done
2657 done
2658 IFS=$as_save_IFS
2659
2660 if test $ac_prog_rejected = yes; then
2661   # We found a bogon in the path, so make sure we never use it.
2662   set dummy $ac_cv_prog_CC
2663   shift
2664   if test $# != 0; then
2665     # We chose a different compiler from the bogus one.
2666     # However, it has the same basename, so the bogon will be chosen
2667     # first if we set CC to just the basename; use the full file name.
2668     shift
2669     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2670   fi
2671 fi
2672 fi
2673 fi
2674 CC=$ac_cv_prog_CC
2675 if test -n "$CC"; then
2676   { echo "$as_me:$LINENO: result: $CC" >&5
2677 echo "${ECHO_T}$CC" >&6; }
2678 else
2679   { echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6; }
2681 fi
2682
2683
2684 fi
2685 if test -z "$CC"; then
2686   if test -n "$ac_tool_prefix"; then
2687   for ac_prog in cl.exe
2688   do
2689     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2693 if test "${ac_cv_prog_CC+set}" = set; then
2694   echo $ECHO_N "(cached) $ECHO_C" >&6
2695 else
2696   if test -n "$CC"; then
2697   ac_cv_prog_CC="$CC" # Let the user override the test.
2698 else
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2701 do
2702   IFS=$as_save_IFS
2703   test -z "$as_dir" && as_dir=.
2704   for ac_exec_ext in '' $ac_executable_extensions; do
2705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2706     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708     break 2
2709   fi
2710 done
2711 done
2712 IFS=$as_save_IFS
2713
2714 fi
2715 fi
2716 CC=$ac_cv_prog_CC
2717 if test -n "$CC"; then
2718   { echo "$as_me:$LINENO: result: $CC" >&5
2719 echo "${ECHO_T}$CC" >&6; }
2720 else
2721   { echo "$as_me:$LINENO: result: no" >&5
2722 echo "${ECHO_T}no" >&6; }
2723 fi
2724
2725
2726     test -n "$CC" && break
2727   done
2728 fi
2729 if test -z "$CC"; then
2730   ac_ct_CC=$CC
2731   for ac_prog in cl.exe
2732 do
2733   # Extract the first word of "$ac_prog", so it can be a program name with args.
2734 set dummy $ac_prog; ac_word=$2
2735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2738   echo $ECHO_N "(cached) $ECHO_C" >&6
2739 else
2740   if test -n "$ac_ct_CC"; then
2741   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2745 do
2746   IFS=$as_save_IFS
2747   test -z "$as_dir" && as_dir=.
2748   for ac_exec_ext in '' $ac_executable_extensions; do
2749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2750     ac_cv_prog_ac_ct_CC="$ac_prog"
2751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752     break 2
2753   fi
2754 done
2755 done
2756 IFS=$as_save_IFS
2757
2758 fi
2759 fi
2760 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2761 if test -n "$ac_ct_CC"; then
2762   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2763 echo "${ECHO_T}$ac_ct_CC" >&6; }
2764 else
2765   { echo "$as_me:$LINENO: result: no" >&5
2766 echo "${ECHO_T}no" >&6; }
2767 fi
2768
2769
2770   test -n "$ac_ct_CC" && break
2771 done
2772
2773   if test "x$ac_ct_CC" = x; then
2774     CC=""
2775   else
2776     case $cross_compiling:$ac_tool_warned in
2777 yes:)
2778 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2779 whose name does not start with the host triplet.  If you think this
2780 configuration is useful to you, please write to autoconf@gnu.org." >&5
2781 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2782 whose name does not start with the host triplet.  If you think this
2783 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2784 ac_tool_warned=yes ;;
2785 esac
2786     CC=$ac_ct_CC
2787   fi
2788 fi
2789
2790 fi
2791
2792
2793 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2794 See \`config.log' for more details." >&5
2795 echo "$as_me: error: no acceptable C compiler found in \$PATH
2796 See \`config.log' for more details." >&2;}
2797    { (exit 1); exit 1; }; }
2798
2799 # Provide some information about the compiler.
2800 echo "$as_me:$LINENO: checking for C compiler version" >&5
2801 ac_compiler=`set X $ac_compile; echo $2`
2802 { (ac_try="$ac_compiler --version >&5"
2803 case "(($ac_try" in
2804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805   *) ac_try_echo=$ac_try;;
2806 esac
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808   (eval "$ac_compiler --version >&5") 2>&5
2809   ac_status=$?
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); }
2812 { (ac_try="$ac_compiler -v >&5"
2813 case "(($ac_try" in
2814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815   *) ac_try_echo=$ac_try;;
2816 esac
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818   (eval "$ac_compiler -v >&5") 2>&5
2819   ac_status=$?
2820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821   (exit $ac_status); }
2822 { (ac_try="$ac_compiler -V >&5"
2823 case "(($ac_try" in
2824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825   *) ac_try_echo=$ac_try;;
2826 esac
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828   (eval "$ac_compiler -V >&5") 2>&5
2829   ac_status=$?
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); }
2832
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h.  */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h.  */
2839
2840 int
2841 main ()
2842 {
2843
2844   ;
2845   return 0;
2846 }
2847 _ACEOF
2848 ac_clean_files_save=$ac_clean_files
2849 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2850 # Try to create an executable without -o first, disregard a.out.
2851 # It will help us diagnose broken compilers, and finding out an intuition
2852 # of exeext.
2853 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2854 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2855 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2856 #
2857 # List of possible output files, starting from the most likely.
2858 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2859 # only as a last resort.  b.out is created by i960 compilers.
2860 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2861 #
2862 # The IRIX 6 linker writes into existing files which may not be
2863 # executable, retaining their permissions.  Remove them first so a
2864 # subsequent execution test works.
2865 ac_rmfiles=
2866 for ac_file in $ac_files
2867 do
2868   case $ac_file in
2869     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2870     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2871   esac
2872 done
2873 rm -f $ac_rmfiles
2874
2875 if { (ac_try="$ac_link_default"
2876 case "(($ac_try" in
2877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878   *) ac_try_echo=$ac_try;;
2879 esac
2880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881   (eval "$ac_link_default") 2>&5
2882   ac_status=$?
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); }; then
2885   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2886 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2887 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2888 # so that the user can short-circuit this test for compilers unknown to
2889 # Autoconf.
2890 for ac_file in $ac_files
2891 do
2892   test -f "$ac_file" || continue
2893   case $ac_file in
2894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2895         ;;
2896     [ab].out )
2897         # We found the default executable, but exeext='' is most
2898         # certainly right.
2899         break;;
2900     *.* )
2901         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2902         then :; else
2903            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2904         fi
2905         # We set ac_cv_exeext here because the later test for it is not
2906         # safe: cross compilers may not add the suffix if given an `-o'
2907         # argument, so we may need to know it at that point already.
2908         # Even if this section looks crufty: it has the advantage of
2909         # actually working.
2910         break;;
2911     * )
2912         break;;
2913   esac
2914 done
2915 test "$ac_cv_exeext" = no && ac_cv_exeext=
2916
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2922 See \`config.log' for more details." >&5
2923 echo "$as_me: error: C compiler cannot create executables
2924 See \`config.log' for more details." >&2;}
2925    { (exit 77); exit 77; }; }
2926 fi
2927
2928 ac_exeext=$ac_cv_exeext
2929 { echo "$as_me:$LINENO: result: $ac_file" >&5
2930 echo "${ECHO_T}$ac_file" >&6; }
2931
2932 # Check that the compiler produces executables we can run.  If not, either
2933 # the compiler is broken, or we cross compile.
2934 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2935 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2936 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2937 # If not cross compiling, check that we can run a simple program.
2938 if test "$cross_compiling" != yes; then
2939   if { ac_try='./$ac_file'
2940   { (case "(($ac_try" in
2941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942   *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945   (eval "$ac_try") 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }; }; then
2949     cross_compiling=no
2950   else
2951     if test "$cross_compiling" = maybe; then
2952         cross_compiling=yes
2953     else
2954         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2955 If you meant to cross compile, use \`--host'.
2956 See \`config.log' for more details." >&5
2957 echo "$as_me: error: cannot run C compiled programs.
2958 If you meant to cross compile, use \`--host'.
2959 See \`config.log' for more details." >&2;}
2960    { (exit 1); exit 1; }; }
2961     fi
2962   fi
2963 fi
2964 { echo "$as_me:$LINENO: result: yes" >&5
2965 echo "${ECHO_T}yes" >&6; }
2966
2967 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2968 ac_clean_files=$ac_clean_files_save
2969 # Check that the compiler produces executables we can run.  If not, either
2970 # the compiler is broken, or we cross compile.
2971 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2972 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2973 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2974 echo "${ECHO_T}$cross_compiling" >&6; }
2975
2976 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2977 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2978 if { (ac_try="$ac_link"
2979 case "(($ac_try" in
2980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981   *) ac_try_echo=$ac_try;;
2982 esac
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984   (eval "$ac_link") 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }; then
2988   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2989 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2990 # work properly (i.e., refer to `conftest.exe'), while it won't with
2991 # `rm'.
2992 for ac_file in conftest.exe conftest 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 | *.o | *.obj ) ;;
2996     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2997           break;;
2998     * ) break;;
2999   esac
3000 done
3001 else
3002   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3003 See \`config.log' for more details." >&5
3004 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3005 See \`config.log' for more details." >&2;}
3006    { (exit 1); exit 1; }; }
3007 fi
3008
3009 rm -f conftest$ac_cv_exeext
3010 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3011 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3012
3013 rm -f conftest.$ac_ext
3014 EXEEXT=$ac_cv_exeext
3015 ac_exeext=$EXEEXT
3016 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3017 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3018 if test "${ac_cv_objext+set}" = set; then
3019   echo $ECHO_N "(cached) $ECHO_C" >&6
3020 else
3021   cat >conftest.$ac_ext <<_ACEOF
3022 /* confdefs.h.  */
3023 _ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h.  */
3027
3028 int
3029 main ()
3030 {
3031
3032   ;
3033   return 0;
3034 }
3035 _ACEOF
3036 rm -f conftest.o conftest.obj
3037 if { (ac_try="$ac_compile"
3038 case "(($ac_try" in
3039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040   *) ac_try_echo=$ac_try;;
3041 esac
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043   (eval "$ac_compile") 2>&5
3044   ac_status=$?
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); }; then
3047   for ac_file in conftest.o conftest.obj conftest.*; do
3048   test -f "$ac_file" || continue;
3049   case $ac_file in
3050     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3051     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3052        break;;
3053   esac
3054 done
3055 else
3056   echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3058
3059 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3060 See \`config.log' for more details." >&5
3061 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3062 See \`config.log' for more details." >&2;}
3063    { (exit 1); exit 1; }; }
3064 fi
3065
3066 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3067 fi
3068 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3069 echo "${ECHO_T}$ac_cv_objext" >&6; }
3070 OBJEXT=$ac_cv_objext
3071 ac_objext=$OBJEXT
3072 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3073 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3074 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3075   echo $ECHO_N "(cached) $ECHO_C" >&6
3076 else
3077   cat >conftest.$ac_ext <<_ACEOF
3078 /* confdefs.h.  */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h.  */
3083
3084 int
3085 main ()
3086 {
3087 #ifndef __GNUC__
3088        choke me
3089 #endif
3090
3091   ;
3092   return 0;
3093 }
3094 _ACEOF
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3097 case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102   (eval "$ac_compile") 2>conftest.er1
3103   ac_status=$?
3104   grep -v '^ *+' conftest.er1 >conftest.err
3105   rm -f conftest.er1
3106   cat conftest.err >&5
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } &&
3109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3110   { (case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115   (eval "$ac_try") 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }; } &&
3119          { ac_try='test -s conftest.$ac_objext'
3120   { (case "(($ac_try" in
3121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122   *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125   (eval "$ac_try") 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); }; }; then
3129   ac_compiler_gnu=yes
3130 else
3131   echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3133
3134         ac_compiler_gnu=no
3135 fi
3136
3137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3138 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3139
3140 fi
3141 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3142 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3143 GCC=`test $ac_compiler_gnu = yes && echo yes`
3144 ac_test_CFLAGS=${CFLAGS+set}
3145 ac_save_CFLAGS=$CFLAGS
3146 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3147 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3148 if test "${ac_cv_prog_cc_g+set}" = set; then
3149   echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151   ac_save_c_werror_flag=$ac_c_werror_flag
3152    ac_c_werror_flag=yes
3153    ac_cv_prog_cc_g=no
3154    CFLAGS="-g"
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   ac_cv_prog_cc_g=yes
3205 else
3206   echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3208
3209         CFLAGS=""
3210       cat >conftest.$ac_ext <<_ACEOF
3211 /* confdefs.h.  */
3212 _ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h.  */
3216
3217 int
3218 main ()
3219 {
3220
3221   ;
3222   return 0;
3223 }
3224 _ACEOF
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3227 case "(($ac_try" in
3228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229   *) ac_try_echo=$ac_try;;
3230 esac
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232   (eval "$ac_compile") 2>conftest.er1
3233   ac_status=$?
3234   grep -v '^ *+' conftest.er1 >conftest.err
3235   rm -f conftest.er1
3236   cat conftest.err >&5
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); } &&
3239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3240   { (case "(($ac_try" in
3241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242   *) ac_try_echo=$ac_try;;
3243 esac
3244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245   (eval "$ac_try") 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); }; } &&
3249          { ac_try='test -s conftest.$ac_objext'
3250   { (case "(($ac_try" in
3251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252   *) ac_try_echo=$ac_try;;
3253 esac
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255   (eval "$ac_try") 2>&5
3256   ac_status=$?
3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); }; }; then
3259   :
3260 else
3261   echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3263
3264         ac_c_werror_flag=$ac_save_c_werror_flag
3265          CFLAGS="-g"
3266          cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272
3273 int
3274 main ()
3275 {
3276
3277   ;
3278   return 0;
3279 }
3280 _ACEOF
3281 rm -f conftest.$ac_objext
3282 if { (ac_try="$ac_compile"
3283 case "(($ac_try" in
3284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285   *) ac_try_echo=$ac_try;;
3286 esac
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288   (eval "$ac_compile") 2>conftest.er1
3289   ac_status=$?
3290   grep -v '^ *+' conftest.er1 >conftest.err
3291   rm -f conftest.er1
3292   cat conftest.err >&5
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); } &&
3295          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3296   { (case "(($ac_try" in
3297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298   *) ac_try_echo=$ac_try;;
3299 esac
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301   (eval "$ac_try") 2>&5
3302   ac_status=$?
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); }; } &&
3305          { ac_try='test -s conftest.$ac_objext'
3306   { (case "(($ac_try" in
3307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308   *) ac_try_echo=$ac_try;;
3309 esac
3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311   (eval "$ac_try") 2>&5
3312   ac_status=$?
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); }; }; then
3315   ac_cv_prog_cc_g=yes
3316 else
3317   echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320
3321 fi
3322
3323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324 fi
3325
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 fi
3328
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330    ac_c_werror_flag=$ac_save_c_werror_flag
3331 fi
3332 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3333 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3334 if test "$ac_test_CFLAGS" = set; then
3335   CFLAGS=$ac_save_CFLAGS
3336 elif test $ac_cv_prog_cc_g = yes; then
3337   if test "$GCC" = yes; then
3338     CFLAGS="-g -O2"
3339   else
3340     CFLAGS="-g"
3341   fi
3342 else
3343   if test "$GCC" = yes; then
3344     CFLAGS="-O2"
3345   else
3346     CFLAGS=
3347   fi
3348 fi
3349 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3350 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3351 if test "${ac_cv_prog_cc_c89+set}" = set; then
3352   echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354   ac_cv_prog_cc_c89=no
3355 ac_save_CC=$CC
3356 cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h.  */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h.  */
3362 #include <stdarg.h>
3363 #include <stdio.h>
3364 #include <sys/types.h>
3365 #include <sys/stat.h>
3366 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3367 struct buf { int x; };
3368 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3369 static char *e (p, i)
3370      char **p;
3371      int i;
3372 {
3373   return p[i];
3374 }
3375 static char *f (char * (*g) (char **, int), char **p, ...)
3376 {
3377   char *s;
3378   va_list v;
3379   va_start (v,p);
3380   s = g (p, va_arg (v,int));
3381   va_end (v);
3382   return s;
3383 }
3384
3385 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3386    function prototypes and stuff, but not '\xHH' hex character constants.
3387    These don't provoke an error unfortunately, instead are silently treated
3388    as 'x'.  The following induces an error, until -std is added to get
3389    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3390    array size at least.  It's necessary to write '\x00'==0 to get something
3391    that's true only with -std.  */
3392 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3393
3394 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3395    inside strings and character constants.  */
3396 #define FOO(x) 'x'
3397 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3398
3399 int test (int i, double x);
3400 struct s1 {int (*f) (int a);};
3401 struct s2 {int (*f) (double a);};
3402 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3403 int argc;
3404 char **argv;
3405 int
3406 main ()
3407 {
3408 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3409   ;
3410   return 0;
3411 }
3412 _ACEOF
3413 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3414         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3415 do
3416   CC="$ac_save_CC $ac_arg"
3417   rm -f conftest.$ac_objext
3418 if { (ac_try="$ac_compile"
3419 case "(($ac_try" in
3420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421   *) ac_try_echo=$ac_try;;
3422 esac
3423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424   (eval "$ac_compile") 2>conftest.er1
3425   ac_status=$?
3426   grep -v '^ *+' conftest.er1 >conftest.err
3427   rm -f conftest.er1
3428   cat conftest.err >&5
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); } &&
3431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3432   { (case "(($ac_try" in
3433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434   *) ac_try_echo=$ac_try;;
3435 esac
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437   (eval "$ac_try") 2>&5
3438   ac_status=$?
3439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440   (exit $ac_status); }; } &&
3441          { ac_try='test -s conftest.$ac_objext'
3442   { (case "(($ac_try" in
3443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444   *) ac_try_echo=$ac_try;;
3445 esac
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447   (eval "$ac_try") 2>&5
3448   ac_status=$?
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); }; }; then
3451   ac_cv_prog_cc_c89=$ac_arg
3452 else
3453   echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3455
3456
3457 fi
3458
3459 rm -f core conftest.err conftest.$ac_objext
3460   test "x$ac_cv_prog_cc_c89" != "xno" && break
3461 done
3462 rm -f conftest.$ac_ext
3463 CC=$ac_save_CC
3464
3465 fi
3466 # AC_CACHE_VAL
3467 case "x$ac_cv_prog_cc_c89" in
3468   x)
3469     { echo "$as_me:$LINENO: result: none needed" >&5
3470 echo "${ECHO_T}none needed" >&6; } ;;
3471   xno)
3472     { echo "$as_me:$LINENO: result: unsupported" >&5
3473 echo "${ECHO_T}unsupported" >&6; } ;;
3474   *)
3475     CC="$CC $ac_cv_prog_cc_c89"
3476     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3477 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3478 esac
3479
3480
3481 ac_ext=c
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
3487
3488 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
3489 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
3490 if test "${llvm_cv_linux_mixed+set}" = set; then
3491   echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493    ac_ext=c
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498
3499   cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h.  */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h.  */
3505 #ifndef __x86_64__
3506        error: Not x86-64 even if uname says so!
3507       #endif
3508
3509 int
3510 main ()
3511 {
3512
3513   ;
3514   return 0;
3515 }
3516 _ACEOF
3517 rm -f conftest.$ac_objext
3518 if { (ac_try="$ac_compile"
3519 case "(($ac_try" in
3520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521   *) ac_try_echo=$ac_try;;
3522 esac
3523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524   (eval "$ac_compile") 2>conftest.er1
3525   ac_status=$?
3526   grep -v '^ *+' conftest.er1 >conftest.err
3527   rm -f conftest.er1
3528   cat conftest.err >&5
3529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530   (exit $ac_status); } &&
3531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3532   { (case "(($ac_try" in
3533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534   *) ac_try_echo=$ac_try;;
3535 esac
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537   (eval "$ac_try") 2>&5
3538   ac_status=$?
3539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540   (exit $ac_status); }; } &&
3541          { ac_try='test -s conftest.$ac_objext'
3542   { (case "(($ac_try" in
3543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544   *) ac_try_echo=$ac_try;;
3545 esac
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547   (eval "$ac_try") 2>&5
3548   ac_status=$?
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); }; }; then
3551   llvm_cv_linux_mixed=no
3552 else
3553   echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556         llvm_cv_linux_mixed=yes
3557 fi
3558
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560   ac_ext=c
3561 ac_cpp='$CPP $CPPFLAGS'
3562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565
3566
3567 fi
3568 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
3569 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
3570
3571   if test "$llvm_cv_linux_mixed" = "yes"; then
3572     llvm_cv_target_arch="x86"
3573   fi
3574 fi
3575
3576 # Determine the LLVM native architecture for the target
3577 case "$llvm_cv_target_arch" in
3578     x86)     LLVM_NATIVE_ARCH="X86" ;;
3579     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3580     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3581 esac
3582
3583 ARCH=$llvm_cv_target_arch
3584
3585
3586 ac_ext=c
3587 ac_cpp='$CPP $CPPFLAGS'
3588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3592 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3593 # On Suns, sometimes $CPP names a directory.
3594 if test -n "$CPP" && test -d "$CPP"; then
3595   CPP=
3596 fi
3597 if test -z "$CPP"; then
3598   if test "${ac_cv_prog_CPP+set}" = set; then
3599   echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601       # Double quotes because CPP needs to be expanded
3602     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3603     do
3604       ac_preproc_ok=false
3605 for ac_c_preproc_warn_flag in '' yes
3606 do
3607   # Use a header file that comes with gcc, so configuring glibc
3608   # with a fresh cross-compiler works.
3609   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3610   # <limits.h> exists even on freestanding compilers.
3611   # On the NeXT, cc -E runs the code through the compiler's parser,
3612   # not just through cpp. "Syntax error" is here to catch this case.
3613   cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h.  */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h.  */
3619 #ifdef __STDC__
3620 # include <limits.h>
3621 #else
3622 # include <assert.h>
3623 #endif
3624                      Syntax error
3625 _ACEOF
3626 if { (ac_try="$ac_cpp conftest.$ac_ext"
3627 case "(($ac_try" in
3628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629   *) ac_try_echo=$ac_try;;
3630 esac
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3633   ac_status=$?
3634   grep -v '^ *+' conftest.er1 >conftest.err
3635   rm -f conftest.er1
3636   cat conftest.err >&5
3637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638   (exit $ac_status); } >/dev/null; then
3639   if test -s conftest.err; then
3640     ac_cpp_err=$ac_c_preproc_warn_flag
3641     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3642   else
3643     ac_cpp_err=
3644   fi
3645 else
3646   ac_cpp_err=yes
3647 fi
3648 if test -z "$ac_cpp_err"; then
3649   :
3650 else
3651   echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3653
3654   # Broken: fails on valid input.
3655 continue
3656 fi
3657
3658 rm -f conftest.err conftest.$ac_ext
3659
3660   # OK, works on sane cases.  Now check whether nonexistent headers
3661   # can be detected and how.
3662   cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h.  */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h.  */
3668 #include <ac_nonexistent.h>
3669 _ACEOF
3670 if { (ac_try="$ac_cpp conftest.$ac_ext"
3671 case "(($ac_try" in
3672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673   *) ac_try_echo=$ac_try;;
3674 esac
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3677   ac_status=$?
3678   grep -v '^ *+' conftest.er1 >conftest.err
3679   rm -f conftest.er1
3680   cat conftest.err >&5
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); } >/dev/null; then
3683   if test -s conftest.err; then
3684     ac_cpp_err=$ac_c_preproc_warn_flag
3685     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3686   else
3687     ac_cpp_err=
3688   fi
3689 else
3690   ac_cpp_err=yes
3691 fi
3692 if test -z "$ac_cpp_err"; then
3693   # Broken: success on invalid input.
3694 continue
3695 else
3696   echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699   # Passes both tests.
3700 ac_preproc_ok=:
3701 break
3702 fi
3703
3704 rm -f conftest.err conftest.$ac_ext
3705
3706 done
3707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3708 rm -f conftest.err conftest.$ac_ext
3709 if $ac_preproc_ok; then
3710   break
3711 fi
3712
3713     done
3714     ac_cv_prog_CPP=$CPP
3715
3716 fi
3717   CPP=$ac_cv_prog_CPP
3718 else
3719   ac_cv_prog_CPP=$CPP
3720 fi
3721 { echo "$as_me:$LINENO: result: $CPP" >&5
3722 echo "${ECHO_T}$CPP" >&6; }
3723 ac_preproc_ok=false
3724 for ac_c_preproc_warn_flag in '' yes
3725 do
3726   # Use a header file that comes with gcc, so configuring glibc
3727   # with a fresh cross-compiler works.
3728   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3729   # <limits.h> exists even on freestanding compilers.
3730   # On the NeXT, cc -E runs the code through the compiler's parser,
3731   # not just through cpp. "Syntax error" is here to catch this case.
3732   cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h.  */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h.  */
3738 #ifdef __STDC__
3739 # include <limits.h>
3740 #else
3741 # include <assert.h>
3742 #endif
3743                      Syntax error
3744 _ACEOF
3745 if { (ac_try="$ac_cpp conftest.$ac_ext"
3746 case "(($ac_try" in
3747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748   *) ac_try_echo=$ac_try;;
3749 esac
3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3752   ac_status=$?
3753   grep -v '^ *+' conftest.er1 >conftest.err
3754   rm -f conftest.er1
3755   cat conftest.err >&5
3756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757   (exit $ac_status); } >/dev/null; then
3758   if test -s conftest.err; then
3759     ac_cpp_err=$ac_c_preproc_warn_flag
3760     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3761   else
3762     ac_cpp_err=
3763   fi
3764 else
3765   ac_cpp_err=yes
3766 fi
3767 if test -z "$ac_cpp_err"; then
3768   :
3769 else
3770   echo "$as_me: failed program was:" >&5
3771 sed 's/^/| /' conftest.$ac_ext >&5
3772
3773   # Broken: fails on valid input.
3774 continue
3775 fi
3776
3777 rm -f conftest.err conftest.$ac_ext
3778
3779   # OK, works on sane cases.  Now check whether nonexistent headers
3780   # can be detected and how.
3781   cat >conftest.$ac_ext <<_ACEOF
3782 /* confdefs.h.  */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h.  */
3787 #include <ac_nonexistent.h>
3788 _ACEOF
3789 if { (ac_try="$ac_cpp conftest.$ac_ext"
3790 case "(($ac_try" in
3791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792   *) ac_try_echo=$ac_try;;
3793 esac
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3796   ac_status=$?
3797   grep -v '^ *+' conftest.er1 >conftest.err
3798   rm -f conftest.er1
3799   cat conftest.err >&5
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); } >/dev/null; then
3802   if test -s conftest.err; then
3803     ac_cpp_err=$ac_c_preproc_warn_flag
3804     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3805   else
3806     ac_cpp_err=
3807   fi
3808 else
3809   ac_cpp_err=yes
3810 fi
3811 if test -z "$ac_cpp_err"; then
3812   # Broken: success on invalid input.
3813 continue
3814 else
3815   echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818   # Passes both tests.
3819 ac_preproc_ok=:
3820 break
3821 fi
3822
3823 rm -f conftest.err conftest.$ac_ext
3824
3825 done
3826 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3827 rm -f conftest.err conftest.$ac_ext
3828 if $ac_preproc_ok; then
3829   :
3830 else
3831   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3832 See \`config.log' for more details." >&5
3833 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3834 See \`config.log' for more details." >&2;}
3835    { (exit 1); exit 1; }; }
3836 fi
3837
3838 ac_ext=c
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843
3844
3845 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3846 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3847 if test "${ac_cv_path_GREP+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   # Extract the first word of "grep ggrep" to use in msg output
3851 if test -z "$GREP"; then
3852 set dummy grep ggrep; ac_prog_name=$2
3853 if test "${ac_cv_path_GREP+set}" = set; then
3854   echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856   ac_path_GREP_found=false
3857 # Loop through the user's path and test for each of PROGNAME-LIST
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3860 do
3861   IFS=$as_save_IFS
3862   test -z "$as_dir" && as_dir=.
3863   for ac_prog in grep ggrep; do
3864   for ac_exec_ext in '' $ac_executable_extensions; do
3865     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3866     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3867     # Check for GNU ac_path_GREP and select it if it is found.
3868   # Check for GNU $ac_path_GREP
3869 case `"$ac_path_GREP" --version 2>&1` in
3870 *GNU*)
3871   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3872 *)
3873   ac_count=0
3874   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3875   while :
3876   do
3877     cat "conftest.in" "conftest.in" >"conftest.tmp"
3878     mv "conftest.tmp" "conftest.in"
3879     cp "conftest.in" "conftest.nl"
3880     echo 'GREP' >> "conftest.nl"
3881     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3882     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3883     ac_count=`expr $ac_count + 1`
3884     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3885       # Best one so far, save it but keep looking for a better one
3886       ac_cv_path_GREP="$ac_path_GREP"
3887       ac_path_GREP_max=$ac_count
3888     fi
3889     # 10*(2^10) chars as input seems more than enough
3890     test $ac_count -gt 10 && break
3891   done
3892   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3893 esac
3894
3895
3896     $ac_path_GREP_found && break 3
3897   done
3898 done
3899
3900 done
3901 IFS=$as_save_IFS
3902
3903
3904 fi
3905
3906 GREP="$ac_cv_path_GREP"
3907 if test -z "$GREP"; then
3908   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3909 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3910    { (exit 1); exit 1; }; }
3911 fi
3912
3913 else
3914   ac_cv_path_GREP=$GREP
3915 fi
3916
3917
3918 fi
3919 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3920 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3921  GREP="$ac_cv_path_GREP"
3922
3923
3924 { echo "$as_me:$LINENO: checking for egrep" >&5
3925 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3926 if test "${ac_cv_path_EGREP+set}" = set; then
3927   echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3930    then ac_cv_path_EGREP="$GREP -E"
3931    else
3932      # Extract the first word of "egrep" to use in msg output
3933 if test -z "$EGREP"; then
3934 set dummy egrep; ac_prog_name=$2
3935 if test "${ac_cv_path_EGREP+set}" = set; then
3936   echo $ECHO_N "(cached) $ECHO_C" >&6
3937 else
3938   ac_path_EGREP_found=false
3939 # Loop through the user's path and test for each of PROGNAME-LIST
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3942 do
3943   IFS=$as_save_IFS
3944   test -z "$as_dir" && as_dir=.
3945   for ac_prog in egrep; do
3946   for ac_exec_ext in '' $ac_executable_extensions; do
3947     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3948     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3949     # Check for GNU ac_path_EGREP and select it if it is found.
3950   # Check for GNU $ac_path_EGREP
3951 case `"$ac_path_EGREP" --version 2>&1` in
3952 *GNU*)
3953   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3954 *)
3955   ac_count=0
3956   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3957   while :
3958   do
3959     cat "conftest.in" "conftest.in" >"conftest.tmp"
3960     mv "conftest.tmp" "conftest.in"
3961     cp "conftest.in" "conftest.nl"
3962     echo 'EGREP' >> "conftest.nl"
3963     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3964     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3965     ac_count=`expr $ac_count + 1`
3966     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3967       # Best one so far, save it but keep looking for a better one
3968       ac_cv_path_EGREP="$ac_path_EGREP"
3969       ac_path_EGREP_max=$ac_count
3970     fi
3971     # 10*(2^10) chars as input seems more than enough
3972     test $ac_count -gt 10 && break
3973   done
3974   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3975 esac
3976
3977
3978     $ac_path_EGREP_found && break 3
3979   done
3980 done
3981
3982 done
3983 IFS=$as_save_IFS
3984
3985
3986 fi
3987
3988 EGREP="$ac_cv_path_EGREP"
3989 if test -z "$EGREP"; then
3990   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3991 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3992    { (exit 1); exit 1; }; }
3993 fi
3994
3995 else
3996   ac_cv_path_EGREP=$EGREP
3997 fi
3998
3999
4000    fi
4001 fi
4002 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4003 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4004  EGREP="$ac_cv_path_EGREP"
4005
4006
4007 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4008 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4009 if test "${ac_cv_header_stdc+set}" = set; then
4010   echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012   cat >conftest.$ac_ext <<_ACEOF
4013 /* confdefs.h.  */
4014 _ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h.  */
4018 #include <stdlib.h>
4019 #include <stdarg.h>
4020 #include <string.h>
4021 #include <float.h>
4022
4023 int
4024 main ()
4025 {
4026
4027   ;
4028   return 0;
4029 }
4030 _ACEOF
4031 rm -f conftest.$ac_objext
4032 if { (ac_try="$ac_compile"
4033 case "(($ac_try" in
4034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035   *) ac_try_echo=$ac_try;;
4036 esac
4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038   (eval "$ac_compile") 2>conftest.er1
4039   ac_status=$?
4040   grep -v '^ *+' conftest.er1 >conftest.err
4041   rm -f conftest.er1
4042   cat conftest.err >&5
4043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044   (exit $ac_status); } &&
4045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4046   { (case "(($ac_try" in
4047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048   *) ac_try_echo=$ac_try;;
4049 esac
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051   (eval "$ac_try") 2>&5
4052   ac_status=$?
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); }; } &&
4055          { ac_try='test -s conftest.$ac_objext'
4056   { (case "(($ac_try" in
4057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058   *) ac_try_echo=$ac_try;;
4059 esac
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061   (eval "$ac_try") 2>&5
4062   ac_status=$?
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); }; }; then
4065   ac_cv_header_stdc=yes
4066 else
4067   echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070         ac_cv_header_stdc=no
4071 fi
4072
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074
4075 if test $ac_cv_header_stdc = yes; then
4076   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4077   cat >conftest.$ac_ext <<_ACEOF
4078 /* confdefs.h.  */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h.  */
4083 #include <string.h>
4084
4085 _ACEOF
4086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4087   $EGREP "memchr" >/dev/null 2>&1; then
4088   :
4089 else
4090   ac_cv_header_stdc=no
4091 fi
4092 rm -f conftest*
4093
4094 fi
4095
4096 if test $ac_cv_header_stdc = yes; then
4097   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4098   cat >conftest.$ac_ext <<_ACEOF
4099 /* confdefs.h.  */
4100 _ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h.  */
4104 #include <stdlib.h>
4105
4106 _ACEOF
4107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4108   $EGREP "free" >/dev/null 2>&1; then
4109   :
4110 else
4111   ac_cv_header_stdc=no
4112 fi
4113 rm -f conftest*
4114
4115 fi
4116
4117 if test $ac_cv_header_stdc = yes; then
4118   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4119   if test "$cross_compiling" = yes; then
4120   :
4121 else
4122   cat >conftest.$ac_ext <<_ACEOF
4123 /* confdefs.h.  */
4124 _ACEOF
4125 cat confdefs.h >>conftest.$ac_ext
4126 cat >>conftest.$ac_ext <<_ACEOF
4127 /* end confdefs.h.  */
4128 #include <ctype.h>
4129 #include <stdlib.h>
4130 #if ((' ' & 0x0FF) == 0x020)
4131 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4132 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4133 #else
4134 # define ISLOWER(c) \
4135                    (('a' <= (c) && (c) <= 'i') \
4136                      || ('j' <= (c) && (c) <= 'r') \
4137                      || ('s' <= (c) && (c) <= 'z'))
4138 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4139 #endif
4140
4141 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4142 int
4143 main ()
4144 {
4145   int i;
4146   for (i = 0; i < 256; i++)
4147     if (XOR (islower (i), ISLOWER (i))
4148         || toupper (i) != TOUPPER (i))
4149       return 2;
4150   return 0;
4151 }
4152 _ACEOF
4153 rm -f conftest$ac_exeext
4154 if { (ac_try="$ac_link"
4155 case "(($ac_try" in
4156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157   *) ac_try_echo=$ac_try;;
4158 esac
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160   (eval "$ac_link") 2>&5
4161   ac_status=$?
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4164   { (case "(($ac_try" in
4165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166   *) ac_try_echo=$ac_try;;
4167 esac
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169   (eval "$ac_try") 2>&5
4170   ac_status=$?
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); }; }; then
4173   :
4174 else
4175   echo "$as_me: program exited with status $ac_status" >&5
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4178
4179 ( exit $ac_status )
4180 ac_cv_header_stdc=no
4181 fi
4182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4183 fi
4184
4185
4186 fi
4187 fi
4188 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4189 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4190 if test $ac_cv_header_stdc = yes; then
4191
4192 cat >>confdefs.h <<\_ACEOF
4193 #define STDC_HEADERS 1
4194 _ACEOF
4195
4196 fi
4197
4198 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4209                   inttypes.h stdint.h unistd.h
4210 do
4211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4215   echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217   cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h.  */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h.  */
4223 $ac_includes_default
4224
4225 #include <$ac_header>
4226 _ACEOF
4227 rm -f conftest.$ac_objext
4228 if { (ac_try="$ac_compile"
4229 case "(($ac_try" in
4230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231   *) ac_try_echo=$ac_try;;
4232 esac
4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234   (eval "$ac_compile") 2>conftest.er1
4235   ac_status=$?
4236   grep -v '^ *+' conftest.er1 >conftest.err
4237   rm -f conftest.er1
4238   cat conftest.err >&5
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); } &&
4241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4242   { (case "(($ac_try" in
4243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244   *) ac_try_echo=$ac_try;;
4245 esac
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247   (eval "$ac_try") 2>&5
4248   ac_status=$?
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); }; } &&
4251          { ac_try='test -s conftest.$ac_objext'
4252   { (case "(($ac_try" in
4253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254   *) ac_try_echo=$ac_try;;
4255 esac
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257   (eval "$ac_try") 2>&5
4258   ac_status=$?
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); }; }; then
4261   eval "$as_ac_Header=yes"
4262 else
4263   echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4265
4266         eval "$as_ac_Header=no"
4267 fi
4268
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 fi
4271 ac_res=`eval echo '${'$as_ac_Header'}'`
4272                { echo "$as_me:$LINENO: result: $ac_res" >&5
4273 echo "${ECHO_T}$ac_res" >&6; }
4274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4275   cat >>confdefs.h <<_ACEOF
4276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4277 _ACEOF
4278
4279 fi
4280
4281 done
4282
4283
4284 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4285 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4286 if test "${ac_cv_c_bigendian+set}" = set; then
4287   echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289   # See if sys/param.h defines the BYTE_ORDER macro.
4290 cat >conftest.$ac_ext <<_ACEOF
4291 /* confdefs.h.  */
4292 _ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h.  */
4296 #include <sys/types.h>
4297 #include <sys/param.h>
4298
4299 int
4300 main ()
4301 {
4302 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4303  bogus endian macros
4304 #endif
4305
4306   ;
4307   return 0;
4308 }
4309 _ACEOF
4310 rm -f conftest.$ac_objext
4311 if { (ac_try="$ac_compile"
4312 case "(($ac_try" in
4313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314   *) ac_try_echo=$ac_try;;
4315 esac
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317   (eval "$ac_compile") 2>conftest.er1
4318   ac_status=$?
4319   grep -v '^ *+' conftest.er1 >conftest.err
4320   rm -f conftest.er1
4321   cat conftest.err >&5
4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); } &&
4324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4325   { (case "(($ac_try" in
4326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327   *) ac_try_echo=$ac_try;;
4328 esac
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330   (eval "$ac_try") 2>&5
4331   ac_status=$?
4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); }; } &&
4334          { ac_try='test -s conftest.$ac_objext'
4335   { (case "(($ac_try" in
4336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337   *) ac_try_echo=$ac_try;;
4338 esac
4339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4340   (eval "$ac_try") 2>&5
4341   ac_status=$?
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); }; }; then
4344   # It does; now see whether it defined to BIG_ENDIAN or not.
4345 cat >conftest.$ac_ext <<_ACEOF
4346 /* confdefs.h.  */
4347 _ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h.  */
4351 #include <sys/types.h>
4352 #include <sys/param.h>
4353
4354 int
4355 main ()
4356 {
4357 #if BYTE_ORDER != BIG_ENDIAN
4358  not big endian
4359 #endif
4360
4361   ;
4362   return 0;
4363 }
4364 _ACEOF
4365 rm -f conftest.$ac_objext
4366 if { (ac_try="$ac_compile"
4367 case "(($ac_try" in
4368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369   *) ac_try_echo=$ac_try;;
4370 esac
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372   (eval "$ac_compile") 2>conftest.er1
4373   ac_status=$?
4374   grep -v '^ *+' conftest.er1 >conftest.err
4375   rm -f conftest.er1
4376   cat conftest.err >&5
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); } &&
4379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4380   { (case "(($ac_try" in
4381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382   *) ac_try_echo=$ac_try;;
4383 esac
4384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385   (eval "$ac_try") 2>&5
4386   ac_status=$?
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); }; } &&
4389          { ac_try='test -s conftest.$ac_objext'
4390   { (case "(($ac_try" in
4391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392   *) ac_try_echo=$ac_try;;
4393 esac
4394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395   (eval "$ac_try") 2>&5
4396   ac_status=$?
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); }; }; then
4399   ac_cv_c_bigendian=yes
4400 else
4401   echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4403
4404         ac_cv_c_bigendian=no
4405 fi
4406
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 else
4409   echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4411
4412         # It does not; compile a test program.
4413 if test "$cross_compiling" = yes; then
4414   # try to guess the endianness by grepping values into an object file
4415   ac_cv_c_bigendian=unknown
4416   cat >conftest.$ac_ext <<_ACEOF
4417 /* confdefs.h.  */
4418 _ACEOF
4419 cat confdefs.h >>conftest.$ac_ext
4420 cat >>conftest.$ac_ext <<_ACEOF
4421 /* end confdefs.h.  */
4422 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4423 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4424 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4425 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4426 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4427 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4428 int
4429 main ()
4430 {
4431  _ascii (); _ebcdic ();
4432   ;
4433   return 0;
4434 }
4435 _ACEOF
4436 rm -f conftest.$ac_objext
4437 if { (ac_try="$ac_compile"
4438 case "(($ac_try" in
4439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440   *) ac_try_echo=$ac_try;;
4441 esac
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443   (eval "$ac_compile") 2>conftest.er1
4444   ac_status=$?
4445   grep -v '^ *+' conftest.er1 >conftest.err
4446   rm -f conftest.er1
4447   cat conftest.err >&5
4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449   (exit $ac_status); } &&
4450          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4451   { (case "(($ac_try" in
4452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453   *) ac_try_echo=$ac_try;;
4454 esac
4455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456   (eval "$ac_try") 2>&5
4457   ac_status=$?
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); }; } &&
4460          { ac_try='test -s conftest.$ac_objext'
4461   { (case "(($ac_try" in
4462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463   *) ac_try_echo=$ac_try;;
4464 esac
4465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466   (eval "$ac_try") 2>&5
4467   ac_status=$?
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); }; }; then
4470   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4471   ac_cv_c_bigendian=yes
4472 fi
4473 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4474   if test "$ac_cv_c_bigendian" = unknown; then
4475     ac_cv_c_bigendian=no
4476   else
4477     # finding both strings is unlikely to happen, but who knows?
4478     ac_cv_c_bigendian=unknown
4479   fi
4480 fi
4481 else
4482   echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4484
4485
4486 fi
4487
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 else
4490   cat >conftest.$ac_ext <<_ACEOF
4491 /* confdefs.h.  */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h.  */
4496 $ac_includes_default
4497 int
4498 main ()
4499 {
4500
4501   /* Are we little or big endian?  From Harbison&Steele.  */
4502   union
4503   {
4504     long int l;
4505     char c[sizeof (long int)];
4506   } u;
4507   u.l = 1;
4508   return u.c[sizeof (long int) - 1] == 1;
4509
4510   ;
4511   return 0;
4512 }
4513 _ACEOF
4514 rm -f conftest$ac_exeext
4515 if { (ac_try="$ac_link"
4516 case "(($ac_try" in
4517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518   *) ac_try_echo=$ac_try;;
4519 esac
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521   (eval "$ac_link") 2>&5
4522   ac_status=$?
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4525   { (case "(($ac_try" in
4526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527   *) ac_try_echo=$ac_try;;
4528 esac
4529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530   (eval "$ac_try") 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); }; }; then
4534   ac_cv_c_bigendian=no
4535 else
4536   echo "$as_me: program exited with status $ac_status" >&5
4537 echo "$as_me: failed program was:" >&5
4538 sed 's/^/| /' conftest.$ac_ext >&5
4539
4540 ( exit $ac_status )
4541 ac_cv_c_bigendian=yes
4542 fi
4543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4544 fi
4545
4546
4547 fi
4548
4549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550 fi
4551 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4552 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4553 case $ac_cv_c_bigendian in
4554   yes)
4555     ENDIAN=big
4556  ;;
4557   no)
4558     ENDIAN=little
4559  ;;
4560   *)
4561     { { echo "$as_me:$LINENO: error: unknown endianness
4562 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4563 echo "$as_me: error: unknown endianness
4564 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4565    { (exit 1); exit 1; }; } ;;
4566 esac
4567
4568
4569 if test "$cross_compiling" = yes; then
4570   LLVM_CROSS_COMPILING=1
4571
4572
4573 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4574 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4575 if test "${ac_cv_build_exeext+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4579   ac_cv_build_exeext=.exe
4580 else
4581   ac_build_prefix=${build_alias}-
4582
4583   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4584 set dummy ${ac_build_prefix}gcc; ac_word=$2
4585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4587 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590   if test -n "$BUILD_CC"; then
4591   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4592 else
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596   IFS=$as_save_IFS
4597   test -z "$as_dir" && as_dir=.
4598   for ac_exec_ext in '' $ac_executable_extensions; do
4599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4600     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602     break 2
4603   fi
4604 done
4605 done
4606 IFS=$as_save_IFS
4607
4608 fi
4609 fi
4610 BUILD_CC=$ac_cv_prog_BUILD_CC
4611 if test -n "$BUILD_CC"; then
4612   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4613 echo "${ECHO_T}$BUILD_CC" >&6; }
4614 else
4615   { echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6; }
4617 fi
4618
4619
4620   if test -z "$BUILD_CC"; then
4621      # Extract the first word of "gcc", so it can be a program name with args.
4622 set dummy gcc; ac_word=$2
4623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4625 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4626   echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628   if test -n "$BUILD_CC"; then
4629   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4630 else
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4633 do
4634   IFS=$as_save_IFS
4635   test -z "$as_dir" && as_dir=.
4636   for ac_exec_ext in '' $ac_executable_extensions; do
4637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4638     ac_cv_prog_BUILD_CC="gcc"
4639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640     break 2
4641   fi
4642 done
4643 done
4644 IFS=$as_save_IFS
4645
4646 fi
4647 fi
4648 BUILD_CC=$ac_cv_prog_BUILD_CC
4649 if test -n "$BUILD_CC"; then
4650   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4651 echo "${ECHO_T}$BUILD_CC" >&6; }
4652 else
4653   { echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6; }
4655 fi
4656
4657
4658      if test -z "$BUILD_CC"; then
4659        # Extract the first word of "cc", so it can be a program name with args.
4660 set dummy cc; ac_word=$2
4661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4663 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4664   echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666   if test -n "$BUILD_CC"; then
4667   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4668 else
4669   ac_prog_rejected=no
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673   IFS=$as_save_IFS
4674   test -z "$as_dir" && as_dir=.
4675   for ac_exec_ext in '' $ac_executable_extensions; do
4676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4677     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4678        ac_prog_rejected=yes
4679        continue
4680      fi
4681     ac_cv_prog_BUILD_CC="cc"
4682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683     break 2
4684   fi
4685 done
4686 done
4687 IFS=$as_save_IFS
4688
4689 if test $ac_prog_rejected = yes; then
4690   # We found a bogon in the path, so make sure we never use it.
4691   set dummy $ac_cv_prog_BUILD_CC
4692   shift
4693   if test $# != 0; then
4694     # We chose a different compiler from the bogus one.
4695     # However, it has the same basename, so the bogon will be chosen
4696     # first if we set BUILD_CC to just the basename; use the full file name.
4697     shift
4698     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4699   fi
4700 fi
4701 fi
4702 fi
4703 BUILD_CC=$ac_cv_prog_BUILD_CC
4704 if test -n "$BUILD_CC"; then
4705   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4706 echo "${ECHO_T}$BUILD_CC" >&6; }
4707 else
4708   { echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6; }
4710 fi
4711
4712
4713      fi
4714   fi
4715   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4716 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4717    { (exit 1); exit 1; }; }
4718   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4719   rm -f conftest*
4720   echo 'int main () { return 0; }' > conftest.$ac_ext
4721   ac_cv_build_exeext=
4722   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4723   (eval $ac_build_link) 2>&5
4724   ac_status=$?
4725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726   (exit $ac_status); }; then
4727     for file in conftest.*; do
4728       case $file in
4729       *.c | *.o | *.obj | *.dSYM) ;;
4730       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4731       esac
4732     done
4733   else
4734     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4735 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4736    { (exit 1); exit 1; }; }
4737   fi
4738   rm -f conftest*
4739   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4740 fi
4741 fi
4742
4743 BUILD_EXEEXT=""
4744 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4745 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4746 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4747 ac_build_exeext=$BUILD_EXEEXT
4748
4749   ac_build_prefix=${build_alias}-
4750   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4751 set dummy ${ac_build_prefix}g++; ac_word=$2
4752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4754 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4755   echo $ECHO_N "(cached) $ECHO_C" >&6
4756 else
4757   if test -n "$BUILD_CXX"; then
4758   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763   IFS=$as_save_IFS
4764   test -z "$as_dir" && as_dir=.
4765   for ac_exec_ext in '' $ac_executable_extensions; do
4766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4767     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4769     break 2
4770   fi
4771 done
4772 done
4773 IFS=$as_save_IFS
4774
4775 fi
4776 fi
4777 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4778 if test -n "$BUILD_CXX"; then
4779   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4780 echo "${ECHO_T}$BUILD_CXX" >&6; }
4781 else
4782   { echo "$as_me:$LINENO: result: no" >&5
4783 echo "${ECHO_T}no" >&6; }
4784 fi
4785
4786
4787   if test -z "$BUILD_CXX"; then
4788      # Extract the first word of "g++", so it can be a program name with args.
4789 set dummy g++; ac_word=$2
4790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4792 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4793   echo $ECHO_N "(cached) $ECHO_C" >&6
4794 else
4795   if test -n "$BUILD_CXX"; then
4796   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4797 else
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4800 do
4801   IFS=$as_save_IFS
4802   test -z "$as_dir" && as_dir=.
4803   for ac_exec_ext in '' $ac_executable_extensions; do
4804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4805     ac_cv_prog_BUILD_CXX="g++"
4806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807     break 2
4808   fi
4809 done
4810 done
4811 IFS=$as_save_IFS
4812
4813 fi
4814 fi
4815 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4816 if test -n "$BUILD_CXX"; then
4817   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4818 echo "${ECHO_T}$BUILD_CXX" >&6; }
4819 else
4820   { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4822 fi
4823
4824
4825      if test -z "$BUILD_CXX"; then
4826        # Extract the first word of "c++", so it can be a program name with args.
4827 set dummy c++; ac_word=$2
4828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4830 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4831   echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833   if test -n "$BUILD_CXX"; then
4834   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4835 else
4836   ac_prog_rejected=no
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4839 do
4840   IFS=$as_save_IFS
4841   test -z "$as_dir" && as_dir=.
4842   for ac_exec_ext in '' $ac_executable_extensions; do
4843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4844     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4845        ac_prog_rejected=yes
4846        continue
4847      fi
4848     ac_cv_prog_BUILD_CXX="c++"
4849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4850     break 2
4851   fi
4852 done
4853 done
4854 IFS=$as_save_IFS
4855
4856 if test $ac_prog_rejected = yes; then
4857   # We found a bogon in the path, so make sure we never use it.
4858   set dummy $ac_cv_prog_BUILD_CXX
4859   shift
4860   if test $# != 0; then
4861     # We chose a different compiler from the bogus one.
4862     # However, it has the same basename, so the bogon will be chosen
4863     # first if we set BUILD_CXX to just the basename; use the full file name.
4864     shift
4865     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4866   fi
4867 fi
4868 fi
4869 fi
4870 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4871 if test -n "$BUILD_CXX"; then
4872   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4873 echo "${ECHO_T}$BUILD_CXX" >&6; }
4874 else
4875   { echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6; }
4877 fi
4878
4879
4880      fi
4881   fi
4882 else
4883   LLVM_CROSS_COMPILING=0
4884
4885 fi
4886
4887 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4888   cvsbuild="yes"
4889   optimize="no"
4890   CVSBUILD=CVSBUILD=1
4891
4892 else
4893   cvsbuild="no"
4894   optimize="yes"
4895 fi
4896
4897
4898 # Check whether --enable-optimized was given.
4899 if test "${enable_optimized+set}" = set; then
4900   enableval=$enable_optimized;
4901 else
4902   enableval=$optimize
4903 fi
4904
4905 if test ${enableval} = "no" ; then
4906   ENABLE_OPTIMIZED=
4907
4908 else
4909   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4910
4911 fi
4912
4913 # Check whether --enable-profiling was given.
4914 if test "${enable_profiling+set}" = set; then
4915   enableval=$enable_profiling;
4916 else
4917   enableval="no"
4918 fi
4919
4920 if test ${enableval} = "no" ; then
4921   ENABLE_PROFILING=
4922
4923 else
4924   ENABLE_PROFILING=ENABLE_PROFILING=1
4925
4926 fi
4927
4928 # Check whether --enable-assertions was given.
4929 if test "${enable_assertions+set}" = set; then
4930   enableval=$enable_assertions;
4931 else
4932   enableval="yes"
4933 fi
4934
4935 if test ${enableval} = "yes" ; then
4936   DISABLE_ASSERTIONS=
4937
4938 else
4939   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4940
4941 fi
4942
4943 # Check whether --enable-expensive-checks was given.
4944 if test "${enable_expensive_checks+set}" = set; then
4945   enableval=$enable_expensive_checks;
4946 else
4947   enableval="no"
4948 fi
4949
4950 if test ${enableval} = "yes" ; then
4951   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4952
4953   EXPENSIVE_CHECKS=yes
4954
4955 else
4956   ENABLE_EXPENSIVE_CHECKS=
4957
4958   EXPENSIVE_CHECKS=no
4959
4960 fi
4961
4962 # Check whether --enable-debug-runtime was given.
4963 if test "${enable_debug_runtime+set}" = set; then
4964   enableval=$enable_debug_runtime;
4965 else
4966   enableval=no
4967 fi
4968
4969 if test ${enableval} = "no" ; then
4970   DEBUG_RUNTIME=
4971
4972 else
4973   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4974
4975 fi
4976
4977 # Check whether --enable-debug-symbols was given.
4978 if test "${enable_debug_symbols+set}" = set; then
4979   enableval=$enable_debug_symbols;
4980 else
4981   enableval=no
4982 fi
4983
4984 if test ${enableval} = "no" ; then
4985   DEBUG_SYMBOLS=
4986
4987 else
4988   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4989
4990 fi
4991
4992 # Check whether --enable-jit was given.
4993 if test "${enable_jit+set}" = set; then
4994   enableval=$enable_jit;
4995 else
4996   enableval=default
4997 fi
4998
4999 if test ${enableval} = "no"
5000 then
5001   JIT=
5002
5003 else
5004   case "$llvm_cv_target_arch" in
5005     x86)         TARGET_HAS_JIT=1
5006  ;;
5007     Sparc)       TARGET_HAS_JIT=0
5008  ;;
5009     PowerPC)     TARGET_HAS_JIT=1
5010  ;;
5011     x86_64)      TARGET_HAS_JIT=1
5012  ;;
5013     Alpha)       TARGET_HAS_JIT=1
5014  ;;
5015     ARM)         TARGET_HAS_JIT=1
5016  ;;
5017     Mips)        TARGET_HAS_JIT=0
5018  ;;
5019     PIC16)       TARGET_HAS_JIT=0
5020  ;;
5021     XCore)       TARGET_HAS_JIT=0
5022  ;;
5023     MSP430)      TARGET_HAS_JIT=0
5024  ;;
5025     SystemZ)     TARGET_HAS_JIT=0
5026  ;;
5027     Blackfin)    TARGET_HAS_JIT=0
5028  ;;
5029     *)           TARGET_HAS_JIT=0
5030  ;;
5031   esac
5032 fi
5033
5034 # Check whether --enable-doxygen was given.
5035 if test "${enable_doxygen+set}" = set; then
5036   enableval=$enable_doxygen;
5037 else
5038   enableval=default
5039 fi
5040
5041 case "$enableval" in
5042   yes) ENABLE_DOXYGEN=1
5043  ;;
5044   no)  ENABLE_DOXYGEN=0
5045  ;;
5046   default) ENABLE_DOXYGEN=0
5047  ;;
5048   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5049 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5050    { (exit 1); exit 1; }; } ;;
5051 esac
5052
5053 # Check whether --enable-threads was given.
5054 if test "${enable_threads+set}" = set; then
5055   enableval=$enable_threads;
5056 else
5057   enableval=default
5058 fi
5059
5060 case "$enableval" in
5061   yes) ENABLE_THREADS=1
5062  ;;
5063   no)  ENABLE_THREADS=0
5064  ;;
5065   default) ENABLE_THREADS=1
5066  ;;
5067   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5068 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5069    { (exit 1); exit 1; }; } ;;
5070 esac
5071
5072 cat >>confdefs.h <<_ACEOF
5073 #define ENABLE_THREADS $ENABLE_THREADS
5074 _ACEOF
5075
5076
5077 # Check whether --enable-pic was given.
5078 if test "${enable_pic+set}" = set; then
5079   enableval=$enable_pic;
5080 else
5081   enableval=default
5082 fi
5083
5084 case "$enableval" in
5085   yes) ENABLE_PIC=1
5086  ;;
5087   no)  ENABLE_PIC=0
5088  ;;
5089   default) ENABLE_PIC=1
5090  ;;
5091   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5092 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5093    { (exit 1); exit 1; }; } ;;
5094 esac
5095
5096 cat >>confdefs.h <<_ACEOF
5097 #define ENABLE_PIC $ENABLE_PIC
5098 _ACEOF
5099
5100
5101 TARGETS_TO_BUILD=""
5102 # Check whether --enable-targets was given.
5103 if test "${enable_targets+set}" = set; then
5104   enableval=$enable_targets;
5105 else
5106   enableval=all
5107 fi
5108
5109 if test "$enableval" = host-only ; then
5110   enableval=host
5111 fi
5112 case "$enableval" in
5113   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5114   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5115       case "$a_target" in
5116         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5117         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5118         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5119         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5120         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5121         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5122         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5123         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5124         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5125         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5126         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5127         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5128         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5129         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5130         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5131         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5132         host) case "$llvm_cv_target_arch" in
5133             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5134             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5135             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5136             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5137             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5138             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5139             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5140             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5141             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5142             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5143             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5144             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5145             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5146             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5147 echo "$as_me: error: Can not set target to build" >&2;}
5148    { (exit 1); exit 1; }; } ;;
5149           esac ;;
5150         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5151 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5152    { (exit 1); exit 1; }; } ;;
5153       esac
5154   done
5155   ;;
5156 esac
5157 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5158
5159
5160 # Determine whether we are building LLVM support for the native architecture.
5161 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5162 for a_target in $TARGETS_TO_BUILD; do
5163   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5164     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5165
5166 cat >>confdefs.h <<_ACEOF
5167 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5168 _ACEOF
5169
5170   fi
5171 done
5172
5173 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5174 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5175 LLVM_ENUM_TARGETS=""
5176 LLVM_ENUM_ASM_PRINTERS=""
5177 LLVM_ENUM_ASM_PARSERS=""
5178 for target_to_build in $TARGETS_TO_BUILD; do
5179   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5180   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5181     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5182   fi
5183   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5184     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5185   fi
5186 done
5187
5188
5189
5190
5191 # Check whether --enable-cbe-printf-a was given.
5192 if test "${enable_cbe_printf_a+set}" = set; then
5193   enableval=$enable_cbe_printf_a;
5194 else
5195   enableval=default
5196 fi
5197
5198 case "$enableval" in
5199   yes) ENABLE_CBE_PRINTF_A=1
5200  ;;
5201   no)  ENABLE_CBE_PRINTF_A=0
5202  ;;
5203   default)  ENABLE_CBE_PRINTF_A=1
5204  ;;
5205   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5206 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5207    { (exit 1); exit 1; }; } ;;
5208 esac
5209
5210 cat >>confdefs.h <<_ACEOF
5211 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5212 _ACEOF
5213
5214
5215
5216 # Check whether --with-llvmgccdir was given.
5217 if test "${with_llvmgccdir+set}" = set; then
5218   withval=$with_llvmgccdir;
5219 else
5220   withval=default
5221 fi
5222
5223 case "$withval" in
5224   default) WITH_LLVMGCCDIR=default ;;
5225   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5226   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5227 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5228    { (exit 1); exit 1; }; } ;;
5229 esac
5230
5231
5232 # Check whether --with-llvmgcc was given.
5233 if test "${with_llvmgcc+set}" = set; then
5234   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5235       WITH_LLVMGCCDIR=""
5236 fi
5237
5238
5239
5240 # Check whether --with-llvmgxx was given.
5241 if test "${with_llvmgxx+set}" = set; then
5242   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5243     WITH_LLVMGCCDIR=""
5244 fi
5245
5246
5247 if test -n "$LLVMGCC"; then
5248    LLVMGCCCOMMAND="$LLVMGCC"
5249 fi
5250
5251 if test -n "$LLVMGXX"; then
5252    LLVMGXXCOMMAND="$LLVMGXX"
5253 fi
5254
5255 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5256    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5257 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5258    { (exit 1); exit 1; }; };
5259 fi
5260
5261 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5262    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5263 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5264    { (exit 1); exit 1; }; };
5265 fi
5266
5267
5268 # Check whether --with-extra-options was given.
5269 if test "${with_extra_options+set}" = set; then
5270   withval=$with_extra_options;
5271 else
5272   withval=default
5273 fi
5274
5275 case "$withval" in
5276   default) EXTRA_OPTIONS= ;;
5277   *) EXTRA_OPTIONS=$withval ;;
5278 esac
5279 EXTRA_OPTIONS=$EXTRA_OPTIONS
5280
5281
5282 # Check whether --enable-bindings was given.
5283 if test "${enable_bindings+set}" = set; then
5284   enableval=$enable_bindings;
5285 else
5286   enableval=default
5287 fi
5288
5289 BINDINGS_TO_BUILD=""
5290 case "$enableval" in
5291   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5292   all ) BINDINGS_TO_BUILD="ocaml" ;;
5293   none | no) BINDINGS_TO_BUILD="" ;;
5294   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5295       case "$a_binding" in
5296         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5297         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5298 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5299    { (exit 1); exit 1; }; } ;;
5300       esac
5301   done
5302   ;;
5303 esac
5304
5305
5306 # Check whether --with-ocaml-libdir was given.
5307 if test "${with_ocaml_libdir+set}" = set; then
5308   withval=$with_ocaml_libdir;
5309 else
5310   withval=auto
5311 fi
5312
5313 case "$withval" in
5314   auto) with_ocaml_libdir="$withval" ;;
5315   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5316   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5317 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5318    { (exit 1); exit 1; }; } ;;
5319 esac
5320
5321
5322 # Check whether --with-binutils-include was given.
5323 if test "${with_binutils_include+set}" = set; then
5324   withval=$with_binutils_include;
5325 else
5326   withval=default
5327 fi
5328
5329 case "$withval" in
5330   default) WITH_BINUTILS_INCDIR=default ;;
5331   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5332   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5333 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5334    { (exit 1); exit 1; }; } ;;
5335 esac
5336 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5337   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5338
5339   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5340      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5341      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5342 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5343    { (exit 1); exit 1; }; };
5344   fi
5345 fi
5346
5347 # Check whether --enable-libffi was given.
5348 if test "${enable_libffi+set}" = set; then
5349   enableval=$enable_libffi;
5350 else
5351   enableval=yes
5352 fi
5353
5354 case "$enableval" in
5355   yes) llvm_cv_enable_libffi="yes" ;;
5356   no)  llvm_cv_enable_libffi="no"  ;;
5357   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5358 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5359    { (exit 1); exit 1; }; } ;;
5360 esac
5361
5362 if test "$llvm_cv_os_type" = "Win32" ; then
5363    llvmc_dynamic="yes"
5364 else
5365    llvmc_dynamic="no"
5366 fi
5367
5368 # Check whether --enable-llvmc-dynamic was given.
5369 if test "${enable_llvmc_dynamic+set}" = set; then
5370   enableval=$enable_llvmc_dynamic;
5371 else
5372   enableval=$llvmc_dynamic
5373 fi
5374
5375 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5376    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5377
5378 else
5379    ENABLE_LLVMC_DYNAMIC=
5380
5381 fi
5382
5383 # Check whether --enable-llvmc-dynamic-plugins was given.
5384 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5385   enableval=$enable_llvmc_dynamic_plugins;
5386 else
5387   enableval=yes
5388 fi
5389
5390 if test ${enableval} = "yes" ; then
5391    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5392
5393 else
5394    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5395
5396 fi
5397
5398
5399 ac_ext=c
5400 ac_cpp='$CPP $CPPFLAGS'
5401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5404 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5405 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5406 # On Suns, sometimes $CPP names a directory.
5407 if test -n "$CPP" && test -d "$CPP"; then
5408   CPP=
5409 fi
5410 if test -z "$CPP"; then
5411   if test "${ac_cv_prog_CPP+set}" = set; then
5412   echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414       # Double quotes because CPP needs to be expanded
5415     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5416     do
5417       ac_preproc_ok=false
5418 for ac_c_preproc_warn_flag in '' yes
5419 do
5420   # Use a header file that comes with gcc, so configuring glibc
5421   # with a fresh cross-compiler works.
5422   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5423   # <limits.h> exists even on freestanding compilers.
5424   # On the NeXT, cc -E runs the code through the compiler's parser,
5425   # not just through cpp. "Syntax error" is here to catch this case.
5426   cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h.  */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h.  */
5432 #ifdef __STDC__
5433 # include <limits.h>
5434 #else
5435 # include <assert.h>
5436 #endif
5437                      Syntax error
5438 _ACEOF
5439 if { (ac_try="$ac_cpp conftest.$ac_ext"
5440 case "(($ac_try" in
5441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442   *) ac_try_echo=$ac_try;;
5443 esac
5444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5446   ac_status=$?
5447   grep -v '^ *+' conftest.er1 >conftest.err
5448   rm -f conftest.er1
5449   cat conftest.err >&5
5450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451   (exit $ac_status); } >/dev/null; then
5452   if test -s conftest.err; then
5453     ac_cpp_err=$ac_c_preproc_warn_flag
5454     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5455   else
5456     ac_cpp_err=
5457   fi
5458 else
5459   ac_cpp_err=yes
5460 fi
5461 if test -z "$ac_cpp_err"; then
5462   :
5463 else
5464   echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5466
5467   # Broken: fails on valid input.
5468 continue
5469 fi
5470
5471 rm -f conftest.err conftest.$ac_ext
5472
5473   # OK, works on sane cases.  Now check whether nonexistent headers
5474   # can be detected and how.
5475   cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h.  */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h.  */
5481 #include <ac_nonexistent.h>
5482 _ACEOF
5483 if { (ac_try="$ac_cpp conftest.$ac_ext"
5484 case "(($ac_try" in
5485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486   *) ac_try_echo=$ac_try;;
5487 esac
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5490   ac_status=$?
5491   grep -v '^ *+' conftest.er1 >conftest.err
5492   rm -f conftest.er1
5493   cat conftest.err >&5
5494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); } >/dev/null; then
5496   if test -s conftest.err; then
5497     ac_cpp_err=$ac_c_preproc_warn_flag
5498     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5499   else
5500     ac_cpp_err=
5501   fi
5502 else
5503   ac_cpp_err=yes
5504 fi
5505 if test -z "$ac_cpp_err"; then
5506   # Broken: success on invalid input.
5507 continue
5508 else
5509   echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5511
5512   # Passes both tests.
5513 ac_preproc_ok=:
5514 break
5515 fi
5516
5517 rm -f conftest.err conftest.$ac_ext
5518
5519 done
5520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5521 rm -f conftest.err conftest.$ac_ext
5522 if $ac_preproc_ok; then
5523   break
5524 fi
5525
5526     done
5527     ac_cv_prog_CPP=$CPP
5528
5529 fi
5530   CPP=$ac_cv_prog_CPP
5531 else
5532   ac_cv_prog_CPP=$CPP
5533 fi
5534 { echo "$as_me:$LINENO: result: $CPP" >&5
5535 echo "${ECHO_T}$CPP" >&6; }
5536 ac_preproc_ok=false
5537 for ac_c_preproc_warn_flag in '' yes
5538 do
5539   # Use a header file that comes with gcc, so configuring glibc
5540   # with a fresh cross-compiler works.
5541   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5542   # <limits.h> exists even on freestanding compilers.
5543   # On the NeXT, cc -E runs the code through the compiler's parser,
5544   # not just through cpp. "Syntax error" is here to catch this case.
5545   cat >conftest.$ac_ext <<_ACEOF
5546 /* confdefs.h.  */
5547 _ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h.  */
5551 #ifdef __STDC__
5552 # include <limits.h>
5553 #else
5554 # include <assert.h>
5555 #endif
5556                      Syntax error
5557 _ACEOF
5558 if { (ac_try="$ac_cpp conftest.$ac_ext"
5559 case "(($ac_try" in
5560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561   *) ac_try_echo=$ac_try;;
5562 esac
5563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5565   ac_status=$?
5566   grep -v '^ *+' conftest.er1 >conftest.err
5567   rm -f conftest.er1
5568   cat conftest.err >&5
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); } >/dev/null; then
5571   if test -s conftest.err; then
5572     ac_cpp_err=$ac_c_preproc_warn_flag
5573     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5574   else
5575     ac_cpp_err=
5576   fi
5577 else
5578   ac_cpp_err=yes
5579 fi
5580 if test -z "$ac_cpp_err"; then
5581   :
5582 else
5583   echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5585
5586   # Broken: fails on valid input.
5587 continue
5588 fi
5589
5590 rm -f conftest.err conftest.$ac_ext
5591
5592   # OK, works on sane cases.  Now check whether nonexistent headers
5593   # can be detected and how.
5594   cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h.  */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h.  */
5600 #include <ac_nonexistent.h>
5601 _ACEOF
5602 if { (ac_try="$ac_cpp conftest.$ac_ext"
5603 case "(($ac_try" in
5604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605   *) ac_try_echo=$ac_try;;
5606 esac
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5609   ac_status=$?
5610   grep -v '^ *+' conftest.er1 >conftest.err
5611   rm -f conftest.er1
5612   cat conftest.err >&5
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); } >/dev/null; then
5615   if test -s conftest.err; then
5616     ac_cpp_err=$ac_c_preproc_warn_flag
5617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5618   else
5619     ac_cpp_err=
5620   fi
5621 else
5622   ac_cpp_err=yes
5623 fi
5624 if test -z "$ac_cpp_err"; then
5625   # Broken: success on invalid input.
5626 continue
5627 else
5628   echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5630
5631   # Passes both tests.
5632 ac_preproc_ok=:
5633 break
5634 fi
5635
5636 rm -f conftest.err conftest.$ac_ext
5637
5638 done
5639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5640 rm -f conftest.err conftest.$ac_ext
5641 if $ac_preproc_ok; then
5642   :
5643 else
5644   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5645 See \`config.log' for more details." >&5
5646 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5647 See \`config.log' for more details." >&2;}
5648    { (exit 1); exit 1; }; }
5649 fi
5650
5651 ac_ext=c
5652 ac_cpp='$CPP $CPPFLAGS'
5653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5656
5657 ac_ext=c
5658 ac_cpp='$CPP $CPPFLAGS'
5659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5662 if test -n "$ac_tool_prefix"; then
5663   for ac_prog in gcc
5664   do
5665     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5669 if test "${ac_cv_prog_CC+set}" = set; then
5670   echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672   if test -n "$CC"; then
5673   ac_cv_prog_CC="$CC" # Let the user override the test.
5674 else
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5677 do
5678   IFS=$as_save_IFS
5679   test -z "$as_dir" && as_dir=.
5680   for ac_exec_ext in '' $ac_executable_extensions; do
5681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5682     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5684     break 2
5685   fi
5686 done
5687 done
5688 IFS=$as_save_IFS
5689
5690 fi
5691 fi
5692 CC=$ac_cv_prog_CC
5693 if test -n "$CC"; then
5694   { echo "$as_me:$LINENO: result: $CC" >&5
5695 echo "${ECHO_T}$CC" >&6; }
5696 else
5697   { echo "$as_me:$LINENO: result: no" >&5
5698 echo "${ECHO_T}no" >&6; }
5699 fi
5700
5701
5702     test -n "$CC" && break
5703   done
5704 fi
5705 if test -z "$CC"; then
5706   ac_ct_CC=$CC
5707   for ac_prog in gcc
5708 do
5709   # Extract the first word of "$ac_prog", so it can be a program name with args.
5710 set dummy $ac_prog; ac_word=$2
5711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5713 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5714   echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716   if test -n "$ac_ct_CC"; then
5717   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5718 else
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5721 do
5722   IFS=$as_save_IFS
5723   test -z "$as_dir" && as_dir=.
5724   for ac_exec_ext in '' $ac_executable_extensions; do
5725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5726     ac_cv_prog_ac_ct_CC="$ac_prog"
5727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728     break 2
5729   fi
5730 done
5731 done
5732 IFS=$as_save_IFS
5733
5734 fi
5735 fi
5736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5737 if test -n "$ac_ct_CC"; then
5738   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5739 echo "${ECHO_T}$ac_ct_CC" >&6; }
5740 else
5741   { echo "$as_me:$LINENO: result: no" >&5
5742 echo "${ECHO_T}no" >&6; }
5743 fi
5744
5745
5746   test -n "$ac_ct_CC" && break
5747 done
5748
5749   if test "x$ac_ct_CC" = x; then
5750     CC=""
5751   else
5752     case $cross_compiling:$ac_tool_warned in
5753 yes:)
5754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5755 whose name does not start with the host triplet.  If you think this
5756 configuration is useful to you, please write to autoconf@gnu.org." >&5
5757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5758 whose name does not start with the host triplet.  If you think this
5759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5760 ac_tool_warned=yes ;;
5761 esac
5762     CC=$ac_ct_CC
5763   fi
5764 fi
5765
5766
5767 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5768 See \`config.log' for more details." >&5
5769 echo "$as_me: error: no acceptable C compiler found in \$PATH
5770 See \`config.log' for more details." >&2;}
5771    { (exit 1); exit 1; }; }
5772
5773 # Provide some information about the compiler.
5774 echo "$as_me:$LINENO: checking for C compiler version" >&5
5775 ac_compiler=`set X $ac_compile; echo $2`
5776 { (ac_try="$ac_compiler --version >&5"
5777 case "(($ac_try" in
5778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779   *) ac_try_echo=$ac_try;;
5780 esac
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782   (eval "$ac_compiler --version >&5") 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); }
5786 { (ac_try="$ac_compiler -v >&5"
5787 case "(($ac_try" in
5788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789   *) ac_try_echo=$ac_try;;
5790 esac
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792   (eval "$ac_compiler -v >&5") 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); }
5796 { (ac_try="$ac_compiler -V >&5"
5797 case "(($ac_try" in
5798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799   *) ac_try_echo=$ac_try;;
5800 esac
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802   (eval "$ac_compiler -V >&5") 2>&5
5803   ac_status=$?
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); }
5806
5807 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5808 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5809 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5810   echo $ECHO_N "(cached) $ECHO_C" >&6
5811 else
5812   cat >conftest.$ac_ext <<_ACEOF
5813 /* confdefs.h.  */
5814 _ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h.  */
5818
5819 int
5820 main ()
5821 {
5822 #ifndef __GNUC__
5823        choke me
5824 #endif
5825
5826   ;
5827   return 0;
5828 }
5829 _ACEOF
5830 rm -f conftest.$ac_objext
5831 if { (ac_try="$ac_compile"
5832 case "(($ac_try" in
5833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834   *) ac_try_echo=$ac_try;;
5835 esac
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837   (eval "$ac_compile") 2>conftest.er1
5838   ac_status=$?
5839   grep -v '^ *+' conftest.er1 >conftest.err
5840   rm -f conftest.er1
5841   cat conftest.err >&5
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); } &&
5844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5845   { (case "(($ac_try" in
5846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847   *) ac_try_echo=$ac_try;;
5848 esac
5849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850   (eval "$ac_try") 2>&5
5851   ac_status=$?
5852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853   (exit $ac_status); }; } &&
5854          { ac_try='test -s conftest.$ac_objext'
5855   { (case "(($ac_try" in
5856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857   *) ac_try_echo=$ac_try;;
5858 esac
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860   (eval "$ac_try") 2>&5
5861   ac_status=$?
5862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); }; }; then
5864   ac_compiler_gnu=yes
5865 else
5866   echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5868
5869         ac_compiler_gnu=no
5870 fi
5871
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5874
5875 fi
5876 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5877 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5878 GCC=`test $ac_compiler_gnu = yes && echo yes`
5879 ac_test_CFLAGS=${CFLAGS+set}
5880 ac_save_CFLAGS=$CFLAGS
5881 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5882 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5883 if test "${ac_cv_prog_cc_g+set}" = set; then
5884   echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886   ac_save_c_werror_flag=$ac_c_werror_flag
5887    ac_c_werror_flag=yes
5888    ac_cv_prog_cc_g=no
5889    CFLAGS="-g"
5890    cat >conftest.$ac_ext <<_ACEOF
5891 /* confdefs.h.  */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h.  */
5896
5897 int
5898 main ()
5899 {
5900
5901   ;
5902   return 0;
5903 }
5904 _ACEOF
5905 rm -f conftest.$ac_objext
5906 if { (ac_try="$ac_compile"
5907 case "(($ac_try" in
5908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909   *) ac_try_echo=$ac_try;;
5910 esac
5911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912   (eval "$ac_compile") 2>conftest.er1
5913   ac_status=$?
5914   grep -v '^ *+' conftest.er1 >conftest.err
5915   rm -f conftest.er1
5916   cat conftest.err >&5
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); } &&
5919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5920   { (case "(($ac_try" in
5921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922   *) ac_try_echo=$ac_try;;
5923 esac
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925   (eval "$ac_try") 2>&5
5926   ac_status=$?
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); }; } &&
5929          { ac_try='test -s conftest.$ac_objext'
5930   { (case "(($ac_try" in
5931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932   *) ac_try_echo=$ac_try;;
5933 esac
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935   (eval "$ac_try") 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); }; }; then
5939   ac_cv_prog_cc_g=yes
5940 else
5941   echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5943
5944         CFLAGS=""
5945       cat >conftest.$ac_ext <<_ACEOF
5946 /* confdefs.h.  */
5947 _ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h.  */
5951
5952 int
5953 main ()
5954 {
5955
5956   ;
5957   return 0;
5958 }
5959 _ACEOF
5960 rm -f conftest.$ac_objext
5961 if { (ac_try="$ac_compile"
5962 case "(($ac_try" in
5963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964   *) ac_try_echo=$ac_try;;
5965 esac
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967   (eval "$ac_compile") 2>conftest.er1
5968   ac_status=$?
5969   grep -v '^ *+' conftest.er1 >conftest.err
5970   rm -f conftest.er1
5971   cat conftest.err >&5
5972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973   (exit $ac_status); } &&
5974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5975   { (case "(($ac_try" in
5976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977   *) ac_try_echo=$ac_try;;
5978 esac
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980   (eval "$ac_try") 2>&5
5981   ac_status=$?
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); }; } &&
5984          { ac_try='test -s conftest.$ac_objext'
5985   { (case "(($ac_try" in
5986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987   *) ac_try_echo=$ac_try;;
5988 esac
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990   (eval "$ac_try") 2>&5
5991   ac_status=$?
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); }; }; then
5994   :
5995 else
5996   echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5998
5999         ac_c_werror_flag=$ac_save_c_werror_flag
6000          CFLAGS="-g"
6001          cat >conftest.$ac_ext <<_ACEOF
6002 /* confdefs.h.  */
6003 _ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h.  */
6007
6008 int
6009 main ()
6010 {
6011
6012   ;
6013   return 0;
6014 }
6015 _ACEOF
6016 rm -f conftest.$ac_objext
6017 if { (ac_try="$ac_compile"
6018 case "(($ac_try" in
6019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020   *) ac_try_echo=$ac_try;;
6021 esac
6022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6023   (eval "$ac_compile") 2>conftest.er1
6024   ac_status=$?
6025   grep -v '^ *+' conftest.er1 >conftest.err
6026   rm -f conftest.er1
6027   cat conftest.err >&5
6028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029   (exit $ac_status); } &&
6030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6031   { (case "(($ac_try" in
6032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033   *) ac_try_echo=$ac_try;;
6034 esac
6035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036   (eval "$ac_try") 2>&5
6037   ac_status=$?
6038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039   (exit $ac_status); }; } &&
6040          { ac_try='test -s conftest.$ac_objext'
6041   { (case "(($ac_try" in
6042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043   *) ac_try_echo=$ac_try;;
6044 esac
6045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046   (eval "$ac_try") 2>&5
6047   ac_status=$?
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); }; }; then
6050   ac_cv_prog_cc_g=yes
6051 else
6052   echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6054
6055
6056 fi
6057
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059 fi
6060
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062 fi
6063
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065    ac_c_werror_flag=$ac_save_c_werror_flag
6066 fi
6067 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6068 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6069 if test "$ac_test_CFLAGS" = set; then
6070   CFLAGS=$ac_save_CFLAGS
6071 elif test $ac_cv_prog_cc_g = yes; then
6072   if test "$GCC" = yes; then
6073     CFLAGS="-g -O2"
6074   else
6075     CFLAGS="-g"
6076   fi
6077 else
6078   if test "$GCC" = yes; then
6079     CFLAGS="-O2"
6080   else
6081     CFLAGS=
6082   fi
6083 fi
6084 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6085 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6086 if test "${ac_cv_prog_cc_c89+set}" = set; then
6087   echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089   ac_cv_prog_cc_c89=no
6090 ac_save_CC=$CC
6091 cat >conftest.$ac_ext <<_ACEOF
6092 /* confdefs.h.  */
6093 _ACEOF
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h.  */
6097 #include <stdarg.h>
6098 #include <stdio.h>
6099 #include <sys/types.h>
6100 #include <sys/stat.h>
6101 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6102 struct buf { int x; };
6103 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6104 static char *e (p, i)
6105      char **p;
6106      int i;
6107 {
6108   return p[i];
6109 }
6110 static char *f (char * (*g) (char **, int), char **p, ...)
6111 {
6112   char *s;
6113   va_list v;
6114   va_start (v,p);
6115   s = g (p, va_arg (v,int));
6116   va_end (v);
6117   return s;
6118 }
6119
6120 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6121    function prototypes and stuff, but not '\xHH' hex character constants.
6122    These don't provoke an error unfortunately, instead are silently treated
6123    as 'x'.  The following induces an error, until -std is added to get
6124    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6125    array size at least.  It's necessary to write '\x00'==0 to get something
6126    that's true only with -std.  */
6127 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6128
6129 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6130    inside strings and character constants.  */
6131 #define FOO(x) 'x'
6132 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6133
6134 int test (int i, double x);
6135 struct s1 {int (*f) (int a);};
6136 struct s2 {int (*f) (double a);};
6137 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6138 int argc;
6139 char **argv;
6140 int
6141 main ()
6142 {
6143 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6144   ;
6145   return 0;
6146 }
6147 _ACEOF
6148 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6149         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6150 do
6151   CC="$ac_save_CC $ac_arg"
6152   rm -f conftest.$ac_objext
6153 if { (ac_try="$ac_compile"
6154 case "(($ac_try" in
6155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156   *) ac_try_echo=$ac_try;;
6157 esac
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159   (eval "$ac_compile") 2>conftest.er1
6160   ac_status=$?
6161   grep -v '^ *+' conftest.er1 >conftest.err
6162   rm -f conftest.er1
6163   cat conftest.err >&5
6164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); } &&
6166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6167   { (case "(($ac_try" in
6168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169   *) ac_try_echo=$ac_try;;
6170 esac
6171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6172   (eval "$ac_try") 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); }; } &&
6176          { ac_try='test -s conftest.$ac_objext'
6177   { (case "(($ac_try" in
6178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179   *) ac_try_echo=$ac_try;;
6180 esac
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182   (eval "$ac_try") 2>&5
6183   ac_status=$?
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); }; }; then
6186   ac_cv_prog_cc_c89=$ac_arg
6187 else
6188   echo "$as_me: failed program was:" >&5
6189 sed 's/^/| /' conftest.$ac_ext >&5
6190
6191
6192 fi
6193
6194 rm -f core conftest.err conftest.$ac_objext
6195   test "x$ac_cv_prog_cc_c89" != "xno" && break
6196 done
6197 rm -f conftest.$ac_ext
6198 CC=$ac_save_CC
6199
6200 fi
6201 # AC_CACHE_VAL
6202 case "x$ac_cv_prog_cc_c89" in
6203   x)
6204     { echo "$as_me:$LINENO: result: none needed" >&5
6205 echo "${ECHO_T}none needed" >&6; } ;;
6206   xno)
6207     { echo "$as_me:$LINENO: result: unsupported" >&5
6208 echo "${ECHO_T}unsupported" >&6; } ;;
6209   *)
6210     CC="$CC $ac_cv_prog_cc_c89"
6211     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6212 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6213 esac
6214
6215
6216 ac_ext=c
6217 ac_cpp='$CPP $CPPFLAGS'
6218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6221
6222 ac_ext=cpp
6223 ac_cpp='$CXXCPP $CPPFLAGS'
6224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6227 if test -z "$CXX"; then
6228   if test -n "$CCC"; then
6229     CXX=$CCC
6230   else
6231     if test -n "$ac_tool_prefix"; then
6232   for ac_prog in g++
6233   do
6234     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6238 if test "${ac_cv_prog_CXX+set}" = set; then
6239   echo $ECHO_N "(cached) $ECHO_C" >&6
6240 else
6241   if test -n "$CXX"; then
6242   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6243 else
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6246 do
6247   IFS=$as_save_IFS
6248   test -z "$as_dir" && as_dir=.
6249   for ac_exec_ext in '' $ac_executable_extensions; do
6250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6251     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253     break 2
6254   fi
6255 done
6256 done
6257 IFS=$as_save_IFS
6258
6259 fi
6260 fi
6261 CXX=$ac_cv_prog_CXX
6262 if test -n "$CXX"; then
6263   { echo "$as_me:$LINENO: result: $CXX" >&5
6264 echo "${ECHO_T}$CXX" >&6; }
6265 else
6266   { echo "$as_me:$LINENO: result: no" >&5
6267 echo "${ECHO_T}no" >&6; }
6268 fi
6269
6270
6271     test -n "$CXX" && break
6272   done
6273 fi
6274 if test -z "$CXX"; then
6275   ac_ct_CXX=$CXX
6276   for ac_prog in g++
6277 do
6278   # Extract the first word of "$ac_prog", so it can be a program name with args.
6279 set dummy $ac_prog; ac_word=$2
6280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6282 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6283   echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285   if test -n "$ac_ct_CXX"; then
6286   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6290 do
6291   IFS=$as_save_IFS
6292   test -z "$as_dir" && as_dir=.
6293   for ac_exec_ext in '' $ac_executable_extensions; do
6294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6295     ac_cv_prog_ac_ct_CXX="$ac_prog"
6296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297     break 2
6298   fi
6299 done
6300 done
6301 IFS=$as_save_IFS
6302
6303 fi
6304 fi
6305 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6306 if test -n "$ac_ct_CXX"; then
6307   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6308 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6309 else
6310   { echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6; }
6312 fi
6313
6314
6315   test -n "$ac_ct_CXX" && break
6316 done
6317
6318   if test "x$ac_ct_CXX" = x; then
6319     CXX="g++"
6320   else
6321     case $cross_compiling:$ac_tool_warned in
6322 yes:)
6323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6324 whose name does not start with the host triplet.  If you think this
6325 configuration is useful to you, please write to autoconf@gnu.org." >&5
6326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6327 whose name does not start with the host triplet.  If you think this
6328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6329 ac_tool_warned=yes ;;
6330 esac
6331     CXX=$ac_ct_CXX
6332   fi
6333 fi
6334
6335   fi
6336 fi
6337 # Provide some information about the compiler.
6338 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6339 ac_compiler=`set X $ac_compile; echo $2`
6340 { (ac_try="$ac_compiler --version >&5"
6341 case "(($ac_try" in
6342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343   *) ac_try_echo=$ac_try;;
6344 esac
6345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346   (eval "$ac_compiler --version >&5") 2>&5
6347   ac_status=$?
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); }
6350 { (ac_try="$ac_compiler -v >&5"
6351 case "(($ac_try" in
6352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353   *) ac_try_echo=$ac_try;;
6354 esac
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356   (eval "$ac_compiler -v >&5") 2>&5
6357   ac_status=$?
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); }
6360 { (ac_try="$ac_compiler -V >&5"
6361 case "(($ac_try" in
6362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6363   *) ac_try_echo=$ac_try;;
6364 esac
6365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6366   (eval "$ac_compiler -V >&5") 2>&5
6367   ac_status=$?
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); }
6370
6371 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6372 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6373 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6374   echo $ECHO_N "(cached) $ECHO_C" >&6
6375 else
6376   cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h.  */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h.  */
6382
6383 int
6384 main ()
6385 {
6386 #ifndef __GNUC__
6387        choke me
6388 #endif
6389
6390   ;
6391   return 0;
6392 }
6393 _ACEOF
6394 rm -f conftest.$ac_objext
6395 if { (ac_try="$ac_compile"
6396 case "(($ac_try" in
6397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398   *) ac_try_echo=$ac_try;;
6399 esac
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401   (eval "$ac_compile") 2>conftest.er1
6402   ac_status=$?
6403   grep -v '^ *+' conftest.er1 >conftest.err
6404   rm -f conftest.er1
6405   cat conftest.err >&5
6406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407   (exit $ac_status); } &&
6408          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6409   { (case "(($ac_try" in
6410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411   *) ac_try_echo=$ac_try;;
6412 esac
6413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414   (eval "$ac_try") 2>&5
6415   ac_status=$?
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); }; } &&
6418          { ac_try='test -s conftest.$ac_objext'
6419   { (case "(($ac_try" in
6420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421   *) ac_try_echo=$ac_try;;
6422 esac
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424   (eval "$ac_try") 2>&5
6425   ac_status=$?
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); }; }; then
6428   ac_compiler_gnu=yes
6429 else
6430   echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6432
6433         ac_compiler_gnu=no
6434 fi
6435
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6438
6439 fi
6440 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6441 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6442 GXX=`test $ac_compiler_gnu = yes && echo yes`
6443 ac_test_CXXFLAGS=${CXXFLAGS+set}
6444 ac_save_CXXFLAGS=$CXXFLAGS
6445 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6446 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6447 if test "${ac_cv_prog_cxx_g+set}" = set; then
6448   echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6451    ac_cxx_werror_flag=yes
6452    ac_cv_prog_cxx_g=no
6453    CXXFLAGS="-g"
6454    cat >conftest.$ac_ext <<_ACEOF
6455 /* confdefs.h.  */
6456 _ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h.  */
6460
6461 int
6462 main ()
6463 {
6464
6465   ;
6466   return 0;
6467 }
6468 _ACEOF
6469 rm -f conftest.$ac_objext
6470 if { (ac_try="$ac_compile"
6471 case "(($ac_try" in
6472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473   *) ac_try_echo=$ac_try;;
6474 esac
6475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476   (eval "$ac_compile") 2>conftest.er1
6477   ac_status=$?
6478   grep -v '^ *+' conftest.er1 >conftest.err
6479   rm -f conftest.er1
6480   cat conftest.err >&5
6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); } &&
6483          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6484   { (case "(($ac_try" in
6485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486   *) ac_try_echo=$ac_try;;
6487 esac
6488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489   (eval "$ac_try") 2>&5
6490   ac_status=$?
6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492   (exit $ac_status); }; } &&
6493          { ac_try='test -s conftest.$ac_objext'
6494   { (case "(($ac_try" in
6495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496   *) ac_try_echo=$ac_try;;
6497 esac
6498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499   (eval "$ac_try") 2>&5
6500   ac_status=$?
6501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502   (exit $ac_status); }; }; then
6503   ac_cv_prog_cxx_g=yes
6504 else
6505   echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6507
6508         CXXFLAGS=""
6509       cat >conftest.$ac_ext <<_ACEOF
6510 /* confdefs.h.  */
6511 _ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h.  */
6515
6516 int
6517 main ()
6518 {
6519
6520   ;
6521   return 0;
6522 }
6523 _ACEOF
6524 rm -f conftest.$ac_objext
6525 if { (ac_try="$ac_compile"
6526 case "(($ac_try" in
6527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528   *) ac_try_echo=$ac_try;;
6529 esac
6530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531   (eval "$ac_compile") 2>conftest.er1
6532   ac_status=$?
6533   grep -v '^ *+' conftest.er1 >conftest.err
6534   rm -f conftest.er1
6535   cat conftest.err >&5
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); } &&
6538          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6539   { (case "(($ac_try" in
6540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541   *) ac_try_echo=$ac_try;;
6542 esac
6543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544   (eval "$ac_try") 2>&5
6545   ac_status=$?
6546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547   (exit $ac_status); }; } &&
6548          { ac_try='test -s conftest.$ac_objext'
6549   { (case "(($ac_try" in
6550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551   *) ac_try_echo=$ac_try;;
6552 esac
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554   (eval "$ac_try") 2>&5
6555   ac_status=$?
6556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557   (exit $ac_status); }; }; then
6558   :
6559 else
6560   echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6562
6563         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6564          CXXFLAGS="-g"
6565          cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h.  */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h.  */
6571
6572 int
6573 main ()
6574 {
6575
6576   ;
6577   return 0;
6578 }
6579 _ACEOF
6580 rm -f conftest.$ac_objext
6581 if { (ac_try="$ac_compile"
6582 case "(($ac_try" in
6583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584   *) ac_try_echo=$ac_try;;
6585 esac
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587   (eval "$ac_compile") 2>conftest.er1
6588   ac_status=$?
6589   grep -v '^ *+' conftest.er1 >conftest.err
6590   rm -f conftest.er1
6591   cat conftest.err >&5
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); } &&
6594          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6595   { (case "(($ac_try" in
6596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597   *) ac_try_echo=$ac_try;;
6598 esac
6599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6600   (eval "$ac_try") 2>&5
6601   ac_status=$?
6602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603   (exit $ac_status); }; } &&
6604          { ac_try='test -s conftest.$ac_objext'
6605   { (case "(($ac_try" in
6606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607   *) ac_try_echo=$ac_try;;
6608 esac
6609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610   (eval "$ac_try") 2>&5
6611   ac_status=$?
6612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613   (exit $ac_status); }; }; then
6614   ac_cv_prog_cxx_g=yes
6615 else
6616   echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6618
6619
6620 fi
6621
6622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623 fi
6624
6625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626 fi
6627
6628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6630 fi
6631 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6632 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6633 if test "$ac_test_CXXFLAGS" = set; then
6634   CXXFLAGS=$ac_save_CXXFLAGS
6635 elif test $ac_cv_prog_cxx_g = yes; then
6636   if test "$GXX" = yes; then
6637     CXXFLAGS="-g -O2"
6638   else
6639     CXXFLAGS="-g"
6640   fi
6641 else
6642   if test "$GXX" = yes; then
6643     CXXFLAGS="-O2"
6644   else
6645     CXXFLAGS=
6646   fi
6647 fi
6648 ac_ext=c
6649 ac_cpp='$CPP $CPPFLAGS'
6650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6653
6654
6655 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6656 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6657 if test "${lt_cv_path_NM+set}" = set; then
6658   echo $ECHO_N "(cached) $ECHO_C" >&6
6659 else
6660   if test -n "$NM"; then
6661   # Let the user override the test.
6662   lt_cv_path_NM="$NM"
6663 else
6664   lt_nm_to_check="${ac_tool_prefix}nm"
6665   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6666     lt_nm_to_check="$lt_nm_to_check nm"
6667   fi
6668   for lt_tmp_nm in $lt_nm_to_check; do
6669     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6670     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6671       IFS="$lt_save_ifs"
6672       test -z "$ac_dir" && ac_dir=.
6673       tmp_nm="$ac_dir/$lt_tmp_nm"
6674       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6675         # Check to see if the nm accepts a BSD-compat flag.
6676         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6677         #   nm: unknown option "B" ignored
6678         # Tru64's nm complains that /dev/null is an invalid object file
6679         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6680         */dev/null* | *'Invalid file or object type'*)
6681           lt_cv_path_NM="$tmp_nm -B"
6682           break
6683           ;;
6684         *)
6685           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6686           */dev/null*)
6687             lt_cv_path_NM="$tmp_nm -p"
6688             break
6689             ;;
6690           *)
6691             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6692             continue # so that we can try to find one that supports BSD flags
6693             ;;
6694           esac
6695           ;;
6696         esac
6697       fi
6698     done
6699     IFS="$lt_save_ifs"
6700   done
6701   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6702 fi
6703 fi
6704 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6705 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6706 NM="$lt_cv_path_NM"
6707
6708
6709
6710 { echo "$as_me:$LINENO: checking for GNU make" >&5
6711 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6712 if test "${llvm_cv_gnu_make_command+set}" = set; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715   llvm_cv_gnu_make_command=''
6716  for a in "$MAKE" make gmake gnumake ; do
6717   if test -z "$a" ; then continue ; fi ;
6718   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6719   then
6720    llvm_cv_gnu_make_command=$a ;
6721    break;
6722   fi
6723  done
6724 fi
6725 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6726 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6727  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6728    ifGNUmake='' ;
6729  else
6730    ifGNUmake='#' ;
6731    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6732 echo "${ECHO_T}\"Not found\"" >&6; };
6733  fi
6734
6735
6736 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6737 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6738 LN_S=$as_ln_s
6739 if test "$LN_S" = "ln -s"; then
6740   { echo "$as_me:$LINENO: result: yes" >&5
6741 echo "${ECHO_T}yes" >&6; }
6742 else
6743   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6744 echo "${ECHO_T}no, using $LN_S" >&6; }
6745 fi
6746
6747 # Extract the first word of "cmp", so it can be a program name with args.
6748 set dummy cmp; ac_word=$2
6749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751 if test "${ac_cv_path_CMP+set}" = set; then
6752   echo $ECHO_N "(cached) $ECHO_C" >&6
6753 else
6754   case $CMP in
6755   [\\/]* | ?:[\\/]*)
6756   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6757   ;;
6758   *)
6759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6761 do
6762   IFS=$as_save_IFS
6763   test -z "$as_dir" && as_dir=.
6764   for ac_exec_ext in '' $ac_executable_extensions; do
6765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6766     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768     break 2
6769   fi
6770 done
6771 done
6772 IFS=$as_save_IFS
6773
6774   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6775   ;;
6776 esac
6777 fi
6778 CMP=$ac_cv_path_CMP
6779 if test -n "$CMP"; then
6780   { echo "$as_me:$LINENO: result: $CMP" >&5
6781 echo "${ECHO_T}$CMP" >&6; }
6782 else
6783   { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6785 fi
6786
6787
6788 # Extract the first word of "cp", so it can be a program name with args.
6789 set dummy cp; ac_word=$2
6790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6792 if test "${ac_cv_path_CP+set}" = set; then
6793   echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795   case $CP in
6796   [\\/]* | ?:[\\/]*)
6797   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6798   ;;
6799   *)
6800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803   IFS=$as_save_IFS
6804   test -z "$as_dir" && as_dir=.
6805   for ac_exec_ext in '' $ac_executable_extensions; do
6806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6807     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809     break 2
6810   fi
6811 done
6812 done
6813 IFS=$as_save_IFS
6814
6815   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6816   ;;
6817 esac
6818 fi
6819 CP=$ac_cv_path_CP
6820 if test -n "$CP"; then
6821   { echo "$as_me:$LINENO: result: $CP" >&5
6822 echo "${ECHO_T}$CP" >&6; }
6823 else
6824   { echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6; }
6826 fi
6827
6828
6829 # Extract the first word of "date", so it can be a program name with args.
6830 set dummy date; ac_word=$2
6831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833 if test "${ac_cv_path_DATE+set}" = set; then
6834   echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836   case $DATE in
6837   [\\/]* | ?:[\\/]*)
6838   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6839   ;;
6840   *)
6841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844   IFS=$as_save_IFS
6845   test -z "$as_dir" && as_dir=.
6846   for ac_exec_ext in '' $ac_executable_extensions; do
6847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6848     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6850     break 2
6851   fi
6852 done
6853 done
6854 IFS=$as_save_IFS
6855
6856   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6857   ;;
6858 esac
6859 fi
6860 DATE=$ac_cv_path_DATE
6861 if test -n "$DATE"; then
6862   { echo "$as_me:$LINENO: result: $DATE" >&5
6863 echo "${ECHO_T}$DATE" >&6; }
6864 else
6865   { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6867 fi
6868
6869
6870 # Extract the first word of "find", so it can be a program name with args.
6871 set dummy find; ac_word=$2
6872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874 if test "${ac_cv_path_FIND+set}" = set; then
6875   echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877   case $FIND in
6878   [\\/]* | ?:[\\/]*)
6879   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6880   ;;
6881   *)
6882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6884 do
6885   IFS=$as_save_IFS
6886   test -z "$as_dir" && as_dir=.
6887   for ac_exec_ext in '' $ac_executable_extensions; do
6888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6889     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6891     break 2
6892   fi
6893 done
6894 done
6895 IFS=$as_save_IFS
6896
6897   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6898   ;;
6899 esac
6900 fi
6901 FIND=$ac_cv_path_FIND
6902 if test -n "$FIND"; then
6903   { echo "$as_me:$LINENO: result: $FIND" >&5
6904 echo "${ECHO_T}$FIND" >&6; }
6905 else
6906   { echo "$as_me:$LINENO: result: no" >&5
6907 echo "${ECHO_T}no" >&6; }
6908 fi
6909
6910
6911 # Extract the first word of "grep", so it can be a program name with args.
6912 set dummy grep; ac_word=$2
6913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915 if test "${ac_cv_path_GREP+set}" = set; then
6916   echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918   case $GREP in
6919   [\\/]* | ?:[\\/]*)
6920   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6921   ;;
6922   *)
6923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928   for ac_exec_ext in '' $ac_executable_extensions; do
6929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6930     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932     break 2
6933   fi
6934 done
6935 done
6936 IFS=$as_save_IFS
6937
6938   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6939   ;;
6940 esac
6941 fi
6942 GREP=$ac_cv_path_GREP
6943 if test -n "$GREP"; then
6944   { echo "$as_me:$LINENO: result: $GREP" >&5
6945 echo "${ECHO_T}$GREP" >&6; }
6946 else
6947   { echo "$as_me:$LINENO: result: no" >&5
6948 echo "${ECHO_T}no" >&6; }
6949 fi
6950
6951
6952 # Extract the first word of "mkdir", so it can be a program name with args.
6953 set dummy mkdir; ac_word=$2
6954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6956 if test "${ac_cv_path_MKDIR+set}" = set; then
6957   echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959   case $MKDIR in
6960   [\\/]* | ?:[\\/]*)
6961   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6962   ;;
6963   *)
6964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6966 do
6967   IFS=$as_save_IFS
6968   test -z "$as_dir" && as_dir=.
6969   for ac_exec_ext in '' $ac_executable_extensions; do
6970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6971     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973     break 2
6974   fi
6975 done
6976 done
6977 IFS=$as_save_IFS
6978
6979   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6980   ;;
6981 esac
6982 fi
6983 MKDIR=$ac_cv_path_MKDIR
6984 if test -n "$MKDIR"; then
6985   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6986 echo "${ECHO_T}$MKDIR" >&6; }
6987 else
6988   { echo "$as_me:$LINENO: result: no" >&5
6989 echo "${ECHO_T}no" >&6; }
6990 fi
6991
6992
6993 # Extract the first word of "mv", so it can be a program name with args.
6994 set dummy mv; ac_word=$2
6995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997 if test "${ac_cv_path_MV+set}" = set; then
6998   echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000   case $MV in
7001   [\\/]* | ?:[\\/]*)
7002   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7003   ;;
7004   *)
7005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7007 do
7008   IFS=$as_save_IFS
7009   test -z "$as_dir" && as_dir=.
7010   for ac_exec_ext in '' $ac_executable_extensions; do
7011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7012     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014     break 2
7015   fi
7016 done
7017 done
7018 IFS=$as_save_IFS
7019
7020   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7021   ;;
7022 esac
7023 fi
7024 MV=$ac_cv_path_MV
7025 if test -n "$MV"; then
7026   { echo "$as_me:$LINENO: result: $MV" >&5
7027 echo "${ECHO_T}$MV" >&6; }
7028 else
7029   { echo "$as_me:$LINENO: result: no" >&5
7030 echo "${ECHO_T}no" >&6; }
7031 fi
7032
7033
7034 if test -n "$ac_tool_prefix"; then
7035   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7036 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7039 if test "${ac_cv_prog_RANLIB+set}" = set; then
7040   echo $ECHO_N "(cached) $ECHO_C" >&6
7041 else
7042   if test -n "$RANLIB"; then
7043   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7044 else
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 for as_dir in $PATH
7047 do
7048   IFS=$as_save_IFS
7049   test -z "$as_dir" && as_dir=.
7050   for ac_exec_ext in '' $ac_executable_extensions; do
7051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7052     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054     break 2
7055   fi
7056 done
7057 done
7058 IFS=$as_save_IFS
7059
7060 fi
7061 fi
7062 RANLIB=$ac_cv_prog_RANLIB
7063 if test -n "$RANLIB"; then
7064   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7065 echo "${ECHO_T}$RANLIB" >&6; }
7066 else
7067   { echo "$as_me:$LINENO: result: no" >&5
7068 echo "${ECHO_T}no" >&6; }
7069 fi
7070
7071
7072 fi
7073 if test -z "$ac_cv_prog_RANLIB"; then
7074   ac_ct_RANLIB=$RANLIB
7075   # Extract the first word of "ranlib", so it can be a program name with args.
7076 set dummy ranlib; ac_word=$2
7077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7079 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7080   echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082   if test -n "$ac_ct_RANLIB"; then
7083   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7084 else
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7087 do
7088   IFS=$as_save_IFS
7089   test -z "$as_dir" && as_dir=.
7090   for ac_exec_ext in '' $ac_executable_extensions; do
7091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7092     ac_cv_prog_ac_ct_RANLIB="ranlib"
7093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7094     break 2
7095   fi
7096 done
7097 done
7098 IFS=$as_save_IFS
7099
7100 fi
7101 fi
7102 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7103 if test -n "$ac_ct_RANLIB"; then
7104   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7105 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7106 else
7107   { echo "$as_me:$LINENO: result: no" >&5
7108 echo "${ECHO_T}no" >&6; }
7109 fi
7110
7111   if test "x$ac_ct_RANLIB" = x; then
7112     RANLIB=":"
7113   else
7114     case $cross_compiling:$ac_tool_warned in
7115 yes:)
7116 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7117 whose name does not start with the host triplet.  If you think this
7118 configuration is useful to you, please write to autoconf@gnu.org." >&5
7119 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7120 whose name does not start with the host triplet.  If you think this
7121 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7122 ac_tool_warned=yes ;;
7123 esac
7124     RANLIB=$ac_ct_RANLIB
7125   fi
7126 else
7127   RANLIB="$ac_cv_prog_RANLIB"
7128 fi
7129
7130 # Extract the first word of "rm", so it can be a program name with args.
7131 set dummy rm; ac_word=$2
7132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134 if test "${ac_cv_path_RM+set}" = set; then
7135   echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137   case $RM in
7138   [\\/]* | ?:[\\/]*)
7139   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7140   ;;
7141   *)
7142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145   IFS=$as_save_IFS
7146   test -z "$as_dir" && as_dir=.
7147   for ac_exec_ext in '' $ac_executable_extensions; do
7148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7149     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151     break 2
7152   fi
7153 done
7154 done
7155 IFS=$as_save_IFS
7156
7157   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7158   ;;
7159 esac
7160 fi
7161 RM=$ac_cv_path_RM
7162 if test -n "$RM"; then
7163   { echo "$as_me:$LINENO: result: $RM" >&5
7164 echo "${ECHO_T}$RM" >&6; }
7165 else
7166   { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7168 fi
7169
7170
7171 # Extract the first word of "sed", so it can be a program name with args.
7172 set dummy sed; ac_word=$2
7173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7175 if test "${ac_cv_path_SED+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   case $SED in
7179   [\\/]* | ?:[\\/]*)
7180   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7181   ;;
7182   *)
7183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7185 do
7186   IFS=$as_save_IFS
7187   test -z "$as_dir" && as_dir=.
7188   for ac_exec_ext in '' $ac_executable_extensions; do
7189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7190     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192     break 2
7193   fi
7194 done
7195 done
7196 IFS=$as_save_IFS
7197
7198   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7199   ;;
7200 esac
7201 fi
7202 SED=$ac_cv_path_SED
7203 if test -n "$SED"; then
7204   { echo "$as_me:$LINENO: result: $SED" >&5
7205 echo "${ECHO_T}$SED" >&6; }
7206 else
7207   { echo "$as_me:$LINENO: result: no" >&5
7208 echo "${ECHO_T}no" >&6; }
7209 fi
7210
7211
7212 # Extract the first word of "tar", so it can be a program name with args.
7213 set dummy tar; ac_word=$2
7214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7216 if test "${ac_cv_path_TAR+set}" = set; then
7217   echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219   case $TAR in
7220   [\\/]* | ?:[\\/]*)
7221   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7222   ;;
7223   *)
7224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7226 do
7227   IFS=$as_save_IFS
7228   test -z "$as_dir" && as_dir=.
7229   for ac_exec_ext in '' $ac_executable_extensions; do
7230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7231     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233     break 2
7234   fi
7235 done
7236 done
7237 IFS=$as_save_IFS
7238
7239   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7240   ;;
7241 esac
7242 fi
7243 TAR=$ac_cv_path_TAR
7244 if test -n "$TAR"; then
7245   { echo "$as_me:$LINENO: result: $TAR" >&5
7246 echo "${ECHO_T}$TAR" >&6; }
7247 else
7248   { echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6; }
7250 fi
7251
7252
7253 # Extract the first word of "pwd", so it can be a program name with args.
7254 set dummy pwd; 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_BINPWD+set}" = set; then
7258   echo $ECHO_N "(cached) $ECHO_C" >&6
7259 else
7260   case $BINPWD in
7261   [\\/]* | ?:[\\/]*)
7262   ac_cv_path_BINPWD="$BINPWD" # 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_BINPWD="$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_BINPWD" && ac_cv_path_BINPWD="pwd"
7281   ;;
7282 esac
7283 fi
7284 BINPWD=$ac_cv_path_BINPWD
7285 if test -n "$BINPWD"; then
7286   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7287 echo "${ECHO_T}$BINPWD" >&6; }
7288 else
7289   { echo "$as_me:$LINENO: result: no" >&5
7290 echo "${ECHO_T}no" >&6; }
7291 fi
7292
7293
7294
7295 # Extract the first word of "Graphviz", so it can be a program name with args.
7296 set dummy Graphviz; ac_word=$2
7297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7300   echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302   case $GRAPHVIZ in
7303   [\\/]* | ?:[\\/]*)
7304   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7305   ;;
7306   *)
7307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 for as_dir in $PATH
7309 do
7310   IFS=$as_save_IFS
7311   test -z "$as_dir" && as_dir=.
7312   for ac_exec_ext in '' $ac_executable_extensions; do
7313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7314     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316     break 2
7317   fi
7318 done
7319 done
7320 IFS=$as_save_IFS
7321
7322   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7323   ;;
7324 esac
7325 fi
7326 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7327 if test -n "$GRAPHVIZ"; then
7328   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7329 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7330 else
7331   { echo "$as_me:$LINENO: result: no" >&5
7332 echo "${ECHO_T}no" >&6; }
7333 fi
7334
7335
7336 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7337
7338 cat >>confdefs.h <<\_ACEOF
7339 #define HAVE_GRAPHVIZ 1
7340 _ACEOF
7341
7342     if test "$llvm_cv_os_type" = "MingW" ; then
7343     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7344   fi
7345
7346 cat >>confdefs.h <<_ACEOF
7347 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7348 _ACEOF
7349
7350 fi
7351 # Extract the first word of "dot", so it can be a program name with args.
7352 set dummy dot; ac_word=$2
7353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7355 if test "${ac_cv_path_DOT+set}" = set; then
7356   echo $ECHO_N "(cached) $ECHO_C" >&6
7357 else
7358   case $DOT in
7359   [\\/]* | ?:[\\/]*)
7360   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7361   ;;
7362   *)
7363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7365 do
7366   IFS=$as_save_IFS
7367   test -z "$as_dir" && as_dir=.
7368   for ac_exec_ext in '' $ac_executable_extensions; do
7369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7370     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372     break 2
7373   fi
7374 done
7375 done
7376 IFS=$as_save_IFS
7377
7378   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7379   ;;
7380 esac
7381 fi
7382 DOT=$ac_cv_path_DOT
7383 if test -n "$DOT"; then
7384   { echo "$as_me:$LINENO: result: $DOT" >&5
7385 echo "${ECHO_T}$DOT" >&6; }
7386 else
7387   { echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6; }
7389 fi
7390
7391
7392 if test "$DOT" != "echo dot" ; then
7393
7394 cat >>confdefs.h <<\_ACEOF
7395 #define HAVE_DOT 1
7396 _ACEOF
7397
7398     if test "$llvm_cv_os_type" = "MingW" ; then
7399     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7400   fi
7401
7402 cat >>confdefs.h <<_ACEOF
7403 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7404 _ACEOF
7405
7406 fi
7407 # Extract the first word of "fdp", so it can be a program name with args.
7408 set dummy fdp; ac_word=$2
7409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7411 if test "${ac_cv_path_FDP+set}" = set; then
7412   echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414   case $FDP in
7415   [\\/]* | ?:[\\/]*)
7416   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7417   ;;
7418   *)
7419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7421 do
7422   IFS=$as_save_IFS
7423   test -z "$as_dir" && as_dir=.
7424   for ac_exec_ext in '' $ac_executable_extensions; do
7425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7426     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7428     break 2
7429   fi
7430 done
7431 done
7432 IFS=$as_save_IFS
7433
7434   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7435   ;;
7436 esac
7437 fi
7438 FDP=$ac_cv_path_FDP
7439 if test -n "$FDP"; then
7440   { echo "$as_me:$LINENO: result: $FDP" >&5
7441 echo "${ECHO_T}$FDP" >&6; }
7442 else
7443   { echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6; }
7445 fi
7446
7447
7448 if test "$FDP" != "echo fdp" ; then
7449
7450 cat >>confdefs.h <<\_ACEOF
7451 #define HAVE_FDP 1
7452 _ACEOF
7453
7454     if test "$llvm_cv_os_type" = "MingW" ; then
7455     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7456   fi
7457
7458 cat >>confdefs.h <<_ACEOF
7459 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7460 _ACEOF
7461
7462 fi
7463 # Extract the first word of "neato", so it can be a program name with args.
7464 set dummy neato; ac_word=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_NEATO+set}" = set; then
7468   echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470   case $NEATO in
7471   [\\/]* | ?:[\\/]*)
7472   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7473   ;;
7474   *)
7475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478   IFS=$as_save_IFS
7479   test -z "$as_dir" && as_dir=.
7480   for ac_exec_ext in '' $ac_executable_extensions; do
7481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484     break 2
7485   fi
7486 done
7487 done
7488 IFS=$as_save_IFS
7489
7490   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7491   ;;
7492 esac
7493 fi
7494 NEATO=$ac_cv_path_NEATO
7495 if test -n "$NEATO"; then
7496   { echo "$as_me:$LINENO: result: $NEATO" >&5
7497 echo "${ECHO_T}$NEATO" >&6; }
7498 else
7499   { echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6; }
7501 fi
7502
7503
7504 if test "$NEATO" != "echo neato" ; then
7505
7506 cat >>confdefs.h <<\_ACEOF
7507 #define HAVE_NEATO 1
7508 _ACEOF
7509
7510     if test "$llvm_cv_os_type" = "MingW" ; then
7511     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7512   fi
7513
7514 cat >>confdefs.h <<_ACEOF
7515 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7516 _ACEOF
7517
7518 fi
7519 # Extract the first word of "twopi", so it can be a program name with args.
7520 set dummy twopi; ac_word=$2
7521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7523 if test "${ac_cv_path_TWOPI+set}" = set; then
7524   echo $ECHO_N "(cached) $ECHO_C" >&6
7525 else
7526   case $TWOPI in
7527   [\\/]* | ?:[\\/]*)
7528   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7529   ;;
7530   *)
7531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH
7533 do
7534   IFS=$as_save_IFS
7535   test -z "$as_dir" && as_dir=.
7536   for ac_exec_ext in '' $ac_executable_extensions; do
7537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7538     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7540     break 2
7541   fi
7542 done
7543 done
7544 IFS=$as_save_IFS
7545
7546   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7547   ;;
7548 esac
7549 fi
7550 TWOPI=$ac_cv_path_TWOPI
7551 if test -n "$TWOPI"; then
7552   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7553 echo "${ECHO_T}$TWOPI" >&6; }
7554 else
7555   { echo "$as_me:$LINENO: result: no" >&5
7556 echo "${ECHO_T}no" >&6; }
7557 fi
7558
7559
7560 if test "$TWOPI" != "echo twopi" ; then
7561
7562 cat >>confdefs.h <<\_ACEOF
7563 #define HAVE_TWOPI 1
7564 _ACEOF
7565
7566     if test "$llvm_cv_os_type" = "MingW" ; then
7567     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7568   fi
7569
7570 cat >>confdefs.h <<_ACEOF
7571 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7572 _ACEOF
7573
7574 fi
7575 # Extract the first word of "circo", so it can be a program name with args.
7576 set dummy circo; ac_word=$2
7577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579 if test "${ac_cv_path_CIRCO+set}" = set; then
7580   echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582   case $CIRCO in
7583   [\\/]* | ?:[\\/]*)
7584   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7585   ;;
7586   *)
7587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590   IFS=$as_save_IFS
7591   test -z "$as_dir" && as_dir=.
7592   for ac_exec_ext in '' $ac_executable_extensions; do
7593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7594     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596     break 2
7597   fi
7598 done
7599 done
7600 IFS=$as_save_IFS
7601
7602   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7603   ;;
7604 esac
7605 fi
7606 CIRCO=$ac_cv_path_CIRCO
7607 if test -n "$CIRCO"; then
7608   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7609 echo "${ECHO_T}$CIRCO" >&6; }
7610 else
7611   { echo "$as_me:$LINENO: result: no" >&5
7612 echo "${ECHO_T}no" >&6; }
7613 fi
7614
7615
7616 if test "$CIRCO" != "echo circo" ; then
7617
7618 cat >>confdefs.h <<\_ACEOF
7619 #define HAVE_CIRCO 1
7620 _ACEOF
7621
7622     if test "$llvm_cv_os_type" = "MingW" ; then
7623     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7624   fi
7625
7626 cat >>confdefs.h <<_ACEOF
7627 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7628 _ACEOF
7629
7630 fi
7631 for ac_prog in gv gsview32
7632 do
7633   # Extract the first word of "$ac_prog", so it can be a program name with args.
7634 set dummy $ac_prog; ac_word=$2
7635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637 if test "${ac_cv_path_GV+set}" = set; then
7638   echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640   case $GV in
7641   [\\/]* | ?:[\\/]*)
7642   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7643   ;;
7644   *)
7645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7647 do
7648   IFS=$as_save_IFS
7649   test -z "$as_dir" && as_dir=.
7650   for ac_exec_ext in '' $ac_executable_extensions; do
7651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7652     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654     break 2
7655   fi
7656 done
7657 done
7658 IFS=$as_save_IFS
7659
7660   ;;
7661 esac
7662 fi
7663 GV=$ac_cv_path_GV
7664 if test -n "$GV"; then
7665   { echo "$as_me:$LINENO: result: $GV" >&5
7666 echo "${ECHO_T}$GV" >&6; }
7667 else
7668   { echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6; }
7670 fi
7671
7672
7673   test -n "$GV" && break
7674 done
7675 test -n "$GV" || GV="echo gv"
7676
7677 if test "$GV" != "echo gv" ; then
7678
7679 cat >>confdefs.h <<\_ACEOF
7680 #define HAVE_GV 1
7681 _ACEOF
7682
7683     if test "$llvm_cv_os_type" = "MingW" ; then
7684     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7685   fi
7686
7687 cat >>confdefs.h <<_ACEOF
7688 #define LLVM_PATH_GV "$GV${EXEEXT}"
7689 _ACEOF
7690
7691 fi
7692 # Extract the first word of "dotty", so it can be a program name with args.
7693 set dummy dotty; ac_word=$2
7694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7696 if test "${ac_cv_path_DOTTY+set}" = set; then
7697   echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699   case $DOTTY in
7700   [\\/]* | ?:[\\/]*)
7701   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7702   ;;
7703   *)
7704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7706 do
7707   IFS=$as_save_IFS
7708   test -z "$as_dir" && as_dir=.
7709   for ac_exec_ext in '' $ac_executable_extensions; do
7710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7711     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7713     break 2
7714   fi
7715 done
7716 done
7717 IFS=$as_save_IFS
7718
7719   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7720   ;;
7721 esac
7722 fi
7723 DOTTY=$ac_cv_path_DOTTY
7724 if test -n "$DOTTY"; then
7725   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7726 echo "${ECHO_T}$DOTTY" >&6; }
7727 else
7728   { echo "$as_me:$LINENO: result: no" >&5
7729 echo "${ECHO_T}no" >&6; }
7730 fi
7731
7732
7733 if test "$DOTTY" != "echo dotty" ; then
7734
7735 cat >>confdefs.h <<\_ACEOF
7736 #define HAVE_DOTTY 1
7737 _ACEOF
7738
7739     if test "$llvm_cv_os_type" = "MingW" ; then
7740     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7741   fi
7742
7743 cat >>confdefs.h <<_ACEOF
7744 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7745 _ACEOF
7746
7747 fi
7748
7749
7750 # Extract the first word of "perl", so it can be a program name with args.
7751 set dummy perl; ac_word=$2
7752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7754 if test "${ac_cv_path_PERL+set}" = set; then
7755   echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757   case $PERL in
7758   [\\/]* | ?:[\\/]*)
7759   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7760   ;;
7761   *)
7762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765   IFS=$as_save_IFS
7766   test -z "$as_dir" && as_dir=.
7767   for ac_exec_ext in '' $ac_executable_extensions; do
7768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7769     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771     break 2
7772   fi
7773 done
7774 done
7775 IFS=$as_save_IFS
7776
7777   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7778   ;;
7779 esac
7780 fi
7781 PERL=$ac_cv_path_PERL
7782 if test -n "$PERL"; then
7783   { echo "$as_me:$LINENO: result: $PERL" >&5
7784 echo "${ECHO_T}$PERL" >&6; }
7785 else
7786   { echo "$as_me:$LINENO: result: no" >&5
7787 echo "${ECHO_T}no" >&6; }
7788 fi
7789
7790
7791 if test "$PERL" != "none"; then
7792   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7793 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7794   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7795     { echo "$as_me:$LINENO: result: yes" >&5
7796 echo "${ECHO_T}yes" >&6; }
7797   else
7798     PERL=none
7799     { echo "$as_me:$LINENO: result: not found" >&5
7800 echo "${ECHO_T}not found" >&6; }
7801   fi
7802 fi
7803
7804
7805 if test x"$PERL" = xnone; then
7806    HAVE_PERL=0
7807
7808    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7809 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7810    { (exit 1); exit 1; }; }
7811 else
7812    HAVE_PERL=1
7813
7814 fi
7815
7816 # Find a good install program.  We prefer a C program (faster),
7817 # so one script is as good as another.  But avoid the broken or
7818 # incompatible versions:
7819 # SysV /etc/install, /usr/sbin/install
7820 # SunOS /usr/etc/install
7821 # IRIX /sbin/install
7822 # AIX /bin/install
7823 # AmigaOS /C/install, which installs bootblocks on floppy discs
7824 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7825 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7826 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7827 # OS/2's system install, which has a completely different semantic
7828 # ./install, which can be erroneously created by make from ./install.sh.
7829 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7830 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7831 if test -z "$INSTALL"; then
7832 if test "${ac_cv_path_install+set}" = set; then
7833   echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
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   # Account for people who put trailing slashes in PATH elements.
7841 case $as_dir/ in
7842   ./ | .// | /cC/* | \
7843   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7844   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7845   /usr/ucb/* ) ;;
7846   *)
7847     # OSF1 and SCO ODT 3.0 have their own names for install.
7848     # Don't use installbsd from OSF since it installs stuff as root
7849     # by default.
7850     for ac_prog in ginstall scoinst install; do
7851       for ac_exec_ext in '' $ac_executable_extensions; do
7852         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7853           if test $ac_prog = install &&
7854             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7855             # AIX install.  It has an incompatible calling convention.
7856             :
7857           elif test $ac_prog = install &&
7858             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7859             # program-specific install script used by HP pwplus--don't use.
7860             :
7861           else
7862             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7863             break 3
7864           fi
7865         fi
7866       done
7867     done
7868     ;;
7869 esac
7870 done
7871 IFS=$as_save_IFS
7872
7873
7874 fi
7875   if test "${ac_cv_path_install+set}" = set; then
7876     INSTALL=$ac_cv_path_install
7877   else
7878     # As a last resort, use the slow shell script.  Don't cache a
7879     # value for INSTALL within a source directory, because that will
7880     # break other packages using the cache if that directory is
7881     # removed, or if the value is a relative name.
7882     INSTALL=$ac_install_sh
7883   fi
7884 fi
7885 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7886 echo "${ECHO_T}$INSTALL" >&6; }
7887
7888 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7889 # It thinks the first close brace ends the variable substitution.
7890 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7891
7892 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7893
7894 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7895
7896
7897 # Extract the first word of "bzip2", so it can be a program name with args.
7898 set dummy bzip2; ac_word=$2
7899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7901 if test "${ac_cv_path_BZIP2+set}" = set; then
7902   echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904   case $BZIP2 in
7905   [\\/]* | ?:[\\/]*)
7906   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7907   ;;
7908   *)
7909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7911 do
7912   IFS=$as_save_IFS
7913   test -z "$as_dir" && as_dir=.
7914   for ac_exec_ext in '' $ac_executable_extensions; do
7915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7916     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7918     break 2
7919   fi
7920 done
7921 done
7922 IFS=$as_save_IFS
7923
7924   ;;
7925 esac
7926 fi
7927 BZIP2=$ac_cv_path_BZIP2
7928 if test -n "$BZIP2"; then
7929   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7930 echo "${ECHO_T}$BZIP2" >&6; }
7931 else
7932   { echo "$as_me:$LINENO: result: no" >&5
7933 echo "${ECHO_T}no" >&6; }
7934 fi
7935
7936
7937 # Extract the first word of "doxygen", so it can be a program name with args.
7938 set dummy doxygen; ac_word=$2
7939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7941 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7942   echo $ECHO_N "(cached) $ECHO_C" >&6
7943 else
7944   case $DOXYGEN in
7945   [\\/]* | ?:[\\/]*)
7946   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7947   ;;
7948   *)
7949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH
7951 do
7952   IFS=$as_save_IFS
7953   test -z "$as_dir" && as_dir=.
7954   for ac_exec_ext in '' $ac_executable_extensions; do
7955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7956     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7958     break 2
7959   fi
7960 done
7961 done
7962 IFS=$as_save_IFS
7963
7964   ;;
7965 esac
7966 fi
7967 DOXYGEN=$ac_cv_path_DOXYGEN
7968 if test -n "$DOXYGEN"; then
7969   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7970 echo "${ECHO_T}$DOXYGEN" >&6; }
7971 else
7972   { echo "$as_me:$LINENO: result: no" >&5
7973 echo "${ECHO_T}no" >&6; }
7974 fi
7975
7976
7977 # Extract the first word of "groff", so it can be a program name with args.
7978 set dummy groff; ac_word=$2
7979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7981 if test "${ac_cv_path_GROFF+set}" = set; then
7982   echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984   case $GROFF in
7985   [\\/]* | ?:[\\/]*)
7986   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7987   ;;
7988   *)
7989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 for as_dir in $PATH
7991 do
7992   IFS=$as_save_IFS
7993   test -z "$as_dir" && as_dir=.
7994   for ac_exec_ext in '' $ac_executable_extensions; do
7995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7996     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7998     break 2
7999   fi
8000 done
8001 done
8002 IFS=$as_save_IFS
8003
8004   ;;
8005 esac
8006 fi
8007 GROFF=$ac_cv_path_GROFF
8008 if test -n "$GROFF"; then
8009   { echo "$as_me:$LINENO: result: $GROFF" >&5
8010 echo "${ECHO_T}$GROFF" >&6; }
8011 else
8012   { echo "$as_me:$LINENO: result: no" >&5
8013 echo "${ECHO_T}no" >&6; }
8014 fi
8015
8016
8017 # Extract the first word of "gzip", so it can be a program name with args.
8018 set dummy gzip; ac_word=$2
8019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8021 if test "${ac_cv_path_GZIP+set}" = set; then
8022   echo $ECHO_N "(cached) $ECHO_C" >&6
8023 else
8024   case $GZIP in
8025   [\\/]* | ?:[\\/]*)
8026   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8027   ;;
8028   *)
8029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8031 do
8032   IFS=$as_save_IFS
8033   test -z "$as_dir" && as_dir=.
8034   for ac_exec_ext in '' $ac_executable_extensions; do
8035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8036     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8038     break 2
8039   fi
8040 done
8041 done
8042 IFS=$as_save_IFS
8043
8044   ;;
8045 esac
8046 fi
8047 GZIP=$ac_cv_path_GZIP
8048 if test -n "$GZIP"; then
8049   { echo "$as_me:$LINENO: result: $GZIP" >&5
8050 echo "${ECHO_T}$GZIP" >&6; }
8051 else
8052   { echo "$as_me:$LINENO: result: no" >&5
8053 echo "${ECHO_T}no" >&6; }
8054 fi
8055
8056
8057 # Extract the first word of "pod2html", so it can be a program name with args.
8058 set dummy pod2html; ac_word=$2
8059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8061 if test "${ac_cv_path_POD2HTML+set}" = set; then
8062   echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064   case $POD2HTML in
8065   [\\/]* | ?:[\\/]*)
8066   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8067   ;;
8068   *)
8069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8071 do
8072   IFS=$as_save_IFS
8073   test -z "$as_dir" && as_dir=.
8074   for ac_exec_ext in '' $ac_executable_extensions; do
8075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8076     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8078     break 2
8079   fi
8080 done
8081 done
8082 IFS=$as_save_IFS
8083
8084   ;;
8085 esac
8086 fi
8087 POD2HTML=$ac_cv_path_POD2HTML
8088 if test -n "$POD2HTML"; then
8089   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8090 echo "${ECHO_T}$POD2HTML" >&6; }
8091 else
8092   { echo "$as_me:$LINENO: result: no" >&5
8093 echo "${ECHO_T}no" >&6; }
8094 fi
8095
8096
8097 # Extract the first word of "pod2man", so it can be a program name with args.
8098 set dummy pod2man; ac_word=$2
8099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8101 if test "${ac_cv_path_POD2MAN+set}" = set; then
8102   echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104   case $POD2MAN in
8105   [\\/]* | ?:[\\/]*)
8106   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8107   ;;
8108   *)
8109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8111 do
8112   IFS=$as_save_IFS
8113   test -z "$as_dir" && as_dir=.
8114   for ac_exec_ext in '' $ac_executable_extensions; do
8115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8116     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8118     break 2
8119   fi
8120 done
8121 done
8122 IFS=$as_save_IFS
8123
8124   ;;
8125 esac
8126 fi
8127 POD2MAN=$ac_cv_path_POD2MAN
8128 if test -n "$POD2MAN"; then
8129   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8130 echo "${ECHO_T}$POD2MAN" >&6; }
8131 else
8132   { echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6; }
8134 fi
8135
8136
8137 # Extract the first word of "runtest", so it can be a program name with args.
8138 set dummy runtest; ac_word=$2
8139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8141 if test "${ac_cv_path_RUNTEST+set}" = set; then
8142   echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144   case $RUNTEST in
8145   [\\/]* | ?:[\\/]*)
8146   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8147   ;;
8148   *)
8149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8151 do
8152   IFS=$as_save_IFS
8153   test -z "$as_dir" && as_dir=.
8154   for ac_exec_ext in '' $ac_executable_extensions; do
8155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8156     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158     break 2
8159   fi
8160 done
8161 done
8162 IFS=$as_save_IFS
8163
8164   ;;
8165 esac
8166 fi
8167 RUNTEST=$ac_cv_path_RUNTEST
8168 if test -n "$RUNTEST"; then
8169   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8170 echo "${ECHO_T}$RUNTEST" >&6; }
8171 else
8172   { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8174 fi
8175
8176
8177
8178 no_itcl=true
8179 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8180 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8181
8182 # Check whether --with-tclinclude was given.
8183 if test "${with_tclinclude+set}" = set; then
8184   withval=$with_tclinclude; with_tclinclude=${withval}
8185 else
8186   with_tclinclude=''
8187 fi
8188
8189 if test "${ac_cv_path_tclsh+set}" = set; then
8190   echo $ECHO_N "(cached) $ECHO_C" >&6
8191 else
8192
8193 if test x"${with_tclinclude}" != x ; then
8194   if test -f ${with_tclinclude}/tclsh ; then
8195     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8196   elif test -f ${with_tclinclude}/src/tclsh ; then
8197     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8198   else
8199     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8200 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8201    { (exit 1); exit 1; }; }
8202   fi
8203 fi
8204
8205 if test x"${ac_cv_path_tclsh}" = x ; then
8206   { echo "$as_me:$LINENO: result: none" >&5
8207 echo "${ECHO_T}none" >&6; }
8208   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
8209 do
8210   # Extract the first word of "$ac_prog", so it can be a program name with args.
8211 set dummy $ac_prog; ac_word=$2
8212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8214 if test "${ac_cv_path_TCLSH+set}" = set; then
8215   echo $ECHO_N "(cached) $ECHO_C" >&6
8216 else
8217   case $TCLSH in
8218   [\\/]* | ?:[\\/]*)
8219   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8220   ;;
8221   *)
8222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223 for as_dir in $PATH
8224 do
8225   IFS=$as_save_IFS
8226   test -z "$as_dir" && as_dir=.
8227   for ac_exec_ext in '' $ac_executable_extensions; do
8228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8229     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8231     break 2
8232   fi
8233 done
8234 done
8235 IFS=$as_save_IFS
8236
8237   ;;
8238 esac
8239 fi
8240 TCLSH=$ac_cv_path_TCLSH
8241 if test -n "$TCLSH"; then
8242   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8243 echo "${ECHO_T}$TCLSH" >&6; }
8244 else
8245   { echo "$as_me:$LINENO: result: no" >&5
8246 echo "${ECHO_T}no" >&6; }
8247 fi
8248
8249
8250   test -n "$TCLSH" && break
8251 done
8252
8253   if test x"${TCLSH}" = x ; then
8254     ac_cv_path_tclsh='';
8255   else
8256     ac_cv_path_tclsh="${TCLSH}";
8257   fi
8258 else
8259   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8260 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8261   TCLSH="${ac_cv_path_tclsh}"
8262
8263 fi
8264
8265 fi
8266
8267 # Extract the first word of "zip", so it can be a program name with args.
8268 set dummy zip; ac_word=$2
8269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8271 if test "${ac_cv_path_ZIP+set}" = set; then
8272   echo $ECHO_N "(cached) $ECHO_C" >&6
8273 else
8274   case $ZIP in
8275   [\\/]* | ?:[\\/]*)
8276   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8277   ;;
8278   *)
8279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 for as_dir in $PATH
8281 do
8282   IFS=$as_save_IFS
8283   test -z "$as_dir" && as_dir=.
8284   for ac_exec_ext in '' $ac_executable_extensions; do
8285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8286     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8288     break 2
8289   fi
8290 done
8291 done
8292 IFS=$as_save_IFS
8293
8294   ;;
8295 esac
8296 fi
8297 ZIP=$ac_cv_path_ZIP
8298 if test -n "$ZIP"; then
8299   { echo "$as_me:$LINENO: result: $ZIP" >&5
8300 echo "${ECHO_T}$ZIP" >&6; }
8301 else
8302   { echo "$as_me:$LINENO: result: no" >&5
8303 echo "${ECHO_T}no" >&6; }
8304 fi
8305
8306
8307 for ac_prog in ocamlc
8308 do
8309   # Extract the first word of "$ac_prog", so it can be a program name with args.
8310 set dummy $ac_prog; ac_word=$2
8311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8313 if test "${ac_cv_path_OCAMLC+set}" = set; then
8314   echo $ECHO_N "(cached) $ECHO_C" >&6
8315 else
8316   case $OCAMLC in
8317   [\\/]* | ?:[\\/]*)
8318   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8319   ;;
8320   *)
8321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8323 do
8324   IFS=$as_save_IFS
8325   test -z "$as_dir" && as_dir=.
8326   for ac_exec_ext in '' $ac_executable_extensions; do
8327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8328     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8330     break 2
8331   fi
8332 done
8333 done
8334 IFS=$as_save_IFS
8335
8336   ;;
8337 esac
8338 fi
8339 OCAMLC=$ac_cv_path_OCAMLC
8340 if test -n "$OCAMLC"; then
8341   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8342 echo "${ECHO_T}$OCAMLC" >&6; }
8343 else
8344   { echo "$as_me:$LINENO: result: no" >&5
8345 echo "${ECHO_T}no" >&6; }
8346 fi
8347
8348
8349   test -n "$OCAMLC" && break
8350 done
8351
8352 for ac_prog in ocamlopt
8353 do
8354   # Extract the first word of "$ac_prog", so it can be a program name with args.
8355 set dummy $ac_prog; ac_word=$2
8356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8358 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8359   echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361   case $OCAMLOPT in
8362   [\\/]* | ?:[\\/]*)
8363   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8364   ;;
8365   *)
8366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8368 do
8369   IFS=$as_save_IFS
8370   test -z "$as_dir" && as_dir=.
8371   for ac_exec_ext in '' $ac_executable_extensions; do
8372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8373     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8375     break 2
8376   fi
8377 done
8378 done
8379 IFS=$as_save_IFS
8380
8381   ;;
8382 esac
8383 fi
8384 OCAMLOPT=$ac_cv_path_OCAMLOPT
8385 if test -n "$OCAMLOPT"; then
8386   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8387 echo "${ECHO_T}$OCAMLOPT" >&6; }
8388 else
8389   { echo "$as_me:$LINENO: result: no" >&5
8390 echo "${ECHO_T}no" >&6; }
8391 fi
8392
8393
8394   test -n "$OCAMLOPT" && break
8395 done
8396
8397 for ac_prog in ocamldep
8398 do
8399   # Extract the first word of "$ac_prog", so it can be a program name with args.
8400 set dummy $ac_prog; ac_word=$2
8401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8403 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8404   echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406   case $OCAMLDEP in
8407   [\\/]* | ?:[\\/]*)
8408   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8409   ;;
8410   *)
8411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 for as_dir in $PATH
8413 do
8414   IFS=$as_save_IFS
8415   test -z "$as_dir" && as_dir=.
8416   for ac_exec_ext in '' $ac_executable_extensions; do
8417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8418     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8420     break 2
8421   fi
8422 done
8423 done
8424 IFS=$as_save_IFS
8425
8426   ;;
8427 esac
8428 fi
8429 OCAMLDEP=$ac_cv_path_OCAMLDEP
8430 if test -n "$OCAMLDEP"; then
8431   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8432 echo "${ECHO_T}$OCAMLDEP" >&6; }
8433 else
8434   { echo "$as_me:$LINENO: result: no" >&5
8435 echo "${ECHO_T}no" >&6; }
8436 fi
8437
8438
8439   test -n "$OCAMLDEP" && break
8440 done
8441
8442 for ac_prog in ocamldoc
8443 do
8444   # Extract the first word of "$ac_prog", so it can be a program name with args.
8445 set dummy $ac_prog; ac_word=$2
8446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8448 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8449   echo $ECHO_N "(cached) $ECHO_C" >&6
8450 else
8451   case $OCAMLDOC in
8452   [\\/]* | ?:[\\/]*)
8453   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8454   ;;
8455   *)
8456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457 for as_dir in $PATH
8458 do
8459   IFS=$as_save_IFS
8460   test -z "$as_dir" && as_dir=.
8461   for ac_exec_ext in '' $ac_executable_extensions; do
8462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8463     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8465     break 2
8466   fi
8467 done
8468 done
8469 IFS=$as_save_IFS
8470
8471   ;;
8472 esac
8473 fi
8474 OCAMLDOC=$ac_cv_path_OCAMLDOC
8475 if test -n "$OCAMLDOC"; then
8476   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8477 echo "${ECHO_T}$OCAMLDOC" >&6; }
8478 else
8479   { echo "$as_me:$LINENO: result: no" >&5
8480 echo "${ECHO_T}no" >&6; }
8481 fi
8482
8483
8484   test -n "$OCAMLDOC" && break
8485 done
8486
8487 for ac_prog in gas as
8488 do
8489   # Extract the first word of "$ac_prog", so it can be a program name with args.
8490 set dummy $ac_prog; ac_word=$2
8491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8493 if test "${ac_cv_path_GAS+set}" = set; then
8494   echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496   case $GAS in
8497   [\\/]* | ?:[\\/]*)
8498   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8499   ;;
8500   *)
8501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502 for as_dir in $PATH
8503 do
8504   IFS=$as_save_IFS
8505   test -z "$as_dir" && as_dir=.
8506   for ac_exec_ext in '' $ac_executable_extensions; do
8507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8508     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8510     break 2
8511   fi
8512 done
8513 done
8514 IFS=$as_save_IFS
8515
8516   ;;
8517 esac
8518 fi
8519 GAS=$ac_cv_path_GAS
8520 if test -n "$GAS"; then
8521   { echo "$as_me:$LINENO: result: $GAS" >&5
8522 echo "${ECHO_T}$GAS" >&6; }
8523 else
8524   { echo "$as_me:$LINENO: result: no" >&5
8525 echo "${ECHO_T}no" >&6; }
8526 fi
8527
8528
8529   test -n "$GAS" && break
8530 done
8531
8532
8533 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8534 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8535 if test "${llvm_cv_link_use_r+set}" = set; then
8536   echo $ECHO_N "(cached) $ECHO_C" >&6
8537 else
8538    ac_ext=c
8539 ac_cpp='$CPP $CPPFLAGS'
8540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8543
8544   oldcflags="$CFLAGS"
8545   CFLAGS="$CFLAGS -Wl,-R."
8546   cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h.  */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h.  */
8552
8553 int
8554 main ()
8555 {
8556 int main() { return 0; }
8557   ;
8558   return 0;
8559 }
8560 _ACEOF
8561 rm -f conftest.$ac_objext conftest$ac_exeext
8562 if { (ac_try="$ac_link"
8563 case "(($ac_try" in
8564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565   *) ac_try_echo=$ac_try;;
8566 esac
8567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8568   (eval "$ac_link") 2>conftest.er1
8569   ac_status=$?
8570   grep -v '^ *+' conftest.er1 >conftest.err
8571   rm -f conftest.er1
8572   cat conftest.err >&5
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); } &&
8575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8576   { (case "(($ac_try" in
8577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578   *) ac_try_echo=$ac_try;;
8579 esac
8580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8581   (eval "$ac_try") 2>&5
8582   ac_status=$?
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); }; } &&
8585          { ac_try='test -s conftest$ac_exeext'
8586   { (case "(($ac_try" in
8587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588   *) ac_try_echo=$ac_try;;
8589 esac
8590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591   (eval "$ac_try") 2>&5
8592   ac_status=$?
8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); }; }; then
8595   llvm_cv_link_use_r=yes
8596 else
8597   echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8599
8600         llvm_cv_link_use_r=no
8601 fi
8602
8603 rm -f core conftest.err conftest.$ac_objext \
8604       conftest$ac_exeext conftest.$ac_ext
8605   CFLAGS="$oldcflags"
8606   ac_ext=c
8607 ac_cpp='$CPP $CPPFLAGS'
8608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8611
8612
8613 fi
8614 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8615 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8616 if test "$llvm_cv_link_use_r" = yes ; then
8617
8618 cat >>confdefs.h <<\_ACEOF
8619 #define HAVE_LINK_R 1
8620 _ACEOF
8621
8622   fi
8623
8624
8625 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8626 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8627 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8628   echo $ECHO_N "(cached) $ECHO_C" >&6
8629 else
8630    ac_ext=c
8631 ac_cpp='$CPP $CPPFLAGS'
8632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8635
8636   oldcflags="$CFLAGS"
8637   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8638   cat >conftest.$ac_ext <<_ACEOF
8639 /* confdefs.h.  */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h.  */
8644
8645 int
8646 main ()
8647 {
8648 int main() { return 0; }
8649   ;
8650   return 0;
8651 }
8652 _ACEOF
8653 rm -f conftest.$ac_objext conftest$ac_exeext
8654 if { (ac_try="$ac_link"
8655 case "(($ac_try" in
8656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8657   *) ac_try_echo=$ac_try;;
8658 esac
8659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8660   (eval "$ac_link") 2>conftest.er1
8661   ac_status=$?
8662   grep -v '^ *+' conftest.er1 >conftest.err
8663   rm -f conftest.er1
8664   cat conftest.err >&5
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); } &&
8667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8668   { (case "(($ac_try" in
8669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670   *) ac_try_echo=$ac_try;;
8671 esac
8672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8673   (eval "$ac_try") 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; } &&
8677          { ac_try='test -s conftest$ac_exeext'
8678   { (case "(($ac_try" in
8679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680   *) ac_try_echo=$ac_try;;
8681 esac
8682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8683   (eval "$ac_try") 2>&5
8684   ac_status=$?
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); }; }; then
8687   llvm_cv_link_use_export_dynamic=yes
8688 else
8689   echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8691
8692         llvm_cv_link_use_export_dynamic=no
8693 fi
8694
8695 rm -f core conftest.err conftest.$ac_objext \
8696       conftest$ac_exeext conftest.$ac_ext
8697   CFLAGS="$oldcflags"
8698   ac_ext=c
8699 ac_cpp='$CPP $CPPFLAGS'
8700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8703
8704
8705 fi
8706 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8707 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8708 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8709
8710 cat >>confdefs.h <<\_ACEOF
8711 #define HAVE_LINK_EXPORT_DYNAMIC 1
8712 _ACEOF
8713
8714   fi
8715
8716
8717
8718
8719 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8720 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8721 if test "${ac_cv_c_const+set}" = set; then
8722   echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724   cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h.  */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h.  */
8730
8731 int
8732 main ()
8733 {
8734 /* FIXME: Include the comments suggested by Paul. */
8735 #ifndef __cplusplus
8736   /* Ultrix mips cc rejects this.  */
8737   typedef int charset[2];
8738   const charset x;
8739   /* SunOS 4.1.1 cc rejects this.  */
8740   char const *const *ccp;
8741   char **p;
8742   /* NEC SVR4.0.2 mips cc rejects this.  */
8743   struct point {int x, y;};
8744   static struct point const zero = {0,0};
8745   /* AIX XL C 1.02.0.0 rejects this.
8746      It does not let you subtract one const X* pointer from another in
8747      an arm of an if-expression whose if-part is not a constant
8748      expression */
8749   const char *g = "string";
8750   ccp = &g + (g ? g-g : 0);
8751   /* HPUX 7.0 cc rejects these. */
8752   ++ccp;
8753   p = (char**) ccp;
8754   ccp = (char const *const *) p;
8755   { /* SCO 3.2v4 cc rejects this.  */
8756     char *t;
8757     char const *s = 0 ? (char *) 0 : (char const *) 0;
8758
8759     *t++ = 0;
8760     if (s) return 0;
8761   }
8762   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8763     int x[] = {25, 17};
8764     const int *foo = &x[0];
8765     ++foo;
8766   }
8767   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8768     typedef const int *iptr;
8769     iptr p = 0;
8770     ++p;
8771   }
8772   { /* AIX XL C 1.02.0.0 rejects this saying
8773        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8774     struct s { int j; const int *ap[3]; };
8775     struct s *b; b->j = 5;
8776   }
8777   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8778     const int foo = 10;
8779     if (!foo) return 0;
8780   }
8781   return !x[0] && !zero.x;
8782 #endif
8783
8784   ;
8785   return 0;
8786 }
8787 _ACEOF
8788 rm -f conftest.$ac_objext
8789 if { (ac_try="$ac_compile"
8790 case "(($ac_try" in
8791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792   *) ac_try_echo=$ac_try;;
8793 esac
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795   (eval "$ac_compile") 2>conftest.er1
8796   ac_status=$?
8797   grep -v '^ *+' conftest.er1 >conftest.err
8798   rm -f conftest.er1
8799   cat conftest.err >&5
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); } &&
8802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8803   { (case "(($ac_try" in
8804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805   *) ac_try_echo=$ac_try;;
8806 esac
8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808   (eval "$ac_try") 2>&5
8809   ac_status=$?
8810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811   (exit $ac_status); }; } &&
8812          { ac_try='test -s conftest.$ac_objext'
8813   { (case "(($ac_try" in
8814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815   *) ac_try_echo=$ac_try;;
8816 esac
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818   (eval "$ac_try") 2>&5
8819   ac_status=$?
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); }; }; then
8822   ac_cv_c_const=yes
8823 else
8824   echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8826
8827         ac_cv_c_const=no
8828 fi
8829
8830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8831 fi
8832 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8833 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8834 if test $ac_cv_c_const = no; then
8835
8836 cat >>confdefs.h <<\_ACEOF
8837 #define const
8838 _ACEOF
8839
8840 fi
8841
8842
8843
8844
8845
8846
8847 ac_header_dirent=no
8848 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8849   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8850 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8851 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8853   echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855   cat >conftest.$ac_ext <<_ACEOF
8856 /* confdefs.h.  */
8857 _ACEOF
8858 cat confdefs.h >>conftest.$ac_ext
8859 cat >>conftest.$ac_ext <<_ACEOF
8860 /* end confdefs.h.  */
8861 #include <sys/types.h>
8862 #include <$ac_hdr>
8863
8864 int
8865 main ()
8866 {
8867 if ((DIR *) 0)
8868 return 0;
8869   ;
8870   return 0;
8871 }
8872 _ACEOF
8873 rm -f conftest.$ac_objext
8874 if { (ac_try="$ac_compile"
8875 case "(($ac_try" in
8876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8877   *) ac_try_echo=$ac_try;;
8878 esac
8879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8880   (eval "$ac_compile") 2>conftest.er1
8881   ac_status=$?
8882   grep -v '^ *+' conftest.er1 >conftest.err
8883   rm -f conftest.er1
8884   cat conftest.err >&5
8885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886   (exit $ac_status); } &&
8887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8888   { (case "(($ac_try" in
8889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890   *) ac_try_echo=$ac_try;;
8891 esac
8892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893   (eval "$ac_try") 2>&5
8894   ac_status=$?
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); }; } &&
8897          { ac_try='test -s conftest.$ac_objext'
8898   { (case "(($ac_try" in
8899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900   *) ac_try_echo=$ac_try;;
8901 esac
8902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8903   (eval "$ac_try") 2>&5
8904   ac_status=$?
8905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906   (exit $ac_status); }; }; then
8907   eval "$as_ac_Header=yes"
8908 else
8909   echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8911
8912         eval "$as_ac_Header=no"
8913 fi
8914
8915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916 fi
8917 ac_res=`eval echo '${'$as_ac_Header'}'`
8918                { echo "$as_me:$LINENO: result: $ac_res" >&5
8919 echo "${ECHO_T}$ac_res" >&6; }
8920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8921   cat >>confdefs.h <<_ACEOF
8922 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8923 _ACEOF
8924
8925 ac_header_dirent=$ac_hdr; break
8926 fi
8927
8928 done
8929 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8930 if test $ac_header_dirent = dirent.h; then
8931   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8932 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8933 if test "${ac_cv_search_opendir+set}" = set; then
8934   echo $ECHO_N "(cached) $ECHO_C" >&6
8935 else
8936   ac_func_search_save_LIBS=$LIBS
8937 cat >conftest.$ac_ext <<_ACEOF
8938 /* confdefs.h.  */
8939 _ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h.  */
8943
8944 /* Override any GCC internal prototype to avoid an error.
8945    Use char because int might match the return type of a GCC
8946    builtin and then its argument prototype would still apply.  */
8947 #ifdef __cplusplus
8948 extern "C"
8949 #endif
8950 char opendir ();
8951 int
8952 main ()
8953 {
8954 return opendir ();
8955   ;
8956   return 0;
8957 }
8958 _ACEOF
8959 for ac_lib in '' dir; do
8960   if test -z "$ac_lib"; then
8961     ac_res="none required"
8962   else
8963     ac_res=-l$ac_lib
8964     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8965   fi
8966   rm -f conftest.$ac_objext conftest$ac_exeext
8967 if { (ac_try="$ac_link"
8968 case "(($ac_try" in
8969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8970   *) ac_try_echo=$ac_try;;
8971 esac
8972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8973   (eval "$ac_link") 2>conftest.er1
8974   ac_status=$?
8975   grep -v '^ *+' conftest.er1 >conftest.err
8976   rm -f conftest.er1
8977   cat conftest.err >&5
8978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979   (exit $ac_status); } &&
8980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8981   { (case "(($ac_try" in
8982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983   *) ac_try_echo=$ac_try;;
8984 esac
8985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986   (eval "$ac_try") 2>&5
8987   ac_status=$?
8988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989   (exit $ac_status); }; } &&
8990          { ac_try='test -s conftest$ac_exeext'
8991   { (case "(($ac_try" in
8992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8993   *) ac_try_echo=$ac_try;;
8994 esac
8995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8996   (eval "$ac_try") 2>&5
8997   ac_status=$?
8998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999   (exit $ac_status); }; }; then
9000   ac_cv_search_opendir=$ac_res
9001 else
9002   echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9004
9005
9006 fi
9007
9008 rm -f core conftest.err conftest.$ac_objext \
9009       conftest$ac_exeext
9010   if test "${ac_cv_search_opendir+set}" = set; then
9011   break
9012 fi
9013 done
9014 if test "${ac_cv_search_opendir+set}" = set; then
9015   :
9016 else
9017   ac_cv_search_opendir=no
9018 fi
9019 rm conftest.$ac_ext
9020 LIBS=$ac_func_search_save_LIBS
9021 fi
9022 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9023 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9024 ac_res=$ac_cv_search_opendir
9025 if test "$ac_res" != no; then
9026   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9027
9028 fi
9029
9030 else
9031   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9032 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9033 if test "${ac_cv_search_opendir+set}" = set; then
9034   echo $ECHO_N "(cached) $ECHO_C" >&6
9035 else
9036   ac_func_search_save_LIBS=$LIBS
9037 cat >conftest.$ac_ext <<_ACEOF
9038 /* confdefs.h.  */
9039 _ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h.  */
9043
9044 /* Override any GCC internal prototype to avoid an error.
9045    Use char because int might match the return type of a GCC
9046    builtin and then its argument prototype would still apply.  */
9047 #ifdef __cplusplus
9048 extern "C"
9049 #endif
9050 char opendir ();
9051 int
9052 main ()
9053 {
9054 return opendir ();
9055   ;
9056   return 0;
9057 }
9058 _ACEOF
9059 for ac_lib in '' x; do
9060   if test -z "$ac_lib"; then
9061     ac_res="none required"
9062   else
9063     ac_res=-l$ac_lib
9064     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9065   fi
9066   rm -f conftest.$ac_objext conftest$ac_exeext
9067 if { (ac_try="$ac_link"
9068 case "(($ac_try" in
9069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070   *) ac_try_echo=$ac_try;;
9071 esac
9072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073   (eval "$ac_link") 2>conftest.er1
9074   ac_status=$?
9075   grep -v '^ *+' conftest.er1 >conftest.err
9076   rm -f conftest.er1
9077   cat conftest.err >&5
9078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079   (exit $ac_status); } &&
9080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9081   { (case "(($ac_try" in
9082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9083   *) ac_try_echo=$ac_try;;
9084 esac
9085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9086   (eval "$ac_try") 2>&5
9087   ac_status=$?
9088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089   (exit $ac_status); }; } &&
9090          { ac_try='test -s conftest$ac_exeext'
9091   { (case "(($ac_try" in
9092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093   *) ac_try_echo=$ac_try;;
9094 esac
9095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9096   (eval "$ac_try") 2>&5
9097   ac_status=$?
9098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099   (exit $ac_status); }; }; then
9100   ac_cv_search_opendir=$ac_res
9101 else
9102   echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9104
9105
9106 fi
9107
9108 rm -f core conftest.err conftest.$ac_objext \
9109       conftest$ac_exeext
9110   if test "${ac_cv_search_opendir+set}" = set; then
9111   break
9112 fi
9113 done
9114 if test "${ac_cv_search_opendir+set}" = set; then
9115   :
9116 else
9117   ac_cv_search_opendir=no
9118 fi
9119 rm conftest.$ac_ext
9120 LIBS=$ac_func_search_save_LIBS
9121 fi
9122 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9123 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9124 ac_res=$ac_cv_search_opendir
9125 if test "$ac_res" != no; then
9126   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9127
9128 fi
9129
9130 fi
9131
9132
9133 for ac_header in dlfcn.h
9134 do
9135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9137   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9140   echo $ECHO_N "(cached) $ECHO_C" >&6
9141 fi
9142 ac_res=`eval echo '${'$as_ac_Header'}'`
9143                { echo "$as_me:$LINENO: result: $ac_res" >&5
9144 echo "${ECHO_T}$ac_res" >&6; }
9145 else
9146   # Is the header compilable?
9147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9149 cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h.  */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h.  */
9155 $ac_includes_default
9156 #include <$ac_header>
9157 _ACEOF
9158 rm -f conftest.$ac_objext
9159 if { (ac_try="$ac_compile"
9160 case "(($ac_try" in
9161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162   *) ac_try_echo=$ac_try;;
9163 esac
9164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165   (eval "$ac_compile") 2>conftest.er1
9166   ac_status=$?
9167   grep -v '^ *+' conftest.er1 >conftest.err
9168   rm -f conftest.er1
9169   cat conftest.err >&5
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); } &&
9172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9173   { (case "(($ac_try" in
9174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175   *) ac_try_echo=$ac_try;;
9176 esac
9177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9178   (eval "$ac_try") 2>&5
9179   ac_status=$?
9180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181   (exit $ac_status); }; } &&
9182          { ac_try='test -s conftest.$ac_objext'
9183   { (case "(($ac_try" in
9184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185   *) ac_try_echo=$ac_try;;
9186 esac
9187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188   (eval "$ac_try") 2>&5
9189   ac_status=$?
9190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191   (exit $ac_status); }; }; then
9192   ac_header_compiler=yes
9193 else
9194   echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9196
9197         ac_header_compiler=no
9198 fi
9199
9200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9202 echo "${ECHO_T}$ac_header_compiler" >&6; }
9203
9204 # Is the header present?
9205 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9207 cat >conftest.$ac_ext <<_ACEOF
9208 /* confdefs.h.  */
9209 _ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h.  */
9213 #include <$ac_header>
9214 _ACEOF
9215 if { (ac_try="$ac_cpp conftest.$ac_ext"
9216 case "(($ac_try" in
9217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218   *) ac_try_echo=$ac_try;;
9219 esac
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9222   ac_status=$?
9223   grep -v '^ *+' conftest.er1 >conftest.err
9224   rm -f conftest.er1
9225   cat conftest.err >&5
9226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227   (exit $ac_status); } >/dev/null; then
9228   if test -s conftest.err; then
9229     ac_cpp_err=$ac_c_preproc_warn_flag
9230     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9231   else
9232     ac_cpp_err=
9233   fi
9234 else
9235   ac_cpp_err=yes
9236 fi
9237 if test -z "$ac_cpp_err"; then
9238   ac_header_preproc=yes
9239 else
9240   echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9242
9243   ac_header_preproc=no
9244 fi
9245
9246 rm -f conftest.err conftest.$ac_ext
9247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9248 echo "${ECHO_T}$ac_header_preproc" >&6; }
9249
9250 # So?  What about this header?
9251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9252   yes:no: )
9253     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9257     ac_header_preproc=yes
9258     ;;
9259   no:yes:* )
9260     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9262     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9263 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9264     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9266     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9267 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9270     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9272     ( cat <<\_ASBOX
9273 ## ----------------------------------- ##
9274 ## Report this to llvmbugs@cs.uiuc.edu ##
9275 ## ----------------------------------- ##
9276 _ASBOX
9277      ) | sed "s/^/$as_me: WARNING:     /" >&2
9278     ;;
9279 esac
9280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9283   echo $ECHO_N "(cached) $ECHO_C" >&6
9284 else
9285   eval "$as_ac_Header=\$ac_header_preproc"
9286 fi
9287 ac_res=`eval echo '${'$as_ac_Header'}'`
9288                { echo "$as_me:$LINENO: result: $ac_res" >&5
9289 echo "${ECHO_T}$ac_res" >&6; }
9290
9291 fi
9292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9293   cat >>confdefs.h <<_ACEOF
9294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9295 _ACEOF
9296
9297 fi
9298
9299 done
9300
9301 # Check whether --enable-ltdl-install was given.
9302 if test "${enable_ltdl_install+set}" = set; then
9303   enableval=$enable_ltdl_install;
9304 fi
9305
9306
9307
9308
9309 if test x"${enable_ltdl_install-no}" != xno; then
9310   INSTALL_LTDL_TRUE=
9311   INSTALL_LTDL_FALSE='#'
9312 else
9313   INSTALL_LTDL_TRUE='#'
9314   INSTALL_LTDL_FALSE=
9315 fi
9316
9317
9318
9319 if test x"${enable_ltdl_convenience-no}" != xno; then
9320   CONVENIENCE_LTDL_TRUE=
9321   CONVENIENCE_LTDL_FALSE='#'
9322 else
9323   CONVENIENCE_LTDL_TRUE='#'
9324   CONVENIENCE_LTDL_FALSE=
9325 fi
9326
9327
9328 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9329 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9330 library_names_spec=
9331 libname_spec='lib$name'
9332 soname_spec=
9333 shrext_cmds=".so"
9334 postinstall_cmds=
9335 postuninstall_cmds=
9336 finish_cmds=
9337 finish_eval=
9338 shlibpath_var=
9339 shlibpath_overrides_runpath=unknown
9340 version_type=none
9341 dynamic_linker="$host_os ld.so"
9342 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9343 if test "$GCC" = yes; then
9344   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9345   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9346     # if the path contains ";" then we assume it to be the separator
9347     # otherwise default to the standard path separator (i.e. ":") - it is
9348     # assumed that no part of a normal pathname contains ";" but that should
9349     # okay in the real world where ";" in dirpaths is itself problematic.
9350     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9351   else
9352     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9353   fi
9354 else
9355   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9356 fi
9357 need_lib_prefix=unknown
9358 hardcode_into_libs=no
9359
9360 # when you set need_version to no, make sure it does not cause -set_version
9361 # flags to be left without arguments
9362 need_version=unknown
9363
9364 case $host_os in
9365 aix3*)
9366   version_type=linux
9367   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9368   shlibpath_var=LIBPATH
9369
9370   # AIX 3 has no versioning support, so we append a major version to the name.
9371   soname_spec='${libname}${release}${shared_ext}$major'
9372   ;;
9373
9374 aix4* | aix5*)
9375   version_type=linux
9376   need_lib_prefix=no
9377   need_version=no
9378   hardcode_into_libs=yes
9379   if test "$host_cpu" = ia64; then
9380     # AIX 5 supports IA64
9381     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9382     shlibpath_var=LD_LIBRARY_PATH
9383   else
9384     # With GCC up to 2.95.x, collect2 would create an import file
9385     # for dependence libraries.  The import file would start with
9386     # the line `#! .'.  This would cause the generated library to
9387     # depend on `.', always an invalid library.  This was fixed in
9388     # development snapshots of GCC prior to 3.0.
9389     case $host_os in
9390       aix4 | aix4.[01] | aix4.[01].*)
9391       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9392            echo ' yes '
9393            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9394         :
9395       else
9396         can_build_shared=no
9397       fi
9398       ;;
9399     esac
9400     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9401     # soname into executable. Probably we can add versioning support to
9402     # collect2, so additional links can be useful in future.
9403     if test "$aix_use_runtimelinking" = yes; then
9404       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9405       # instead of lib<name>.a to let people know that these are not
9406       # typical AIX shared libraries.
9407       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408     else
9409       # We preserve .a as extension for shared libraries through AIX4.2
9410       # and later when we are not doing run time linking.
9411       library_names_spec='${libname}${release}.a $libname.a'
9412       soname_spec='${libname}${release}${shared_ext}$major'
9413     fi
9414     shlibpath_var=LIBPATH
9415   fi
9416   ;;
9417
9418 amigaos*)
9419   library_names_spec='$libname.ixlibrary $libname.a'
9420   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9421   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'
9422   ;;
9423
9424 beos*)
9425   library_names_spec='${libname}${shared_ext}'
9426   dynamic_linker="$host_os ld.so"
9427   shlibpath_var=LIBRARY_PATH
9428   ;;
9429
9430 bsdi[45]*)
9431   version_type=linux
9432   need_version=no
9433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434   soname_spec='${libname}${release}${shared_ext}$major'
9435   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9436   shlibpath_var=LD_LIBRARY_PATH
9437   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9438   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9439   # the default ld.so.conf also contains /usr/contrib/lib and
9440   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9441   # libtool to hard-code these into programs
9442   ;;
9443
9444 cygwin* | mingw* | pw32*)
9445   version_type=windows
9446   shrext_cmds=".dll"
9447   need_version=no
9448   need_lib_prefix=no
9449
9450   case $GCC,$host_os in
9451   yes,cygwin* | yes,mingw* | yes,pw32*)
9452     library_names_spec='$libname.dll.a'
9453     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9454     postinstall_cmds='base_file=`basename \${file}`~
9455       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9456       dldir=$destdir/`dirname \$dlpath`~
9457       test -d \$dldir || mkdir -p \$dldir~
9458       $install_prog $dir/$dlname \$dldir/$dlname~
9459       chmod a+x \$dldir/$dlname'
9460     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9461       dlpath=$dir/\$dldll~
9462        $rm \$dlpath'
9463     shlibpath_overrides_runpath=yes
9464
9465     case $host_os in
9466     cygwin*)
9467       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9468       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9469       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9470       ;;
9471     mingw*)
9472       # MinGW DLLs use traditional 'lib' prefix
9473       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9474       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9475       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9476         # It is most probably a Windows format PATH printed by
9477         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9478         # path with ; separators, and with drive letters. We can handle the
9479         # drive letters (cygwin fileutils understands them), so leave them,
9480         # especially as we might pass files found there to a mingw objdump,
9481         # which wouldn't understand a cygwinified path. Ahh.
9482         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9483       else
9484         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9485       fi
9486       ;;
9487     pw32*)
9488       # pw32 DLLs use 'pw' prefix rather than 'lib'
9489       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9490       ;;
9491     esac
9492     ;;
9493
9494   *)
9495     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9496     ;;
9497   esac
9498   dynamic_linker='Win32 ld.exe'
9499   # FIXME: first we should search . and the directory the executable is in
9500   shlibpath_var=PATH
9501   ;;
9502
9503 darwin* | rhapsody*)
9504   dynamic_linker="$host_os dyld"
9505   version_type=darwin
9506   need_lib_prefix=no
9507   need_version=no
9508   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9509   soname_spec='${libname}${release}${major}$shared_ext'
9510   shlibpath_overrides_runpath=yes
9511   shlibpath_var=DYLD_LIBRARY_PATH
9512   shrext_cmds='.dylib'
9513   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9514   if test "$GCC" = yes; then
9515     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"`
9516   else
9517     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9518   fi
9519   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9520   ;;
9521
9522 dgux*)
9523   version_type=linux
9524   need_lib_prefix=no
9525   need_version=no
9526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9527   soname_spec='${libname}${release}${shared_ext}$major'
9528   shlibpath_var=LD_LIBRARY_PATH
9529   ;;
9530
9531 freebsd1*)
9532   dynamic_linker=no
9533   ;;
9534
9535 kfreebsd*-gnu)
9536   version_type=linux
9537   need_lib_prefix=no
9538   need_version=no
9539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9540   soname_spec='${libname}${release}${shared_ext}$major'
9541   shlibpath_var=LD_LIBRARY_PATH
9542   shlibpath_overrides_runpath=no
9543   hardcode_into_libs=yes
9544   dynamic_linker='GNU ld.so'
9545   ;;
9546
9547 freebsd* | dragonfly*)
9548   # DragonFly does not have aout.  When/if they implement a new
9549   # versioning mechanism, adjust this.
9550   if test -x /usr/bin/objformat; then
9551     objformat=`/usr/bin/objformat`
9552   else
9553     case $host_os in
9554     freebsd[123]*) objformat=aout ;;
9555     *) objformat=elf ;;
9556     esac
9557   fi
9558   version_type=freebsd-$objformat
9559   case $version_type in
9560     freebsd-elf*)
9561       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9562       need_version=no
9563       need_lib_prefix=no
9564       ;;
9565     freebsd-*)
9566       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9567       need_version=yes
9568       ;;
9569   esac
9570   shlibpath_var=LD_LIBRARY_PATH
9571   case $host_os in
9572   freebsd2*)
9573     shlibpath_overrides_runpath=yes
9574     ;;
9575   freebsd3.[01]* | freebsdelf3.[01]*)
9576     shlibpath_overrides_runpath=yes
9577     hardcode_into_libs=yes
9578     ;;
9579   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9580   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9581     shlibpath_overrides_runpath=no
9582     hardcode_into_libs=yes
9583     ;;
9584   freebsd*) # from 4.6 on
9585     shlibpath_overrides_runpath=yes
9586     hardcode_into_libs=yes
9587     ;;
9588   esac
9589   ;;
9590
9591 gnu*)
9592   version_type=linux
9593   need_lib_prefix=no
9594   need_version=no
9595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9596   soname_spec='${libname}${release}${shared_ext}$major'
9597   shlibpath_var=LD_LIBRARY_PATH
9598   hardcode_into_libs=yes
9599   ;;
9600
9601 hpux9* | hpux10* | hpux11*)
9602   # Give a soname corresponding to the major version so that dld.sl refuses to
9603   # link against other versions.
9604   version_type=sunos
9605   need_lib_prefix=no
9606   need_version=no
9607   case $host_cpu in
9608   ia64*)
9609     shrext_cmds='.so'
9610     hardcode_into_libs=yes
9611     dynamic_linker="$host_os dld.so"
9612     shlibpath_var=LD_LIBRARY_PATH
9613     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9615     soname_spec='${libname}${release}${shared_ext}$major'
9616     if test "X$HPUX_IA64_MODE" = X32; then
9617       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9618     else
9619       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9620     fi
9621     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9622     ;;
9623    hppa*64*)
9624      shrext_cmds='.sl'
9625      hardcode_into_libs=yes
9626      dynamic_linker="$host_os dld.sl"
9627      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9628      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9629      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9630      soname_spec='${libname}${release}${shared_ext}$major'
9631      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9632      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9633      ;;
9634    *)
9635     shrext_cmds='.sl'
9636     dynamic_linker="$host_os dld.sl"
9637     shlibpath_var=SHLIB_PATH
9638     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9639     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9640     soname_spec='${libname}${release}${shared_ext}$major'
9641     ;;
9642   esac
9643   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9644   postinstall_cmds='chmod 555 $lib'
9645   ;;
9646
9647 interix3*)
9648   version_type=linux
9649   need_lib_prefix=no
9650   need_version=no
9651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9652   soname_spec='${libname}${release}${shared_ext}$major'
9653   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9654   shlibpath_var=LD_LIBRARY_PATH
9655   shlibpath_overrides_runpath=no
9656   hardcode_into_libs=yes
9657   ;;
9658
9659 irix5* | irix6* | nonstopux*)
9660   case $host_os in
9661     nonstopux*) version_type=nonstopux ;;
9662     *)
9663         if test "$lt_cv_prog_gnu_ld" = yes; then
9664                 version_type=linux
9665         else
9666                 version_type=irix
9667         fi ;;
9668   esac
9669   need_lib_prefix=no
9670   need_version=no
9671   soname_spec='${libname}${release}${shared_ext}$major'
9672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9673   case $host_os in
9674   irix5* | nonstopux*)
9675     libsuff= shlibsuff=
9676     ;;
9677   *)
9678     case $LD in # libtool.m4 will add one of these switches to LD
9679     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9680       libsuff= shlibsuff= libmagic=32-bit;;
9681     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9682       libsuff=32 shlibsuff=N32 libmagic=N32;;
9683     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9684       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9685     *) libsuff= shlibsuff= libmagic=never-match;;
9686     esac
9687     ;;
9688   esac
9689   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9690   shlibpath_overrides_runpath=no
9691   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9692   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9693   hardcode_into_libs=yes
9694   ;;
9695
9696 # No shared lib support for Linux oldld, aout, or coff.
9697 linux*oldld* | linux*aout* | linux*coff*)
9698   dynamic_linker=no
9699   ;;
9700
9701 # This must be Linux ELF.
9702 linux*)
9703   version_type=linux
9704   need_lib_prefix=no
9705   need_version=no
9706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9707   soname_spec='${libname}${release}${shared_ext}$major'
9708   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9709   shlibpath_var=LD_LIBRARY_PATH
9710   shlibpath_overrides_runpath=no
9711   # This implies no fast_install, which is unacceptable.
9712   # Some rework will be needed to allow for fast_install
9713   # before this can be enabled.
9714   hardcode_into_libs=yes
9715
9716   # Append ld.so.conf contents to the search path
9717   if test -f /etc/ld.so.conf; then
9718     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' ' '`
9719     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9720   fi
9721
9722   # We used to test for /lib/ld.so.1 and disable shared libraries on
9723   # powerpc, because MkLinux only supported shared libraries with the
9724   # GNU dynamic linker.  Since this was broken with cross compilers,
9725   # most powerpc-linux boxes support dynamic linking these days and
9726   # people can always --disable-shared, the test was removed, and we
9727   # assume the GNU/Linux dynamic linker is in use.
9728   dynamic_linker='GNU/Linux ld.so'
9729   ;;
9730
9731 knetbsd*-gnu)
9732   version_type=linux
9733   need_lib_prefix=no
9734   need_version=no
9735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9736   soname_spec='${libname}${release}${shared_ext}$major'
9737   shlibpath_var=LD_LIBRARY_PATH
9738   shlibpath_overrides_runpath=no
9739   hardcode_into_libs=yes
9740   dynamic_linker='GNU ld.so'
9741   ;;
9742
9743 netbsd*)
9744   version_type=sunos
9745   need_lib_prefix=no
9746   need_version=no
9747   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9748     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9749     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9750     dynamic_linker='NetBSD (a.out) ld.so'
9751   else
9752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9753     soname_spec='${libname}${release}${shared_ext}$major'
9754     dynamic_linker='NetBSD ld.elf_so'
9755   fi
9756   shlibpath_var=LD_LIBRARY_PATH
9757   shlibpath_overrides_runpath=yes
9758   hardcode_into_libs=yes
9759   ;;
9760
9761 newsos6)
9762   version_type=linux
9763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9764   shlibpath_var=LD_LIBRARY_PATH
9765   shlibpath_overrides_runpath=yes
9766   ;;
9767
9768 nto-qnx*)
9769   version_type=linux
9770   need_lib_prefix=no
9771   need_version=no
9772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9773   soname_spec='${libname}${release}${shared_ext}$major'
9774   shlibpath_var=LD_LIBRARY_PATH
9775   shlibpath_overrides_runpath=yes
9776   ;;
9777
9778 openbsd*)
9779   version_type=sunos
9780   sys_lib_dlsearch_path_spec="/usr/lib"
9781   need_lib_prefix=no
9782   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9783   case $host_os in
9784     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9785     *)                         need_version=no  ;;
9786   esac
9787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9788   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9789   shlibpath_var=LD_LIBRARY_PATH
9790   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9791     case $host_os in
9792       openbsd2.[89] | openbsd2.[89].*)
9793         shlibpath_overrides_runpath=no
9794         ;;
9795       *)
9796         shlibpath_overrides_runpath=yes
9797         ;;
9798       esac
9799   else
9800     shlibpath_overrides_runpath=yes
9801   fi
9802   ;;
9803
9804 os2*)
9805   libname_spec='$name'
9806   shrext_cmds=".dll"
9807   need_lib_prefix=no
9808   library_names_spec='$libname${shared_ext} $libname.a'
9809   dynamic_linker='OS/2 ld.exe'
9810   shlibpath_var=LIBPATH
9811   ;;
9812
9813 osf3* | osf4* | osf5*)
9814   version_type=osf
9815   need_lib_prefix=no
9816   need_version=no
9817   soname_spec='${libname}${release}${shared_ext}$major'
9818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819   shlibpath_var=LD_LIBRARY_PATH
9820   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9821   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9822   ;;
9823
9824 solaris*)
9825   version_type=linux
9826   need_lib_prefix=no
9827   need_version=no
9828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9829   soname_spec='${libname}${release}${shared_ext}$major'
9830   shlibpath_var=LD_LIBRARY_PATH
9831   shlibpath_overrides_runpath=yes
9832   hardcode_into_libs=yes
9833   # ldd complains unless libraries are executable
9834   postinstall_cmds='chmod +x $lib'
9835   ;;
9836
9837 sunos4*)
9838   version_type=sunos
9839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9840   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9841   shlibpath_var=LD_LIBRARY_PATH
9842   shlibpath_overrides_runpath=yes
9843   if test "$with_gnu_ld" = yes; then
9844     need_lib_prefix=no
9845   fi
9846   need_version=yes
9847   ;;
9848
9849 sysv4 | sysv4.3*)
9850   version_type=linux
9851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9852   soname_spec='${libname}${release}${shared_ext}$major'
9853   shlibpath_var=LD_LIBRARY_PATH
9854   case $host_vendor in
9855     sni)
9856       shlibpath_overrides_runpath=no
9857       need_lib_prefix=no
9858       export_dynamic_flag_spec='${wl}-Blargedynsym'
9859       runpath_var=LD_RUN_PATH
9860       ;;
9861     siemens)
9862       need_lib_prefix=no
9863       ;;
9864     motorola)
9865       need_lib_prefix=no
9866       need_version=no
9867       shlibpath_overrides_runpath=no
9868       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9869       ;;
9870   esac
9871   ;;
9872
9873 sysv4*MP*)
9874   if test -d /usr/nec ;then
9875     version_type=linux
9876     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9877     soname_spec='$libname${shared_ext}.$major'
9878     shlibpath_var=LD_LIBRARY_PATH
9879   fi
9880   ;;
9881
9882 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9883   version_type=freebsd-elf
9884   need_lib_prefix=no
9885   need_version=no
9886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9887   soname_spec='${libname}${release}${shared_ext}$major'
9888   shlibpath_var=LD_LIBRARY_PATH
9889   hardcode_into_libs=yes
9890   if test "$with_gnu_ld" = yes; then
9891     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9892     shlibpath_overrides_runpath=no
9893   else
9894     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9895     shlibpath_overrides_runpath=yes
9896     case $host_os in
9897       sco3.2v5*)
9898         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9899         ;;
9900     esac
9901   fi
9902   sys_lib_dlsearch_path_spec='/usr/lib'
9903   ;;
9904
9905 uts4*)
9906   version_type=linux
9907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9908   soname_spec='${libname}${release}${shared_ext}$major'
9909   shlibpath_var=LD_LIBRARY_PATH
9910   ;;
9911
9912 *)
9913   dynamic_linker=no
9914   ;;
9915 esac
9916 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9917 echo "${ECHO_T}$dynamic_linker" >&6; }
9918 test "$dynamic_linker" = no && can_build_shared=no
9919
9920 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9921 if test "$GCC" = yes; then
9922   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9923 fi
9924
9925
9926 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9927 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9928 if test "${libltdl_cv_shlibext+set}" = set; then
9929   echo $ECHO_N "(cached) $ECHO_C" >&6
9930 else
9931
9932 module=yes
9933 eval libltdl_cv_shlibext=$shrext_cmds
9934
9935 fi
9936 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9937 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9938 if test -n "$libltdl_cv_shlibext"; then
9939
9940 cat >>confdefs.h <<_ACEOF
9941 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9942 _ACEOF
9943
9944 fi
9945
9946
9947 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9948 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9949 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9950   echo $ECHO_N "(cached) $ECHO_C" >&6
9951 else
9952   libltdl_cv_shlibpath_var="$shlibpath_var"
9953 fi
9954 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9955 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9956 if test -n "$libltdl_cv_shlibpath_var"; then
9957
9958 cat >>confdefs.h <<_ACEOF
9959 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9960 _ACEOF
9961
9962 fi
9963
9964
9965 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9966 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9967 if test "${libltdl_cv_sys_search_path+set}" = set; then
9968   echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9971 fi
9972 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9973 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9974 if test -n "$libltdl_cv_sys_search_path"; then
9975   sys_search_path=
9976   for dir in $libltdl_cv_sys_search_path; do
9977     if test -z "$sys_search_path"; then
9978       sys_search_path="$dir"
9979     else
9980       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9981     fi
9982   done
9983
9984 cat >>confdefs.h <<_ACEOF
9985 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9986 _ACEOF
9987
9988 fi
9989
9990 { echo "$as_me:$LINENO: checking for objdir" >&5
9991 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9992 if test "${libltdl_cv_objdir+set}" = set; then
9993   echo $ECHO_N "(cached) $ECHO_C" >&6
9994 else
9995   libltdl_cv_objdir="$objdir"
9996   if test -n "$objdir"; then
9997     :
9998   else
9999     rm -f .libs 2>/dev/null
10000     mkdir .libs 2>/dev/null
10001     if test -d .libs; then
10002       libltdl_cv_objdir=.libs
10003     else
10004       # MS-DOS does not allow filenames that begin with a dot.
10005       libltdl_cv_objdir=_libs
10006     fi
10007   rmdir .libs 2>/dev/null
10008   fi
10009
10010 fi
10011 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10012 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10013
10014 cat >>confdefs.h <<_ACEOF
10015 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10016 _ACEOF
10017
10018
10019
10020
10021
10022
10023 # Check for command to grab the raw symbol name followed by C symbol from nm.
10024 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10025 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10026 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10027   echo $ECHO_N "(cached) $ECHO_C" >&6
10028 else
10029
10030 # These are sane defaults that work on at least a few old systems.
10031 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10032
10033 # Character class describing NM global symbol codes.
10034 symcode='[BCDEGRST]'
10035
10036 # Regexp to match symbols that can be accessed directly from C.
10037 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10038
10039 # Transform an extracted symbol line into a proper C declaration
10040 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10041
10042 # Transform an extracted symbol line into symbol name and symbol address
10043 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'"
10044
10045 # Define system-specific variables.
10046 case $host_os in
10047 aix*)
10048   symcode='[BCDT]'
10049   ;;
10050 cygwin* | mingw* | pw32*)
10051   symcode='[ABCDGISTW]'
10052   ;;
10053 hpux*) # Its linker distinguishes data from code symbols
10054   if test "$host_cpu" = ia64; then
10055     symcode='[ABCDEGRST]'
10056   fi
10057   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10058   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'"
10059   ;;
10060 linux*)
10061   if test "$host_cpu" = ia64; then
10062     symcode='[ABCDGIRSTW]'
10063     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10064     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'"
10065   fi
10066   ;;
10067 irix* | nonstopux*)
10068   symcode='[BCDEGRST]'
10069   ;;
10070 osf*)
10071   symcode='[BCDEGQRST]'
10072   ;;
10073 solaris*)
10074   symcode='[BDRT]'
10075   ;;
10076 sco3.2v5*)
10077   symcode='[DT]'
10078   ;;
10079 sysv4.2uw2*)
10080   symcode='[DT]'
10081   ;;
10082 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10083   symcode='[ABDT]'
10084   ;;
10085 sysv4)
10086   symcode='[DFNSTU]'
10087   ;;
10088 esac
10089
10090 # Handle CRLF in mingw tool chain
10091 opt_cr=
10092 case $build_os in
10093 mingw*)
10094   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10095   ;;
10096 esac
10097
10098 # If we're using GNU nm, then use its standard symbol codes.
10099 case `$NM -V 2>&1` in
10100 *GNU* | *'with BFD'*)
10101   symcode='[ABCDGIRSTW]' ;;
10102 esac
10103
10104 # Try without a prefix undercore, then with it.
10105 for ac_symprfx in "" "_"; do
10106
10107   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10108   symxfrm="\\1 $ac_symprfx\\2 \\2"
10109
10110   # Write the raw and C identifiers.
10111   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10112
10113   # Check to see that the pipe works correctly.
10114   pipe_works=no
10115
10116   rm -f conftest*
10117   cat > conftest.$ac_ext <<EOF
10118 #ifdef __cplusplus
10119 extern "C" {
10120 #endif
10121 char nm_test_var;
10122 void nm_test_func(){}
10123 #ifdef __cplusplus
10124 }
10125 #endif
10126 int main(){nm_test_var='a';nm_test_func();return(0);}
10127 EOF
10128
10129   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10130   (eval $ac_compile) 2>&5
10131   ac_status=$?
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); }; then
10134     # Now try to grab the symbols.
10135     nlist=conftest.nm
10136     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10137   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10138   ac_status=$?
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); } && test -s "$nlist"; then
10141       # Try sorting and uniquifying the output.
10142       if sort "$nlist" | uniq > "$nlist"T; then
10143         mv -f "$nlist"T "$nlist"
10144       else
10145         rm -f "$nlist"T
10146       fi
10147
10148       # Make sure that we snagged all the symbols we need.
10149       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10150         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10151           cat <<EOF > conftest.$ac_ext
10152 #ifdef __cplusplus
10153 extern "C" {
10154 #endif
10155
10156 EOF
10157           # Now generate the symbol file.
10158           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10159
10160           cat <<EOF >> conftest.$ac_ext
10161 #if defined (__STDC__) && __STDC__
10162 # define lt_ptr_t void *
10163 #else
10164 # define lt_ptr_t char *
10165 # define const
10166 #endif
10167
10168 /* The mapping between symbol names and symbols. */
10169 const struct {
10170   const char *name;
10171   lt_ptr_t address;
10172 }
10173 lt_preloaded_symbols[] =
10174 {
10175 EOF
10176           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10177           cat <<\EOF >> conftest.$ac_ext
10178   {0, (lt_ptr_t) 0}
10179 };
10180
10181 #ifdef __cplusplus
10182 }
10183 #endif
10184 EOF
10185           # Now try linking the two files.
10186           mv conftest.$ac_objext conftstm.$ac_objext
10187           lt_save_LIBS="$LIBS"
10188           lt_save_CFLAGS="$CFLAGS"
10189           LIBS="conftstm.$ac_objext"
10190           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10191           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10192   (eval $ac_link) 2>&5
10193   ac_status=$?
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10196             pipe_works=yes
10197           fi
10198           LIBS="$lt_save_LIBS"
10199           CFLAGS="$lt_save_CFLAGS"
10200         else
10201           echo "cannot find nm_test_func in $nlist" >&5
10202         fi
10203       else
10204         echo "cannot find nm_test_var in $nlist" >&5
10205       fi
10206     else
10207       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10208     fi
10209   else
10210     echo "$progname: failed program was:" >&5
10211     cat conftest.$ac_ext >&5
10212   fi
10213   rm -f conftest* conftst*
10214
10215   # Do not use the global_symbol_pipe unless it works.
10216   if test "$pipe_works" = yes; then
10217     break
10218   else
10219     lt_cv_sys_global_symbol_pipe=
10220   fi
10221 done
10222
10223 fi
10224
10225 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10226   lt_cv_sys_global_symbol_to_cdecl=
10227 fi
10228 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10229   { echo "$as_me:$LINENO: result: failed" >&5
10230 echo "${ECHO_T}failed" >&6; }
10231 else
10232   { echo "$as_me:$LINENO: result: ok" >&5
10233 echo "${ECHO_T}ok" >&6; }
10234 fi
10235
10236
10237 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10238 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10239 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10240   echo $ECHO_N "(cached) $ECHO_C" >&6
10241 else
10242   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10243     libltdl_cv_preloaded_symbols=yes
10244   else
10245     libltdl_cv_preloaded_symbols=no
10246   fi
10247
10248 fi
10249 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10250 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10251 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10252
10253 cat >>confdefs.h <<\_ACEOF
10254 #define HAVE_PRELOADED_SYMBOLS 1
10255 _ACEOF
10256
10257 fi
10258
10259 LIBADD_DL=
10260
10261 ac_ext=c
10262 ac_cpp='$CPP $CPPFLAGS'
10263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10266
10267
10268 { echo "$as_me:$LINENO: checking for shl_load" >&5
10269 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10270 if test "${ac_cv_func_shl_load+set}" = set; then
10271   echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273   cat >conftest.$ac_ext <<_ACEOF
10274 /* confdefs.h.  */
10275 _ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h.  */
10279 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10280    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10281 #define shl_load innocuous_shl_load
10282
10283 /* System header to define __stub macros and hopefully few prototypes,
10284     which can conflict with char shl_load (); below.
10285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10286     <limits.h> exists even on freestanding compilers.  */
10287
10288 #ifdef __STDC__
10289 # include <limits.h>
10290 #else
10291 # include <assert.h>
10292 #endif
10293
10294 #undef shl_load
10295
10296 /* Override any GCC internal prototype to avoid an error.
10297    Use char because int might match the return type of a GCC
10298    builtin and then its argument prototype would still apply.  */
10299 #ifdef __cplusplus
10300 extern "C"
10301 #endif
10302 char shl_load ();
10303 /* The GNU C library defines this for functions which it implements
10304     to always fail with ENOSYS.  Some functions are actually named
10305     something starting with __ and the normal name is an alias.  */
10306 #if defined __stub_shl_load || defined __stub___shl_load
10307 choke me
10308 #endif
10309
10310 int
10311 main ()
10312 {
10313 return shl_load ();
10314   ;
10315   return 0;
10316 }
10317 _ACEOF
10318 rm -f conftest.$ac_objext conftest$ac_exeext
10319 if { (ac_try="$ac_link"
10320 case "(($ac_try" in
10321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322   *) ac_try_echo=$ac_try;;
10323 esac
10324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325   (eval "$ac_link") 2>conftest.er1
10326   ac_status=$?
10327   grep -v '^ *+' conftest.er1 >conftest.err
10328   rm -f conftest.er1
10329   cat conftest.err >&5
10330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331   (exit $ac_status); } &&
10332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10333   { (case "(($ac_try" in
10334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335   *) ac_try_echo=$ac_try;;
10336 esac
10337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10338   (eval "$ac_try") 2>&5
10339   ac_status=$?
10340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341   (exit $ac_status); }; } &&
10342          { ac_try='test -s conftest$ac_exeext'
10343   { (case "(($ac_try" in
10344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345   *) ac_try_echo=$ac_try;;
10346 esac
10347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348   (eval "$ac_try") 2>&5
10349   ac_status=$?
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); }; }; then
10352   ac_cv_func_shl_load=yes
10353 else
10354   echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10356
10357         ac_cv_func_shl_load=no
10358 fi
10359
10360 rm -f core conftest.err conftest.$ac_objext \
10361       conftest$ac_exeext conftest.$ac_ext
10362 fi
10363 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10364 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10365 if test $ac_cv_func_shl_load = yes; then
10366
10367 cat >>confdefs.h <<\_ACEOF
10368 #define HAVE_SHL_LOAD 1
10369 _ACEOF
10370
10371 else
10372   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10373 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10374 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10375   echo $ECHO_N "(cached) $ECHO_C" >&6
10376 else
10377   ac_check_lib_save_LIBS=$LIBS
10378 LIBS="-ldld  $LIBS"
10379 cat >conftest.$ac_ext <<_ACEOF
10380 /* confdefs.h.  */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h.  */
10385
10386 /* Override any GCC internal prototype to avoid an error.
10387    Use char because int might match the return type of a GCC
10388    builtin and then its argument prototype would still apply.  */
10389 #ifdef __cplusplus
10390 extern "C"
10391 #endif
10392 char shl_load ();
10393 int
10394 main ()
10395 {
10396 return shl_load ();
10397   ;
10398   return 0;
10399 }
10400 _ACEOF
10401 rm -f conftest.$ac_objext conftest$ac_exeext
10402 if { (ac_try="$ac_link"
10403 case "(($ac_try" in
10404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10405   *) ac_try_echo=$ac_try;;
10406 esac
10407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10408   (eval "$ac_link") 2>conftest.er1
10409   ac_status=$?
10410   grep -v '^ *+' conftest.er1 >conftest.err
10411   rm -f conftest.er1
10412   cat conftest.err >&5
10413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414   (exit $ac_status); } &&
10415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10416   { (case "(($ac_try" in
10417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418   *) ac_try_echo=$ac_try;;
10419 esac
10420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421   (eval "$ac_try") 2>&5
10422   ac_status=$?
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); }; } &&
10425          { ac_try='test -s conftest$ac_exeext'
10426   { (case "(($ac_try" in
10427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428   *) ac_try_echo=$ac_try;;
10429 esac
10430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431   (eval "$ac_try") 2>&5
10432   ac_status=$?
10433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); }; }; then
10435   ac_cv_lib_dld_shl_load=yes
10436 else
10437   echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10439
10440         ac_cv_lib_dld_shl_load=no
10441 fi
10442
10443 rm -f core conftest.err conftest.$ac_objext \
10444       conftest$ac_exeext conftest.$ac_ext
10445 LIBS=$ac_check_lib_save_LIBS
10446 fi
10447 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10448 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10449 if test $ac_cv_lib_dld_shl_load = yes; then
10450
10451 cat >>confdefs.h <<\_ACEOF
10452 #define HAVE_SHL_LOAD 1
10453 _ACEOF
10454
10455         LIBADD_DL="$LIBADD_DL -ldld"
10456 else
10457   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10458 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10459 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10460   echo $ECHO_N "(cached) $ECHO_C" >&6
10461 else
10462   ac_check_lib_save_LIBS=$LIBS
10463 LIBS="-ldl  $LIBS"
10464 cat >conftest.$ac_ext <<_ACEOF
10465 /* confdefs.h.  */
10466 _ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h.  */
10470
10471 /* Override any GCC internal prototype to avoid an error.
10472    Use char because int might match the return type of a GCC
10473    builtin and then its argument prototype would still apply.  */
10474 #ifdef __cplusplus
10475 extern "C"
10476 #endif
10477 char dlopen ();
10478 int
10479 main ()
10480 {
10481 return dlopen ();
10482   ;
10483   return 0;
10484 }
10485 _ACEOF
10486 rm -f conftest.$ac_objext conftest$ac_exeext
10487 if { (ac_try="$ac_link"
10488 case "(($ac_try" in
10489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490   *) ac_try_echo=$ac_try;;
10491 esac
10492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10493   (eval "$ac_link") 2>conftest.er1
10494   ac_status=$?
10495   grep -v '^ *+' conftest.er1 >conftest.err
10496   rm -f conftest.er1
10497   cat conftest.err >&5
10498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499   (exit $ac_status); } &&
10500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10501   { (case "(($ac_try" in
10502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503   *) ac_try_echo=$ac_try;;
10504 esac
10505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10506   (eval "$ac_try") 2>&5
10507   ac_status=$?
10508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509   (exit $ac_status); }; } &&
10510          { ac_try='test -s conftest$ac_exeext'
10511   { (case "(($ac_try" in
10512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513   *) ac_try_echo=$ac_try;;
10514 esac
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516   (eval "$ac_try") 2>&5
10517   ac_status=$?
10518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); }; }; then
10520   ac_cv_lib_dl_dlopen=yes
10521 else
10522   echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.$ac_ext >&5
10524
10525         ac_cv_lib_dl_dlopen=no
10526 fi
10527
10528 rm -f core conftest.err conftest.$ac_objext \
10529       conftest$ac_exeext conftest.$ac_ext
10530 LIBS=$ac_check_lib_save_LIBS
10531 fi
10532 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10533 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10534 if test $ac_cv_lib_dl_dlopen = yes; then
10535
10536 cat >>confdefs.h <<\_ACEOF
10537 #define HAVE_LIBDL 1
10538 _ACEOF
10539
10540                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10541 else
10542   cat >conftest.$ac_ext <<_ACEOF
10543 /* confdefs.h.  */
10544 _ACEOF
10545 cat confdefs.h >>conftest.$ac_ext
10546 cat >>conftest.$ac_ext <<_ACEOF
10547 /* end confdefs.h.  */
10548 #if HAVE_DLFCN_H
10549 #  include <dlfcn.h>
10550 #endif
10551
10552 int
10553 main ()
10554 {
10555 dlopen(0, 0);
10556   ;
10557   return 0;
10558 }
10559 _ACEOF
10560 rm -f conftest.$ac_objext conftest$ac_exeext
10561 if { (ac_try="$ac_link"
10562 case "(($ac_try" in
10563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10564   *) ac_try_echo=$ac_try;;
10565 esac
10566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10567   (eval "$ac_link") 2>conftest.er1
10568   ac_status=$?
10569   grep -v '^ *+' conftest.er1 >conftest.err
10570   rm -f conftest.er1
10571   cat conftest.err >&5
10572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573   (exit $ac_status); } &&
10574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10575   { (case "(($ac_try" in
10576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577   *) ac_try_echo=$ac_try;;
10578 esac
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580   (eval "$ac_try") 2>&5
10581   ac_status=$?
10582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583   (exit $ac_status); }; } &&
10584          { ac_try='test -s conftest$ac_exeext'
10585   { (case "(($ac_try" in
10586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587   *) ac_try_echo=$ac_try;;
10588 esac
10589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590   (eval "$ac_try") 2>&5
10591   ac_status=$?
10592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593   (exit $ac_status); }; }; then
10594
10595 cat >>confdefs.h <<\_ACEOF
10596 #define HAVE_LIBDL 1
10597 _ACEOF
10598  libltdl_cv_func_dlopen="yes"
10599 else
10600   echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10602
10603         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10604 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10605 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10606   echo $ECHO_N "(cached) $ECHO_C" >&6
10607 else
10608   ac_check_lib_save_LIBS=$LIBS
10609 LIBS="-lsvld  $LIBS"
10610 cat >conftest.$ac_ext <<_ACEOF
10611 /* confdefs.h.  */
10612 _ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h.  */
10616
10617 /* Override any GCC internal prototype to avoid an error.
10618    Use char because int might match the return type of a GCC
10619    builtin and then its argument prototype would still apply.  */
10620 #ifdef __cplusplus
10621 extern "C"
10622 #endif
10623 char dlopen ();
10624 int
10625 main ()
10626 {
10627 return dlopen ();
10628   ;
10629   return 0;
10630 }
10631 _ACEOF
10632 rm -f conftest.$ac_objext conftest$ac_exeext
10633 if { (ac_try="$ac_link"
10634 case "(($ac_try" in
10635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636   *) ac_try_echo=$ac_try;;
10637 esac
10638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10639   (eval "$ac_link") 2>conftest.er1
10640   ac_status=$?
10641   grep -v '^ *+' conftest.er1 >conftest.err
10642   rm -f conftest.er1
10643   cat conftest.err >&5
10644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645   (exit $ac_status); } &&
10646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10647   { (case "(($ac_try" in
10648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649   *) ac_try_echo=$ac_try;;
10650 esac
10651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10652   (eval "$ac_try") 2>&5
10653   ac_status=$?
10654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655   (exit $ac_status); }; } &&
10656          { ac_try='test -s conftest$ac_exeext'
10657   { (case "(($ac_try" in
10658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659   *) ac_try_echo=$ac_try;;
10660 esac
10661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662   (eval "$ac_try") 2>&5
10663   ac_status=$?
10664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665   (exit $ac_status); }; }; then
10666   ac_cv_lib_svld_dlopen=yes
10667 else
10668   echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10670
10671         ac_cv_lib_svld_dlopen=no
10672 fi
10673
10674 rm -f core conftest.err conftest.$ac_objext \
10675       conftest$ac_exeext conftest.$ac_ext
10676 LIBS=$ac_check_lib_save_LIBS
10677 fi
10678 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10679 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10680 if test $ac_cv_lib_svld_dlopen = yes; then
10681
10682 cat >>confdefs.h <<\_ACEOF
10683 #define HAVE_LIBDL 1
10684 _ACEOF
10685
10686                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10687 else
10688   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10689 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10690 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10691   echo $ECHO_N "(cached) $ECHO_C" >&6
10692 else
10693   ac_check_lib_save_LIBS=$LIBS
10694 LIBS="-ldld  $LIBS"
10695 cat >conftest.$ac_ext <<_ACEOF
10696 /* confdefs.h.  */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h.  */
10701
10702 /* Override any GCC internal prototype to avoid an error.
10703    Use char because int might match the return type of a GCC
10704    builtin and then its argument prototype would still apply.  */
10705 #ifdef __cplusplus
10706 extern "C"
10707 #endif
10708 char dld_link ();
10709 int
10710 main ()
10711 {
10712 return dld_link ();
10713   ;
10714   return 0;
10715 }
10716 _ACEOF
10717 rm -f conftest.$ac_objext conftest$ac_exeext
10718 if { (ac_try="$ac_link"
10719 case "(($ac_try" in
10720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721   *) ac_try_echo=$ac_try;;
10722 esac
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724   (eval "$ac_link") 2>conftest.er1
10725   ac_status=$?
10726   grep -v '^ *+' conftest.er1 >conftest.err
10727   rm -f conftest.er1
10728   cat conftest.err >&5
10729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730   (exit $ac_status); } &&
10731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10732   { (case "(($ac_try" in
10733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734   *) ac_try_echo=$ac_try;;
10735 esac
10736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737   (eval "$ac_try") 2>&5
10738   ac_status=$?
10739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740   (exit $ac_status); }; } &&
10741          { ac_try='test -s conftest$ac_exeext'
10742   { (case "(($ac_try" in
10743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744   *) ac_try_echo=$ac_try;;
10745 esac
10746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10747   (eval "$ac_try") 2>&5
10748   ac_status=$?
10749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); }; }; then
10751   ac_cv_lib_dld_dld_link=yes
10752 else
10753   echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10755
10756         ac_cv_lib_dld_dld_link=no
10757 fi
10758
10759 rm -f core conftest.err conftest.$ac_objext \
10760       conftest$ac_exeext conftest.$ac_ext
10761 LIBS=$ac_check_lib_save_LIBS
10762 fi
10763 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10764 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10765 if test $ac_cv_lib_dld_dld_link = yes; then
10766
10767 cat >>confdefs.h <<\_ACEOF
10768 #define HAVE_DLD 1
10769 _ACEOF
10770
10771                 LIBADD_DL="$LIBADD_DL -ldld"
10772 else
10773   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10774 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10775 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10776   echo $ECHO_N "(cached) $ECHO_C" >&6
10777 else
10778   cat >conftest.$ac_ext <<_ACEOF
10779 /* confdefs.h.  */
10780 _ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h.  */
10784 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10785    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10786 #define _dyld_func_lookup innocuous__dyld_func_lookup
10787
10788 /* System header to define __stub macros and hopefully few prototypes,
10789     which can conflict with char _dyld_func_lookup (); below.
10790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10791     <limits.h> exists even on freestanding compilers.  */
10792
10793 #ifdef __STDC__
10794 # include <limits.h>
10795 #else
10796 # include <assert.h>
10797 #endif
10798
10799 #undef _dyld_func_lookup
10800
10801 /* Override any GCC internal prototype to avoid an error.
10802    Use char because int might match the return type of a GCC
10803    builtin and then its argument prototype would still apply.  */
10804 #ifdef __cplusplus
10805 extern "C"
10806 #endif
10807 char _dyld_func_lookup ();
10808 /* The GNU C library defines this for functions which it implements
10809     to always fail with ENOSYS.  Some functions are actually named
10810     something starting with __ and the normal name is an alias.  */
10811 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10812 choke me
10813 #endif
10814
10815 int
10816 main ()
10817 {
10818 return _dyld_func_lookup ();
10819   ;
10820   return 0;
10821 }
10822 _ACEOF
10823 rm -f conftest.$ac_objext conftest$ac_exeext
10824 if { (ac_try="$ac_link"
10825 case "(($ac_try" in
10826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827   *) ac_try_echo=$ac_try;;
10828 esac
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830   (eval "$ac_link") 2>conftest.er1
10831   ac_status=$?
10832   grep -v '^ *+' conftest.er1 >conftest.err
10833   rm -f conftest.er1
10834   cat conftest.err >&5
10835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836   (exit $ac_status); } &&
10837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838   { (case "(($ac_try" in
10839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840   *) ac_try_echo=$ac_try;;
10841 esac
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843   (eval "$ac_try") 2>&5
10844   ac_status=$?
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); }; } &&
10847          { ac_try='test -s conftest$ac_exeext'
10848   { (case "(($ac_try" in
10849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850   *) ac_try_echo=$ac_try;;
10851 esac
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853   (eval "$ac_try") 2>&5
10854   ac_status=$?
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); }; }; then
10857   ac_cv_func__dyld_func_lookup=yes
10858 else
10859   echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10861
10862         ac_cv_func__dyld_func_lookup=no
10863 fi
10864
10865 rm -f core conftest.err conftest.$ac_objext \
10866       conftest$ac_exeext conftest.$ac_ext
10867 fi
10868 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10869 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10870 if test $ac_cv_func__dyld_func_lookup = yes; then
10871
10872 cat >>confdefs.h <<\_ACEOF
10873 #define HAVE_DYLD 1
10874 _ACEOF
10875
10876 fi
10877
10878
10879 fi
10880
10881
10882 fi
10883
10884
10885 fi
10886
10887 rm -f core conftest.err conftest.$ac_objext \
10888       conftest$ac_exeext conftest.$ac_ext
10889
10890 fi
10891
10892
10893 fi
10894
10895
10896 fi
10897
10898
10899 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10900 then
10901   lt_save_LIBS="$LIBS"
10902   LIBS="$LIBS $LIBADD_DL"
10903
10904 for ac_func in dlerror
10905 do
10906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10907 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10910   echo $ECHO_N "(cached) $ECHO_C" >&6
10911 else
10912   cat >conftest.$ac_ext <<_ACEOF
10913 /* confdefs.h.  */
10914 _ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h.  */
10918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10920 #define $ac_func innocuous_$ac_func
10921
10922 /* System header to define __stub macros and hopefully few prototypes,
10923     which can conflict with char $ac_func (); below.
10924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10925     <limits.h> exists even on freestanding compilers.  */
10926
10927 #ifdef __STDC__
10928 # include <limits.h>
10929 #else
10930 # include <assert.h>
10931 #endif
10932
10933 #undef $ac_func
10934
10935 /* Override any GCC internal prototype to avoid an error.
10936    Use char because int might match the return type of a GCC
10937    builtin and then its argument prototype would still apply.  */
10938 #ifdef __cplusplus
10939 extern "C"
10940 #endif
10941 char $ac_func ();
10942 /* The GNU C library defines this for functions which it implements
10943     to always fail with ENOSYS.  Some functions are actually named
10944     something starting with __ and the normal name is an alias.  */
10945 #if defined __stub_$ac_func || defined __stub___$ac_func
10946 choke me
10947 #endif
10948
10949 int
10950 main ()
10951 {
10952 return $ac_func ();
10953   ;
10954   return 0;
10955 }
10956 _ACEOF
10957 rm -f conftest.$ac_objext conftest$ac_exeext
10958 if { (ac_try="$ac_link"
10959 case "(($ac_try" in
10960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961   *) ac_try_echo=$ac_try;;
10962 esac
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964   (eval "$ac_link") 2>conftest.er1
10965   ac_status=$?
10966   grep -v '^ *+' conftest.er1 >conftest.err
10967   rm -f conftest.er1
10968   cat conftest.err >&5
10969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970   (exit $ac_status); } &&
10971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10972   { (case "(($ac_try" in
10973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974   *) ac_try_echo=$ac_try;;
10975 esac
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977   (eval "$ac_try") 2>&5
10978   ac_status=$?
10979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); }; } &&
10981          { ac_try='test -s conftest$ac_exeext'
10982   { (case "(($ac_try" in
10983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984   *) ac_try_echo=$ac_try;;
10985 esac
10986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987   (eval "$ac_try") 2>&5
10988   ac_status=$?
10989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990   (exit $ac_status); }; }; then
10991   eval "$as_ac_var=yes"
10992 else
10993   echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10995
10996         eval "$as_ac_var=no"
10997 fi
10998
10999 rm -f core conftest.err conftest.$ac_objext \
11000       conftest$ac_exeext conftest.$ac_ext
11001 fi
11002 ac_res=`eval echo '${'$as_ac_var'}'`
11003                { echo "$as_me:$LINENO: result: $ac_res" >&5
11004 echo "${ECHO_T}$ac_res" >&6; }
11005 if test `eval echo '${'$as_ac_var'}'` = yes; then
11006   cat >>confdefs.h <<_ACEOF
11007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11008 _ACEOF
11009
11010 fi
11011 done
11012
11013   LIBS="$lt_save_LIBS"
11014 fi
11015 ac_ext=c
11016 ac_cpp='$CPP $CPPFLAGS'
11017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11020
11021
11022
11023 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11024 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11025 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11026   echo $ECHO_N "(cached) $ECHO_C" >&6
11027 else
11028   ac_cv_sys_symbol_underscore=no
11029   cat > conftest.$ac_ext <<EOF
11030 void nm_test_func(){}
11031 int main(){nm_test_func;return 0;}
11032 EOF
11033   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11034   (eval $ac_compile) 2>&5
11035   ac_status=$?
11036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   (exit $ac_status); }; then
11038     # Now try to grab the symbols.
11039     ac_nlist=conftest.nm
11040     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11041   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11042   ac_status=$?
11043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044   (exit $ac_status); } && test -s "$ac_nlist"; then
11045       # See whether the symbols have a leading underscore.
11046       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11047         ac_cv_sys_symbol_underscore=yes
11048       else
11049         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11050           :
11051         else
11052           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11053         fi
11054       fi
11055     else
11056       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11057     fi
11058   else
11059     echo "configure: failed program was:" >&5
11060     cat conftest.c >&5
11061   fi
11062   rm -rf conftest*
11063
11064 fi
11065 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11066 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11067
11068
11069 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11070   if test x"$libltdl_cv_func_dlopen" = xyes ||
11071      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11072         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11073 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11074 if test "${libltdl_cv_need_uscore+set}" = set; then
11075   echo $ECHO_N "(cached) $ECHO_C" >&6
11076 else
11077   libltdl_cv_need_uscore=unknown
11078           save_LIBS="$LIBS"
11079           LIBS="$LIBS $LIBADD_DL"
11080           if test "$cross_compiling" = yes; then :
11081   libltdl_cv_need_uscore=cross
11082 else
11083   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11084   lt_status=$lt_dlunknown
11085   cat > conftest.$ac_ext <<EOF
11086 #line 11086 "configure"
11087 #include "confdefs.h"
11088
11089 #if HAVE_DLFCN_H
11090 #include <dlfcn.h>
11091 #endif
11092
11093 #include <stdio.h>
11094
11095 #ifdef RTLD_GLOBAL
11096 #  define LT_DLGLOBAL           RTLD_GLOBAL
11097 #else
11098 #  ifdef DL_GLOBAL
11099 #    define LT_DLGLOBAL         DL_GLOBAL
11100 #  else
11101 #    define LT_DLGLOBAL         0
11102 #  endif
11103 #endif
11104
11105 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11106    find out it does not work in some platform. */
11107 #ifndef LT_DLLAZY_OR_NOW
11108 #  ifdef RTLD_LAZY
11109 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11110 #  else
11111 #    ifdef DL_LAZY
11112 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11113 #    else
11114 #      ifdef RTLD_NOW
11115 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11116 #      else
11117 #        ifdef DL_NOW
11118 #          define LT_DLLAZY_OR_NOW      DL_NOW
11119 #        else
11120 #          define LT_DLLAZY_OR_NOW      0
11121 #        endif
11122 #      endif
11123 #    endif
11124 #  endif
11125 #endif
11126
11127 #ifdef __cplusplus
11128 extern "C" void exit (int);
11129 #endif
11130
11131 void fnord() { int i=42;}
11132 int main ()
11133 {
11134   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11135   int status = $lt_dlunknown;
11136
11137   if (self)
11138     {
11139       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11140       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11141       /* dlclose (self); */
11142     }
11143   else
11144     puts (dlerror ());
11145
11146     exit (status);
11147 }
11148 EOF
11149   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11150   (eval $ac_link) 2>&5
11151   ac_status=$?
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11154     (./conftest; exit; ) >&5 2>/dev/null
11155     lt_status=$?
11156     case x$lt_status in
11157       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11158       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11159       x$lt_dlunknown|x*)  ;;
11160     esac
11161   else :
11162     # compilation failed
11163
11164   fi
11165 fi
11166 rm -fr conftest*
11167
11168           LIBS="$save_LIBS"
11169
11170 fi
11171 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11172 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11173   fi
11174 fi
11175
11176 if test x"$libltdl_cv_need_uscore" = xyes; then
11177
11178 cat >>confdefs.h <<\_ACEOF
11179 #define NEED_USCORE 1
11180 _ACEOF
11181
11182 fi
11183
11184
11185 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11186 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11187 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11188   echo $ECHO_N "(cached) $ECHO_C" >&6
11189 else
11190   # PORTME does your system automatically load deplibs for dlopen?
11191   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11192   # For now, we just catch OSes we know something about -- in the
11193   # future, we'll try test this programmatically.
11194   libltdl_cv_sys_dlopen_deplibs=unknown
11195   case "$host_os" in
11196   aix3*|aix4.1.*|aix4.2.*)
11197     # Unknown whether this is true for these versions of AIX, but
11198     # we want this `case' here to explicitly catch those versions.
11199     libltdl_cv_sys_dlopen_deplibs=unknown
11200     ;;
11201   aix[45]*)
11202     libltdl_cv_sys_dlopen_deplibs=yes
11203     ;;
11204   darwin*)
11205     # Assuming the user has installed a libdl from somewhere, this is true
11206     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11207     libltdl_cv_sys_dlopen_deplibs=yes
11208     ;;
11209   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11210     # GNU and its variants, using gnu ld.so (Glibc)
11211     libltdl_cv_sys_dlopen_deplibs=yes
11212     ;;
11213   hpux10*|hpux11*)
11214     libltdl_cv_sys_dlopen_deplibs=yes
11215     ;;
11216   interix*)
11217     libltdl_cv_sys_dlopen_deplibs=yes
11218     ;;
11219   irix[12345]*|irix6.[01]*)
11220     # Catch all versions of IRIX before 6.2, and indicate that we don't
11221     # know how it worked for any of those versions.
11222     libltdl_cv_sys_dlopen_deplibs=unknown
11223     ;;
11224   irix*)
11225     # The case above catches anything before 6.2, and it's known that
11226     # at 6.2 and later dlopen does load deplibs.
11227     libltdl_cv_sys_dlopen_deplibs=yes
11228     ;;
11229   netbsd*)
11230     libltdl_cv_sys_dlopen_deplibs=yes
11231     ;;
11232   openbsd*)
11233     libltdl_cv_sys_dlopen_deplibs=yes
11234     ;;
11235   osf[1234]*)
11236     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11237     # it did *not* use an RPATH in a shared library to find objects the
11238     # library depends on, so we explictly say `no'.
11239     libltdl_cv_sys_dlopen_deplibs=no
11240     ;;
11241   osf5.0|osf5.0a|osf5.1)
11242     # dlopen *does* load deplibs and with the right loader patch applied
11243     # it even uses RPATH in a shared library to search for shared objects
11244     # that the library depends on, but there's no easy way to know if that
11245     # patch is installed.  Since this is the case, all we can really
11246     # say is unknown -- it depends on the patch being installed.  If
11247     # it is, this changes to `yes'.  Without it, it would be `no'.
11248     libltdl_cv_sys_dlopen_deplibs=unknown
11249     ;;
11250   osf*)
11251     # the two cases above should catch all versions of osf <= 5.1.  Read
11252     # the comments above for what we know about them.
11253     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11254     # is used to find them so we can finally say `yes'.
11255     libltdl_cv_sys_dlopen_deplibs=yes
11256     ;;
11257   solaris*)
11258     libltdl_cv_sys_dlopen_deplibs=yes
11259     ;;
11260   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11261     libltdl_cv_sys_dlopen_deplibs=yes
11262     ;;
11263   esac
11264
11265 fi
11266 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11267 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11268 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11269
11270 cat >>confdefs.h <<\_ACEOF
11271 #define LTDL_DLOPEN_DEPLIBS 1
11272 _ACEOF
11273
11274 fi
11275
11276
11277 for ac_header in argz.h
11278 do
11279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11281   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11284   echo $ECHO_N "(cached) $ECHO_C" >&6
11285 fi
11286 ac_res=`eval echo '${'$as_ac_Header'}'`
11287                { echo "$as_me:$LINENO: result: $ac_res" >&5
11288 echo "${ECHO_T}$ac_res" >&6; }
11289 else
11290   # Is the header compilable?
11291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11293 cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h.  */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h.  */
11299 $ac_includes_default
11300 #include <$ac_header>
11301 _ACEOF
11302 rm -f conftest.$ac_objext
11303 if { (ac_try="$ac_compile"
11304 case "(($ac_try" in
11305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306   *) ac_try_echo=$ac_try;;
11307 esac
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309   (eval "$ac_compile") 2>conftest.er1
11310   ac_status=$?
11311   grep -v '^ *+' conftest.er1 >conftest.err
11312   rm -f conftest.er1
11313   cat conftest.err >&5
11314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); } &&
11316          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11317   { (case "(($ac_try" in
11318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319   *) ac_try_echo=$ac_try;;
11320 esac
11321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322   (eval "$ac_try") 2>&5
11323   ac_status=$?
11324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325   (exit $ac_status); }; } &&
11326          { ac_try='test -s conftest.$ac_objext'
11327   { (case "(($ac_try" in
11328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329   *) ac_try_echo=$ac_try;;
11330 esac
11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332   (eval "$ac_try") 2>&5
11333   ac_status=$?
11334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335   (exit $ac_status); }; }; then
11336   ac_header_compiler=yes
11337 else
11338   echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11340
11341         ac_header_compiler=no
11342 fi
11343
11344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11346 echo "${ECHO_T}$ac_header_compiler" >&6; }
11347
11348 # Is the header present?
11349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11351 cat >conftest.$ac_ext <<_ACEOF
11352 /* confdefs.h.  */
11353 _ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h.  */
11357 #include <$ac_header>
11358 _ACEOF
11359 if { (ac_try="$ac_cpp conftest.$ac_ext"
11360 case "(($ac_try" in
11361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362   *) ac_try_echo=$ac_try;;
11363 esac
11364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11366   ac_status=$?
11367   grep -v '^ *+' conftest.er1 >conftest.err
11368   rm -f conftest.er1
11369   cat conftest.err >&5
11370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371   (exit $ac_status); } >/dev/null; then
11372   if test -s conftest.err; then
11373     ac_cpp_err=$ac_c_preproc_warn_flag
11374     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11375   else
11376     ac_cpp_err=
11377   fi
11378 else
11379   ac_cpp_err=yes
11380 fi
11381 if test -z "$ac_cpp_err"; then
11382   ac_header_preproc=yes
11383 else
11384   echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11386
11387   ac_header_preproc=no
11388 fi
11389
11390 rm -f conftest.err conftest.$ac_ext
11391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11392 echo "${ECHO_T}$ac_header_preproc" >&6; }
11393
11394 # So?  What about this header?
11395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11396   yes:no: )
11397     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11401     ac_header_preproc=yes
11402     ;;
11403   no:yes:* )
11404     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11406     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11407 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11408     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11410     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11411 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11414     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11416     ( cat <<\_ASBOX
11417 ## ----------------------------------- ##
11418 ## Report this to llvmbugs@cs.uiuc.edu ##
11419 ## ----------------------------------- ##
11420 _ASBOX
11421      ) | sed "s/^/$as_me: WARNING:     /" >&2
11422     ;;
11423 esac
11424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11427   echo $ECHO_N "(cached) $ECHO_C" >&6
11428 else
11429   eval "$as_ac_Header=\$ac_header_preproc"
11430 fi
11431 ac_res=`eval echo '${'$as_ac_Header'}'`
11432                { echo "$as_me:$LINENO: result: $ac_res" >&5
11433 echo "${ECHO_T}$ac_res" >&6; }
11434
11435 fi
11436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11437   cat >>confdefs.h <<_ACEOF
11438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11439 _ACEOF
11440
11441 fi
11442
11443 done
11444
11445
11446 { echo "$as_me:$LINENO: checking for error_t" >&5
11447 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11448 if test "${ac_cv_type_error_t+set}" = set; then
11449   echo $ECHO_N "(cached) $ECHO_C" >&6
11450 else
11451   cat >conftest.$ac_ext <<_ACEOF
11452 /* confdefs.h.  */
11453 _ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h.  */
11457 #if HAVE_ARGZ_H
11458 #  include <argz.h>
11459 #endif
11460
11461 typedef error_t ac__type_new_;
11462 int
11463 main ()
11464 {
11465 if ((ac__type_new_ *) 0)
11466   return 0;
11467 if (sizeof (ac__type_new_))
11468   return 0;
11469   ;
11470   return 0;
11471 }
11472 _ACEOF
11473 rm -f conftest.$ac_objext
11474 if { (ac_try="$ac_compile"
11475 case "(($ac_try" in
11476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477   *) ac_try_echo=$ac_try;;
11478 esac
11479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480   (eval "$ac_compile") 2>conftest.er1
11481   ac_status=$?
11482   grep -v '^ *+' conftest.er1 >conftest.err
11483   rm -f conftest.er1
11484   cat conftest.err >&5
11485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486   (exit $ac_status); } &&
11487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11488   { (case "(($ac_try" in
11489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490   *) ac_try_echo=$ac_try;;
11491 esac
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493   (eval "$ac_try") 2>&5
11494   ac_status=$?
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); }; } &&
11497          { ac_try='test -s conftest.$ac_objext'
11498   { (case "(($ac_try" in
11499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500   *) ac_try_echo=$ac_try;;
11501 esac
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503   (eval "$ac_try") 2>&5
11504   ac_status=$?
11505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506   (exit $ac_status); }; }; then
11507   ac_cv_type_error_t=yes
11508 else
11509   echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11511
11512         ac_cv_type_error_t=no
11513 fi
11514
11515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11516 fi
11517 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11518 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11519 if test $ac_cv_type_error_t = yes; then
11520
11521 cat >>confdefs.h <<_ACEOF
11522 #define HAVE_ERROR_T 1
11523 _ACEOF
11524
11525
11526 else
11527
11528 cat >>confdefs.h <<\_ACEOF
11529 #define error_t int
11530 _ACEOF
11531
11532 fi
11533
11534
11535
11536
11537
11538
11539
11540 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11541 do
11542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11543 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11545 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11546   echo $ECHO_N "(cached) $ECHO_C" >&6
11547 else
11548   cat >conftest.$ac_ext <<_ACEOF
11549 /* confdefs.h.  */
11550 _ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h.  */
11554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11556 #define $ac_func innocuous_$ac_func
11557
11558 /* System header to define __stub macros and hopefully few prototypes,
11559     which can conflict with char $ac_func (); below.
11560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11561     <limits.h> exists even on freestanding compilers.  */
11562
11563 #ifdef __STDC__
11564 # include <limits.h>
11565 #else
11566 # include <assert.h>
11567 #endif
11568
11569 #undef $ac_func
11570
11571 /* Override any GCC internal prototype to avoid an error.
11572    Use char because int might match the return type of a GCC
11573    builtin and then its argument prototype would still apply.  */
11574 #ifdef __cplusplus
11575 extern "C"
11576 #endif
11577 char $ac_func ();
11578 /* The GNU C library defines this for functions which it implements
11579     to always fail with ENOSYS.  Some functions are actually named
11580     something starting with __ and the normal name is an alias.  */
11581 #if defined __stub_$ac_func || defined __stub___$ac_func
11582 choke me
11583 #endif
11584
11585 int
11586 main ()
11587 {
11588 return $ac_func ();
11589   ;
11590   return 0;
11591 }
11592 _ACEOF
11593 rm -f conftest.$ac_objext conftest$ac_exeext
11594 if { (ac_try="$ac_link"
11595 case "(($ac_try" in
11596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597   *) ac_try_echo=$ac_try;;
11598 esac
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600   (eval "$ac_link") 2>conftest.er1
11601   ac_status=$?
11602   grep -v '^ *+' conftest.er1 >conftest.err
11603   rm -f conftest.er1
11604   cat conftest.err >&5
11605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); } &&
11607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11608   { (case "(($ac_try" in
11609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610   *) ac_try_echo=$ac_try;;
11611 esac
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613   (eval "$ac_try") 2>&5
11614   ac_status=$?
11615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616   (exit $ac_status); }; } &&
11617          { ac_try='test -s conftest$ac_exeext'
11618   { (case "(($ac_try" in
11619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620   *) ac_try_echo=$ac_try;;
11621 esac
11622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623   (eval "$ac_try") 2>&5
11624   ac_status=$?
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); }; }; then
11627   eval "$as_ac_var=yes"
11628 else
11629   echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11631
11632         eval "$as_ac_var=no"
11633 fi
11634
11635 rm -f core conftest.err conftest.$ac_objext \
11636       conftest$ac_exeext conftest.$ac_ext
11637 fi
11638 ac_res=`eval echo '${'$as_ac_var'}'`
11639                { echo "$as_me:$LINENO: result: $ac_res" >&5
11640 echo "${ECHO_T}$ac_res" >&6; }
11641 if test `eval echo '${'$as_ac_var'}'` = yes; then
11642   cat >>confdefs.h <<_ACEOF
11643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11644 _ACEOF
11645
11646 fi
11647 done
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11677                   stdio.h unistd.h
11678 do
11679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11681   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11684   echo $ECHO_N "(cached) $ECHO_C" >&6
11685 fi
11686 ac_res=`eval echo '${'$as_ac_Header'}'`
11687                { echo "$as_me:$LINENO: result: $ac_res" >&5
11688 echo "${ECHO_T}$ac_res" >&6; }
11689 else
11690   # Is the header compilable?
11691 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11693 cat >conftest.$ac_ext <<_ACEOF
11694 /* confdefs.h.  */
11695 _ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h.  */
11699 $ac_includes_default
11700 #include <$ac_header>
11701 _ACEOF
11702 rm -f conftest.$ac_objext
11703 if { (ac_try="$ac_compile"
11704 case "(($ac_try" in
11705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706   *) ac_try_echo=$ac_try;;
11707 esac
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709   (eval "$ac_compile") 2>conftest.er1
11710   ac_status=$?
11711   grep -v '^ *+' conftest.er1 >conftest.err
11712   rm -f conftest.er1
11713   cat conftest.err >&5
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); } &&
11716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11717   { (case "(($ac_try" in
11718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719   *) ac_try_echo=$ac_try;;
11720 esac
11721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722   (eval "$ac_try") 2>&5
11723   ac_status=$?
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); }; } &&
11726          { ac_try='test -s conftest.$ac_objext'
11727   { (case "(($ac_try" in
11728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729   *) ac_try_echo=$ac_try;;
11730 esac
11731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732   (eval "$ac_try") 2>&5
11733   ac_status=$?
11734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735   (exit $ac_status); }; }; then
11736   ac_header_compiler=yes
11737 else
11738   echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11740
11741         ac_header_compiler=no
11742 fi
11743
11744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11746 echo "${ECHO_T}$ac_header_compiler" >&6; }
11747
11748 # Is the header present?
11749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11751 cat >conftest.$ac_ext <<_ACEOF
11752 /* confdefs.h.  */
11753 _ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h.  */
11757 #include <$ac_header>
11758 _ACEOF
11759 if { (ac_try="$ac_cpp conftest.$ac_ext"
11760 case "(($ac_try" in
11761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762   *) ac_try_echo=$ac_try;;
11763 esac
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11766   ac_status=$?
11767   grep -v '^ *+' conftest.er1 >conftest.err
11768   rm -f conftest.er1
11769   cat conftest.err >&5
11770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771   (exit $ac_status); } >/dev/null; then
11772   if test -s conftest.err; then
11773     ac_cpp_err=$ac_c_preproc_warn_flag
11774     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11775   else
11776     ac_cpp_err=
11777   fi
11778 else
11779   ac_cpp_err=yes
11780 fi
11781 if test -z "$ac_cpp_err"; then
11782   ac_header_preproc=yes
11783 else
11784   echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11786
11787   ac_header_preproc=no
11788 fi
11789
11790 rm -f conftest.err conftest.$ac_ext
11791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11792 echo "${ECHO_T}$ac_header_preproc" >&6; }
11793
11794 # So?  What about this header?
11795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11796   yes:no: )
11797     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11801     ac_header_preproc=yes
11802     ;;
11803   no:yes:* )
11804     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11806     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11807 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11808     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11810     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11811 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11814     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11816     ( cat <<\_ASBOX
11817 ## ----------------------------------- ##
11818 ## Report this to llvmbugs@cs.uiuc.edu ##
11819 ## ----------------------------------- ##
11820 _ASBOX
11821      ) | sed "s/^/$as_me: WARNING:     /" >&2
11822     ;;
11823 esac
11824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11827   echo $ECHO_N "(cached) $ECHO_C" >&6
11828 else
11829   eval "$as_ac_Header=\$ac_header_preproc"
11830 fi
11831 ac_res=`eval echo '${'$as_ac_Header'}'`
11832                { echo "$as_me:$LINENO: result: $ac_res" >&5
11833 echo "${ECHO_T}$ac_res" >&6; }
11834
11835 fi
11836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11837   cat >>confdefs.h <<_ACEOF
11838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11839 _ACEOF
11840
11841 fi
11842
11843 done
11844
11845
11846
11847
11848
11849 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11850 do
11851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11853   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11856   echo $ECHO_N "(cached) $ECHO_C" >&6
11857 fi
11858 ac_res=`eval echo '${'$as_ac_Header'}'`
11859                { echo "$as_me:$LINENO: result: $ac_res" >&5
11860 echo "${ECHO_T}$ac_res" >&6; }
11861 else
11862   # Is the header compilable?
11863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11865 cat >conftest.$ac_ext <<_ACEOF
11866 /* confdefs.h.  */
11867 _ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h.  */
11871 $ac_includes_default
11872 #include <$ac_header>
11873 _ACEOF
11874 rm -f conftest.$ac_objext
11875 if { (ac_try="$ac_compile"
11876 case "(($ac_try" in
11877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878   *) ac_try_echo=$ac_try;;
11879 esac
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881   (eval "$ac_compile") 2>conftest.er1
11882   ac_status=$?
11883   grep -v '^ *+' conftest.er1 >conftest.err
11884   rm -f conftest.er1
11885   cat conftest.err >&5
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); } &&
11888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11889   { (case "(($ac_try" in
11890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891   *) ac_try_echo=$ac_try;;
11892 esac
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894   (eval "$ac_try") 2>&5
11895   ac_status=$?
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); }; } &&
11898          { ac_try='test -s conftest.$ac_objext'
11899   { (case "(($ac_try" in
11900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901   *) ac_try_echo=$ac_try;;
11902 esac
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904   (eval "$ac_try") 2>&5
11905   ac_status=$?
11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); }; }; then
11908   ac_header_compiler=yes
11909 else
11910   echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11912
11913         ac_header_compiler=no
11914 fi
11915
11916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11918 echo "${ECHO_T}$ac_header_compiler" >&6; }
11919
11920 # Is the header present?
11921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11923 cat >conftest.$ac_ext <<_ACEOF
11924 /* confdefs.h.  */
11925 _ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h.  */
11929 #include <$ac_header>
11930 _ACEOF
11931 if { (ac_try="$ac_cpp conftest.$ac_ext"
11932 case "(($ac_try" in
11933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934   *) ac_try_echo=$ac_try;;
11935 esac
11936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11938   ac_status=$?
11939   grep -v '^ *+' conftest.er1 >conftest.err
11940   rm -f conftest.er1
11941   cat conftest.err >&5
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); } >/dev/null; then
11944   if test -s conftest.err; then
11945     ac_cpp_err=$ac_c_preproc_warn_flag
11946     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11947   else
11948     ac_cpp_err=
11949   fi
11950 else
11951   ac_cpp_err=yes
11952 fi
11953 if test -z "$ac_cpp_err"; then
11954   ac_header_preproc=yes
11955 else
11956   echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11958
11959   ac_header_preproc=no
11960 fi
11961
11962 rm -f conftest.err conftest.$ac_ext
11963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11964 echo "${ECHO_T}$ac_header_preproc" >&6; }
11965
11966 # So?  What about this header?
11967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11968   yes:no: )
11969     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11971     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11973     ac_header_preproc=yes
11974     ;;
11975   no:yes:* )
11976     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11978     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11979 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11980     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11982     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11983 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11986     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11988     ( cat <<\_ASBOX
11989 ## ----------------------------------- ##
11990 ## Report this to llvmbugs@cs.uiuc.edu ##
11991 ## ----------------------------------- ##
11992 _ASBOX
11993      ) | sed "s/^/$as_me: WARNING:     /" >&2
11994     ;;
11995 esac
11996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11999   echo $ECHO_N "(cached) $ECHO_C" >&6
12000 else
12001   eval "$as_ac_Header=\$ac_header_preproc"
12002 fi
12003 ac_res=`eval echo '${'$as_ac_Header'}'`
12004                { echo "$as_me:$LINENO: result: $ac_res" >&5
12005 echo "${ECHO_T}$ac_res" >&6; }
12006
12007 fi
12008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12009   cat >>confdefs.h <<_ACEOF
12010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12011 _ACEOF
12012
12013 fi
12014
12015 done
12016
12017
12018
12019 for ac_header in string.h strings.h
12020 do
12021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12023   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12026   echo $ECHO_N "(cached) $ECHO_C" >&6
12027 fi
12028 ac_res=`eval echo '${'$as_ac_Header'}'`
12029                { echo "$as_me:$LINENO: result: $ac_res" >&5
12030 echo "${ECHO_T}$ac_res" >&6; }
12031 else
12032   # Is the header compilable?
12033 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12035 cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h.  */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h.  */
12041 $ac_includes_default
12042 #include <$ac_header>
12043 _ACEOF
12044 rm -f conftest.$ac_objext
12045 if { (ac_try="$ac_compile"
12046 case "(($ac_try" in
12047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048   *) ac_try_echo=$ac_try;;
12049 esac
12050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051   (eval "$ac_compile") 2>conftest.er1
12052   ac_status=$?
12053   grep -v '^ *+' conftest.er1 >conftest.err
12054   rm -f conftest.er1
12055   cat conftest.err >&5
12056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057   (exit $ac_status); } &&
12058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12059   { (case "(($ac_try" in
12060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12061   *) ac_try_echo=$ac_try;;
12062 esac
12063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12064   (eval "$ac_try") 2>&5
12065   ac_status=$?
12066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067   (exit $ac_status); }; } &&
12068          { ac_try='test -s conftest.$ac_objext'
12069   { (case "(($ac_try" in
12070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071   *) ac_try_echo=$ac_try;;
12072 esac
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074   (eval "$ac_try") 2>&5
12075   ac_status=$?
12076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077   (exit $ac_status); }; }; then
12078   ac_header_compiler=yes
12079 else
12080   echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12082
12083         ac_header_compiler=no
12084 fi
12085
12086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12088 echo "${ECHO_T}$ac_header_compiler" >&6; }
12089
12090 # Is the header present?
12091 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12093 cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h.  */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h.  */
12099 #include <$ac_header>
12100 _ACEOF
12101 if { (ac_try="$ac_cpp conftest.$ac_ext"
12102 case "(($ac_try" in
12103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104   *) ac_try_echo=$ac_try;;
12105 esac
12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12108   ac_status=$?
12109   grep -v '^ *+' conftest.er1 >conftest.err
12110   rm -f conftest.er1
12111   cat conftest.err >&5
12112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113   (exit $ac_status); } >/dev/null; then
12114   if test -s conftest.err; then
12115     ac_cpp_err=$ac_c_preproc_warn_flag
12116     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12117   else
12118     ac_cpp_err=
12119   fi
12120 else
12121   ac_cpp_err=yes
12122 fi
12123 if test -z "$ac_cpp_err"; then
12124   ac_header_preproc=yes
12125 else
12126   echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12128
12129   ac_header_preproc=no
12130 fi
12131
12132 rm -f conftest.err conftest.$ac_ext
12133 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12134 echo "${ECHO_T}$ac_header_preproc" >&6; }
12135
12136 # So?  What about this header?
12137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12138   yes:no: )
12139     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12143     ac_header_preproc=yes
12144     ;;
12145   no:yes:* )
12146     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12148     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12149 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12150     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12152     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12153 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12156     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12158     ( cat <<\_ASBOX
12159 ## ----------------------------------- ##
12160 ## Report this to llvmbugs@cs.uiuc.edu ##
12161 ## ----------------------------------- ##
12162 _ASBOX
12163      ) | sed "s/^/$as_me: WARNING:     /" >&2
12164     ;;
12165 esac
12166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12169   echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171   eval "$as_ac_Header=\$ac_header_preproc"
12172 fi
12173 ac_res=`eval echo '${'$as_ac_Header'}'`
12174                { echo "$as_me:$LINENO: result: $ac_res" >&5
12175 echo "${ECHO_T}$ac_res" >&6; }
12176
12177 fi
12178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12179   cat >>confdefs.h <<_ACEOF
12180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12181 _ACEOF
12182  break
12183 fi
12184
12185 done
12186
12187
12188
12189
12190 for ac_func in strchr index
12191 do
12192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12193 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12195 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12196   echo $ECHO_N "(cached) $ECHO_C" >&6
12197 else
12198   cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h.  */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h.  */
12204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12206 #define $ac_func innocuous_$ac_func
12207
12208 /* System header to define __stub macros and hopefully few prototypes,
12209     which can conflict with char $ac_func (); below.
12210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12211     <limits.h> exists even on freestanding compilers.  */
12212
12213 #ifdef __STDC__
12214 # include <limits.h>
12215 #else
12216 # include <assert.h>
12217 #endif
12218
12219 #undef $ac_func
12220
12221 /* Override any GCC internal prototype to avoid an error.
12222    Use char because int might match the return type of a GCC
12223    builtin and then its argument prototype would still apply.  */
12224 #ifdef __cplusplus
12225 extern "C"
12226 #endif
12227 char $ac_func ();
12228 /* The GNU C library defines this for functions which it implements
12229     to always fail with ENOSYS.  Some functions are actually named
12230     something starting with __ and the normal name is an alias.  */
12231 #if defined __stub_$ac_func || defined __stub___$ac_func
12232 choke me
12233 #endif
12234
12235 int
12236 main ()
12237 {
12238 return $ac_func ();
12239   ;
12240   return 0;
12241 }
12242 _ACEOF
12243 rm -f conftest.$ac_objext conftest$ac_exeext
12244 if { (ac_try="$ac_link"
12245 case "(($ac_try" in
12246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247   *) ac_try_echo=$ac_try;;
12248 esac
12249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250   (eval "$ac_link") 2>conftest.er1
12251   ac_status=$?
12252   grep -v '^ *+' conftest.er1 >conftest.err
12253   rm -f conftest.er1
12254   cat conftest.err >&5
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); } &&
12257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12258   { (case "(($ac_try" in
12259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260   *) ac_try_echo=$ac_try;;
12261 esac
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263   (eval "$ac_try") 2>&5
12264   ac_status=$?
12265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266   (exit $ac_status); }; } &&
12267          { ac_try='test -s conftest$ac_exeext'
12268   { (case "(($ac_try" in
12269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270   *) ac_try_echo=$ac_try;;
12271 esac
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273   (eval "$ac_try") 2>&5
12274   ac_status=$?
12275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276   (exit $ac_status); }; }; then
12277   eval "$as_ac_var=yes"
12278 else
12279   echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12281
12282         eval "$as_ac_var=no"
12283 fi
12284
12285 rm -f core conftest.err conftest.$ac_objext \
12286       conftest$ac_exeext conftest.$ac_ext
12287 fi
12288 ac_res=`eval echo '${'$as_ac_var'}'`
12289                { echo "$as_me:$LINENO: result: $ac_res" >&5
12290 echo "${ECHO_T}$ac_res" >&6; }
12291 if test `eval echo '${'$as_ac_var'}'` = yes; then
12292   cat >>confdefs.h <<_ACEOF
12293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12294 _ACEOF
12295  break
12296 fi
12297 done
12298
12299
12300
12301 for ac_func in strrchr rindex
12302 do
12303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12304 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12307   echo $ECHO_N "(cached) $ECHO_C" >&6
12308 else
12309   cat >conftest.$ac_ext <<_ACEOF
12310 /* confdefs.h.  */
12311 _ACEOF
12312 cat confdefs.h >>conftest.$ac_ext
12313 cat >>conftest.$ac_ext <<_ACEOF
12314 /* end confdefs.h.  */
12315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12316    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12317 #define $ac_func innocuous_$ac_func
12318
12319 /* System header to define __stub macros and hopefully few prototypes,
12320     which can conflict with char $ac_func (); below.
12321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12322     <limits.h> exists even on freestanding compilers.  */
12323
12324 #ifdef __STDC__
12325 # include <limits.h>
12326 #else
12327 # include <assert.h>
12328 #endif
12329
12330 #undef $ac_func
12331
12332 /* Override any GCC internal prototype to avoid an error.
12333    Use char because int might match the return type of a GCC
12334    builtin and then its argument prototype would still apply.  */
12335 #ifdef __cplusplus
12336 extern "C"
12337 #endif
12338 char $ac_func ();
12339 /* The GNU C library defines this for functions which it implements
12340     to always fail with ENOSYS.  Some functions are actually named
12341     something starting with __ and the normal name is an alias.  */
12342 #if defined __stub_$ac_func || defined __stub___$ac_func
12343 choke me
12344 #endif
12345
12346 int
12347 main ()
12348 {
12349 return $ac_func ();
12350   ;
12351   return 0;
12352 }
12353 _ACEOF
12354 rm -f conftest.$ac_objext conftest$ac_exeext
12355 if { (ac_try="$ac_link"
12356 case "(($ac_try" in
12357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358   *) ac_try_echo=$ac_try;;
12359 esac
12360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361   (eval "$ac_link") 2>conftest.er1
12362   ac_status=$?
12363   grep -v '^ *+' conftest.er1 >conftest.err
12364   rm -f conftest.er1
12365   cat conftest.err >&5
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); } &&
12368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12369   { (case "(($ac_try" in
12370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371   *) ac_try_echo=$ac_try;;
12372 esac
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374   (eval "$ac_try") 2>&5
12375   ac_status=$?
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); }; } &&
12378          { ac_try='test -s conftest$ac_exeext'
12379   { (case "(($ac_try" in
12380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381   *) ac_try_echo=$ac_try;;
12382 esac
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384   (eval "$ac_try") 2>&5
12385   ac_status=$?
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); }; }; then
12388   eval "$as_ac_var=yes"
12389 else
12390   echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12392
12393         eval "$as_ac_var=no"
12394 fi
12395
12396 rm -f core conftest.err conftest.$ac_objext \
12397       conftest$ac_exeext conftest.$ac_ext
12398 fi
12399 ac_res=`eval echo '${'$as_ac_var'}'`
12400                { echo "$as_me:$LINENO: result: $ac_res" >&5
12401 echo "${ECHO_T}$ac_res" >&6; }
12402 if test `eval echo '${'$as_ac_var'}'` = yes; then
12403   cat >>confdefs.h <<_ACEOF
12404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12405 _ACEOF
12406  break
12407 fi
12408 done
12409
12410
12411
12412 for ac_func in memcpy bcopy
12413 do
12414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12415 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12418   echo $ECHO_N "(cached) $ECHO_C" >&6
12419 else
12420   cat >conftest.$ac_ext <<_ACEOF
12421 /* confdefs.h.  */
12422 _ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h.  */
12426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12428 #define $ac_func innocuous_$ac_func
12429
12430 /* System header to define __stub macros and hopefully few prototypes,
12431     which can conflict with char $ac_func (); below.
12432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12433     <limits.h> exists even on freestanding compilers.  */
12434
12435 #ifdef __STDC__
12436 # include <limits.h>
12437 #else
12438 # include <assert.h>
12439 #endif
12440
12441 #undef $ac_func
12442
12443 /* Override any GCC internal prototype to avoid an error.
12444    Use char because int might match the return type of a GCC
12445    builtin and then its argument prototype would still apply.  */
12446 #ifdef __cplusplus
12447 extern "C"
12448 #endif
12449 char $ac_func ();
12450 /* The GNU C library defines this for functions which it implements
12451     to always fail with ENOSYS.  Some functions are actually named
12452     something starting with __ and the normal name is an alias.  */
12453 #if defined __stub_$ac_func || defined __stub___$ac_func
12454 choke me
12455 #endif
12456
12457 int
12458 main ()
12459 {
12460 return $ac_func ();
12461   ;
12462   return 0;
12463 }
12464 _ACEOF
12465 rm -f conftest.$ac_objext conftest$ac_exeext
12466 if { (ac_try="$ac_link"
12467 case "(($ac_try" in
12468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12469   *) ac_try_echo=$ac_try;;
12470 esac
12471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12472   (eval "$ac_link") 2>conftest.er1
12473   ac_status=$?
12474   grep -v '^ *+' conftest.er1 >conftest.err
12475   rm -f conftest.er1
12476   cat conftest.err >&5
12477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); } &&
12479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12480   { (case "(($ac_try" in
12481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482   *) ac_try_echo=$ac_try;;
12483 esac
12484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485   (eval "$ac_try") 2>&5
12486   ac_status=$?
12487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); }; } &&
12489          { ac_try='test -s conftest$ac_exeext'
12490   { (case "(($ac_try" in
12491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492   *) ac_try_echo=$ac_try;;
12493 esac
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495   (eval "$ac_try") 2>&5
12496   ac_status=$?
12497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498   (exit $ac_status); }; }; then
12499   eval "$as_ac_var=yes"
12500 else
12501   echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12503
12504         eval "$as_ac_var=no"
12505 fi
12506
12507 rm -f core conftest.err conftest.$ac_objext \
12508       conftest$ac_exeext conftest.$ac_ext
12509 fi
12510 ac_res=`eval echo '${'$as_ac_var'}'`
12511                { echo "$as_me:$LINENO: result: $ac_res" >&5
12512 echo "${ECHO_T}$ac_res" >&6; }
12513 if test `eval echo '${'$as_ac_var'}'` = yes; then
12514   cat >>confdefs.h <<_ACEOF
12515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12516 _ACEOF
12517  break
12518 fi
12519 done
12520
12521
12522
12523 for ac_func in memmove strcmp
12524 do
12525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12526 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12529   echo $ECHO_N "(cached) $ECHO_C" >&6
12530 else
12531   cat >conftest.$ac_ext <<_ACEOF
12532 /* confdefs.h.  */
12533 _ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h.  */
12537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12538    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12539 #define $ac_func innocuous_$ac_func
12540
12541 /* System header to define __stub macros and hopefully few prototypes,
12542     which can conflict with char $ac_func (); below.
12543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12544     <limits.h> exists even on freestanding compilers.  */
12545
12546 #ifdef __STDC__
12547 # include <limits.h>
12548 #else
12549 # include <assert.h>
12550 #endif
12551
12552 #undef $ac_func
12553
12554 /* Override any GCC internal prototype to avoid an error.
12555    Use char because int might match the return type of a GCC
12556    builtin and then its argument prototype would still apply.  */
12557 #ifdef __cplusplus
12558 extern "C"
12559 #endif
12560 char $ac_func ();
12561 /* The GNU C library defines this for functions which it implements
12562     to always fail with ENOSYS.  Some functions are actually named
12563     something starting with __ and the normal name is an alias.  */
12564 #if defined __stub_$ac_func || defined __stub___$ac_func
12565 choke me
12566 #endif
12567
12568 int
12569 main ()
12570 {
12571 return $ac_func ();
12572   ;
12573   return 0;
12574 }
12575 _ACEOF
12576 rm -f conftest.$ac_objext conftest$ac_exeext
12577 if { (ac_try="$ac_link"
12578 case "(($ac_try" in
12579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580   *) ac_try_echo=$ac_try;;
12581 esac
12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583   (eval "$ac_link") 2>conftest.er1
12584   ac_status=$?
12585   grep -v '^ *+' conftest.er1 >conftest.err
12586   rm -f conftest.er1
12587   cat conftest.err >&5
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); } &&
12590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12591   { (case "(($ac_try" in
12592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593   *) ac_try_echo=$ac_try;;
12594 esac
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596   (eval "$ac_try") 2>&5
12597   ac_status=$?
12598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); }; } &&
12600          { ac_try='test -s conftest$ac_exeext'
12601   { (case "(($ac_try" in
12602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603   *) ac_try_echo=$ac_try;;
12604 esac
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606   (eval "$ac_try") 2>&5
12607   ac_status=$?
12608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609   (exit $ac_status); }; }; then
12610   eval "$as_ac_var=yes"
12611 else
12612   echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12614
12615         eval "$as_ac_var=no"
12616 fi
12617
12618 rm -f core conftest.err conftest.$ac_objext \
12619       conftest$ac_exeext conftest.$ac_ext
12620 fi
12621 ac_res=`eval echo '${'$as_ac_var'}'`
12622                { echo "$as_me:$LINENO: result: $ac_res" >&5
12623 echo "${ECHO_T}$ac_res" >&6; }
12624 if test `eval echo '${'$as_ac_var'}'` = yes; then
12625   cat >>confdefs.h <<_ACEOF
12626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12627 _ACEOF
12628
12629 fi
12630 done
12631
12632
12633
12634
12635 for ac_func in closedir opendir readdir
12636 do
12637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12641   echo $ECHO_N "(cached) $ECHO_C" >&6
12642 else
12643   cat >conftest.$ac_ext <<_ACEOF
12644 /* confdefs.h.  */
12645 _ACEOF
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h.  */
12649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12651 #define $ac_func innocuous_$ac_func
12652
12653 /* System header to define __stub macros and hopefully few prototypes,
12654     which can conflict with char $ac_func (); below.
12655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12656     <limits.h> exists even on freestanding compilers.  */
12657
12658 #ifdef __STDC__
12659 # include <limits.h>
12660 #else
12661 # include <assert.h>
12662 #endif
12663
12664 #undef $ac_func
12665
12666 /* Override any GCC internal prototype to avoid an error.
12667    Use char because int might match the return type of a GCC
12668    builtin and then its argument prototype would still apply.  */
12669 #ifdef __cplusplus
12670 extern "C"
12671 #endif
12672 char $ac_func ();
12673 /* The GNU C library defines this for functions which it implements
12674     to always fail with ENOSYS.  Some functions are actually named
12675     something starting with __ and the normal name is an alias.  */
12676 #if defined __stub_$ac_func || defined __stub___$ac_func
12677 choke me
12678 #endif
12679
12680 int
12681 main ()
12682 {
12683 return $ac_func ();
12684   ;
12685   return 0;
12686 }
12687 _ACEOF
12688 rm -f conftest.$ac_objext conftest$ac_exeext
12689 if { (ac_try="$ac_link"
12690 case "(($ac_try" in
12691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692   *) ac_try_echo=$ac_try;;
12693 esac
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695   (eval "$ac_link") 2>conftest.er1
12696   ac_status=$?
12697   grep -v '^ *+' conftest.er1 >conftest.err
12698   rm -f conftest.er1
12699   cat conftest.err >&5
12700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701   (exit $ac_status); } &&
12702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12703   { (case "(($ac_try" in
12704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705   *) ac_try_echo=$ac_try;;
12706 esac
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708   (eval "$ac_try") 2>&5
12709   ac_status=$?
12710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); }; } &&
12712          { ac_try='test -s conftest$ac_exeext'
12713   { (case "(($ac_try" in
12714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715   *) ac_try_echo=$ac_try;;
12716 esac
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718   (eval "$ac_try") 2>&5
12719   ac_status=$?
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); }; }; then
12722   eval "$as_ac_var=yes"
12723 else
12724   echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12726
12727         eval "$as_ac_var=no"
12728 fi
12729
12730 rm -f core conftest.err conftest.$ac_objext \
12731       conftest$ac_exeext conftest.$ac_ext
12732 fi
12733 ac_res=`eval echo '${'$as_ac_var'}'`
12734                { echo "$as_me:$LINENO: result: $ac_res" >&5
12735 echo "${ECHO_T}$ac_res" >&6; }
12736 if test `eval echo '${'$as_ac_var'}'` = yes; then
12737   cat >>confdefs.h <<_ACEOF
12738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12739 _ACEOF
12740
12741 fi
12742 done
12743
12744
12745 # Check whether --enable-shared was given.
12746 if test "${enable_shared+set}" = set; then
12747   enableval=$enable_shared; p=${PACKAGE-default}
12748     case $enableval in
12749     yes) enable_shared=yes ;;
12750     no) enable_shared=no ;;
12751     *)
12752       enable_shared=no
12753       # Look at the argument we got.  We use all the common list separators.
12754       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12755       for pkg in $enableval; do
12756         IFS="$lt_save_ifs"
12757         if test "X$pkg" = "X$p"; then
12758           enable_shared=yes
12759         fi
12760       done
12761       IFS="$lt_save_ifs"
12762       ;;
12763     esac
12764 else
12765   enable_shared=yes
12766 fi
12767
12768
12769 # Check whether --enable-static was given.
12770 if test "${enable_static+set}" = set; then
12771   enableval=$enable_static; p=${PACKAGE-default}
12772     case $enableval in
12773     yes) enable_static=yes ;;
12774     no) enable_static=no ;;
12775     *)
12776      enable_static=no
12777       # Look at the argument we got.  We use all the common list separators.
12778       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12779       for pkg in $enableval; do
12780         IFS="$lt_save_ifs"
12781         if test "X$pkg" = "X$p"; then
12782           enable_static=yes
12783         fi
12784       done
12785       IFS="$lt_save_ifs"
12786       ;;
12787     esac
12788 else
12789   enable_static=yes
12790 fi
12791
12792
12793 # Check whether --enable-fast-install was given.
12794 if test "${enable_fast_install+set}" = set; then
12795   enableval=$enable_fast_install; p=${PACKAGE-default}
12796     case $enableval in
12797     yes) enable_fast_install=yes ;;
12798     no) enable_fast_install=no ;;
12799     *)
12800       enable_fast_install=no
12801       # Look at the argument we got.  We use all the common list separators.
12802       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12803       for pkg in $enableval; do
12804         IFS="$lt_save_ifs"
12805         if test "X$pkg" = "X$p"; then
12806           enable_fast_install=yes
12807         fi
12808       done
12809       IFS="$lt_save_ifs"
12810       ;;
12811     esac
12812 else
12813   enable_fast_install=yes
12814 fi
12815
12816
12817 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12818 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12819 if test "${lt_cv_path_SED+set}" = set; then
12820   echo $ECHO_N "(cached) $ECHO_C" >&6
12821 else
12822   # Loop through the user's path and test for sed and gsed.
12823 # Then use that list of sed's as ones to test for truncation.
12824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825 for as_dir in $PATH
12826 do
12827   IFS=$as_save_IFS
12828   test -z "$as_dir" && as_dir=.
12829   for lt_ac_prog in sed gsed; do
12830     for ac_exec_ext in '' $ac_executable_extensions; do
12831       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12832         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12833       fi
12834     done
12835   done
12836 done
12837 lt_ac_max=0
12838 lt_ac_count=0
12839 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12840 # along with /bin/sed that truncates output.
12841 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12842   test ! -f $lt_ac_sed && continue
12843   cat /dev/null > conftest.in
12844   lt_ac_count=0
12845   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12846   # Check for GNU sed and select it if it is found.
12847   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12848     lt_cv_path_SED=$lt_ac_sed
12849     break
12850   fi
12851   while true; do
12852     cat conftest.in conftest.in >conftest.tmp
12853     mv conftest.tmp conftest.in
12854     cp conftest.in conftest.nl
12855     echo >>conftest.nl
12856     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12857     cmp -s conftest.out conftest.nl || break
12858     # 10000 chars as input seems more than enough
12859     test $lt_ac_count -gt 10 && break
12860     lt_ac_count=`expr $lt_ac_count + 1`
12861     if test $lt_ac_count -gt $lt_ac_max; then
12862       lt_ac_max=$lt_ac_count
12863       lt_cv_path_SED=$lt_ac_sed
12864     fi
12865   done
12866 done
12867
12868 fi
12869
12870 SED=$lt_cv_path_SED
12871 { echo "$as_me:$LINENO: result: $SED" >&5
12872 echo "${ECHO_T}$SED" >&6; }
12873
12874
12875 # Check whether --with-gnu-ld was given.
12876 if test "${with_gnu_ld+set}" = set; then
12877   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12878 else
12879   with_gnu_ld=no
12880 fi
12881
12882 ac_prog=ld
12883 if test "$GCC" = yes; then
12884   # Check if gcc -print-prog-name=ld gives a path.
12885   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12886 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12887   case $host in
12888   *-*-mingw*)
12889     # gcc leaves a trailing carriage return which upsets mingw
12890     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12891   *)
12892     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12893   esac
12894   case $ac_prog in
12895     # Accept absolute paths.
12896     [\\/]* | ?:[\\/]*)
12897       re_direlt='/[^/][^/]*/\.\./'
12898       # Canonicalize the pathname of ld
12899       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12900       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12901         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12902       done
12903       test -z "$LD" && LD="$ac_prog"
12904       ;;
12905   "")
12906     # If it fails, then pretend we aren't using GCC.
12907     ac_prog=ld
12908     ;;
12909   *)
12910     # If it is relative, then search for the first ld in PATH.
12911     with_gnu_ld=unknown
12912     ;;
12913   esac
12914 elif test "$with_gnu_ld" = yes; then
12915   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12916 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12917 else
12918   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12919 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12920 fi
12921 if test "${lt_cv_path_LD+set}" = set; then
12922   echo $ECHO_N "(cached) $ECHO_C" >&6
12923 else
12924   if test -z "$LD"; then
12925   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12926   for ac_dir in $PATH; do
12927     IFS="$lt_save_ifs"
12928     test -z "$ac_dir" && ac_dir=.
12929     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12930       lt_cv_path_LD="$ac_dir/$ac_prog"
12931       # Check to see if the program is GNU ld.  I'd rather use --version,
12932       # but apparently some variants of GNU ld only accept -v.
12933       # Break only if it was the GNU/non-GNU ld that we prefer.
12934       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12935       *GNU* | *'with BFD'*)
12936         test "$with_gnu_ld" != no && break
12937         ;;
12938       *)
12939         test "$with_gnu_ld" != yes && break
12940         ;;
12941       esac
12942     fi
12943   done
12944   IFS="$lt_save_ifs"
12945 else
12946   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12947 fi
12948 fi
12949
12950 LD="$lt_cv_path_LD"
12951 if test -n "$LD"; then
12952   { echo "$as_me:$LINENO: result: $LD" >&5
12953 echo "${ECHO_T}$LD" >&6; }
12954 else
12955   { echo "$as_me:$LINENO: result: no" >&5
12956 echo "${ECHO_T}no" >&6; }
12957 fi
12958 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12959 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12960    { (exit 1); exit 1; }; }
12961 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12962 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12963 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12964   echo $ECHO_N "(cached) $ECHO_C" >&6
12965 else
12966   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12967 case `$LD -v 2>&1 </dev/null` in
12968 *GNU* | *'with BFD'*)
12969   lt_cv_prog_gnu_ld=yes
12970   ;;
12971 *)
12972   lt_cv_prog_gnu_ld=no
12973   ;;
12974 esac
12975 fi
12976 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12977 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12978 with_gnu_ld=$lt_cv_prog_gnu_ld
12979
12980
12981 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12982 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12983 if test "${lt_cv_ld_reload_flag+set}" = set; then
12984   echo $ECHO_N "(cached) $ECHO_C" >&6
12985 else
12986   lt_cv_ld_reload_flag='-r'
12987 fi
12988 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12989 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12990 reload_flag=$lt_cv_ld_reload_flag
12991 case $reload_flag in
12992 "" | " "*) ;;
12993 *) reload_flag=" $reload_flag" ;;
12994 esac
12995 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12996 case $host_os in
12997   darwin*)
12998     if test "$GCC" = yes; then
12999       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
13000     else
13001       reload_cmds='$LD$reload_flag -o $output$reload_objs'
13002     fi
13003     ;;
13004 esac
13005
13006 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
13007 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
13008 if test "${lt_cv_deplibs_check_method+set}" = set; then
13009   echo $ECHO_N "(cached) $ECHO_C" >&6
13010 else
13011   lt_cv_file_magic_cmd='$MAGIC_CMD'
13012 lt_cv_file_magic_test_file=
13013 lt_cv_deplibs_check_method='unknown'
13014 # Need to set the preceding variable on all platforms that support
13015 # interlibrary dependencies.
13016 # 'none' -- dependencies not supported.
13017 # `unknown' -- same as none, but documents that we really don't know.
13018 # 'pass_all' -- all dependencies passed with no checks.
13019 # 'test_compile' -- check by making test program.
13020 # 'file_magic [[regex]]' -- check by looking for files in library path
13021 # which responds to the $file_magic_cmd with a given extended regex.
13022 # If you have `file' or equivalent on your system and you're not sure
13023 # whether `pass_all' will *always* work, you probably want this one.
13024
13025 case $host_os in
13026 aix4* | aix5*)
13027   lt_cv_deplibs_check_method=pass_all
13028   ;;
13029
13030 beos*)
13031   lt_cv_deplibs_check_method=pass_all
13032   ;;
13033
13034 bsdi[45]*)
13035   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13036   lt_cv_file_magic_cmd='/usr/bin/file -L'
13037   lt_cv_file_magic_test_file=/shlib/libc.so
13038   ;;
13039
13040 cygwin*)
13041   # func_win32_libid is a shell function defined in ltmain.sh
13042   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13043   lt_cv_file_magic_cmd='func_win32_libid'
13044   ;;
13045
13046 mingw* | pw32*)
13047   # Base MSYS/MinGW do not provide the 'file' command needed by
13048   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
13049   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13050   lt_cv_file_magic_cmd='$OBJDUMP -f'
13051   ;;
13052
13053 darwin* | rhapsody*)
13054   lt_cv_deplibs_check_method=pass_all
13055   ;;
13056
13057 freebsd* | kfreebsd*-gnu | dragonfly*)
13058   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13059     case $host_cpu in
13060     i*86 )
13061       # Not sure whether the presence of OpenBSD here was a mistake.
13062       # Let's accept both of them until this is cleared up.
13063       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13064       lt_cv_file_magic_cmd=/usr/bin/file
13065       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13066       ;;
13067     esac
13068   else
13069     lt_cv_deplibs_check_method=pass_all
13070   fi
13071   ;;
13072
13073 gnu*)
13074   lt_cv_deplibs_check_method=pass_all
13075   ;;
13076
13077 hpux10.20* | hpux11*)
13078   lt_cv_file_magic_cmd=/usr/bin/file
13079   case $host_cpu in
13080   ia64*)
13081     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13082     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13083     ;;
13084   hppa*64*)
13085     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]'
13086     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13087     ;;
13088   *)
13089     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13090     lt_cv_file_magic_test_file=/usr/lib/libc.sl
13091     ;;
13092   esac
13093   ;;
13094
13095 interix3*)
13096   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13097   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13098   ;;
13099
13100 irix5* | irix6* | nonstopux*)
13101   case $LD in
13102   *-32|*"-32 ") libmagic=32-bit;;
13103   *-n32|*"-n32 ") libmagic=N32;;
13104   *-64|*"-64 ") libmagic=64-bit;;
13105   *) libmagic=never-match;;
13106   esac
13107   lt_cv_deplibs_check_method=pass_all
13108   ;;
13109
13110 # This must be Linux ELF.
13111 linux*)
13112   lt_cv_deplibs_check_method=pass_all
13113   ;;
13114
13115 netbsd*)
13116   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13117     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13118   else
13119     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13120   fi
13121   ;;
13122
13123 newos6*)
13124   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13125   lt_cv_file_magic_cmd=/usr/bin/file
13126   lt_cv_file_magic_test_file=/usr/lib/libnls.so
13127   ;;
13128
13129 nto-qnx*)
13130   lt_cv_deplibs_check_method=unknown
13131   ;;
13132
13133 openbsd*)
13134   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13135     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13136   else
13137     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13138   fi
13139   ;;
13140
13141 osf3* | osf4* | osf5*)
13142   lt_cv_deplibs_check_method=pass_all
13143   ;;
13144
13145 solaris*)
13146   lt_cv_deplibs_check_method=pass_all
13147   ;;
13148
13149 sysv4 | sysv4.3*)
13150   case $host_vendor in
13151   motorola)
13152     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]'
13153     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13154     ;;
13155   ncr)
13156     lt_cv_deplibs_check_method=pass_all
13157     ;;
13158   sequent)
13159     lt_cv_file_magic_cmd='/bin/file'
13160     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13161     ;;
13162   sni)
13163     lt_cv_file_magic_cmd='/bin/file'
13164     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13165     lt_cv_file_magic_test_file=/lib/libc.so
13166     ;;
13167   siemens)
13168     lt_cv_deplibs_check_method=pass_all
13169     ;;
13170   pc)
13171     lt_cv_deplibs_check_method=pass_all
13172     ;;
13173   esac
13174   ;;
13175
13176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13177   lt_cv_deplibs_check_method=pass_all
13178   ;;
13179 esac
13180
13181 fi
13182 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13183 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13184 file_magic_cmd=$lt_cv_file_magic_cmd
13185 deplibs_check_method=$lt_cv_deplibs_check_method
13186 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13187
13188
13189
13190 # If no C compiler was specified, use CC.
13191 LTCC=${LTCC-"$CC"}
13192
13193 # If no C compiler flags were specified, use CFLAGS.
13194 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13195
13196 # Allow CC to be a program name with arguments.
13197 compiler=$CC
13198
13199 # Check whether --enable-libtool-lock was given.
13200 if test "${enable_libtool_lock+set}" = set; then
13201   enableval=$enable_libtool_lock;
13202 fi
13203
13204 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13205
13206 # Some flags need to be propagated to the compiler or linker for good
13207 # libtool support.
13208 case $host in
13209 ia64-*-hpux*)
13210   # Find out which ABI we are using.
13211   echo 'int i;' > conftest.$ac_ext
13212   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13213   (eval $ac_compile) 2>&5
13214   ac_status=$?
13215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216   (exit $ac_status); }; then
13217     case `/usr/bin/file conftest.$ac_objext` in
13218     *ELF-32*)
13219       HPUX_IA64_MODE="32"
13220       ;;
13221     *ELF-64*)
13222       HPUX_IA64_MODE="64"
13223       ;;
13224     esac
13225   fi
13226   rm -rf conftest*
13227   ;;
13228 *-*-irix6*)
13229   # Find out which ABI we are using.
13230   echo '#line 13230 "configure"' > conftest.$ac_ext
13231   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13232   (eval $ac_compile) 2>&5
13233   ac_status=$?
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); }; then
13236    if test "$lt_cv_prog_gnu_ld" = yes; then
13237     case `/usr/bin/file conftest.$ac_objext` in
13238     *32-bit*)
13239       LD="${LD-ld} -melf32bsmip"
13240       ;;
13241     *N32*)
13242       LD="${LD-ld} -melf32bmipn32"
13243       ;;
13244     *64-bit*)
13245       LD="${LD-ld} -melf64bmip"
13246       ;;
13247     esac
13248    else
13249     case `/usr/bin/file conftest.$ac_objext` in
13250     *32-bit*)
13251       LD="${LD-ld} -32"
13252       ;;
13253     *N32*)
13254       LD="${LD-ld} -n32"
13255       ;;
13256     *64-bit*)
13257       LD="${LD-ld} -64"
13258       ;;
13259     esac
13260    fi
13261   fi
13262   rm -rf conftest*
13263   ;;
13264
13265 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13266   # Find out which ABI we are using.
13267   echo 'int i;' > conftest.$ac_ext
13268   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13269   (eval $ac_compile) 2>&5
13270   ac_status=$?
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); }; then
13273     case `/usr/bin/file conftest.o` in
13274     *32-bit*)
13275       case $host in
13276         x86_64-*linux*)
13277           LD="${LD-ld} -m elf_i386"
13278           ;;
13279         ppc64-*linux*|powerpc64-*linux*)
13280           LD="${LD-ld} -m elf32ppclinux"
13281           ;;
13282         s390x-*linux*)
13283           LD="${LD-ld} -m elf_s390"
13284           ;;
13285         sparc64-*linux*)
13286           LD="${LD-ld} -m elf32_sparc"
13287           ;;
13288       esac
13289       ;;
13290     *64-bit*)
13291       case $host in
13292         x86_64-*linux*)
13293           LD="${LD-ld} -m elf_x86_64"
13294           ;;
13295         ppc*-*linux*|powerpc*-*linux*)
13296           LD="${LD-ld} -m elf64ppc"
13297           ;;
13298         s390*-*linux*)
13299           LD="${LD-ld} -m elf64_s390"
13300           ;;
13301         sparc*-*linux*)
13302           LD="${LD-ld} -m elf64_sparc"
13303           ;;
13304       esac
13305       ;;
13306     esac
13307   fi
13308   rm -rf conftest*
13309   ;;
13310
13311 *-*-sco3.2v5*)
13312   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13313   SAVE_CFLAGS="$CFLAGS"
13314   CFLAGS="$CFLAGS -belf"
13315   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13316 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13317 if test "${lt_cv_cc_needs_belf+set}" = set; then
13318   echo $ECHO_N "(cached) $ECHO_C" >&6
13319 else
13320   ac_ext=c
13321 ac_cpp='$CPP $CPPFLAGS'
13322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13325
13326      cat >conftest.$ac_ext <<_ACEOF
13327 /* confdefs.h.  */
13328 _ACEOF
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h.  */
13332
13333 int
13334 main ()
13335 {
13336
13337   ;
13338   return 0;
13339 }
13340 _ACEOF
13341 rm -f conftest.$ac_objext conftest$ac_exeext
13342 if { (ac_try="$ac_link"
13343 case "(($ac_try" in
13344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345   *) ac_try_echo=$ac_try;;
13346 esac
13347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13348   (eval "$ac_link") 2>conftest.er1
13349   ac_status=$?
13350   grep -v '^ *+' conftest.er1 >conftest.err
13351   rm -f conftest.er1
13352   cat conftest.err >&5
13353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354   (exit $ac_status); } &&
13355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13356   { (case "(($ac_try" in
13357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358   *) ac_try_echo=$ac_try;;
13359 esac
13360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361   (eval "$ac_try") 2>&5
13362   ac_status=$?
13363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364   (exit $ac_status); }; } &&
13365          { ac_try='test -s conftest$ac_exeext'
13366   { (case "(($ac_try" in
13367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368   *) ac_try_echo=$ac_try;;
13369 esac
13370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371   (eval "$ac_try") 2>&5
13372   ac_status=$?
13373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); }; }; then
13375   lt_cv_cc_needs_belf=yes
13376 else
13377   echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.$ac_ext >&5
13379
13380         lt_cv_cc_needs_belf=no
13381 fi
13382
13383 rm -f core conftest.err conftest.$ac_objext \
13384       conftest$ac_exeext conftest.$ac_ext
13385      ac_ext=c
13386 ac_cpp='$CPP $CPPFLAGS'
13387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13390
13391 fi
13392 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13393 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13394   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13395     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13396     CFLAGS="$SAVE_CFLAGS"
13397   fi
13398   ;;
13399 sparc*-*solaris*)
13400   # Find out which ABI we are using.
13401   echo 'int i;' > conftest.$ac_ext
13402   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13403   (eval $ac_compile) 2>&5
13404   ac_status=$?
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); }; then
13407     case `/usr/bin/file conftest.o` in
13408     *64-bit*)
13409       case $lt_cv_prog_gnu_ld in
13410       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13411       *)    LD="${LD-ld} -64" ;;
13412       esac
13413       ;;
13414     esac
13415   fi
13416   rm -rf conftest*
13417   ;;
13418
13419
13420 esac
13421
13422 need_locks="$enable_libtool_lock"
13423
13424
13425
13426
13427 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13428     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13429     (test "X$CXX" != "Xg++"))) ; then
13430   ac_ext=cpp
13431 ac_cpp='$CXXCPP $CPPFLAGS'
13432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13435 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13436 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13437 if test -z "$CXXCPP"; then
13438   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13439   echo $ECHO_N "(cached) $ECHO_C" >&6
13440 else
13441       # Double quotes because CXXCPP needs to be expanded
13442     for CXXCPP in "$CXX -E" "/lib/cpp"
13443     do
13444       ac_preproc_ok=false
13445 for ac_cxx_preproc_warn_flag in '' yes
13446 do
13447   # Use a header file that comes with gcc, so configuring glibc
13448   # with a fresh cross-compiler works.
13449   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13450   # <limits.h> exists even on freestanding compilers.
13451   # On the NeXT, cc -E runs the code through the compiler's parser,
13452   # not just through cpp. "Syntax error" is here to catch this case.
13453   cat >conftest.$ac_ext <<_ACEOF
13454 /* confdefs.h.  */
13455 _ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h.  */
13459 #ifdef __STDC__
13460 # include <limits.h>
13461 #else
13462 # include <assert.h>
13463 #endif
13464                      Syntax error
13465 _ACEOF
13466 if { (ac_try="$ac_cpp conftest.$ac_ext"
13467 case "(($ac_try" in
13468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469   *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13473   ac_status=$?
13474   grep -v '^ *+' conftest.er1 >conftest.err
13475   rm -f conftest.er1
13476   cat conftest.err >&5
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); } >/dev/null; then
13479   if test -s conftest.err; then
13480     ac_cpp_err=$ac_cxx_preproc_warn_flag
13481     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13482   else
13483     ac_cpp_err=
13484   fi
13485 else
13486   ac_cpp_err=yes
13487 fi
13488 if test -z "$ac_cpp_err"; then
13489   :
13490 else
13491   echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13493
13494   # Broken: fails on valid input.
13495 continue
13496 fi
13497
13498 rm -f conftest.err conftest.$ac_ext
13499
13500   # OK, works on sane cases.  Now check whether nonexistent headers
13501   # can be detected and how.
13502   cat >conftest.$ac_ext <<_ACEOF
13503 /* confdefs.h.  */
13504 _ACEOF
13505 cat confdefs.h >>conftest.$ac_ext
13506 cat >>conftest.$ac_ext <<_ACEOF
13507 /* end confdefs.h.  */
13508 #include <ac_nonexistent.h>
13509 _ACEOF
13510 if { (ac_try="$ac_cpp conftest.$ac_ext"
13511 case "(($ac_try" in
13512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513   *) ac_try_echo=$ac_try;;
13514 esac
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13517   ac_status=$?
13518   grep -v '^ *+' conftest.er1 >conftest.err
13519   rm -f conftest.er1
13520   cat conftest.err >&5
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); } >/dev/null; then
13523   if test -s conftest.err; then
13524     ac_cpp_err=$ac_cxx_preproc_warn_flag
13525     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13526   else
13527     ac_cpp_err=
13528   fi
13529 else
13530   ac_cpp_err=yes
13531 fi
13532 if test -z "$ac_cpp_err"; then
13533   # Broken: success on invalid input.
13534 continue
13535 else
13536   echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13538
13539   # Passes both tests.
13540 ac_preproc_ok=:
13541 break
13542 fi
13543
13544 rm -f conftest.err conftest.$ac_ext
13545
13546 done
13547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13548 rm -f conftest.err conftest.$ac_ext
13549 if $ac_preproc_ok; then
13550   break
13551 fi
13552
13553     done
13554     ac_cv_prog_CXXCPP=$CXXCPP
13555
13556 fi
13557   CXXCPP=$ac_cv_prog_CXXCPP
13558 else
13559   ac_cv_prog_CXXCPP=$CXXCPP
13560 fi
13561 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13562 echo "${ECHO_T}$CXXCPP" >&6; }
13563 ac_preproc_ok=false
13564 for ac_cxx_preproc_warn_flag in '' yes
13565 do
13566   # Use a header file that comes with gcc, so configuring glibc
13567   # with a fresh cross-compiler works.
13568   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13569   # <limits.h> exists even on freestanding compilers.
13570   # On the NeXT, cc -E runs the code through the compiler's parser,
13571   # not just through cpp. "Syntax error" is here to catch this case.
13572   cat >conftest.$ac_ext <<_ACEOF
13573 /* confdefs.h.  */
13574 _ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h.  */
13578 #ifdef __STDC__
13579 # include <limits.h>
13580 #else
13581 # include <assert.h>
13582 #endif
13583                      Syntax error
13584 _ACEOF
13585 if { (ac_try="$ac_cpp conftest.$ac_ext"
13586 case "(($ac_try" in
13587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588   *) ac_try_echo=$ac_try;;
13589 esac
13590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13592   ac_status=$?
13593   grep -v '^ *+' conftest.er1 >conftest.err
13594   rm -f conftest.er1
13595   cat conftest.err >&5
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); } >/dev/null; then
13598   if test -s conftest.err; then
13599     ac_cpp_err=$ac_cxx_preproc_warn_flag
13600     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13601   else
13602     ac_cpp_err=
13603   fi
13604 else
13605   ac_cpp_err=yes
13606 fi
13607 if test -z "$ac_cpp_err"; then
13608   :
13609 else
13610   echo "$as_me: failed program was:" >&5
13611 sed 's/^/| /' conftest.$ac_ext >&5
13612
13613   # Broken: fails on valid input.
13614 continue
13615 fi
13616
13617 rm -f conftest.err conftest.$ac_ext
13618
13619   # OK, works on sane cases.  Now check whether nonexistent headers
13620   # can be detected and how.
13621   cat >conftest.$ac_ext <<_ACEOF
13622 /* confdefs.h.  */
13623 _ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h.  */
13627 #include <ac_nonexistent.h>
13628 _ACEOF
13629 if { (ac_try="$ac_cpp conftest.$ac_ext"
13630 case "(($ac_try" in
13631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632   *) ac_try_echo=$ac_try;;
13633 esac
13634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13636   ac_status=$?
13637   grep -v '^ *+' conftest.er1 >conftest.err
13638   rm -f conftest.er1
13639   cat conftest.err >&5
13640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641   (exit $ac_status); } >/dev/null; then
13642   if test -s conftest.err; then
13643     ac_cpp_err=$ac_cxx_preproc_warn_flag
13644     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13645   else
13646     ac_cpp_err=
13647   fi
13648 else
13649   ac_cpp_err=yes
13650 fi
13651 if test -z "$ac_cpp_err"; then
13652   # Broken: success on invalid input.
13653 continue
13654 else
13655   echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13657
13658   # Passes both tests.
13659 ac_preproc_ok=:
13660 break
13661 fi
13662
13663 rm -f conftest.err conftest.$ac_ext
13664
13665 done
13666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13667 rm -f conftest.err conftest.$ac_ext
13668 if $ac_preproc_ok; then
13669   :
13670 else
13671   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13672 See \`config.log' for more details." >&5
13673 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13674 See \`config.log' for more details." >&2;}
13675    { (exit 1); exit 1; }; }
13676 fi
13677
13678 ac_ext=cpp
13679 ac_cpp='$CXXCPP $CPPFLAGS'
13680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13683
13684 fi
13685
13686
13687 ac_ext=f
13688 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13689 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13690 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13691 if test -n "$ac_tool_prefix"; then
13692   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
13693   do
13694     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13698 if test "${ac_cv_prog_F77+set}" = set; then
13699   echo $ECHO_N "(cached) $ECHO_C" >&6
13700 else
13701   if test -n "$F77"; then
13702   ac_cv_prog_F77="$F77" # Let the user override the test.
13703 else
13704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13705 for as_dir in $PATH
13706 do
13707   IFS=$as_save_IFS
13708   test -z "$as_dir" && as_dir=.
13709   for ac_exec_ext in '' $ac_executable_extensions; do
13710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13711     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13713     break 2
13714   fi
13715 done
13716 done
13717 IFS=$as_save_IFS
13718
13719 fi
13720 fi
13721 F77=$ac_cv_prog_F77
13722 if test -n "$F77"; then
13723   { echo "$as_me:$LINENO: result: $F77" >&5
13724 echo "${ECHO_T}$F77" >&6; }
13725 else
13726   { echo "$as_me:$LINENO: result: no" >&5
13727 echo "${ECHO_T}no" >&6; }
13728 fi
13729
13730
13731     test -n "$F77" && break
13732   done
13733 fi
13734 if test -z "$F77"; then
13735   ac_ct_F77=$F77
13736   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
13737 do
13738   # Extract the first word of "$ac_prog", so it can be a program name with args.
13739 set dummy $ac_prog; ac_word=$2
13740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13742 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13743   echo $ECHO_N "(cached) $ECHO_C" >&6
13744 else
13745   if test -n "$ac_ct_F77"; then
13746   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13747 else
13748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13749 for as_dir in $PATH
13750 do
13751   IFS=$as_save_IFS
13752   test -z "$as_dir" && as_dir=.
13753   for ac_exec_ext in '' $ac_executable_extensions; do
13754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13755     ac_cv_prog_ac_ct_F77="$ac_prog"
13756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13757     break 2
13758   fi
13759 done
13760 done
13761 IFS=$as_save_IFS
13762
13763 fi
13764 fi
13765 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13766 if test -n "$ac_ct_F77"; then
13767   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13768 echo "${ECHO_T}$ac_ct_F77" >&6; }
13769 else
13770   { echo "$as_me:$LINENO: result: no" >&5
13771 echo "${ECHO_T}no" >&6; }
13772 fi
13773
13774
13775   test -n "$ac_ct_F77" && break
13776 done
13777
13778   if test "x$ac_ct_F77" = x; then
13779     F77=""
13780   else
13781     case $cross_compiling:$ac_tool_warned in
13782 yes:)
13783 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13784 whose name does not start with the host triplet.  If you think this
13785 configuration is useful to you, please write to autoconf@gnu.org." >&5
13786 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13787 whose name does not start with the host triplet.  If you think this
13788 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13789 ac_tool_warned=yes ;;
13790 esac
13791     F77=$ac_ct_F77
13792   fi
13793 fi
13794
13795
13796 # Provide some information about the compiler.
13797 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13798 ac_compiler=`set X $ac_compile; echo $2`
13799 { (ac_try="$ac_compiler --version >&5"
13800 case "(($ac_try" in
13801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802   *) ac_try_echo=$ac_try;;
13803 esac
13804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805   (eval "$ac_compiler --version >&5") 2>&5
13806   ac_status=$?
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); }
13809 { (ac_try="$ac_compiler -v >&5"
13810 case "(($ac_try" in
13811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812   *) ac_try_echo=$ac_try;;
13813 esac
13814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815   (eval "$ac_compiler -v >&5") 2>&5
13816   ac_status=$?
13817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818   (exit $ac_status); }
13819 { (ac_try="$ac_compiler -V >&5"
13820 case "(($ac_try" in
13821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822   *) ac_try_echo=$ac_try;;
13823 esac
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825   (eval "$ac_compiler -V >&5") 2>&5
13826   ac_status=$?
13827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828   (exit $ac_status); }
13829 rm -f a.out
13830
13831 # If we don't use `.F' as extension, the preprocessor is not run on the
13832 # input file.  (Note that this only needs to work for GNU compilers.)
13833 ac_save_ext=$ac_ext
13834 ac_ext=F
13835 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13836 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13837 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13838   echo $ECHO_N "(cached) $ECHO_C" >&6
13839 else
13840   cat >conftest.$ac_ext <<_ACEOF
13841       program main
13842 #ifndef __GNUC__
13843        choke me
13844 #endif
13845
13846       end
13847 _ACEOF
13848 rm -f conftest.$ac_objext
13849 if { (ac_try="$ac_compile"
13850 case "(($ac_try" in
13851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852   *) ac_try_echo=$ac_try;;
13853 esac
13854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855   (eval "$ac_compile") 2>conftest.er1
13856   ac_status=$?
13857   grep -v '^ *+' conftest.er1 >conftest.err
13858   rm -f conftest.er1
13859   cat conftest.err >&5
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); } &&
13862          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13863   { (case "(($ac_try" in
13864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865   *) ac_try_echo=$ac_try;;
13866 esac
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868   (eval "$ac_try") 2>&5
13869   ac_status=$?
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); }; } &&
13872          { ac_try='test -s conftest.$ac_objext'
13873   { (case "(($ac_try" in
13874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875   *) ac_try_echo=$ac_try;;
13876 esac
13877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13878   (eval "$ac_try") 2>&5
13879   ac_status=$?
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); }; }; then
13882   ac_compiler_gnu=yes
13883 else
13884   echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13886
13887         ac_compiler_gnu=no
13888 fi
13889
13890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13891 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13892
13893 fi
13894 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13895 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13896 ac_ext=$ac_save_ext
13897 ac_test_FFLAGS=${FFLAGS+set}
13898 ac_save_FFLAGS=$FFLAGS
13899 FFLAGS=
13900 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13901 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13902 if test "${ac_cv_prog_f77_g+set}" = set; then
13903   echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905   FFLAGS=-g
13906 cat >conftest.$ac_ext <<_ACEOF
13907       program main
13908
13909       end
13910 _ACEOF
13911 rm -f conftest.$ac_objext
13912 if { (ac_try="$ac_compile"
13913 case "(($ac_try" in
13914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915   *) ac_try_echo=$ac_try;;
13916 esac
13917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13918   (eval "$ac_compile") 2>conftest.er1
13919   ac_status=$?
13920   grep -v '^ *+' conftest.er1 >conftest.err
13921   rm -f conftest.er1
13922   cat conftest.err >&5
13923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924   (exit $ac_status); } &&
13925          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13926   { (case "(($ac_try" in
13927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928   *) ac_try_echo=$ac_try;;
13929 esac
13930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931   (eval "$ac_try") 2>&5
13932   ac_status=$?
13933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934   (exit $ac_status); }; } &&
13935          { ac_try='test -s conftest.$ac_objext'
13936   { (case "(($ac_try" in
13937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938   *) ac_try_echo=$ac_try;;
13939 esac
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941   (eval "$ac_try") 2>&5
13942   ac_status=$?
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); }; }; then
13945   ac_cv_prog_f77_g=yes
13946 else
13947   echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13949
13950         ac_cv_prog_f77_g=no
13951 fi
13952
13953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13954
13955 fi
13956 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13957 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13958 if test "$ac_test_FFLAGS" = set; then
13959   FFLAGS=$ac_save_FFLAGS
13960 elif test $ac_cv_prog_f77_g = yes; then
13961   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13962     FFLAGS="-g -O2"
13963   else
13964     FFLAGS="-g"
13965   fi
13966 else
13967   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13968     FFLAGS="-O2"
13969   else
13970     FFLAGS=
13971   fi
13972 fi
13973
13974 G77=`test $ac_compiler_gnu = yes && echo yes`
13975 ac_ext=c
13976 ac_cpp='$CPP $CPPFLAGS'
13977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13980
13981
13982
13983 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13984
13985 # find the maximum length of command line arguments
13986 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13987 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13988 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13989   echo $ECHO_N "(cached) $ECHO_C" >&6
13990 else
13991     i=0
13992   teststring="ABCD"
13993
13994   case $build_os in
13995   msdosdjgpp*)
13996     # On DJGPP, this test can blow up pretty badly due to problems in libc
13997     # (any single argument exceeding 2000 bytes causes a buffer overrun
13998     # during glob expansion).  Even if it were fixed, the result of this
13999     # check would be larger than it should be.
14000     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
14001     ;;
14002
14003   gnu*)
14004     # Under GNU Hurd, this test is not required because there is
14005     # no limit to the length of command line arguments.
14006     # Libtool will interpret -1 as no limit whatsoever
14007     lt_cv_sys_max_cmd_len=-1;
14008     ;;
14009
14010   cygwin* | mingw*)
14011     # On Win9x/ME, this test blows up -- it succeeds, but takes
14012     # about 5 minutes as the teststring grows exponentially.
14013     # Worse, since 9x/ME are not pre-emptively multitasking,
14014     # you end up with a "frozen" computer, even though with patience
14015     # the test eventually succeeds (with a max line length of 256k).
14016     # Instead, let's just punt: use the minimum linelength reported by
14017     # all of the supported platforms: 8192 (on NT/2K/XP).
14018     lt_cv_sys_max_cmd_len=8192;
14019     ;;
14020
14021   amigaos*)
14022     # On AmigaOS with pdksh, this test takes hours, literally.
14023     # So we just punt and use a minimum line length of 8192.
14024     lt_cv_sys_max_cmd_len=8192;
14025     ;;
14026
14027   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14028     # This has been around since 386BSD, at least.  Likely further.
14029     if test -x /sbin/sysctl; then
14030       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14031     elif test -x /usr/sbin/sysctl; then
14032       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14033     else
14034       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
14035     fi
14036     # And add a safety zone
14037     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14038     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14039     ;;
14040
14041   interix*)
14042     # We know the value 262144 and hardcode it with a safety zone (like BSD)
14043     lt_cv_sys_max_cmd_len=196608
14044     ;;
14045
14046   osf*)
14047     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14048     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14049     # nice to cause kernel panics so lets avoid the loop below.
14050     # First set a reasonable default.
14051     lt_cv_sys_max_cmd_len=16384
14052     #
14053     if test -x /sbin/sysconfig; then
14054       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14055         *1*) lt_cv_sys_max_cmd_len=-1 ;;
14056       esac
14057     fi
14058     ;;
14059   sco3.2v5*)
14060     lt_cv_sys_max_cmd_len=102400
14061     ;;
14062   sysv5* | sco5v6* | sysv4.2uw2*)
14063     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14064     if test -n "$kargmax"; then
14065       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
14066     else
14067       lt_cv_sys_max_cmd_len=32768
14068     fi
14069     ;;
14070   *)
14071     # If test is not a shell built-in, we'll probably end up computing a
14072     # maximum length that is only half of the actual maximum length, but
14073     # we can't tell.
14074     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14075     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14076                = "XX$teststring") >/dev/null 2>&1 &&
14077             new_result=`expr "X$teststring" : ".*" 2>&1` &&
14078             lt_cv_sys_max_cmd_len=$new_result &&
14079             test $i != 17 # 1/2 MB should be enough
14080     do
14081       i=`expr $i + 1`
14082       teststring=$teststring$teststring
14083     done
14084     teststring=
14085     # Add a significant safety factor because C++ compilers can tack on massive
14086     # amounts of additional arguments before passing them to the linker.
14087     # It appears as though 1/2 is a usable value.
14088     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14089     ;;
14090   esac
14091
14092 fi
14093
14094 if test -n $lt_cv_sys_max_cmd_len ; then
14095   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14096 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14097 else
14098   { echo "$as_me:$LINENO: result: none" >&5
14099 echo "${ECHO_T}none" >&6; }
14100 fi
14101
14102
14103
14104
14105 # Check for command to grab the raw symbol name followed by C symbol from nm.
14106 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14107 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14108 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14109   echo $ECHO_N "(cached) $ECHO_C" >&6
14110 else
14111
14112 # These are sane defaults that work on at least a few old systems.
14113 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
14114
14115 # Character class describing NM global symbol codes.
14116 symcode='[BCDEGRST]'
14117
14118 # Regexp to match symbols that can be accessed directly from C.
14119 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14120
14121 # Transform an extracted symbol line into a proper C declaration
14122 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14123
14124 # Transform an extracted symbol line into symbol name and symbol address
14125 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'"
14126
14127 # Define system-specific variables.
14128 case $host_os in
14129 aix*)
14130   symcode='[BCDT]'
14131   ;;
14132 cygwin* | mingw* | pw32*)
14133   symcode='[ABCDGISTW]'
14134   ;;
14135 hpux*) # Its linker distinguishes data from code symbols
14136   if test "$host_cpu" = ia64; then
14137     symcode='[ABCDEGRST]'
14138   fi
14139   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14140   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'"
14141   ;;
14142 linux*)
14143   if test "$host_cpu" = ia64; then
14144     symcode='[ABCDGIRSTW]'
14145     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14146     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'"
14147   fi
14148   ;;
14149 irix* | nonstopux*)
14150   symcode='[BCDEGRST]'
14151   ;;
14152 osf*)
14153   symcode='[BCDEGQRST]'
14154   ;;
14155 solaris*)
14156   symcode='[BDRT]'
14157   ;;
14158 sco3.2v5*)
14159   symcode='[DT]'
14160   ;;
14161 sysv4.2uw2*)
14162   symcode='[DT]'
14163   ;;
14164 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14165   symcode='[ABDT]'
14166   ;;
14167 sysv4)
14168   symcode='[DFNSTU]'
14169   ;;
14170 esac
14171
14172 # Handle CRLF in mingw tool chain
14173 opt_cr=
14174 case $build_os in
14175 mingw*)
14176   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14177   ;;
14178 esac
14179
14180 # If we're using GNU nm, then use its standard symbol codes.
14181 case `$NM -V 2>&1` in
14182 *GNU* | *'with BFD'*)
14183   symcode='[ABCDGIRSTW]' ;;
14184 esac
14185
14186 # Try without a prefix undercore, then with it.
14187 for ac_symprfx in "" "_"; do
14188
14189   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14190   symxfrm="\\1 $ac_symprfx\\2 \\2"
14191
14192   # Write the raw and C identifiers.
14193   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14194
14195   # Check to see that the pipe works correctly.
14196   pipe_works=no
14197
14198   rm -f conftest*
14199   cat > conftest.$ac_ext <<EOF
14200 #ifdef __cplusplus
14201 extern "C" {
14202 #endif
14203 char nm_test_var;
14204 void nm_test_func(){}
14205 #ifdef __cplusplus
14206 }
14207 #endif
14208 int main(){nm_test_var='a';nm_test_func();return(0);}
14209 EOF
14210
14211   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14212   (eval $ac_compile) 2>&5
14213   ac_status=$?
14214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215   (exit $ac_status); }; then
14216     # Now try to grab the symbols.
14217     nlist=conftest.nm
14218     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14219   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14220   ac_status=$?
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); } && test -s "$nlist"; then
14223       # Try sorting and uniquifying the output.
14224       if sort "$nlist" | uniq > "$nlist"T; then
14225         mv -f "$nlist"T "$nlist"
14226       else
14227         rm -f "$nlist"T
14228       fi
14229
14230       # Make sure that we snagged all the symbols we need.
14231       if grep ' nm_test_var$' "$nlist" >/dev/null; then
14232         if grep ' nm_test_func$' "$nlist" >/dev/null; then
14233           cat <<EOF > conftest.$ac_ext
14234 #ifdef __cplusplus
14235 extern "C" {
14236 #endif
14237
14238 EOF
14239           # Now generate the symbol file.
14240           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14241
14242           cat <<EOF >> conftest.$ac_ext
14243 #if defined (__STDC__) && __STDC__
14244 # define lt_ptr_t void *
14245 #else
14246 # define lt_ptr_t char *
14247 # define const
14248 #endif
14249
14250 /* The mapping between symbol names and symbols. */
14251 const struct {
14252   const char *name;
14253   lt_ptr_t address;
14254 }
14255 lt_preloaded_symbols[] =
14256 {
14257 EOF
14258           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14259           cat <<\EOF >> conftest.$ac_ext
14260   {0, (lt_ptr_t) 0}
14261 };
14262
14263 #ifdef __cplusplus
14264 }
14265 #endif
14266 EOF
14267           # Now try linking the two files.
14268           mv conftest.$ac_objext conftstm.$ac_objext
14269           lt_save_LIBS="$LIBS"
14270           lt_save_CFLAGS="$CFLAGS"
14271           LIBS="conftstm.$ac_objext"
14272           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14273           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14274   (eval $ac_link) 2>&5
14275   ac_status=$?
14276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277   (exit $ac_status); } && test -s conftest${ac_exeext}; then
14278             pipe_works=yes
14279           fi
14280           LIBS="$lt_save_LIBS"
14281           CFLAGS="$lt_save_CFLAGS"
14282         else
14283           echo "cannot find nm_test_func in $nlist" >&5
14284         fi
14285       else
14286         echo "cannot find nm_test_var in $nlist" >&5
14287       fi
14288     else
14289       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14290     fi
14291   else
14292     echo "$progname: failed program was:" >&5
14293     cat conftest.$ac_ext >&5
14294   fi
14295   rm -f conftest* conftst*
14296
14297   # Do not use the global_symbol_pipe unless it works.
14298   if test "$pipe_works" = yes; then
14299     break
14300   else
14301     lt_cv_sys_global_symbol_pipe=
14302   fi
14303 done
14304
14305 fi
14306
14307 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14308   lt_cv_sys_global_symbol_to_cdecl=
14309 fi
14310 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14311   { echo "$as_me:$LINENO: result: failed" >&5
14312 echo "${ECHO_T}failed" >&6; }
14313 else
14314   { echo "$as_me:$LINENO: result: ok" >&5
14315 echo "${ECHO_T}ok" >&6; }
14316 fi
14317
14318 { echo "$as_me:$LINENO: checking for objdir" >&5
14319 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14320 if test "${lt_cv_objdir+set}" = set; then
14321   echo $ECHO_N "(cached) $ECHO_C" >&6
14322 else
14323   rm -f .libs 2>/dev/null
14324 mkdir .libs 2>/dev/null
14325 if test -d .libs; then
14326   lt_cv_objdir=.libs
14327 else
14328   # MS-DOS does not allow filenames that begin with a dot.
14329   lt_cv_objdir=_libs
14330 fi
14331 rmdir .libs 2>/dev/null
14332 fi
14333 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14334 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14335 objdir=$lt_cv_objdir
14336
14337
14338
14339
14340
14341 case $host_os in
14342 aix3*)
14343   # AIX sometimes has problems with the GCC collect2 program.  For some
14344   # reason, if we set the COLLECT_NAMES environment variable, the problems
14345   # vanish in a puff of smoke.
14346   if test "X${COLLECT_NAMES+set}" != Xset; then
14347     COLLECT_NAMES=
14348     export COLLECT_NAMES
14349   fi
14350   ;;
14351 esac
14352
14353 # Sed substitution that helps us do robust quoting.  It backslashifies
14354 # metacharacters that are still active within double-quoted strings.
14355 Xsed='sed -e 1s/^X//'
14356 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14357
14358 # Same as above, but do not quote variable references.
14359 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14360
14361 # Sed substitution to delay expansion of an escaped shell variable in a
14362 # double_quote_subst'ed string.
14363 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14364
14365 # Sed substitution to avoid accidental globbing in evaled expressions
14366 no_glob_subst='s/\*/\\\*/g'
14367
14368 # Constants:
14369 rm="rm -f"
14370
14371 # Global variables:
14372 default_ofile=mklib
14373 can_build_shared=yes
14374
14375 # All known linkers require a `.a' archive for static linking (except MSVC,
14376 # which needs '.lib').
14377 libext=a
14378 ltmain="$ac_aux_dir/ltmain.sh"
14379 ofile="$default_ofile"
14380 with_gnu_ld="$lt_cv_prog_gnu_ld"
14381
14382 if test -n "$ac_tool_prefix"; then
14383   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14384 set dummy ${ac_tool_prefix}ar; ac_word=$2
14385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14387 if test "${ac_cv_prog_AR+set}" = set; then
14388   echo $ECHO_N "(cached) $ECHO_C" >&6
14389 else
14390   if test -n "$AR"; then
14391   ac_cv_prog_AR="$AR" # Let the user override the test.
14392 else
14393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14394 for as_dir in $PATH
14395 do
14396   IFS=$as_save_IFS
14397   test -z "$as_dir" && as_dir=.
14398   for ac_exec_ext in '' $ac_executable_extensions; do
14399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14400     ac_cv_prog_AR="${ac_tool_prefix}ar"
14401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14402     break 2
14403   fi
14404 done
14405 done
14406 IFS=$as_save_IFS
14407
14408 fi
14409 fi
14410 AR=$ac_cv_prog_AR
14411 if test -n "$AR"; then
14412   { echo "$as_me:$LINENO: result: $AR" >&5
14413 echo "${ECHO_T}$AR" >&6; }
14414 else
14415   { echo "$as_me:$LINENO: result: no" >&5
14416 echo "${ECHO_T}no" >&6; }
14417 fi
14418
14419
14420 fi
14421 if test -z "$ac_cv_prog_AR"; then
14422   ac_ct_AR=$AR
14423   # Extract the first word of "ar", so it can be a program name with args.
14424 set dummy ar; ac_word=$2
14425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14427 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14428   echo $ECHO_N "(cached) $ECHO_C" >&6
14429 else
14430   if test -n "$ac_ct_AR"; then
14431   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14432 else
14433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14434 for as_dir in $PATH
14435 do
14436   IFS=$as_save_IFS
14437   test -z "$as_dir" && as_dir=.
14438   for ac_exec_ext in '' $ac_executable_extensions; do
14439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14440     ac_cv_prog_ac_ct_AR="ar"
14441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14442     break 2
14443   fi
14444 done
14445 done
14446 IFS=$as_save_IFS
14447
14448 fi
14449 fi
14450 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14451 if test -n "$ac_ct_AR"; then
14452   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14453 echo "${ECHO_T}$ac_ct_AR" >&6; }
14454 else
14455   { echo "$as_me:$LINENO: result: no" >&5
14456 echo "${ECHO_T}no" >&6; }
14457 fi
14458
14459   if test "x$ac_ct_AR" = x; then
14460     AR="false"
14461   else
14462     case $cross_compiling:$ac_tool_warned in
14463 yes:)
14464 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14465 whose name does not start with the host triplet.  If you think this
14466 configuration is useful to you, please write to autoconf@gnu.org." >&5
14467 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14468 whose name does not start with the host triplet.  If you think this
14469 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14470 ac_tool_warned=yes ;;
14471 esac
14472     AR=$ac_ct_AR
14473   fi
14474 else
14475   AR="$ac_cv_prog_AR"
14476 fi
14477
14478 if test -n "$ac_tool_prefix"; then
14479   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14480 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14483 if test "${ac_cv_prog_RANLIB+set}" = set; then
14484   echo $ECHO_N "(cached) $ECHO_C" >&6
14485 else
14486   if test -n "$RANLIB"; then
14487   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14488 else
14489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14490 for as_dir in $PATH
14491 do
14492   IFS=$as_save_IFS
14493   test -z "$as_dir" && as_dir=.
14494   for ac_exec_ext in '' $ac_executable_extensions; do
14495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14496     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14498     break 2
14499   fi
14500 done
14501 done
14502 IFS=$as_save_IFS
14503
14504 fi
14505 fi
14506 RANLIB=$ac_cv_prog_RANLIB
14507 if test -n "$RANLIB"; then
14508   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14509 echo "${ECHO_T}$RANLIB" >&6; }
14510 else
14511   { echo "$as_me:$LINENO: result: no" >&5
14512 echo "${ECHO_T}no" >&6; }
14513 fi
14514
14515
14516 fi
14517 if test -z "$ac_cv_prog_RANLIB"; then
14518   ac_ct_RANLIB=$RANLIB
14519   # Extract the first word of "ranlib", so it can be a program name with args.
14520 set dummy ranlib; ac_word=$2
14521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14523 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14524   echo $ECHO_N "(cached) $ECHO_C" >&6
14525 else
14526   if test -n "$ac_ct_RANLIB"; then
14527   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14528 else
14529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14530 for as_dir in $PATH
14531 do
14532   IFS=$as_save_IFS
14533   test -z "$as_dir" && as_dir=.
14534   for ac_exec_ext in '' $ac_executable_extensions; do
14535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14536     ac_cv_prog_ac_ct_RANLIB="ranlib"
14537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14538     break 2
14539   fi
14540 done
14541 done
14542 IFS=$as_save_IFS
14543
14544 fi
14545 fi
14546 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14547 if test -n "$ac_ct_RANLIB"; then
14548   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14549 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14550 else
14551   { echo "$as_me:$LINENO: result: no" >&5
14552 echo "${ECHO_T}no" >&6; }
14553 fi
14554
14555   if test "x$ac_ct_RANLIB" = x; then
14556     RANLIB=":"
14557   else
14558     case $cross_compiling:$ac_tool_warned in
14559 yes:)
14560 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14561 whose name does not start with the host triplet.  If you think this
14562 configuration is useful to you, please write to autoconf@gnu.org." >&5
14563 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14564 whose name does not start with the host triplet.  If you think this
14565 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14566 ac_tool_warned=yes ;;
14567 esac
14568     RANLIB=$ac_ct_RANLIB
14569   fi
14570 else
14571   RANLIB="$ac_cv_prog_RANLIB"
14572 fi
14573
14574 if test -n "$ac_tool_prefix"; then
14575   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14576 set dummy ${ac_tool_prefix}strip; ac_word=$2
14577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14579 if test "${ac_cv_prog_STRIP+set}" = set; then
14580   echo $ECHO_N "(cached) $ECHO_C" >&6
14581 else
14582   if test -n "$STRIP"; then
14583   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14584 else
14585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14586 for as_dir in $PATH
14587 do
14588   IFS=$as_save_IFS
14589   test -z "$as_dir" && as_dir=.
14590   for ac_exec_ext in '' $ac_executable_extensions; do
14591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14592     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14594     break 2
14595   fi
14596 done
14597 done
14598 IFS=$as_save_IFS
14599
14600 fi
14601 fi
14602 STRIP=$ac_cv_prog_STRIP
14603 if test -n "$STRIP"; then
14604   { echo "$as_me:$LINENO: result: $STRIP" >&5
14605 echo "${ECHO_T}$STRIP" >&6; }
14606 else
14607   { echo "$as_me:$LINENO: result: no" >&5
14608 echo "${ECHO_T}no" >&6; }
14609 fi
14610
14611
14612 fi
14613 if test -z "$ac_cv_prog_STRIP"; then
14614   ac_ct_STRIP=$STRIP
14615   # Extract the first word of "strip", so it can be a program name with args.
14616 set dummy strip; ac_word=$2
14617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14619 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14620   echo $ECHO_N "(cached) $ECHO_C" >&6
14621 else
14622   if test -n "$ac_ct_STRIP"; then
14623   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14624 else
14625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14626 for as_dir in $PATH
14627 do
14628   IFS=$as_save_IFS
14629   test -z "$as_dir" && as_dir=.
14630   for ac_exec_ext in '' $ac_executable_extensions; do
14631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14632     ac_cv_prog_ac_ct_STRIP="strip"
14633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14634     break 2
14635   fi
14636 done
14637 done
14638 IFS=$as_save_IFS
14639
14640 fi
14641 fi
14642 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14643 if test -n "$ac_ct_STRIP"; then
14644   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14645 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14646 else
14647   { echo "$as_me:$LINENO: result: no" >&5
14648 echo "${ECHO_T}no" >&6; }
14649 fi
14650
14651   if test "x$ac_ct_STRIP" = x; then
14652     STRIP=":"
14653   else
14654     case $cross_compiling:$ac_tool_warned in
14655 yes:)
14656 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14657 whose name does not start with the host triplet.  If you think this
14658 configuration is useful to you, please write to autoconf@gnu.org." >&5
14659 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14660 whose name does not start with the host triplet.  If you think this
14661 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14662 ac_tool_warned=yes ;;
14663 esac
14664     STRIP=$ac_ct_STRIP
14665   fi
14666 else
14667   STRIP="$ac_cv_prog_STRIP"
14668 fi
14669
14670
14671 old_CC="$CC"
14672 old_CFLAGS="$CFLAGS"
14673
14674 # Set sane defaults for various variables
14675 test -z "$AR" && AR=ar
14676 test -z "$AR_FLAGS" && AR_FLAGS=cru
14677 test -z "$AS" && AS=as
14678 test -z "$CC" && CC=cc
14679 test -z "$LTCC" && LTCC=$CC
14680 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14681 test -z "$DLLTOOL" && DLLTOOL=dlltool
14682 test -z "$LD" && LD=ld
14683 test -z "$LN_S" && LN_S="ln -s"
14684 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14685 test -z "$NM" && NM=nm
14686 test -z "$SED" && SED=sed
14687 test -z "$OBJDUMP" && OBJDUMP=objdump
14688 test -z "$RANLIB" && RANLIB=:
14689 test -z "$STRIP" && STRIP=:
14690 test -z "$ac_objext" && ac_objext=o
14691
14692 # Determine commands to create old-style static archives.
14693 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14694 old_postinstall_cmds='chmod 644 $oldlib'
14695 old_postuninstall_cmds=
14696
14697 if test -n "$RANLIB"; then
14698   case $host_os in
14699   openbsd*)
14700     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14701     ;;
14702   *)
14703     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14704     ;;
14705   esac
14706   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14707 fi
14708
14709 for cc_temp in $compiler""; do
14710   case $cc_temp in
14711     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14712     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14713     \-*) ;;
14714     *) break;;
14715   esac
14716 done
14717 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14718
14719
14720 # Only perform the check for file, if the check method requires it
14721 case $deplibs_check_method in
14722 file_magic*)
14723   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14724     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14725 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14726 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14727   echo $ECHO_N "(cached) $ECHO_C" >&6
14728 else
14729   case $MAGIC_CMD in
14730 [\\/*] |  ?:[\\/]*)
14731   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14732   ;;
14733 *)
14734   lt_save_MAGIC_CMD="$MAGIC_CMD"
14735   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14736   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14737   for ac_dir in $ac_dummy; do
14738     IFS="$lt_save_ifs"
14739     test -z "$ac_dir" && ac_dir=.
14740     if test -f $ac_dir/${ac_tool_prefix}file; then
14741       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14742       if test -n "$file_magic_test_file"; then
14743         case $deplibs_check_method in
14744         "file_magic "*)
14745           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14746           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14747           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14748             $EGREP "$file_magic_regex" > /dev/null; then
14749             :
14750           else
14751             cat <<EOF 1>&2
14752
14753 *** Warning: the command libtool uses to detect shared libraries,
14754 *** $file_magic_cmd, produces output that libtool cannot recognize.
14755 *** The result is that libtool may fail to recognize shared libraries
14756 *** as such.  This will affect the creation of libtool libraries that
14757 *** depend on shared libraries, but programs linked with such libtool
14758 *** libraries will work regardless of this problem.  Nevertheless, you
14759 *** may want to report the problem to your system manager and/or to
14760 *** bug-libtool@gnu.org
14761
14762 EOF
14763           fi ;;
14764         esac
14765       fi
14766       break
14767     fi
14768   done
14769   IFS="$lt_save_ifs"
14770   MAGIC_CMD="$lt_save_MAGIC_CMD"
14771   ;;
14772 esac
14773 fi
14774
14775 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14776 if test -n "$MAGIC_CMD"; then
14777   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14778 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14779 else
14780   { echo "$as_me:$LINENO: result: no" >&5
14781 echo "${ECHO_T}no" >&6; }
14782 fi
14783
14784 if test -z "$lt_cv_path_MAGIC_CMD"; then
14785   if test -n "$ac_tool_prefix"; then
14786     { echo "$as_me:$LINENO: checking for file" >&5
14787 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14788 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14789   echo $ECHO_N "(cached) $ECHO_C" >&6
14790 else
14791   case $MAGIC_CMD in
14792 [\\/*] |  ?:[\\/]*)
14793   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14794   ;;
14795 *)
14796   lt_save_MAGIC_CMD="$MAGIC_CMD"
14797   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14798   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14799   for ac_dir in $ac_dummy; do
14800     IFS="$lt_save_ifs"
14801     test -z "$ac_dir" && ac_dir=.
14802     if test -f $ac_dir/file; then
14803       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14804       if test -n "$file_magic_test_file"; then
14805         case $deplibs_check_method in
14806         "file_magic "*)
14807           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14808           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14809           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14810             $EGREP "$file_magic_regex" > /dev/null; then
14811             :
14812           else
14813             cat <<EOF 1>&2
14814
14815 *** Warning: the command libtool uses to detect shared libraries,
14816 *** $file_magic_cmd, produces output that libtool cannot recognize.
14817 *** The result is that libtool may fail to recognize shared libraries
14818 *** as such.  This will affect the creation of libtool libraries that
14819 *** depend on shared libraries, but programs linked with such libtool
14820 *** libraries will work regardless of this problem.  Nevertheless, you
14821 *** may want to report the problem to your system manager and/or to
14822 *** bug-libtool@gnu.org
14823
14824 EOF
14825           fi ;;
14826         esac
14827       fi
14828       break
14829     fi
14830   done
14831   IFS="$lt_save_ifs"
14832   MAGIC_CMD="$lt_save_MAGIC_CMD"
14833   ;;
14834 esac
14835 fi
14836
14837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14838 if test -n "$MAGIC_CMD"; then
14839   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14840 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14841 else
14842   { echo "$as_me:$LINENO: result: no" >&5
14843 echo "${ECHO_T}no" >&6; }
14844 fi
14845
14846   else
14847     MAGIC_CMD=:
14848   fi
14849 fi
14850
14851   fi
14852   ;;
14853 esac
14854
14855 enable_dlopen=yes
14856 enable_win32_dll=no
14857
14858 # Check whether --enable-libtool-lock was given.
14859 if test "${enable_libtool_lock+set}" = set; then
14860   enableval=$enable_libtool_lock;
14861 fi
14862
14863 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14864
14865
14866 # Check whether --with-pic was given.
14867 if test "${with_pic+set}" = set; then
14868   withval=$with_pic; pic_mode="$withval"
14869 else
14870   pic_mode=default
14871 fi
14872
14873 test -z "$pic_mode" && pic_mode=default
14874
14875 # Use C for the default configuration in the libtool script
14876 tagname=
14877 lt_save_CC="$CC"
14878 ac_ext=c
14879 ac_cpp='$CPP $CPPFLAGS'
14880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14883
14884
14885 # Source file extension for C test sources.
14886 ac_ext=c
14887
14888 # Object file extension for compiled C test sources.
14889 objext=o
14890 objext=$objext
14891
14892 # Code to be used in simple compile tests
14893 lt_simple_compile_test_code="int some_variable = 0;\n"
14894
14895 # Code to be used in simple link tests
14896 lt_simple_link_test_code='int main(){return(0);}\n'
14897
14898
14899 # If no C compiler was specified, use CC.
14900 LTCC=${LTCC-"$CC"}
14901
14902 # If no C compiler flags were specified, use CFLAGS.
14903 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14904
14905 # Allow CC to be a program name with arguments.
14906 compiler=$CC
14907
14908
14909 # save warnings/boilerplate of simple test code
14910 ac_outfile=conftest.$ac_objext
14911 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14912 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14913 _lt_compiler_boilerplate=`cat conftest.err`
14914 $rm conftest*
14915
14916 ac_outfile=conftest.$ac_objext
14917 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14918 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14919 _lt_linker_boilerplate=`cat conftest.err`
14920 $rm conftest*
14921
14922
14923
14924 lt_prog_compiler_no_builtin_flag=
14925
14926 if test "$GCC" = yes; then
14927   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14928
14929
14930 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14931 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14932 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14933   echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935   lt_cv_prog_compiler_rtti_exceptions=no
14936   ac_outfile=conftest.$ac_objext
14937    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14938    lt_compiler_flag="-fno-rtti -fno-exceptions"
14939    # Insert the option either (1) after the last *FLAGS variable, or
14940    # (2) before a word containing "conftest.", or (3) at the end.
14941    # Note that $ac_compile itself does not contain backslashes and begins
14942    # with a dollar sign (not a hyphen), so the echo should work correctly.
14943    # The option is referenced via a variable to avoid confusing sed.
14944    lt_compile=`echo "$ac_compile" | $SED \
14945    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14946    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14947    -e 's:$: $lt_compiler_flag:'`
14948    (eval echo "\"\$as_me:14948: $lt_compile\"" >&5)
14949    (eval "$lt_compile" 2>conftest.err)
14950    ac_status=$?
14951    cat conftest.err >&5
14952    echo "$as_me:14952: \$? = $ac_status" >&5
14953    if (exit $ac_status) && test -s "$ac_outfile"; then
14954      # The compiler can only warn and ignore the option if not recognized
14955      # So say no if there are warnings other than the usual output.
14956      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14957      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14958      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14959        lt_cv_prog_compiler_rtti_exceptions=yes
14960      fi
14961    fi
14962    $rm conftest*
14963
14964 fi
14965 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14966 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14967
14968 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14969     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14970 else
14971     :
14972 fi
14973
14974 fi
14975
14976 lt_prog_compiler_wl=
14977 lt_prog_compiler_pic=
14978 lt_prog_compiler_static=
14979
14980 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14981 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14982
14983   if test "$GCC" = yes; then
14984     lt_prog_compiler_wl='-Wl,'
14985     lt_prog_compiler_static='-static'
14986
14987     case $host_os in
14988       aix*)
14989       # All AIX code is PIC.
14990       if test "$host_cpu" = ia64; then
14991         # AIX 5 now supports IA64 processor
14992         lt_prog_compiler_static='-Bstatic'
14993       fi
14994       ;;
14995
14996     amigaos*)
14997       # FIXME: we need at least 68020 code to build shared libraries, but
14998       # adding the `-m68020' flag to GCC prevents building anything better,
14999       # like `-m68040'.
15000       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15001       ;;
15002
15003     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15004       # PIC is the default for these OSes.
15005       ;;
15006
15007     mingw* | pw32* | os2*)
15008       # This hack is so that the source file can tell whether it is being
15009       # built for inclusion in a dll (and should export symbols for example).
15010       lt_prog_compiler_pic='-DDLL_EXPORT'
15011       ;;
15012
15013     darwin* | rhapsody*)
15014       # PIC is the default on this platform
15015       # Common symbols not allowed in MH_DYLIB files
15016       lt_prog_compiler_pic='-fno-common'
15017       ;;
15018
15019     interix3*)
15020       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15021       # Instead, we relocate shared libraries at runtime.
15022       ;;
15023
15024     msdosdjgpp*)
15025       # Just because we use GCC doesn't mean we suddenly get shared libraries
15026       # on systems that don't support them.
15027       lt_prog_compiler_can_build_shared=no
15028       enable_shared=no
15029       ;;
15030
15031     sysv4*MP*)
15032       if test -d /usr/nec; then
15033         lt_prog_compiler_pic=-Kconform_pic
15034       fi
15035       ;;
15036
15037     hpux*)
15038       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15039       # not for PA HP-UX.
15040       case $host_cpu in
15041       hppa*64*|ia64*)
15042         # +Z the default
15043         ;;
15044       *)
15045         lt_prog_compiler_pic='-fPIC'
15046         ;;
15047       esac
15048       ;;
15049
15050     *)
15051       lt_prog_compiler_pic='-fPIC'
15052       ;;
15053     esac
15054   else
15055     # PORTME Check for flag to pass linker flags through the system compiler.
15056     case $host_os in
15057     aix*)
15058       lt_prog_compiler_wl='-Wl,'
15059       if test "$host_cpu" = ia64; then
15060         # AIX 5 now supports IA64 processor
15061         lt_prog_compiler_static='-Bstatic'
15062       else
15063         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15064       fi
15065       ;;
15066       darwin*)
15067         # PIC is the default on this platform
15068         # Common symbols not allowed in MH_DYLIB files
15069        case $cc_basename in
15070          xlc*)
15071          lt_prog_compiler_pic='-qnocommon'
15072          lt_prog_compiler_wl='-Wl,'
15073          ;;
15074        esac
15075        ;;
15076
15077     mingw* | pw32* | os2*)
15078       # This hack is so that the source file can tell whether it is being
15079       # built for inclusion in a dll (and should export symbols for example).
15080       lt_prog_compiler_pic='-DDLL_EXPORT'
15081       ;;
15082
15083     hpux9* | hpux10* | hpux11*)
15084       lt_prog_compiler_wl='-Wl,'
15085       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15086       # not for PA HP-UX.
15087       case $host_cpu in
15088       hppa*64*|ia64*)
15089         # +Z the default
15090         ;;
15091       *)
15092         lt_prog_compiler_pic='+Z'
15093         ;;
15094       esac
15095       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15096       lt_prog_compiler_static='${wl}-a ${wl}archive'
15097       ;;
15098
15099     irix5* | irix6* | nonstopux*)
15100       lt_prog_compiler_wl='-Wl,'
15101       # PIC (with -KPIC) is the default.
15102       lt_prog_compiler_static='-non_shared'
15103       ;;
15104
15105     newsos6)
15106       lt_prog_compiler_pic='-KPIC'
15107       lt_prog_compiler_static='-Bstatic'
15108       ;;
15109
15110     linux*)
15111       case $cc_basename in
15112       icc* | ecc*)
15113         lt_prog_compiler_wl='-Wl,'
15114         lt_prog_compiler_pic='-KPIC'
15115         lt_prog_compiler_static='-static'
15116         ;;
15117       pgcc* | pgf77* | pgf90* | pgf95*)
15118         # Portland Group compilers (*not* the Pentium gcc compiler,
15119         # which looks to be a dead project)
15120         lt_prog_compiler_wl='-Wl,'
15121         lt_prog_compiler_pic='-fpic'
15122         lt_prog_compiler_static='-Bstatic'
15123         ;;
15124       ccc*)
15125         lt_prog_compiler_wl='-Wl,'
15126         # All Alpha code is PIC.
15127         lt_prog_compiler_static='-non_shared'
15128         ;;
15129       esac
15130       ;;
15131
15132     osf3* | osf4* | osf5*)
15133       lt_prog_compiler_wl='-Wl,'
15134       # All OSF/1 code is PIC.
15135       lt_prog_compiler_static='-non_shared'
15136       ;;
15137
15138     solaris*)
15139       lt_prog_compiler_pic='-KPIC'
15140       lt_prog_compiler_static='-Bstatic'
15141       case $cc_basename in
15142       f77* | f90* | f95*)
15143         lt_prog_compiler_wl='-Qoption ld ';;
15144       *)
15145         lt_prog_compiler_wl='-Wl,';;
15146       esac
15147       ;;
15148
15149     sunos4*)
15150       lt_prog_compiler_wl='-Qoption ld '
15151       lt_prog_compiler_pic='-PIC'
15152       lt_prog_compiler_static='-Bstatic'
15153       ;;
15154
15155     sysv4 | sysv4.2uw2* | sysv4.3*)
15156       lt_prog_compiler_wl='-Wl,'
15157       lt_prog_compiler_pic='-KPIC'
15158       lt_prog_compiler_static='-Bstatic'
15159       ;;
15160
15161     sysv4*MP*)
15162       if test -d /usr/nec ;then
15163         lt_prog_compiler_pic='-Kconform_pic'
15164         lt_prog_compiler_static='-Bstatic'
15165       fi
15166       ;;
15167
15168     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15169       lt_prog_compiler_wl='-Wl,'
15170       lt_prog_compiler_pic='-KPIC'
15171       lt_prog_compiler_static='-Bstatic'
15172       ;;
15173
15174     unicos*)
15175       lt_prog_compiler_wl='-Wl,'
15176       lt_prog_compiler_can_build_shared=no
15177       ;;
15178
15179     uts4*)
15180       lt_prog_compiler_pic='-pic'
15181       lt_prog_compiler_static='-Bstatic'
15182       ;;
15183
15184     *)
15185       lt_prog_compiler_can_build_shared=no
15186       ;;
15187     esac
15188   fi
15189
15190 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15191 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15192
15193 #
15194 # Check to make sure the PIC flag actually works.
15195 #
15196 if test -n "$lt_prog_compiler_pic"; then
15197
15198 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15199 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15200 if test "${lt_prog_compiler_pic_works+set}" = set; then
15201   echo $ECHO_N "(cached) $ECHO_C" >&6
15202 else
15203   lt_prog_compiler_pic_works=no
15204   ac_outfile=conftest.$ac_objext
15205    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15206    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15207    # Insert the option either (1) after the last *FLAGS variable, or
15208    # (2) before a word containing "conftest.", or (3) at the end.
15209    # Note that $ac_compile itself does not contain backslashes and begins
15210    # with a dollar sign (not a hyphen), so the echo should work correctly.
15211    # The option is referenced via a variable to avoid confusing sed.
15212    lt_compile=`echo "$ac_compile" | $SED \
15213    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15214    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15215    -e 's:$: $lt_compiler_flag:'`
15216    (eval echo "\"\$as_me:15216: $lt_compile\"" >&5)
15217    (eval "$lt_compile" 2>conftest.err)
15218    ac_status=$?
15219    cat conftest.err >&5
15220    echo "$as_me:15220: \$? = $ac_status" >&5
15221    if (exit $ac_status) && test -s "$ac_outfile"; then
15222      # The compiler can only warn and ignore the option if not recognized
15223      # So say no if there are warnings other than the usual output.
15224      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15225      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15226      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15227        lt_prog_compiler_pic_works=yes
15228      fi
15229    fi
15230    $rm conftest*
15231
15232 fi
15233 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15234 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15235
15236 if test x"$lt_prog_compiler_pic_works" = xyes; then
15237     case $lt_prog_compiler_pic in
15238      "" | " "*) ;;
15239      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15240      esac
15241 else
15242     lt_prog_compiler_pic=
15243      lt_prog_compiler_can_build_shared=no
15244 fi
15245
15246 fi
15247 case $host_os in
15248   # For platforms which do not support PIC, -DPIC is meaningless:
15249   *djgpp*)
15250     lt_prog_compiler_pic=
15251     ;;
15252   *)
15253     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15254     ;;
15255 esac
15256
15257 #
15258 # Check to make sure the static flag actually works.
15259 #
15260 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15261 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15262 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15263 if test "${lt_prog_compiler_static_works+set}" = set; then
15264   echo $ECHO_N "(cached) $ECHO_C" >&6
15265 else
15266   lt_prog_compiler_static_works=no
15267    save_LDFLAGS="$LDFLAGS"
15268    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15269    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15270    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15271      # The linker can only warn and ignore the option if not recognized
15272      # So say no if there are warnings
15273      if test -s conftest.err; then
15274        # Append any errors to the config.log.
15275        cat conftest.err 1>&5
15276        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15277        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15278        if diff conftest.exp conftest.er2 >/dev/null; then
15279          lt_prog_compiler_static_works=yes
15280        fi
15281      else
15282        lt_prog_compiler_static_works=yes
15283      fi
15284    fi
15285    $rm conftest*
15286    LDFLAGS="$save_LDFLAGS"
15287
15288 fi
15289 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15290 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15291
15292 if test x"$lt_prog_compiler_static_works" = xyes; then
15293     :
15294 else
15295     lt_prog_compiler_static=
15296 fi
15297
15298
15299 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15300 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15301 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15302   echo $ECHO_N "(cached) $ECHO_C" >&6
15303 else
15304   lt_cv_prog_compiler_c_o=no
15305    $rm -r conftest 2>/dev/null
15306    mkdir conftest
15307    cd conftest
15308    mkdir out
15309    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15310
15311    lt_compiler_flag="-o out/conftest2.$ac_objext"
15312    # Insert the option either (1) after the last *FLAGS variable, or
15313    # (2) before a word containing "conftest.", or (3) at the end.
15314    # Note that $ac_compile itself does not contain backslashes and begins
15315    # with a dollar sign (not a hyphen), so the echo should work correctly.
15316    lt_compile=`echo "$ac_compile" | $SED \
15317    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15318    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15319    -e 's:$: $lt_compiler_flag:'`
15320    (eval echo "\"\$as_me:15320: $lt_compile\"" >&5)
15321    (eval "$lt_compile" 2>out/conftest.err)
15322    ac_status=$?
15323    cat out/conftest.err >&5
15324    echo "$as_me:15324: \$? = $ac_status" >&5
15325    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15326    then
15327      # The compiler can only warn and ignore the option if not recognized
15328      # So say no if there are warnings
15329      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15330      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15331      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15332        lt_cv_prog_compiler_c_o=yes
15333      fi
15334    fi
15335    chmod u+w . 2>&5
15336    $rm conftest*
15337    # SGI C++ compiler will create directory out/ii_files/ for
15338    # template instantiation
15339    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15340    $rm out/* && rmdir out
15341    cd ..
15342    rmdir conftest
15343    $rm conftest*
15344
15345 fi
15346 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15347 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15348
15349
15350 hard_links="nottested"
15351 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15352   # do not overwrite the value of need_locks provided by the user
15353   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15354 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15355   hard_links=yes
15356   $rm conftest*
15357   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15358   touch conftest.a
15359   ln conftest.a conftest.b 2>&5 || hard_links=no
15360   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15361   { echo "$as_me:$LINENO: result: $hard_links" >&5
15362 echo "${ECHO_T}$hard_links" >&6; }
15363   if test "$hard_links" = no; then
15364     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15365 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15366     need_locks=warn
15367   fi
15368 else
15369   need_locks=no
15370 fi
15371
15372 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15373 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15374
15375   runpath_var=
15376   allow_undefined_flag=
15377   enable_shared_with_static_runtimes=no
15378   archive_cmds=
15379   archive_expsym_cmds=
15380   old_archive_From_new_cmds=
15381   old_archive_from_expsyms_cmds=
15382   export_dynamic_flag_spec=
15383   whole_archive_flag_spec=
15384   thread_safe_flag_spec=
15385   hardcode_libdir_flag_spec=
15386   hardcode_libdir_flag_spec_ld=
15387   hardcode_libdir_separator=
15388   hardcode_direct=no
15389   hardcode_minus_L=no
15390   hardcode_shlibpath_var=unsupported
15391   link_all_deplibs=unknown
15392   hardcode_automatic=no
15393   module_cmds=
15394   module_expsym_cmds=
15395   always_export_symbols=no
15396   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15397   # include_expsyms should be a list of space-separated symbols to be *always*
15398   # included in the symbol list
15399   include_expsyms=
15400   # exclude_expsyms can be an extended regexp of symbols to exclude
15401   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15402   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15403   # as well as any symbol that contains `d'.
15404   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15405   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15406   # platforms (ab)use it in PIC code, but their linkers get confused if
15407   # the symbol is explicitly referenced.  Since portable code cannot
15408   # rely on this symbol name, it's probably fine to never include it in
15409   # preloaded symbol tables.
15410   extract_expsyms_cmds=
15411   # Just being paranoid about ensuring that cc_basename is set.
15412   for cc_temp in $compiler""; do
15413   case $cc_temp in
15414     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15415     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15416     \-*) ;;
15417     *) break;;
15418   esac
15419 done
15420 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15421
15422   case $host_os in
15423   cygwin* | mingw* | pw32*)
15424     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15425     # When not using gcc, we currently assume that we are using
15426     # Microsoft Visual C++.
15427     if test "$GCC" != yes; then
15428       with_gnu_ld=no
15429     fi
15430     ;;
15431   interix*)
15432     # we just hope/assume this is gcc and not c89 (= MSVC++)
15433     with_gnu_ld=yes
15434     ;;
15435   openbsd*)
15436     with_gnu_ld=no
15437     ;;
15438   esac
15439
15440   ld_shlibs=yes
15441   if test "$with_gnu_ld" = yes; then
15442     # If archive_cmds runs LD, not CC, wlarc should be empty
15443     wlarc='${wl}'
15444
15445     # Set some defaults for GNU ld with shared library support. These
15446     # are reset later if shared libraries are not supported. Putting them
15447     # here allows them to be overridden if necessary.
15448     runpath_var=LD_RUN_PATH
15449     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15450     export_dynamic_flag_spec='${wl}--export-dynamic'
15451     # ancient GNU ld didn't support --whole-archive et. al.
15452     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15453         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15454       else
15455         whole_archive_flag_spec=
15456     fi
15457     supports_anon_versioning=no
15458     case `$LD -v 2>/dev/null` in
15459       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15460       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15461       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15462       *\ 2.11.*) ;; # other 2.11 versions
15463       *) supports_anon_versioning=yes ;;
15464     esac
15465
15466     # See if GNU ld supports shared libraries.
15467     case $host_os in
15468     aix3* | aix4* | aix5*)
15469       # On AIX/PPC, the GNU linker is very broken
15470       if test "$host_cpu" != ia64; then
15471         ld_shlibs=no
15472         cat <<EOF 1>&2
15473
15474 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15475 *** to be unable to reliably create shared libraries on AIX.
15476 *** Therefore, libtool is disabling shared libraries support.  If you
15477 *** really care for shared libraries, you may want to modify your PATH
15478 *** so that a non-GNU linker is found, and then restart.
15479
15480 EOF
15481       fi
15482       ;;
15483
15484     amigaos*)
15485       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)'
15486       hardcode_libdir_flag_spec='-L$libdir'
15487       hardcode_minus_L=yes
15488
15489       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15490       # that the semantics of dynamic libraries on AmigaOS, at least up
15491       # to version 4, is to share data among multiple programs linked
15492       # with the same dynamic library.  Since this doesn't match the
15493       # behavior of shared libraries on other platforms, we can't use
15494       # them.
15495       ld_shlibs=no
15496       ;;
15497
15498     beos*)
15499       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15500         allow_undefined_flag=unsupported
15501         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15502         # support --undefined.  This deserves some investigation.  FIXME
15503         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15504       else
15505         ld_shlibs=no
15506       fi
15507       ;;
15508
15509     cygwin* | mingw* | pw32*)
15510       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15511       # as there is no search path for DLLs.
15512       hardcode_libdir_flag_spec='-L$libdir'
15513       allow_undefined_flag=unsupported
15514       always_export_symbols=no
15515       enable_shared_with_static_runtimes=yes
15516       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15517
15518       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15519         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15520         # If the export-symbols file already is a .def file (1st line
15521         # is EXPORTS), use it as is; otherwise, prepend...
15522         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15523           cp $export_symbols $output_objdir/$soname.def;
15524         else
15525           echo EXPORTS > $output_objdir/$soname.def;
15526           cat $export_symbols >> $output_objdir/$soname.def;
15527         fi~
15528         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15529       else
15530         ld_shlibs=no
15531       fi
15532       ;;
15533
15534     interix3*)
15535       hardcode_direct=no
15536       hardcode_shlibpath_var=no
15537       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15538       export_dynamic_flag_spec='${wl}-E'
15539       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15540       # Instead, shared libraries are loaded at an image base (0x10000000 by
15541       # default) and relocated if they conflict, which is a slow very memory
15542       # consuming and fragmenting process.  To avoid this, we pick a random,
15543       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15544       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15545       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15546       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'
15547       ;;
15548
15549     linux*)
15550       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15551         tmp_addflag=
15552         case $cc_basename,$host_cpu in
15553         pgcc*)                          # Portland Group C compiler
15554           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'
15555           tmp_addflag=' $pic_flag'
15556           ;;
15557         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15558           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'
15559           tmp_addflag=' $pic_flag -Mnomain' ;;
15560         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15561           tmp_addflag=' -i_dynamic' ;;
15562         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15563           tmp_addflag=' -i_dynamic -nofor_main' ;;
15564         ifc* | ifort*)                  # Intel Fortran compiler
15565           tmp_addflag=' -nofor_main' ;;
15566         esac
15567         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15568
15569         if test $supports_anon_versioning = yes; then
15570           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15571   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15572   $echo "local: *; };" >> $output_objdir/$libname.ver~
15573           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15574         fi
15575       else
15576         ld_shlibs=no
15577       fi
15578       ;;
15579
15580     netbsd*)
15581       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15582         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15583         wlarc=
15584       else
15585         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15586         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15587       fi
15588       ;;
15589
15590     solaris*)
15591       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15592         ld_shlibs=no
15593         cat <<EOF 1>&2
15594
15595 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15596 *** create shared libraries on Solaris systems.  Therefore, libtool
15597 *** is disabling shared libraries support.  We urge you to upgrade GNU
15598 *** binutils to release 2.9.1 or newer.  Another option is to modify
15599 *** your PATH or compiler configuration so that the native linker is
15600 *** used, and then restart.
15601
15602 EOF
15603       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15604         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15605         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15606       else
15607         ld_shlibs=no
15608       fi
15609       ;;
15610
15611     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15612       case `$LD -v 2>&1` in
15613         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15614         ld_shlibs=no
15615         cat <<_LT_EOF 1>&2
15616
15617 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15618 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15619 *** is disabling shared libraries support.  We urge you to upgrade GNU
15620 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15621 *** your PATH or compiler configuration so that the native linker is
15622 *** used, and then restart.
15623
15624 _LT_EOF
15625         ;;
15626         *)
15627           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15628             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15629             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15630             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15631           else
15632             ld_shlibs=no
15633           fi
15634         ;;
15635       esac
15636       ;;
15637
15638     sunos4*)
15639       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15640       wlarc=
15641       hardcode_direct=yes
15642       hardcode_shlibpath_var=no
15643       ;;
15644
15645     *)
15646       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15647         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15648         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15649       else
15650         ld_shlibs=no
15651       fi
15652       ;;
15653     esac
15654
15655     if test "$ld_shlibs" = no; then
15656       runpath_var=
15657       hardcode_libdir_flag_spec=
15658       export_dynamic_flag_spec=
15659       whole_archive_flag_spec=
15660     fi
15661   else
15662     # PORTME fill in a description of your system's linker (not GNU ld)
15663     case $host_os in
15664     aix3*)
15665       allow_undefined_flag=unsupported
15666       always_export_symbols=yes
15667       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'
15668       # Note: this linker hardcodes the directories in LIBPATH if there
15669       # are no directories specified by -L.
15670       hardcode_minus_L=yes
15671       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15672         # Neither direct hardcoding nor static linking is supported with a
15673         # broken collect2.
15674         hardcode_direct=unsupported
15675       fi
15676       ;;
15677
15678     aix4* | aix5*)
15679       if test "$host_cpu" = ia64; then
15680         # On IA64, the linker does run time linking by default, so we don't
15681         # have to do anything special.
15682         aix_use_runtimelinking=no
15683         exp_sym_flag='-Bexport'
15684         no_entry_flag=""
15685       else
15686         # If we're using GNU nm, then we don't want the "-C" option.
15687         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15688         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15689           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'
15690         else
15691           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'
15692         fi
15693         aix_use_runtimelinking=no
15694
15695         # Test if we are trying to use run time linking or normal
15696         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15697         # need to do runtime linking.
15698         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15699           for ld_flag in $LDFLAGS; do
15700           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15701             aix_use_runtimelinking=yes
15702             break
15703           fi
15704           done
15705           ;;
15706         esac
15707
15708         exp_sym_flag='-bexport'
15709         no_entry_flag='-bnoentry'
15710       fi
15711
15712       # When large executables or shared objects are built, AIX ld can
15713       # have problems creating the table of contents.  If linking a library
15714       # or program results in "error TOC overflow" add -mminimal-toc to
15715       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15716       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15717
15718       archive_cmds=''
15719       hardcode_direct=yes
15720       hardcode_libdir_separator=':'
15721       link_all_deplibs=yes
15722
15723       if test "$GCC" = yes; then
15724         case $host_os in aix4.[012]|aix4.[012].*)
15725         # We only want to do this on AIX 4.2 and lower, the check
15726         # below for broken collect2 doesn't work under 4.3+
15727           collect2name=`${CC} -print-prog-name=collect2`
15728           if test -f "$collect2name" && \
15729            strings "$collect2name" | grep resolve_lib_name >/dev/null
15730           then
15731           # We have reworked collect2
15732           hardcode_direct=yes
15733           else
15734           # We have old collect2
15735           hardcode_direct=unsupported
15736           # It fails to find uninstalled libraries when the uninstalled
15737           # path is not listed in the libpath.  Setting hardcode_minus_L
15738           # to unsupported forces relinking
15739           hardcode_minus_L=yes
15740           hardcode_libdir_flag_spec='-L$libdir'
15741           hardcode_libdir_separator=
15742           fi
15743           ;;
15744         esac
15745         shared_flag='-shared'
15746         if test "$aix_use_runtimelinking" = yes; then
15747           shared_flag="$shared_flag "'${wl}-G'
15748         fi
15749       else
15750         # not using gcc
15751         if test "$host_cpu" = ia64; then
15752         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15753         # chokes on -Wl,-G. The following line is correct:
15754           shared_flag='-G'
15755         else
15756           if test "$aix_use_runtimelinking" = yes; then
15757             shared_flag='${wl}-G'
15758           else
15759             shared_flag='${wl}-bM:SRE'
15760           fi
15761         fi
15762       fi
15763
15764       # It seems that -bexpall does not export symbols beginning with
15765       # underscore (_), so it is better to generate a list of symbols to export.
15766       always_export_symbols=yes
15767       if test "$aix_use_runtimelinking" = yes; then
15768         # Warning - without using the other runtime loading flags (-brtl),
15769         # -berok will link without error, but may produce a broken library.
15770         allow_undefined_flag='-berok'
15771        # Determine the default libpath from the value encoded in an empty executable.
15772        cat >conftest.$ac_ext <<_ACEOF
15773 /* confdefs.h.  */
15774 _ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h.  */
15778
15779 int
15780 main ()
15781 {
15782
15783   ;
15784   return 0;
15785 }
15786 _ACEOF
15787 rm -f conftest.$ac_objext conftest$ac_exeext
15788 if { (ac_try="$ac_link"
15789 case "(($ac_try" in
15790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791   *) ac_try_echo=$ac_try;;
15792 esac
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794   (eval "$ac_link") 2>conftest.er1
15795   ac_status=$?
15796   grep -v '^ *+' conftest.er1 >conftest.err
15797   rm -f conftest.er1
15798   cat conftest.err >&5
15799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); } &&
15801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15802   { (case "(($ac_try" in
15803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804   *) ac_try_echo=$ac_try;;
15805 esac
15806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807   (eval "$ac_try") 2>&5
15808   ac_status=$?
15809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810   (exit $ac_status); }; } &&
15811          { ac_try='test -s conftest$ac_exeext'
15812   { (case "(($ac_try" in
15813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814   *) ac_try_echo=$ac_try;;
15815 esac
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817   (eval "$ac_try") 2>&5
15818   ac_status=$?
15819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820   (exit $ac_status); }; }; then
15821
15822 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15823 }'`
15824 # Check for a 64-bit object if we didn't find anything.
15825 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; }
15826 }'`; fi
15827 else
15828   echo "$as_me: failed program was:" >&5
15829 sed 's/^/| /' conftest.$ac_ext >&5
15830
15831
15832 fi
15833
15834 rm -f core conftest.err conftest.$ac_objext \
15835       conftest$ac_exeext conftest.$ac_ext
15836 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15837
15838        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15839         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"
15840        else
15841         if test "$host_cpu" = ia64; then
15842           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15843           allow_undefined_flag="-z nodefs"
15844           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"
15845         else
15846          # Determine the default libpath from the value encoded in an empty executable.
15847          cat >conftest.$ac_ext <<_ACEOF
15848 /* confdefs.h.  */
15849 _ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h.  */
15853
15854 int
15855 main ()
15856 {
15857
15858   ;
15859   return 0;
15860 }
15861 _ACEOF
15862 rm -f conftest.$ac_objext conftest$ac_exeext
15863 if { (ac_try="$ac_link"
15864 case "(($ac_try" in
15865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866   *) ac_try_echo=$ac_try;;
15867 esac
15868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869   (eval "$ac_link") 2>conftest.er1
15870   ac_status=$?
15871   grep -v '^ *+' conftest.er1 >conftest.err
15872   rm -f conftest.er1
15873   cat conftest.err >&5
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); } &&
15876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15877   { (case "(($ac_try" in
15878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879   *) ac_try_echo=$ac_try;;
15880 esac
15881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882   (eval "$ac_try") 2>&5
15883   ac_status=$?
15884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885   (exit $ac_status); }; } &&
15886          { ac_try='test -s conftest$ac_exeext'
15887   { (case "(($ac_try" in
15888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889   *) ac_try_echo=$ac_try;;
15890 esac
15891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892   (eval "$ac_try") 2>&5
15893   ac_status=$?
15894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895   (exit $ac_status); }; }; then
15896
15897 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15898 }'`
15899 # Check for a 64-bit object if we didn't find anything.
15900 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; }
15901 }'`; fi
15902 else
15903   echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15905
15906
15907 fi
15908
15909 rm -f core conftest.err conftest.$ac_objext \
15910       conftest$ac_exeext conftest.$ac_ext
15911 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15912
15913          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15914           # Warning - without using the other run time loading flags,
15915           # -berok will link without error, but may produce a broken library.
15916           no_undefined_flag=' ${wl}-bernotok'
15917           allow_undefined_flag=' ${wl}-berok'
15918           # Exported symbols can be pulled into shared objects from archives
15919           whole_archive_flag_spec='$convenience'
15920           archive_cmds_need_lc=yes
15921           # This is similar to how AIX traditionally builds its shared libraries.
15922           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'
15923         fi
15924       fi
15925       ;;
15926
15927     amigaos*)
15928       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)'
15929       hardcode_libdir_flag_spec='-L$libdir'
15930       hardcode_minus_L=yes
15931       # see comment about different semantics on the GNU ld section
15932       ld_shlibs=no
15933       ;;
15934
15935     bsdi[45]*)
15936       export_dynamic_flag_spec=-rdynamic
15937       ;;
15938
15939     cygwin* | mingw* | pw32*)
15940       # When not using gcc, we currently assume that we are using
15941       # Microsoft Visual C++.
15942       # hardcode_libdir_flag_spec is actually meaningless, as there is
15943       # no search path for DLLs.
15944       hardcode_libdir_flag_spec=' '
15945       allow_undefined_flag=unsupported
15946       # Tell ltmain to make .lib files, not .a files.
15947       libext=lib
15948       # Tell ltmain to make .dll files, not .so files.
15949       shrext_cmds=".dll"
15950       # FIXME: Setting linknames here is a bad hack.
15951       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15952       # The linker will automatically build a .lib file if we build a DLL.
15953       old_archive_From_new_cmds='true'
15954       # FIXME: Should let the user specify the lib program.
15955       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15956       fix_srcfile_path='`cygpath -w "$srcfile"`'
15957       enable_shared_with_static_runtimes=yes
15958       ;;
15959
15960     darwin* | rhapsody*)
15961       case $host_os in
15962         rhapsody* | darwin1.[012])
15963          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15964          ;;
15965        *) # Darwin 1.3 on
15966          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15967            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15968          else
15969            case ${MACOSX_DEPLOYMENT_TARGET} in
15970              10.[012])
15971                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15972                ;;
15973              10.*)
15974                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15975                ;;
15976            esac
15977          fi
15978          ;;
15979       esac
15980       archive_cmds_need_lc=no
15981       hardcode_direct=no
15982       hardcode_automatic=yes
15983       hardcode_shlibpath_var=unsupported
15984       whole_archive_flag_spec=''
15985       link_all_deplibs=yes
15986     if test "$GCC" = yes ; then
15987         output_verbose_link_cmd='echo'
15988         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15989       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15990       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15991       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}'
15992       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}'
15993     else
15994       case $cc_basename in
15995         xlc*)
15996          output_verbose_link_cmd='echo'
15997          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15998          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15999           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16000          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}'
16001           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}'
16002           ;;
16003        *)
16004          ld_shlibs=no
16005           ;;
16006       esac
16007     fi
16008       ;;
16009
16010     dgux*)
16011       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16012       hardcode_libdir_flag_spec='-L$libdir'
16013       hardcode_shlibpath_var=no
16014       ;;
16015
16016     freebsd1*)
16017       ld_shlibs=no
16018       ;;
16019
16020     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16021     # support.  Future versions do this automatically, but an explicit c++rt0.o
16022     # does not break anything, and helps significantly (at the cost of a little
16023     # extra space).
16024     freebsd2.2*)
16025       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16026       hardcode_libdir_flag_spec='-R$libdir'
16027       hardcode_direct=yes
16028       hardcode_shlibpath_var=no
16029       ;;
16030
16031     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16032     freebsd2*)
16033       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16034       hardcode_direct=yes
16035       hardcode_minus_L=yes
16036       hardcode_shlibpath_var=no
16037       ;;
16038
16039     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16040     freebsd* | kfreebsd*-gnu | dragonfly*)
16041       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16042       hardcode_libdir_flag_spec='-R$libdir'
16043       hardcode_direct=yes
16044       hardcode_shlibpath_var=no
16045       ;;
16046
16047     hpux9*)
16048       if test "$GCC" = yes; then
16049         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'
16050       else
16051         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'
16052       fi
16053       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16054       hardcode_libdir_separator=:
16055       hardcode_direct=yes
16056
16057       # hardcode_minus_L: Not really in the search PATH,
16058       # but as the default location of the library.
16059       hardcode_minus_L=yes
16060       export_dynamic_flag_spec='${wl}-E'
16061       ;;
16062
16063     hpux10*)
16064       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16065         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16066       else
16067         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16068       fi
16069       if test "$with_gnu_ld" = no; then
16070         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16071         hardcode_libdir_separator=:
16072
16073         hardcode_direct=yes
16074         export_dynamic_flag_spec='${wl}-E'
16075
16076         # hardcode_minus_L: Not really in the search PATH,
16077         # but as the default location of the library.
16078         hardcode_minus_L=yes
16079       fi
16080       ;;
16081
16082     hpux11*)
16083       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16084         case $host_cpu in
16085         hppa*64*)
16086           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16087           ;;
16088         ia64*)
16089           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16090           ;;
16091         *)
16092           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16093           ;;
16094         esac
16095       else
16096         case $host_cpu in
16097         hppa*64*)
16098           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16099           ;;
16100         ia64*)
16101           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16102           ;;
16103         *)
16104           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16105           ;;
16106         esac
16107       fi
16108       if test "$with_gnu_ld" = no; then
16109         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16110         hardcode_libdir_separator=:
16111
16112         case $host_cpu in
16113         hppa*64*|ia64*)
16114           hardcode_libdir_flag_spec_ld='+b $libdir'
16115           hardcode_direct=no
16116           hardcode_shlibpath_var=no
16117           ;;
16118         *)
16119           hardcode_direct=yes
16120           export_dynamic_flag_spec='${wl}-E'
16121
16122           # hardcode_minus_L: Not really in the search PATH,
16123           # but as the default location of the library.
16124           hardcode_minus_L=yes
16125           ;;
16126         esac
16127       fi
16128       ;;
16129
16130     irix5* | irix6* | nonstopux*)
16131       if test "$GCC" = yes; then
16132         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'
16133       else
16134         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'
16135         hardcode_libdir_flag_spec_ld='-rpath $libdir'
16136       fi
16137       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16138       hardcode_libdir_separator=:
16139       link_all_deplibs=yes
16140       ;;
16141
16142     netbsd*)
16143       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16144         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16145       else
16146         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16147       fi
16148       hardcode_libdir_flag_spec='-R$libdir'
16149       hardcode_direct=yes
16150       hardcode_shlibpath_var=no
16151       ;;
16152
16153     newsos6)
16154       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16155       hardcode_direct=yes
16156       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16157       hardcode_libdir_separator=:
16158       hardcode_shlibpath_var=no
16159       ;;
16160
16161     openbsd*)
16162       hardcode_direct=yes
16163       hardcode_shlibpath_var=no
16164       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16165         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16166         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16167         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16168         export_dynamic_flag_spec='${wl}-E'
16169       else
16170        case $host_os in
16171          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16172            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16173            hardcode_libdir_flag_spec='-R$libdir'
16174            ;;
16175          *)
16176            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16177            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16178            ;;
16179        esac
16180       fi
16181       ;;
16182
16183     os2*)
16184       hardcode_libdir_flag_spec='-L$libdir'
16185       hardcode_minus_L=yes
16186       allow_undefined_flag=unsupported
16187       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'
16188       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16189       ;;
16190
16191     osf3*)
16192       if test "$GCC" = yes; then
16193         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16194         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'
16195       else
16196         allow_undefined_flag=' -expect_unresolved \*'
16197         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'
16198       fi
16199       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16200       hardcode_libdir_separator=:
16201       ;;
16202
16203     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16204       if test "$GCC" = yes; then
16205         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16206         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'
16207         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16208       else
16209         allow_undefined_flag=' -expect_unresolved \*'
16210         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'
16211         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16212         $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'
16213
16214         # Both c and cxx compiler support -rpath directly
16215         hardcode_libdir_flag_spec='-rpath $libdir'
16216       fi
16217       hardcode_libdir_separator=:
16218       ;;
16219
16220     solaris*)
16221       no_undefined_flag=' -z text'
16222       if test "$GCC" = yes; then
16223         wlarc='${wl}'
16224         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16225         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16226           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16227       else
16228         wlarc=''
16229         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16230         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16231         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16232       fi
16233       hardcode_libdir_flag_spec='-R$libdir'
16234       hardcode_shlibpath_var=no
16235       case $host_os in
16236       solaris2.[0-5] | solaris2.[0-5].*) ;;
16237       *)
16238         # The compiler driver will combine linker options so we
16239         # cannot just pass the convience library names through
16240         # without $wl, iff we do not link with $LD.
16241         # Luckily, gcc supports the same syntax we need for Sun Studio.
16242         # Supported since Solaris 2.6 (maybe 2.5.1?)
16243         case $wlarc in
16244         '')
16245           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16246         *)
16247           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' ;;
16248         esac ;;
16249       esac
16250       link_all_deplibs=yes
16251       ;;
16252
16253     sunos4*)
16254       if test "x$host_vendor" = xsequent; then
16255         # Use $CC to link under sequent, because it throws in some extra .o
16256         # files that make .init and .fini sections work.
16257         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16258       else
16259         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16260       fi
16261       hardcode_libdir_flag_spec='-L$libdir'
16262       hardcode_direct=yes
16263       hardcode_minus_L=yes
16264       hardcode_shlibpath_var=no
16265       ;;
16266
16267     sysv4)
16268       case $host_vendor in
16269         sni)
16270           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16271           hardcode_direct=yes # is this really true???
16272         ;;
16273         siemens)
16274           ## LD is ld it makes a PLAMLIB
16275           ## CC just makes a GrossModule.
16276           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16277           reload_cmds='$CC -r -o $output$reload_objs'
16278           hardcode_direct=no
16279         ;;
16280         motorola)
16281           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16282           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16283         ;;
16284       esac
16285       runpath_var='LD_RUN_PATH'
16286       hardcode_shlibpath_var=no
16287       ;;
16288
16289     sysv4.3*)
16290       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16291       hardcode_shlibpath_var=no
16292       export_dynamic_flag_spec='-Bexport'
16293       ;;
16294
16295     sysv4*MP*)
16296       if test -d /usr/nec; then
16297         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16298         hardcode_shlibpath_var=no
16299         runpath_var=LD_RUN_PATH
16300         hardcode_runpath_var=yes
16301         ld_shlibs=yes
16302       fi
16303       ;;
16304
16305     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16306       no_undefined_flag='${wl}-z,text'
16307       archive_cmds_need_lc=no
16308       hardcode_shlibpath_var=no
16309       runpath_var='LD_RUN_PATH'
16310
16311       if test "$GCC" = yes; then
16312         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16313         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16314       else
16315         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16316         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16317       fi
16318       ;;
16319
16320     sysv5* | sco3.2v5* | sco5v6*)
16321       # Note: We can NOT use -z defs as we might desire, because we do not
16322       # link with -lc, and that would cause any symbols used from libc to
16323       # always be unresolved, which means just about no library would
16324       # ever link correctly.  If we're not using GNU ld we use -z text
16325       # though, which does catch some bad symbols but isn't as heavy-handed
16326       # as -z defs.
16327       no_undefined_flag='${wl}-z,text'
16328       allow_undefined_flag='${wl}-z,nodefs'
16329       archive_cmds_need_lc=no
16330       hardcode_shlibpath_var=no
16331       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16332       hardcode_libdir_separator=':'
16333       link_all_deplibs=yes
16334       export_dynamic_flag_spec='${wl}-Bexport'
16335       runpath_var='LD_RUN_PATH'
16336
16337       if test "$GCC" = yes; then
16338         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16339         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16340       else
16341         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16342         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16343       fi
16344       ;;
16345
16346     uts4*)
16347       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16348       hardcode_libdir_flag_spec='-L$libdir'
16349       hardcode_shlibpath_var=no
16350       ;;
16351
16352     *)
16353       ld_shlibs=no
16354       ;;
16355     esac
16356   fi
16357
16358 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16359 echo "${ECHO_T}$ld_shlibs" >&6; }
16360 test "$ld_shlibs" = no && can_build_shared=no
16361
16362 #
16363 # Do we need to explicitly link libc?
16364 #
16365 case "x$archive_cmds_need_lc" in
16366 x|xyes)
16367   # Assume -lc should be added
16368   archive_cmds_need_lc=yes
16369
16370   if test "$enable_shared" = yes && test "$GCC" = yes; then
16371     case $archive_cmds in
16372     *'~'*)
16373       # FIXME: we may have to deal with multi-command sequences.
16374       ;;
16375     '$CC '*)
16376       # Test whether the compiler implicitly links with -lc since on some
16377       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16378       # to ld, don't add -lc before -lgcc.
16379       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16380 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16381       $rm conftest*
16382       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16383
16384       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16385   (eval $ac_compile) 2>&5
16386   ac_status=$?
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); } 2>conftest.err; then
16389         soname=conftest
16390         lib=conftest
16391         libobjs=conftest.$ac_objext
16392         deplibs=
16393         wl=$lt_prog_compiler_wl
16394         pic_flag=$lt_prog_compiler_pic
16395         compiler_flags=-v
16396         linker_flags=-v
16397         verstring=
16398         output_objdir=.
16399         libname=conftest
16400         lt_save_allow_undefined_flag=$allow_undefined_flag
16401         allow_undefined_flag=
16402         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16403   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16404   ac_status=$?
16405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406   (exit $ac_status); }
16407         then
16408           archive_cmds_need_lc=no
16409         else
16410           archive_cmds_need_lc=yes
16411         fi
16412         allow_undefined_flag=$lt_save_allow_undefined_flag
16413       else
16414         cat conftest.err 1>&5
16415       fi
16416       $rm conftest*
16417       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16418 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16419       ;;
16420     esac
16421   fi
16422   ;;
16423 esac
16424
16425 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16426 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16427 library_names_spec=
16428 libname_spec='lib$name'
16429 soname_spec=
16430 shrext_cmds=".so"
16431 postinstall_cmds=
16432 postuninstall_cmds=
16433 finish_cmds=
16434 finish_eval=
16435 shlibpath_var=
16436 shlibpath_overrides_runpath=unknown
16437 version_type=none
16438 dynamic_linker="$host_os ld.so"
16439 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16440 if test "$GCC" = yes; then
16441   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16442   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16443     # if the path contains ";" then we assume it to be the separator
16444     # otherwise default to the standard path separator (i.e. ":") - it is
16445     # assumed that no part of a normal pathname contains ";" but that should
16446     # okay in the real world where ";" in dirpaths is itself problematic.
16447     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16448   else
16449     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16450   fi
16451 else
16452   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16453 fi
16454 need_lib_prefix=unknown
16455 hardcode_into_libs=no
16456
16457 # when you set need_version to no, make sure it does not cause -set_version
16458 # flags to be left without arguments
16459 need_version=unknown
16460
16461 case $host_os in
16462 aix3*)
16463   version_type=linux
16464   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16465   shlibpath_var=LIBPATH
16466
16467   # AIX 3 has no versioning support, so we append a major version to the name.
16468   soname_spec='${libname}${release}${shared_ext}$major'
16469   ;;
16470
16471 aix4* | aix5*)
16472   version_type=linux
16473   need_lib_prefix=no
16474   need_version=no
16475   hardcode_into_libs=yes
16476   if test "$host_cpu" = ia64; then
16477     # AIX 5 supports IA64
16478     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16479     shlibpath_var=LD_LIBRARY_PATH
16480   else
16481     # With GCC up to 2.95.x, collect2 would create an import file
16482     # for dependence libraries.  The import file would start with
16483     # the line `#! .'.  This would cause the generated library to
16484     # depend on `.', always an invalid library.  This was fixed in
16485     # development snapshots of GCC prior to 3.0.
16486     case $host_os in
16487       aix4 | aix4.[01] | aix4.[01].*)
16488       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16489            echo ' yes '
16490            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16491         :
16492       else
16493         can_build_shared=no
16494       fi
16495       ;;
16496     esac
16497     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16498     # soname into executable. Probably we can add versioning support to
16499     # collect2, so additional links can be useful in future.
16500     if test "$aix_use_runtimelinking" = yes; then
16501       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16502       # instead of lib<name>.a to let people know that these are not
16503       # typical AIX shared libraries.
16504       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16505     else
16506       # We preserve .a as extension for shared libraries through AIX4.2
16507       # and later when we are not doing run time linking.
16508       library_names_spec='${libname}${release}.a $libname.a'
16509       soname_spec='${libname}${release}${shared_ext}$major'
16510     fi
16511     shlibpath_var=LIBPATH
16512   fi
16513   ;;
16514
16515 amigaos*)
16516   library_names_spec='$libname.ixlibrary $libname.a'
16517   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16518   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'
16519   ;;
16520
16521 beos*)
16522   library_names_spec='${libname}${shared_ext}'
16523   dynamic_linker="$host_os ld.so"
16524   shlibpath_var=LIBRARY_PATH
16525   ;;
16526
16527 bsdi[45]*)
16528   version_type=linux
16529   need_version=no
16530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16531   soname_spec='${libname}${release}${shared_ext}$major'
16532   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16533   shlibpath_var=LD_LIBRARY_PATH
16534   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16535   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16536   # the default ld.so.conf also contains /usr/contrib/lib and
16537   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16538   # libtool to hard-code these into programs
16539   ;;
16540
16541 cygwin* | mingw* | pw32*)
16542   version_type=windows
16543   shrext_cmds=".dll"
16544   need_version=no
16545   need_lib_prefix=no
16546
16547   case $GCC,$host_os in
16548   yes,cygwin* | yes,mingw* | yes,pw32*)
16549     library_names_spec='$libname.dll.a'
16550     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16551     postinstall_cmds='base_file=`basename \${file}`~
16552       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16553       dldir=$destdir/`dirname \$dlpath`~
16554       test -d \$dldir || mkdir -p \$dldir~
16555       $install_prog $dir/$dlname \$dldir/$dlname~
16556       chmod a+x \$dldir/$dlname'
16557     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16558       dlpath=$dir/\$dldll~
16559        $rm \$dlpath'
16560     shlibpath_overrides_runpath=yes
16561
16562     case $host_os in
16563     cygwin*)
16564       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16565       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16566       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16567       ;;
16568     mingw*)
16569       # MinGW DLLs use traditional 'lib' prefix
16570       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16571       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16572       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16573         # It is most probably a Windows format PATH printed by
16574         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16575         # path with ; separators, and with drive letters. We can handle the
16576         # drive letters (cygwin fileutils understands them), so leave them,
16577         # especially as we might pass files found there to a mingw objdump,
16578         # which wouldn't understand a cygwinified path. Ahh.
16579         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16580       else
16581         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16582       fi
16583       ;;
16584     pw32*)
16585       # pw32 DLLs use 'pw' prefix rather than 'lib'
16586       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16587       ;;
16588     esac
16589     ;;
16590
16591   *)
16592     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16593     ;;
16594   esac
16595   dynamic_linker='Win32 ld.exe'
16596   # FIXME: first we should search . and the directory the executable is in
16597   shlibpath_var=PATH
16598   ;;
16599
16600 darwin* | rhapsody*)
16601   dynamic_linker="$host_os dyld"
16602   version_type=darwin
16603   need_lib_prefix=no
16604   need_version=no
16605   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16606   soname_spec='${libname}${release}${major}$shared_ext'
16607   shlibpath_overrides_runpath=yes
16608   shlibpath_var=DYLD_LIBRARY_PATH
16609   shrext_cmds='.dylib'
16610   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16611   if test "$GCC" = yes; then
16612     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"`
16613   else
16614     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16615   fi
16616   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16617   ;;
16618
16619 dgux*)
16620   version_type=linux
16621   need_lib_prefix=no
16622   need_version=no
16623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16624   soname_spec='${libname}${release}${shared_ext}$major'
16625   shlibpath_var=LD_LIBRARY_PATH
16626   ;;
16627
16628 freebsd1*)
16629   dynamic_linker=no
16630   ;;
16631
16632 kfreebsd*-gnu)
16633   version_type=linux
16634   need_lib_prefix=no
16635   need_version=no
16636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16637   soname_spec='${libname}${release}${shared_ext}$major'
16638   shlibpath_var=LD_LIBRARY_PATH
16639   shlibpath_overrides_runpath=no
16640   hardcode_into_libs=yes
16641   dynamic_linker='GNU ld.so'
16642   ;;
16643
16644 freebsd* | dragonfly*)
16645   # DragonFly does not have aout.  When/if they implement a new
16646   # versioning mechanism, adjust this.
16647   if test -x /usr/bin/objformat; then
16648     objformat=`/usr/bin/objformat`
16649   else
16650     case $host_os in
16651     freebsd[123]*) objformat=aout ;;
16652     *) objformat=elf ;;
16653     esac
16654   fi
16655   version_type=freebsd-$objformat
16656   case $version_type in
16657     freebsd-elf*)
16658       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16659       need_version=no
16660       need_lib_prefix=no
16661       ;;
16662     freebsd-*)
16663       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16664       need_version=yes
16665       ;;
16666   esac
16667   shlibpath_var=LD_LIBRARY_PATH
16668   case $host_os in
16669   freebsd2*)
16670     shlibpath_overrides_runpath=yes
16671     ;;
16672   freebsd3.[01]* | freebsdelf3.[01]*)
16673     shlibpath_overrides_runpath=yes
16674     hardcode_into_libs=yes
16675     ;;
16676   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16677   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16678     shlibpath_overrides_runpath=no
16679     hardcode_into_libs=yes
16680     ;;
16681   freebsd*) # from 4.6 on
16682     shlibpath_overrides_runpath=yes
16683     hardcode_into_libs=yes
16684     ;;
16685   esac
16686   ;;
16687
16688 gnu*)
16689   version_type=linux
16690   need_lib_prefix=no
16691   need_version=no
16692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16693   soname_spec='${libname}${release}${shared_ext}$major'
16694   shlibpath_var=LD_LIBRARY_PATH
16695   hardcode_into_libs=yes
16696   ;;
16697
16698 hpux9* | hpux10* | hpux11*)
16699   # Give a soname corresponding to the major version so that dld.sl refuses to
16700   # link against other versions.
16701   version_type=sunos
16702   need_lib_prefix=no
16703   need_version=no
16704   case $host_cpu in
16705   ia64*)
16706     shrext_cmds='.so'
16707     hardcode_into_libs=yes
16708     dynamic_linker="$host_os dld.so"
16709     shlibpath_var=LD_LIBRARY_PATH
16710     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16711     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16712     soname_spec='${libname}${release}${shared_ext}$major'
16713     if test "X$HPUX_IA64_MODE" = X32; then
16714       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16715     else
16716       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16717     fi
16718     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16719     ;;
16720    hppa*64*)
16721      shrext_cmds='.sl'
16722      hardcode_into_libs=yes
16723      dynamic_linker="$host_os dld.sl"
16724      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16725      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16726      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727      soname_spec='${libname}${release}${shared_ext}$major'
16728      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16729      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16730      ;;
16731    *)
16732     shrext_cmds='.sl'
16733     dynamic_linker="$host_os dld.sl"
16734     shlibpath_var=SHLIB_PATH
16735     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16736     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737     soname_spec='${libname}${release}${shared_ext}$major'
16738     ;;
16739   esac
16740   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16741   postinstall_cmds='chmod 555 $lib'
16742   ;;
16743
16744 interix3*)
16745   version_type=linux
16746   need_lib_prefix=no
16747   need_version=no
16748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16749   soname_spec='${libname}${release}${shared_ext}$major'
16750   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16751   shlibpath_var=LD_LIBRARY_PATH
16752   shlibpath_overrides_runpath=no
16753   hardcode_into_libs=yes
16754   ;;
16755
16756 irix5* | irix6* | nonstopux*)
16757   case $host_os in
16758     nonstopux*) version_type=nonstopux ;;
16759     *)
16760         if test "$lt_cv_prog_gnu_ld" = yes; then
16761                 version_type=linux
16762         else
16763                 version_type=irix
16764         fi ;;
16765   esac
16766   need_lib_prefix=no
16767   need_version=no
16768   soname_spec='${libname}${release}${shared_ext}$major'
16769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16770   case $host_os in
16771   irix5* | nonstopux*)
16772     libsuff= shlibsuff=
16773     ;;
16774   *)
16775     case $LD in # libtool.m4 will add one of these switches to LD
16776     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16777       libsuff= shlibsuff= libmagic=32-bit;;
16778     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16779       libsuff=32 shlibsuff=N32 libmagic=N32;;
16780     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16781       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16782     *) libsuff= shlibsuff= libmagic=never-match;;
16783     esac
16784     ;;
16785   esac
16786   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16787   shlibpath_overrides_runpath=no
16788   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16789   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16790   hardcode_into_libs=yes
16791   ;;
16792
16793 # No shared lib support for Linux oldld, aout, or coff.
16794 linux*oldld* | linux*aout* | linux*coff*)
16795   dynamic_linker=no
16796   ;;
16797
16798 # This must be Linux ELF.
16799 linux*)
16800   version_type=linux
16801   need_lib_prefix=no
16802   need_version=no
16803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16804   soname_spec='${libname}${release}${shared_ext}$major'
16805   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16806   shlibpath_var=LD_LIBRARY_PATH
16807   shlibpath_overrides_runpath=no
16808   # This implies no fast_install, which is unacceptable.
16809   # Some rework will be needed to allow for fast_install
16810   # before this can be enabled.
16811   hardcode_into_libs=yes
16812
16813   # Append ld.so.conf contents to the search path
16814   if test -f /etc/ld.so.conf; then
16815     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' ' '`
16816     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16817   fi
16818
16819   # We used to test for /lib/ld.so.1 and disable shared libraries on
16820   # powerpc, because MkLinux only supported shared libraries with the
16821   # GNU dynamic linker.  Since this was broken with cross compilers,
16822   # most powerpc-linux boxes support dynamic linking these days and
16823   # people can always --disable-shared, the test was removed, and we
16824   # assume the GNU/Linux dynamic linker is in use.
16825   dynamic_linker='GNU/Linux ld.so'
16826   ;;
16827
16828 knetbsd*-gnu)
16829   version_type=linux
16830   need_lib_prefix=no
16831   need_version=no
16832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16833   soname_spec='${libname}${release}${shared_ext}$major'
16834   shlibpath_var=LD_LIBRARY_PATH
16835   shlibpath_overrides_runpath=no
16836   hardcode_into_libs=yes
16837   dynamic_linker='GNU ld.so'
16838   ;;
16839
16840 netbsd*)
16841   version_type=sunos
16842   need_lib_prefix=no
16843   need_version=no
16844   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16845     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16846     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16847     dynamic_linker='NetBSD (a.out) ld.so'
16848   else
16849     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16850     soname_spec='${libname}${release}${shared_ext}$major'
16851     dynamic_linker='NetBSD ld.elf_so'
16852   fi
16853   shlibpath_var=LD_LIBRARY_PATH
16854   shlibpath_overrides_runpath=yes
16855   hardcode_into_libs=yes
16856   ;;
16857
16858 newsos6)
16859   version_type=linux
16860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16861   shlibpath_var=LD_LIBRARY_PATH
16862   shlibpath_overrides_runpath=yes
16863   ;;
16864
16865 nto-qnx*)
16866   version_type=linux
16867   need_lib_prefix=no
16868   need_version=no
16869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16870   soname_spec='${libname}${release}${shared_ext}$major'
16871   shlibpath_var=LD_LIBRARY_PATH
16872   shlibpath_overrides_runpath=yes
16873   ;;
16874
16875 openbsd*)
16876   version_type=sunos
16877   sys_lib_dlsearch_path_spec="/usr/lib"
16878   need_lib_prefix=no
16879   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16880   case $host_os in
16881     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16882     *)                         need_version=no  ;;
16883   esac
16884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16885   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16886   shlibpath_var=LD_LIBRARY_PATH
16887   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16888     case $host_os in
16889       openbsd2.[89] | openbsd2.[89].*)
16890         shlibpath_overrides_runpath=no
16891         ;;
16892       *)
16893         shlibpath_overrides_runpath=yes
16894         ;;
16895       esac
16896   else
16897     shlibpath_overrides_runpath=yes
16898   fi
16899   ;;
16900
16901 os2*)
16902   libname_spec='$name'
16903   shrext_cmds=".dll"
16904   need_lib_prefix=no
16905   library_names_spec='$libname${shared_ext} $libname.a'
16906   dynamic_linker='OS/2 ld.exe'
16907   shlibpath_var=LIBPATH
16908   ;;
16909
16910 osf3* | osf4* | osf5*)
16911   version_type=osf
16912   need_lib_prefix=no
16913   need_version=no
16914   soname_spec='${libname}${release}${shared_ext}$major'
16915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916   shlibpath_var=LD_LIBRARY_PATH
16917   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16918   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16919   ;;
16920
16921 solaris*)
16922   version_type=linux
16923   need_lib_prefix=no
16924   need_version=no
16925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16926   soname_spec='${libname}${release}${shared_ext}$major'
16927   shlibpath_var=LD_LIBRARY_PATH
16928   shlibpath_overrides_runpath=yes
16929   hardcode_into_libs=yes
16930   # ldd complains unless libraries are executable
16931   postinstall_cmds='chmod +x $lib'
16932   ;;
16933
16934 sunos4*)
16935   version_type=sunos
16936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16937   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16938   shlibpath_var=LD_LIBRARY_PATH
16939   shlibpath_overrides_runpath=yes
16940   if test "$with_gnu_ld" = yes; then
16941     need_lib_prefix=no
16942   fi
16943   need_version=yes
16944   ;;
16945
16946 sysv4 | sysv4.3*)
16947   version_type=linux
16948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16949   soname_spec='${libname}${release}${shared_ext}$major'
16950   shlibpath_var=LD_LIBRARY_PATH
16951   case $host_vendor in
16952     sni)
16953       shlibpath_overrides_runpath=no
16954       need_lib_prefix=no
16955       export_dynamic_flag_spec='${wl}-Blargedynsym'
16956       runpath_var=LD_RUN_PATH
16957       ;;
16958     siemens)
16959       need_lib_prefix=no
16960       ;;
16961     motorola)
16962       need_lib_prefix=no
16963       need_version=no
16964       shlibpath_overrides_runpath=no
16965       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16966       ;;
16967   esac
16968   ;;
16969
16970 sysv4*MP*)
16971   if test -d /usr/nec ;then
16972     version_type=linux
16973     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16974     soname_spec='$libname${shared_ext}.$major'
16975     shlibpath_var=LD_LIBRARY_PATH
16976   fi
16977   ;;
16978
16979 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16980   version_type=freebsd-elf
16981   need_lib_prefix=no
16982   need_version=no
16983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16984   soname_spec='${libname}${release}${shared_ext}$major'
16985   shlibpath_var=LD_LIBRARY_PATH
16986   hardcode_into_libs=yes
16987   if test "$with_gnu_ld" = yes; then
16988     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16989     shlibpath_overrides_runpath=no
16990   else
16991     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16992     shlibpath_overrides_runpath=yes
16993     case $host_os in
16994       sco3.2v5*)
16995         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16996         ;;
16997     esac
16998   fi
16999   sys_lib_dlsearch_path_spec='/usr/lib'
17000   ;;
17001
17002 uts4*)
17003   version_type=linux
17004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005   soname_spec='${libname}${release}${shared_ext}$major'
17006   shlibpath_var=LD_LIBRARY_PATH
17007   ;;
17008
17009 *)
17010   dynamic_linker=no
17011   ;;
17012 esac
17013 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17014 echo "${ECHO_T}$dynamic_linker" >&6; }
17015 test "$dynamic_linker" = no && can_build_shared=no
17016
17017 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17018 if test "$GCC" = yes; then
17019   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17020 fi
17021
17022 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17023 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17024 hardcode_action=
17025 if test -n "$hardcode_libdir_flag_spec" || \
17026    test -n "$runpath_var" || \
17027    test "X$hardcode_automatic" = "Xyes" ; then
17028
17029   # We can hardcode non-existant directories.
17030   if test "$hardcode_direct" != no &&
17031      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17032      # have to relink, otherwise we might link with an installed library
17033      # when we should be linking with a yet-to-be-installed one
17034      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
17035      test "$hardcode_minus_L" != no; then
17036     # Linking always hardcodes the temporary library directory.
17037     hardcode_action=relink
17038   else
17039     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17040     hardcode_action=immediate
17041   fi
17042 else
17043   # We cannot hardcode anything, or else we can only hardcode existing
17044   # directories.
17045   hardcode_action=unsupported
17046 fi
17047 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
17048 echo "${ECHO_T}$hardcode_action" >&6; }
17049
17050 if test "$hardcode_action" = relink; then
17051   # Fast installation is not supported
17052   enable_fast_install=no
17053 elif test "$shlibpath_overrides_runpath" = yes ||
17054      test "$enable_shared" = no; then
17055   # Fast installation is not necessary
17056   enable_fast_install=needless
17057 fi
17058
17059 striplib=
17060 old_striplib=
17061 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17062 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17063 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17064   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17065   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17066   { echo "$as_me:$LINENO: result: yes" >&5
17067 echo "${ECHO_T}yes" >&6; }
17068 else
17069 # FIXME - insert some real tests, host_os isn't really good enough
17070   case $host_os in
17071    darwin*)
17072        if test -n "$STRIP" ; then
17073          striplib="$STRIP -x"
17074          { echo "$as_me:$LINENO: result: yes" >&5
17075 echo "${ECHO_T}yes" >&6; }
17076        else
17077   { echo "$as_me:$LINENO: result: no" >&5
17078 echo "${ECHO_T}no" >&6; }
17079 fi
17080        ;;
17081    *)
17082   { echo "$as_me:$LINENO: result: no" >&5
17083 echo "${ECHO_T}no" >&6; }
17084     ;;
17085   esac
17086 fi
17087
17088 if test "x$enable_dlopen" != xyes; then
17089   enable_dlopen=unknown
17090   enable_dlopen_self=unknown
17091   enable_dlopen_self_static=unknown
17092 else
17093   lt_cv_dlopen=no
17094   lt_cv_dlopen_libs=
17095
17096   case $host_os in
17097   beos*)
17098     lt_cv_dlopen="load_add_on"
17099     lt_cv_dlopen_libs=
17100     lt_cv_dlopen_self=yes
17101     ;;
17102
17103   mingw* | pw32*)
17104     lt_cv_dlopen="LoadLibrary"
17105     lt_cv_dlopen_libs=
17106    ;;
17107
17108   cygwin*)
17109     lt_cv_dlopen="dlopen"
17110     lt_cv_dlopen_libs=
17111    ;;
17112
17113   darwin*)
17114   # if libdl is installed we need to link against it
17115     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17116 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17117 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17118   echo $ECHO_N "(cached) $ECHO_C" >&6
17119 else
17120   ac_check_lib_save_LIBS=$LIBS
17121 LIBS="-ldl  $LIBS"
17122 cat >conftest.$ac_ext <<_ACEOF
17123 /* confdefs.h.  */
17124 _ACEOF
17125 cat confdefs.h >>conftest.$ac_ext
17126 cat >>conftest.$ac_ext <<_ACEOF
17127 /* end confdefs.h.  */
17128
17129 /* Override any GCC internal prototype to avoid an error.
17130    Use char because int might match the return type of a GCC
17131    builtin and then its argument prototype would still apply.  */
17132 #ifdef __cplusplus
17133 extern "C"
17134 #endif
17135 char dlopen ();
17136 int
17137 main ()
17138 {
17139 return dlopen ();
17140   ;
17141   return 0;
17142 }
17143 _ACEOF
17144 rm -f conftest.$ac_objext conftest$ac_exeext
17145 if { (ac_try="$ac_link"
17146 case "(($ac_try" in
17147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148   *) ac_try_echo=$ac_try;;
17149 esac
17150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17151   (eval "$ac_link") 2>conftest.er1
17152   ac_status=$?
17153   grep -v '^ *+' conftest.er1 >conftest.err
17154   rm -f conftest.er1
17155   cat conftest.err >&5
17156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157   (exit $ac_status); } &&
17158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17159   { (case "(($ac_try" in
17160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161   *) ac_try_echo=$ac_try;;
17162 esac
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164   (eval "$ac_try") 2>&5
17165   ac_status=$?
17166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167   (exit $ac_status); }; } &&
17168          { ac_try='test -s conftest$ac_exeext'
17169   { (case "(($ac_try" in
17170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171   *) ac_try_echo=$ac_try;;
17172 esac
17173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174   (eval "$ac_try") 2>&5
17175   ac_status=$?
17176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177   (exit $ac_status); }; }; then
17178   ac_cv_lib_dl_dlopen=yes
17179 else
17180   echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17182
17183         ac_cv_lib_dl_dlopen=no
17184 fi
17185
17186 rm -f core conftest.err conftest.$ac_objext \
17187       conftest$ac_exeext conftest.$ac_ext
17188 LIBS=$ac_check_lib_save_LIBS
17189 fi
17190 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17191 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17192 if test $ac_cv_lib_dl_dlopen = yes; then
17193   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17194 else
17195
17196     lt_cv_dlopen="dyld"
17197     lt_cv_dlopen_libs=
17198     lt_cv_dlopen_self=yes
17199
17200 fi
17201
17202    ;;
17203
17204   *)
17205     { echo "$as_me:$LINENO: checking for shl_load" >&5
17206 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17207 if test "${ac_cv_func_shl_load+set}" = set; then
17208   echo $ECHO_N "(cached) $ECHO_C" >&6
17209 else
17210   cat >conftest.$ac_ext <<_ACEOF
17211 /* confdefs.h.  */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h.  */
17216 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17218 #define shl_load innocuous_shl_load
17219
17220 /* System header to define __stub macros and hopefully few prototypes,
17221     which can conflict with char shl_load (); below.
17222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17223     <limits.h> exists even on freestanding compilers.  */
17224
17225 #ifdef __STDC__
17226 # include <limits.h>
17227 #else
17228 # include <assert.h>
17229 #endif
17230
17231 #undef shl_load
17232
17233 /* Override any GCC internal prototype to avoid an error.
17234    Use char because int might match the return type of a GCC
17235    builtin and then its argument prototype would still apply.  */
17236 #ifdef __cplusplus
17237 extern "C"
17238 #endif
17239 char shl_load ();
17240 /* The GNU C library defines this for functions which it implements
17241     to always fail with ENOSYS.  Some functions are actually named
17242     something starting with __ and the normal name is an alias.  */
17243 #if defined __stub_shl_load || defined __stub___shl_load
17244 choke me
17245 #endif
17246
17247 int
17248 main ()
17249 {
17250 return shl_load ();
17251   ;
17252   return 0;
17253 }
17254 _ACEOF
17255 rm -f conftest.$ac_objext conftest$ac_exeext
17256 if { (ac_try="$ac_link"
17257 case "(($ac_try" in
17258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259   *) ac_try_echo=$ac_try;;
17260 esac
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262   (eval "$ac_link") 2>conftest.er1
17263   ac_status=$?
17264   grep -v '^ *+' conftest.er1 >conftest.err
17265   rm -f conftest.er1
17266   cat conftest.err >&5
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   (exit $ac_status); } &&
17269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17270   { (case "(($ac_try" in
17271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272   *) ac_try_echo=$ac_try;;
17273 esac
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275   (eval "$ac_try") 2>&5
17276   ac_status=$?
17277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278   (exit $ac_status); }; } &&
17279          { ac_try='test -s conftest$ac_exeext'
17280   { (case "(($ac_try" in
17281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282   *) ac_try_echo=$ac_try;;
17283 esac
17284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285   (eval "$ac_try") 2>&5
17286   ac_status=$?
17287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288   (exit $ac_status); }; }; then
17289   ac_cv_func_shl_load=yes
17290 else
17291   echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17293
17294         ac_cv_func_shl_load=no
17295 fi
17296
17297 rm -f core conftest.err conftest.$ac_objext \
17298       conftest$ac_exeext conftest.$ac_ext
17299 fi
17300 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17301 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17302 if test $ac_cv_func_shl_load = yes; then
17303   lt_cv_dlopen="shl_load"
17304 else
17305   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17306 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17307 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17308   echo $ECHO_N "(cached) $ECHO_C" >&6
17309 else
17310   ac_check_lib_save_LIBS=$LIBS
17311 LIBS="-ldld  $LIBS"
17312 cat >conftest.$ac_ext <<_ACEOF
17313 /* confdefs.h.  */
17314 _ACEOF
17315 cat confdefs.h >>conftest.$ac_ext
17316 cat >>conftest.$ac_ext <<_ACEOF
17317 /* end confdefs.h.  */
17318
17319 /* Override any GCC internal prototype to avoid an error.
17320    Use char because int might match the return type of a GCC
17321    builtin and then its argument prototype would still apply.  */
17322 #ifdef __cplusplus
17323 extern "C"
17324 #endif
17325 char shl_load ();
17326 int
17327 main ()
17328 {
17329 return shl_load ();
17330   ;
17331   return 0;
17332 }
17333 _ACEOF
17334 rm -f conftest.$ac_objext conftest$ac_exeext
17335 if { (ac_try="$ac_link"
17336 case "(($ac_try" in
17337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338   *) ac_try_echo=$ac_try;;
17339 esac
17340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341   (eval "$ac_link") 2>conftest.er1
17342   ac_status=$?
17343   grep -v '^ *+' conftest.er1 >conftest.err
17344   rm -f conftest.er1
17345   cat conftest.err >&5
17346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347   (exit $ac_status); } &&
17348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17349   { (case "(($ac_try" in
17350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351   *) ac_try_echo=$ac_try;;
17352 esac
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354   (eval "$ac_try") 2>&5
17355   ac_status=$?
17356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357   (exit $ac_status); }; } &&
17358          { ac_try='test -s conftest$ac_exeext'
17359   { (case "(($ac_try" in
17360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361   *) ac_try_echo=$ac_try;;
17362 esac
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364   (eval "$ac_try") 2>&5
17365   ac_status=$?
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); }; }; then
17368   ac_cv_lib_dld_shl_load=yes
17369 else
17370   echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.$ac_ext >&5
17372
17373         ac_cv_lib_dld_shl_load=no
17374 fi
17375
17376 rm -f core conftest.err conftest.$ac_objext \
17377       conftest$ac_exeext conftest.$ac_ext
17378 LIBS=$ac_check_lib_save_LIBS
17379 fi
17380 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17381 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17382 if test $ac_cv_lib_dld_shl_load = yes; then
17383   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17384 else
17385   { echo "$as_me:$LINENO: checking for dlopen" >&5
17386 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17387 if test "${ac_cv_func_dlopen+set}" = set; then
17388   echo $ECHO_N "(cached) $ECHO_C" >&6
17389 else
17390   cat >conftest.$ac_ext <<_ACEOF
17391 /* confdefs.h.  */
17392 _ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h.  */
17396 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17398 #define dlopen innocuous_dlopen
17399
17400 /* System header to define __stub macros and hopefully few prototypes,
17401     which can conflict with char dlopen (); below.
17402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17403     <limits.h> exists even on freestanding compilers.  */
17404
17405 #ifdef __STDC__
17406 # include <limits.h>
17407 #else
17408 # include <assert.h>
17409 #endif
17410
17411 #undef dlopen
17412
17413 /* Override any GCC internal prototype to avoid an error.
17414    Use char because int might match the return type of a GCC
17415    builtin and then its argument prototype would still apply.  */
17416 #ifdef __cplusplus
17417 extern "C"
17418 #endif
17419 char dlopen ();
17420 /* The GNU C library defines this for functions which it implements
17421     to always fail with ENOSYS.  Some functions are actually named
17422     something starting with __ and the normal name is an alias.  */
17423 #if defined __stub_dlopen || defined __stub___dlopen
17424 choke me
17425 #endif
17426
17427 int
17428 main ()
17429 {
17430 return dlopen ();
17431   ;
17432   return 0;
17433 }
17434 _ACEOF
17435 rm -f conftest.$ac_objext conftest$ac_exeext
17436 if { (ac_try="$ac_link"
17437 case "(($ac_try" in
17438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439   *) ac_try_echo=$ac_try;;
17440 esac
17441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442   (eval "$ac_link") 2>conftest.er1
17443   ac_status=$?
17444   grep -v '^ *+' conftest.er1 >conftest.err
17445   rm -f conftest.er1
17446   cat conftest.err >&5
17447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448   (exit $ac_status); } &&
17449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17450   { (case "(($ac_try" in
17451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452   *) ac_try_echo=$ac_try;;
17453 esac
17454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17455   (eval "$ac_try") 2>&5
17456   ac_status=$?
17457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458   (exit $ac_status); }; } &&
17459          { ac_try='test -s conftest$ac_exeext'
17460   { (case "(($ac_try" in
17461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462   *) ac_try_echo=$ac_try;;
17463 esac
17464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465   (eval "$ac_try") 2>&5
17466   ac_status=$?
17467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468   (exit $ac_status); }; }; then
17469   ac_cv_func_dlopen=yes
17470 else
17471   echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17473
17474         ac_cv_func_dlopen=no
17475 fi
17476
17477 rm -f core conftest.err conftest.$ac_objext \
17478       conftest$ac_exeext conftest.$ac_ext
17479 fi
17480 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17481 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17482 if test $ac_cv_func_dlopen = yes; then
17483   lt_cv_dlopen="dlopen"
17484 else
17485   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17486 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17487 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17488   echo $ECHO_N "(cached) $ECHO_C" >&6
17489 else
17490   ac_check_lib_save_LIBS=$LIBS
17491 LIBS="-ldl  $LIBS"
17492 cat >conftest.$ac_ext <<_ACEOF
17493 /* confdefs.h.  */
17494 _ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h.  */
17498
17499 /* Override any GCC internal prototype to avoid an error.
17500    Use char because int might match the return type of a GCC
17501    builtin and then its argument prototype would still apply.  */
17502 #ifdef __cplusplus
17503 extern "C"
17504 #endif
17505 char dlopen ();
17506 int
17507 main ()
17508 {
17509 return dlopen ();
17510   ;
17511   return 0;
17512 }
17513 _ACEOF
17514 rm -f conftest.$ac_objext conftest$ac_exeext
17515 if { (ac_try="$ac_link"
17516 case "(($ac_try" in
17517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518   *) ac_try_echo=$ac_try;;
17519 esac
17520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521   (eval "$ac_link") 2>conftest.er1
17522   ac_status=$?
17523   grep -v '^ *+' conftest.er1 >conftest.err
17524   rm -f conftest.er1
17525   cat conftest.err >&5
17526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527   (exit $ac_status); } &&
17528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17529   { (case "(($ac_try" in
17530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531   *) ac_try_echo=$ac_try;;
17532 esac
17533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17534   (eval "$ac_try") 2>&5
17535   ac_status=$?
17536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537   (exit $ac_status); }; } &&
17538          { ac_try='test -s conftest$ac_exeext'
17539   { (case "(($ac_try" in
17540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541   *) ac_try_echo=$ac_try;;
17542 esac
17543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17544   (eval "$ac_try") 2>&5
17545   ac_status=$?
17546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547   (exit $ac_status); }; }; then
17548   ac_cv_lib_dl_dlopen=yes
17549 else
17550   echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17552
17553         ac_cv_lib_dl_dlopen=no
17554 fi
17555
17556 rm -f core conftest.err conftest.$ac_objext \
17557       conftest$ac_exeext conftest.$ac_ext
17558 LIBS=$ac_check_lib_save_LIBS
17559 fi
17560 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17561 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17562 if test $ac_cv_lib_dl_dlopen = yes; then
17563   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17564 else
17565   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17566 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17567 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17568   echo $ECHO_N "(cached) $ECHO_C" >&6
17569 else
17570   ac_check_lib_save_LIBS=$LIBS
17571 LIBS="-lsvld  $LIBS"
17572 cat >conftest.$ac_ext <<_ACEOF
17573 /* confdefs.h.  */
17574 _ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h.  */
17578
17579 /* Override any GCC internal prototype to avoid an error.
17580    Use char because int might match the return type of a GCC
17581    builtin and then its argument prototype would still apply.  */
17582 #ifdef __cplusplus
17583 extern "C"
17584 #endif
17585 char dlopen ();
17586 int
17587 main ()
17588 {
17589 return dlopen ();
17590   ;
17591   return 0;
17592 }
17593 _ACEOF
17594 rm -f conftest.$ac_objext conftest$ac_exeext
17595 if { (ac_try="$ac_link"
17596 case "(($ac_try" in
17597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598   *) ac_try_echo=$ac_try;;
17599 esac
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601   (eval "$ac_link") 2>conftest.er1
17602   ac_status=$?
17603   grep -v '^ *+' conftest.er1 >conftest.err
17604   rm -f conftest.er1
17605   cat conftest.err >&5
17606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607   (exit $ac_status); } &&
17608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17609   { (case "(($ac_try" in
17610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611   *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614   (eval "$ac_try") 2>&5
17615   ac_status=$?
17616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617   (exit $ac_status); }; } &&
17618          { ac_try='test -s conftest$ac_exeext'
17619   { (case "(($ac_try" in
17620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621   *) ac_try_echo=$ac_try;;
17622 esac
17623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624   (eval "$ac_try") 2>&5
17625   ac_status=$?
17626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627   (exit $ac_status); }; }; then
17628   ac_cv_lib_svld_dlopen=yes
17629 else
17630   echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17632
17633         ac_cv_lib_svld_dlopen=no
17634 fi
17635
17636 rm -f core conftest.err conftest.$ac_objext \
17637       conftest$ac_exeext conftest.$ac_ext
17638 LIBS=$ac_check_lib_save_LIBS
17639 fi
17640 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17641 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17642 if test $ac_cv_lib_svld_dlopen = yes; then
17643   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17644 else
17645   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17646 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17647 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17648   echo $ECHO_N "(cached) $ECHO_C" >&6
17649 else
17650   ac_check_lib_save_LIBS=$LIBS
17651 LIBS="-ldld  $LIBS"
17652 cat >conftest.$ac_ext <<_ACEOF
17653 /* confdefs.h.  */
17654 _ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h.  */
17658
17659 /* Override any GCC internal prototype to avoid an error.
17660    Use char because int might match the return type of a GCC
17661    builtin and then its argument prototype would still apply.  */
17662 #ifdef __cplusplus
17663 extern "C"
17664 #endif
17665 char dld_link ();
17666 int
17667 main ()
17668 {
17669 return dld_link ();
17670   ;
17671   return 0;
17672 }
17673 _ACEOF
17674 rm -f conftest.$ac_objext conftest$ac_exeext
17675 if { (ac_try="$ac_link"
17676 case "(($ac_try" in
17677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678   *) ac_try_echo=$ac_try;;
17679 esac
17680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681   (eval "$ac_link") 2>conftest.er1
17682   ac_status=$?
17683   grep -v '^ *+' conftest.er1 >conftest.err
17684   rm -f conftest.er1
17685   cat conftest.err >&5
17686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687   (exit $ac_status); } &&
17688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17689   { (case "(($ac_try" in
17690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17691   *) ac_try_echo=$ac_try;;
17692 esac
17693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17694   (eval "$ac_try") 2>&5
17695   ac_status=$?
17696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697   (exit $ac_status); }; } &&
17698          { ac_try='test -s conftest$ac_exeext'
17699   { (case "(($ac_try" in
17700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701   *) ac_try_echo=$ac_try;;
17702 esac
17703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704   (eval "$ac_try") 2>&5
17705   ac_status=$?
17706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707   (exit $ac_status); }; }; then
17708   ac_cv_lib_dld_dld_link=yes
17709 else
17710   echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.$ac_ext >&5
17712
17713         ac_cv_lib_dld_dld_link=no
17714 fi
17715
17716 rm -f core conftest.err conftest.$ac_objext \
17717       conftest$ac_exeext conftest.$ac_ext
17718 LIBS=$ac_check_lib_save_LIBS
17719 fi
17720 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17721 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17722 if test $ac_cv_lib_dld_dld_link = yes; then
17723   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17724 fi
17725
17726
17727 fi
17728
17729
17730 fi
17731
17732
17733 fi
17734
17735
17736 fi
17737
17738
17739 fi
17740
17741     ;;
17742   esac
17743
17744   if test "x$lt_cv_dlopen" != xno; then
17745     enable_dlopen=yes
17746   else
17747     enable_dlopen=no
17748   fi
17749
17750   case $lt_cv_dlopen in
17751   dlopen)
17752     save_CPPFLAGS="$CPPFLAGS"
17753     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17754
17755     save_LDFLAGS="$LDFLAGS"
17756     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17757
17758     save_LIBS="$LIBS"
17759     LIBS="$lt_cv_dlopen_libs $LIBS"
17760
17761     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17762 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17763 if test "${lt_cv_dlopen_self+set}" = set; then
17764   echo $ECHO_N "(cached) $ECHO_C" >&6
17765 else
17766           if test "$cross_compiling" = yes; then :
17767   lt_cv_dlopen_self=cross
17768 else
17769   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17770   lt_status=$lt_dlunknown
17771   cat > conftest.$ac_ext <<EOF
17772 #line 17772 "configure"
17773 #include "confdefs.h"
17774
17775 #if HAVE_DLFCN_H
17776 #include <dlfcn.h>
17777 #endif
17778
17779 #include <stdio.h>
17780
17781 #ifdef RTLD_GLOBAL
17782 #  define LT_DLGLOBAL           RTLD_GLOBAL
17783 #else
17784 #  ifdef DL_GLOBAL
17785 #    define LT_DLGLOBAL         DL_GLOBAL
17786 #  else
17787 #    define LT_DLGLOBAL         0
17788 #  endif
17789 #endif
17790
17791 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17792    find out it does not work in some platform. */
17793 #ifndef LT_DLLAZY_OR_NOW
17794 #  ifdef RTLD_LAZY
17795 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17796 #  else
17797 #    ifdef DL_LAZY
17798 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17799 #    else
17800 #      ifdef RTLD_NOW
17801 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17802 #      else
17803 #        ifdef DL_NOW
17804 #          define LT_DLLAZY_OR_NOW      DL_NOW
17805 #        else
17806 #          define LT_DLLAZY_OR_NOW      0
17807 #        endif
17808 #      endif
17809 #    endif
17810 #  endif
17811 #endif
17812
17813 #ifdef __cplusplus
17814 extern "C" void exit (int);
17815 #endif
17816
17817 void fnord() { int i=42;}
17818 int main ()
17819 {
17820   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17821   int status = $lt_dlunknown;
17822
17823   if (self)
17824     {
17825       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17826       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17827       /* dlclose (self); */
17828     }
17829   else
17830     puts (dlerror ());
17831
17832     exit (status);
17833 }
17834 EOF
17835   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17836   (eval $ac_link) 2>&5
17837   ac_status=$?
17838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17840     (./conftest; exit; ) >&5 2>/dev/null
17841     lt_status=$?
17842     case x$lt_status in
17843       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17844       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17845       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17846     esac
17847   else :
17848     # compilation failed
17849     lt_cv_dlopen_self=no
17850   fi
17851 fi
17852 rm -fr conftest*
17853
17854
17855 fi
17856 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17857 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17858
17859     if test "x$lt_cv_dlopen_self" = xyes; then
17860       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17861       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17862 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17863 if test "${lt_cv_dlopen_self_static+set}" = set; then
17864   echo $ECHO_N "(cached) $ECHO_C" >&6
17865 else
17866           if test "$cross_compiling" = yes; then :
17867   lt_cv_dlopen_self_static=cross
17868 else
17869   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17870   lt_status=$lt_dlunknown
17871   cat > conftest.$ac_ext <<EOF
17872 #line 17872 "configure"
17873 #include "confdefs.h"
17874
17875 #if HAVE_DLFCN_H
17876 #include <dlfcn.h>
17877 #endif
17878
17879 #include <stdio.h>
17880
17881 #ifdef RTLD_GLOBAL
17882 #  define LT_DLGLOBAL           RTLD_GLOBAL
17883 #else
17884 #  ifdef DL_GLOBAL
17885 #    define LT_DLGLOBAL         DL_GLOBAL
17886 #  else
17887 #    define LT_DLGLOBAL         0
17888 #  endif
17889 #endif
17890
17891 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17892    find out it does not work in some platform. */
17893 #ifndef LT_DLLAZY_OR_NOW
17894 #  ifdef RTLD_LAZY
17895 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17896 #  else
17897 #    ifdef DL_LAZY
17898 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17899 #    else
17900 #      ifdef RTLD_NOW
17901 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17902 #      else
17903 #        ifdef DL_NOW
17904 #          define LT_DLLAZY_OR_NOW      DL_NOW
17905 #        else
17906 #          define LT_DLLAZY_OR_NOW      0
17907 #        endif
17908 #      endif
17909 #    endif
17910 #  endif
17911 #endif
17912
17913 #ifdef __cplusplus
17914 extern "C" void exit (int);
17915 #endif
17916
17917 void fnord() { int i=42;}
17918 int main ()
17919 {
17920   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17921   int status = $lt_dlunknown;
17922
17923   if (self)
17924     {
17925       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17926       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17927       /* dlclose (self); */
17928     }
17929   else
17930     puts (dlerror ());
17931
17932     exit (status);
17933 }
17934 EOF
17935   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17936   (eval $ac_link) 2>&5
17937   ac_status=$?
17938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17940     (./conftest; exit; ) >&5 2>/dev/null
17941     lt_status=$?
17942     case x$lt_status in
17943       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17944       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17945       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17946     esac
17947   else :
17948     # compilation failed
17949     lt_cv_dlopen_self_static=no
17950   fi
17951 fi
17952 rm -fr conftest*
17953
17954
17955 fi
17956 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17957 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17958     fi
17959
17960     CPPFLAGS="$save_CPPFLAGS"
17961     LDFLAGS="$save_LDFLAGS"
17962     LIBS="$save_LIBS"
17963     ;;
17964   esac
17965
17966   case $lt_cv_dlopen_self in
17967   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17968   *) enable_dlopen_self=unknown ;;
17969   esac
17970
17971   case $lt_cv_dlopen_self_static in
17972   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17973   *) enable_dlopen_self_static=unknown ;;
17974   esac
17975 fi
17976
17977
17978 # Report which library types will actually be built
17979 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17980 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17981 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17982 echo "${ECHO_T}$can_build_shared" >&6; }
17983
17984 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17985 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17986 test "$can_build_shared" = "no" && enable_shared=no
17987
17988 # On AIX, shared libraries and static libraries use the same namespace, and
17989 # are all built from PIC.
17990 case $host_os in
17991 aix3*)
17992   test "$enable_shared" = yes && enable_static=no
17993   if test -n "$RANLIB"; then
17994     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17995     postinstall_cmds='$RANLIB $lib'
17996   fi
17997   ;;
17998
17999 aix4* | aix5*)
18000   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18001     test "$enable_shared" = yes && enable_static=no
18002   fi
18003     ;;
18004 esac
18005 { echo "$as_me:$LINENO: result: $enable_shared" >&5
18006 echo "${ECHO_T}$enable_shared" >&6; }
18007
18008 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18009 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
18010 # Make sure either enable_shared or enable_static is yes.
18011 test "$enable_shared" = yes || enable_static=yes
18012 { echo "$as_me:$LINENO: result: $enable_static" >&5
18013 echo "${ECHO_T}$enable_static" >&6; }
18014
18015 # The else clause should only fire when bootstrapping the
18016 # libtool distribution, otherwise you forgot to ship ltmain.sh
18017 # with your package, and you will get complaints that there are
18018 # no rules to generate ltmain.sh.
18019 if test -f "$ltmain"; then
18020   # See if we are running on zsh, and set the options which allow our commands through
18021   # without removal of \ escapes.
18022   if test -n "${ZSH_VERSION+set}" ; then
18023     setopt NO_GLOB_SUBST
18024   fi
18025   # Now quote all the things that may contain metacharacters while being
18026   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18027   # variables and quote the copies for generation of the libtool script.
18028   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18029     SED SHELL STRIP \
18030     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18031     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18032     deplibs_check_method reload_flag reload_cmds need_locks \
18033     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18034     lt_cv_sys_global_symbol_to_c_name_address \
18035     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18036     old_postinstall_cmds old_postuninstall_cmds \
18037     compiler \
18038     CC \
18039     LD \
18040     lt_prog_compiler_wl \
18041     lt_prog_compiler_pic \
18042     lt_prog_compiler_static \
18043     lt_prog_compiler_no_builtin_flag \
18044     export_dynamic_flag_spec \
18045     thread_safe_flag_spec \
18046     whole_archive_flag_spec \
18047     enable_shared_with_static_runtimes \
18048     old_archive_cmds \
18049     old_archive_from_new_cmds \
18050     predep_objects \
18051     postdep_objects \
18052     predeps \
18053     postdeps \
18054     compiler_lib_search_path \
18055     archive_cmds \
18056     archive_expsym_cmds \
18057     postinstall_cmds \
18058     postuninstall_cmds \
18059     old_archive_from_expsyms_cmds \
18060     allow_undefined_flag \
18061     no_undefined_flag \
18062     export_symbols_cmds \
18063     hardcode_libdir_flag_spec \
18064     hardcode_libdir_flag_spec_ld \
18065     hardcode_libdir_separator \
18066     hardcode_automatic \
18067     module_cmds \
18068     module_expsym_cmds \
18069     lt_cv_prog_compiler_c_o \
18070     exclude_expsyms \
18071     include_expsyms; do
18072
18073     case $var in
18074     old_archive_cmds | \
18075     old_archive_from_new_cmds | \
18076     archive_cmds | \
18077     archive_expsym_cmds | \
18078     module_cmds | \
18079     module_expsym_cmds | \
18080     old_archive_from_expsyms_cmds | \
18081     export_symbols_cmds | \
18082     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18083     postinstall_cmds | postuninstall_cmds | \
18084     old_postinstall_cmds | old_postuninstall_cmds | \
18085     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18086       # Double-quote double-evaled strings.
18087       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18088       ;;
18089     *)
18090       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18091       ;;
18092     esac
18093   done
18094
18095   case $lt_echo in
18096   *'\$0 --fallback-echo"')
18097     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18098     ;;
18099   esac
18100
18101 cfgfile="${ofile}T"
18102   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18103   $rm -f "$cfgfile"
18104   { echo "$as_me:$LINENO: creating $ofile" >&5
18105 echo "$as_me: creating $ofile" >&6;}
18106
18107   cat <<__EOF__ >> "$cfgfile"
18108 #! $SHELL
18109
18110 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18111 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18112 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18113 #
18114 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18115 # Free Software Foundation, Inc.
18116 #
18117 # This file is part of GNU Libtool:
18118 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18119 #
18120 # This program is free software; you can redistribute it and/or modify
18121 # it under the terms of the GNU General Public License as published by
18122 # the Free Software Foundation; either version 2 of the License, or
18123 # (at your option) any later version.
18124 #
18125 # This program is distributed in the hope that it will be useful, but
18126 # WITHOUT ANY WARRANTY; without even the implied warranty of
18127 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18128 # General Public License for more details.
18129 #
18130 # You should have received a copy of the GNU General Public License
18131 # along with this program; if not, write to the Free Software
18132 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18133 #
18134 # As a special exception to the GNU General Public License, if you
18135 # distribute this file as part of a program that contains a
18136 # configuration script generated by Autoconf, you may include it under
18137 # the same distribution terms that you use for the rest of that program.
18138
18139 # A sed program that does not truncate output.
18140 SED=$lt_SED
18141
18142 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18143 Xsed="$SED -e 1s/^X//"
18144
18145 # The HP-UX ksh and POSIX shell print the target directory to stdout
18146 # if CDPATH is set.
18147 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18148
18149 # The names of the tagged configurations supported by this script.
18150 available_tags=
18151
18152 # ### BEGIN LIBTOOL CONFIG
18153
18154 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18155
18156 # Shell to use when invoking shell scripts.
18157 SHELL=$lt_SHELL
18158
18159 # Whether or not to build shared libraries.
18160 build_libtool_libs=$enable_shared
18161
18162 # Whether or not to build static libraries.
18163 build_old_libs=$enable_static
18164
18165 # Whether or not to add -lc for building shared libraries.
18166 build_libtool_need_lc=$archive_cmds_need_lc
18167
18168 # Whether or not to disallow shared libs when runtime libs are static
18169 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18170
18171 # Whether or not to optimize for fast installation.
18172 fast_install=$enable_fast_install
18173
18174 # The host system.
18175 host_alias=$host_alias
18176 host=$host
18177 host_os=$host_os
18178
18179 # The build system.
18180 build_alias=$build_alias
18181 build=$build
18182 build_os=$build_os
18183
18184 # An echo program that does not interpret backslashes.
18185 echo=$lt_echo
18186
18187 # The archiver.
18188 AR=$lt_AR
18189 AR_FLAGS=$lt_AR_FLAGS
18190
18191 # A C compiler.
18192 LTCC=$lt_LTCC
18193
18194 # LTCC compiler flags.
18195 LTCFLAGS=$lt_LTCFLAGS
18196
18197 # A language-specific compiler.
18198 CC=$lt_compiler
18199
18200 # Is the compiler the GNU C compiler?
18201 with_gcc=$GCC
18202
18203 # An ERE matcher.
18204 EGREP=$lt_EGREP
18205
18206 # The linker used to build libraries.
18207 LD=$lt_LD
18208
18209 # Whether we need hard or soft links.
18210 LN_S=$lt_LN_S
18211
18212 # A BSD-compatible nm program.
18213 NM=$lt_NM
18214
18215 # A symbol stripping program
18216 STRIP=$lt_STRIP
18217
18218 # Used to examine libraries when file_magic_cmd begins "file"
18219 MAGIC_CMD=$MAGIC_CMD
18220
18221 # Used on cygwin: DLL creation program.
18222 DLLTOOL="$DLLTOOL"
18223
18224 # Used on cygwin: object dumper.
18225 OBJDUMP="$OBJDUMP"
18226
18227 # Used on cygwin: assembler.
18228 AS="$AS"
18229
18230 # The name of the directory that contains temporary libtool files.
18231 objdir=$objdir
18232
18233 # How to create reloadable object files.
18234 reload_flag=$lt_reload_flag
18235 reload_cmds=$lt_reload_cmds
18236
18237 # How to pass a linker flag through the compiler.
18238 wl=$lt_lt_prog_compiler_wl
18239
18240 # Object file suffix (normally "o").
18241 objext="$ac_objext"
18242
18243 # Old archive suffix (normally "a").
18244 libext="$libext"
18245
18246 # Shared library suffix (normally ".so").
18247 shrext_cmds='$shrext_cmds'
18248
18249 # Executable file suffix (normally "").
18250 exeext="$exeext"
18251
18252 # Additional compiler flags for building library objects.
18253 pic_flag=$lt_lt_prog_compiler_pic
18254 pic_mode=$pic_mode
18255
18256 # What is the maximum length of a command?
18257 max_cmd_len=$lt_cv_sys_max_cmd_len
18258
18259 # Does compiler simultaneously support -c and -o options?
18260 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18261
18262 # Must we lock files when doing compilation?
18263 need_locks=$lt_need_locks
18264
18265 # Do we need the lib prefix for modules?
18266 need_lib_prefix=$need_lib_prefix
18267
18268 # Do we need a version for libraries?
18269 need_version=$need_version
18270
18271 # Whether dlopen is supported.
18272 dlopen_support=$enable_dlopen
18273
18274 # Whether dlopen of programs is supported.
18275 dlopen_self=$enable_dlopen_self
18276
18277 # Whether dlopen of statically linked programs is supported.
18278 dlopen_self_static=$enable_dlopen_self_static
18279
18280 # Compiler flag to prevent dynamic linking.
18281 link_static_flag=$lt_lt_prog_compiler_static
18282
18283 # Compiler flag to turn off builtin functions.
18284 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18285
18286 # Compiler flag to allow reflexive dlopens.
18287 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18288
18289 # Compiler flag to generate shared objects directly from archives.
18290 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18291
18292 # Compiler flag to generate thread-safe objects.
18293 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18294
18295 # Library versioning type.
18296 version_type=$version_type
18297
18298 # Format of library name prefix.
18299 libname_spec=$lt_libname_spec
18300
18301 # List of archive names.  First name is the real one, the rest are links.
18302 # The last name is the one that the linker finds with -lNAME.
18303 library_names_spec=$lt_library_names_spec
18304
18305 # The coded name of the library, if different from the real name.
18306 soname_spec=$lt_soname_spec
18307
18308 # Commands used to build and install an old-style archive.
18309 RANLIB=$lt_RANLIB
18310 old_archive_cmds=$lt_old_archive_cmds
18311 old_postinstall_cmds=$lt_old_postinstall_cmds
18312 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18313
18314 # Create an old-style archive from a shared archive.
18315 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18316
18317 # Create a temporary old-style archive to link instead of a shared archive.
18318 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18319
18320 # Commands used to build and install a shared archive.
18321 archive_cmds=$lt_archive_cmds
18322 archive_expsym_cmds=$lt_archive_expsym_cmds
18323 postinstall_cmds=$lt_postinstall_cmds
18324 postuninstall_cmds=$lt_postuninstall_cmds
18325
18326 # Commands used to build a loadable module (assumed same as above if empty)
18327 module_cmds=$lt_module_cmds
18328 module_expsym_cmds=$lt_module_expsym_cmds
18329
18330 # Commands to strip libraries.
18331 old_striplib=$lt_old_striplib
18332 striplib=$lt_striplib
18333
18334 # Dependencies to place before the objects being linked to create a
18335 # shared library.
18336 predep_objects=$lt_predep_objects
18337
18338 # Dependencies to place after the objects being linked to create a
18339 # shared library.
18340 postdep_objects=$lt_postdep_objects
18341
18342 # Dependencies to place before the objects being linked to create a
18343 # shared library.
18344 predeps=$lt_predeps
18345
18346 # Dependencies to place after the objects being linked to create a
18347 # shared library.
18348 postdeps=$lt_postdeps
18349
18350 # The library search path used internally by the compiler when linking
18351 # a shared library.
18352 compiler_lib_search_path=$lt_compiler_lib_search_path
18353
18354 # Method to check whether dependent libraries are shared objects.
18355 deplibs_check_method=$lt_deplibs_check_method
18356
18357 # Command to use when deplibs_check_method == file_magic.
18358 file_magic_cmd=$lt_file_magic_cmd
18359
18360 # Flag that allows shared libraries with undefined symbols to be built.
18361 allow_undefined_flag=$lt_allow_undefined_flag
18362
18363 # Flag that forces no undefined symbols.
18364 no_undefined_flag=$lt_no_undefined_flag
18365
18366 # Commands used to finish a libtool library installation in a directory.
18367 finish_cmds=$lt_finish_cmds
18368
18369 # Same as above, but a single script fragment to be evaled but not shown.
18370 finish_eval=$lt_finish_eval
18371
18372 # Take the output of nm and produce a listing of raw symbols and C names.
18373 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18374
18375 # Transform the output of nm in a proper C declaration
18376 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18377
18378 # Transform the output of nm in a C name address pair
18379 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18380
18381 # This is the shared library runtime path variable.
18382 runpath_var=$runpath_var
18383
18384 # This is the shared library path variable.
18385 shlibpath_var=$shlibpath_var
18386
18387 # Is shlibpath searched before the hard-coded library search path?
18388 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18389
18390 # How to hardcode a shared library path into an executable.
18391 hardcode_action=$hardcode_action
18392
18393 # Whether we should hardcode library paths into libraries.
18394 hardcode_into_libs=$hardcode_into_libs
18395
18396 # Flag to hardcode \$libdir into a binary during linking.
18397 # This must work even if \$libdir does not exist.
18398 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18399
18400 # If ld is used when linking, flag to hardcode \$libdir into
18401 # a binary during linking. This must work even if \$libdir does
18402 # not exist.
18403 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18404
18405 # Whether we need a single -rpath flag with a separated argument.
18406 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18407
18408 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18409 # resulting binary.
18410 hardcode_direct=$hardcode_direct
18411
18412 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18413 # resulting binary.
18414 hardcode_minus_L=$hardcode_minus_L
18415
18416 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18417 # the resulting binary.
18418 hardcode_shlibpath_var=$hardcode_shlibpath_var
18419
18420 # Set to yes if building a shared library automatically hardcodes DIR into the library
18421 # and all subsequent libraries and executables linked against it.
18422 hardcode_automatic=$hardcode_automatic
18423
18424 # Variables whose values should be saved in libtool wrapper scripts and
18425 # restored at relink time.
18426 variables_saved_for_relink="$variables_saved_for_relink"
18427
18428 # Whether libtool must link a program against all its dependency libraries.
18429 link_all_deplibs=$link_all_deplibs
18430
18431 # Compile-time system search path for libraries
18432 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18433
18434 # Run-time system search path for libraries
18435 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18436
18437 # Fix the shell variable \$srcfile for the compiler.
18438 fix_srcfile_path="$fix_srcfile_path"
18439
18440 # Set to yes if exported symbols are required.
18441 always_export_symbols=$always_export_symbols
18442
18443 # The commands to list exported symbols.
18444 export_symbols_cmds=$lt_export_symbols_cmds
18445
18446 # The commands to extract the exported symbol list from a shared archive.
18447 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18448
18449 # Symbols that should not be listed in the preloaded symbols.
18450 exclude_expsyms=$lt_exclude_expsyms
18451
18452 # Symbols that must always be exported.
18453 include_expsyms=$lt_include_expsyms
18454
18455 # ### END LIBTOOL CONFIG
18456
18457 __EOF__
18458
18459
18460   case $host_os in
18461   aix3*)
18462     cat <<\EOF >> "$cfgfile"
18463
18464 # AIX sometimes has problems with the GCC collect2 program.  For some
18465 # reason, if we set the COLLECT_NAMES environment variable, the problems
18466 # vanish in a puff of smoke.
18467 if test "X${COLLECT_NAMES+set}" != Xset; then
18468   COLLECT_NAMES=
18469   export COLLECT_NAMES
18470 fi
18471 EOF
18472     ;;
18473   esac
18474
18475   # We use sed instead of cat because bash on DJGPP gets confused if
18476   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18477   # text mode, it properly converts lines to CR/LF.  This bash problem
18478   # is reportedly fixed, but why not run on old versions too?
18479   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18480
18481   mv -f "$cfgfile" "$ofile" || \
18482     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18483   chmod +x "$ofile"
18484
18485 else
18486   # If there is no Makefile yet, we rely on a make rule to execute
18487   # `config.status --recheck' to rerun these tests and create the
18488   # libtool script then.
18489   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18490   if test -f "$ltmain_in"; then
18491     test -f Makefile && make "$ltmain"
18492   fi
18493 fi
18494
18495
18496 ac_ext=c
18497 ac_cpp='$CPP $CPPFLAGS'
18498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18501
18502 CC="$lt_save_CC"
18503
18504
18505 # Check whether --with-tags was given.
18506 if test "${with_tags+set}" = set; then
18507   withval=$with_tags; tagnames="$withval"
18508 fi
18509
18510
18511 if test -f "$ltmain" && test -n "$tagnames"; then
18512   if test ! -f "${ofile}"; then
18513     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18514 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18515   fi
18516
18517   if test -z "$LTCC"; then
18518     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18519     if test -z "$LTCC"; then
18520       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18521 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18522     else
18523       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18524 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18525     fi
18526   fi
18527   if test -z "$LTCFLAGS"; then
18528     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18529   fi
18530
18531   # Extract list of available tagged configurations in $ofile.
18532   # Note that this assumes the entire list is on one line.
18533   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18534
18535   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18536   for tagname in $tagnames; do
18537     IFS="$lt_save_ifs"
18538     # Check whether tagname contains only valid characters
18539     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18540     "") ;;
18541     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18542 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18543    { (exit 1); exit 1; }; }
18544         ;;
18545     esac
18546
18547     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18548     then
18549       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18550 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18551    { (exit 1); exit 1; }; }
18552     fi
18553
18554     # Update the list of available tags.
18555     if test -n "$tagname"; then
18556       echo appending configuration tag \"$tagname\" to $ofile
18557
18558       case $tagname in
18559       CXX)
18560         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18561             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18562             (test "X$CXX" != "Xg++"))) ; then
18563           ac_ext=cpp
18564 ac_cpp='$CXXCPP $CPPFLAGS'
18565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18568
18569
18570
18571
18572 archive_cmds_need_lc_CXX=no
18573 allow_undefined_flag_CXX=
18574 always_export_symbols_CXX=no
18575 archive_expsym_cmds_CXX=
18576 export_dynamic_flag_spec_CXX=
18577 hardcode_direct_CXX=no
18578 hardcode_libdir_flag_spec_CXX=
18579 hardcode_libdir_flag_spec_ld_CXX=
18580 hardcode_libdir_separator_CXX=
18581 hardcode_minus_L_CXX=no
18582 hardcode_shlibpath_var_CXX=unsupported
18583 hardcode_automatic_CXX=no
18584 module_cmds_CXX=
18585 module_expsym_cmds_CXX=
18586 link_all_deplibs_CXX=unknown
18587 old_archive_cmds_CXX=$old_archive_cmds
18588 no_undefined_flag_CXX=
18589 whole_archive_flag_spec_CXX=
18590 enable_shared_with_static_runtimes_CXX=no
18591
18592 # Dependencies to place before and after the object being linked:
18593 predep_objects_CXX=
18594 postdep_objects_CXX=
18595 predeps_CXX=
18596 postdeps_CXX=
18597 compiler_lib_search_path_CXX=
18598
18599 # Source file extension for C++ test sources.
18600 ac_ext=cpp
18601
18602 # Object file extension for compiled C++ test sources.
18603 objext=o
18604 objext_CXX=$objext
18605
18606 # Code to be used in simple compile tests
18607 lt_simple_compile_test_code="int some_variable = 0;\n"
18608
18609 # Code to be used in simple link tests
18610 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18611
18612 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18613
18614 # If no C compiler was specified, use CC.
18615 LTCC=${LTCC-"$CC"}
18616
18617 # If no C compiler flags were specified, use CFLAGS.
18618 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18619
18620 # Allow CC to be a program name with arguments.
18621 compiler=$CC
18622
18623
18624 # save warnings/boilerplate of simple test code
18625 ac_outfile=conftest.$ac_objext
18626 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18627 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18628 _lt_compiler_boilerplate=`cat conftest.err`
18629 $rm conftest*
18630
18631 ac_outfile=conftest.$ac_objext
18632 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18633 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18634 _lt_linker_boilerplate=`cat conftest.err`
18635 $rm conftest*
18636
18637
18638 # Allow CC to be a program name with arguments.
18639 lt_save_CC=$CC
18640 lt_save_LD=$LD
18641 lt_save_GCC=$GCC
18642 GCC=$GXX
18643 lt_save_with_gnu_ld=$with_gnu_ld
18644 lt_save_path_LD=$lt_cv_path_LD
18645 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18646   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18647 else
18648   $as_unset lt_cv_prog_gnu_ld
18649 fi
18650 if test -n "${lt_cv_path_LDCXX+set}"; then
18651   lt_cv_path_LD=$lt_cv_path_LDCXX
18652 else
18653   $as_unset lt_cv_path_LD
18654 fi
18655 test -z "${LDCXX+set}" || LD=$LDCXX
18656 CC=${CXX-"c++"}
18657 compiler=$CC
18658 compiler_CXX=$CC
18659 for cc_temp in $compiler""; do
18660   case $cc_temp in
18661     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18662     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18663     \-*) ;;
18664     *) break;;
18665   esac
18666 done
18667 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18668
18669
18670 # We don't want -fno-exception wen compiling C++ code, so set the
18671 # no_builtin_flag separately
18672 if test "$GXX" = yes; then
18673   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18674 else
18675   lt_prog_compiler_no_builtin_flag_CXX=
18676 fi
18677
18678 if test "$GXX" = yes; then
18679   # Set up default GNU C++ configuration
18680
18681
18682 # Check whether --with-gnu-ld was given.
18683 if test "${with_gnu_ld+set}" = set; then
18684   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18685 else
18686   with_gnu_ld=no
18687 fi
18688
18689 ac_prog=ld
18690 if test "$GCC" = yes; then
18691   # Check if gcc -print-prog-name=ld gives a path.
18692   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18693 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18694   case $host in
18695   *-*-mingw*)
18696     # gcc leaves a trailing carriage return which upsets mingw
18697     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18698   *)
18699     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18700   esac
18701   case $ac_prog in
18702     # Accept absolute paths.
18703     [\\/]* | ?:[\\/]*)
18704       re_direlt='/[^/][^/]*/\.\./'
18705       # Canonicalize the pathname of ld
18706       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18707       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18708         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18709       done
18710       test -z "$LD" && LD="$ac_prog"
18711       ;;
18712   "")
18713     # If it fails, then pretend we aren't using GCC.
18714     ac_prog=ld
18715     ;;
18716   *)
18717     # If it is relative, then search for the first ld in PATH.
18718     with_gnu_ld=unknown
18719     ;;
18720   esac
18721 elif test "$with_gnu_ld" = yes; then
18722   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18723 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18724 else
18725   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18726 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18727 fi
18728 if test "${lt_cv_path_LD+set}" = set; then
18729   echo $ECHO_N "(cached) $ECHO_C" >&6
18730 else
18731   if test -z "$LD"; then
18732   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18733   for ac_dir in $PATH; do
18734     IFS="$lt_save_ifs"
18735     test -z "$ac_dir" && ac_dir=.
18736     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18737       lt_cv_path_LD="$ac_dir/$ac_prog"
18738       # Check to see if the program is GNU ld.  I'd rather use --version,
18739       # but apparently some variants of GNU ld only accept -v.
18740       # Break only if it was the GNU/non-GNU ld that we prefer.
18741       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18742       *GNU* | *'with BFD'*)
18743         test "$with_gnu_ld" != no && break
18744         ;;
18745       *)
18746         test "$with_gnu_ld" != yes && break
18747         ;;
18748       esac
18749     fi
18750   done
18751   IFS="$lt_save_ifs"
18752 else
18753   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18754 fi
18755 fi
18756
18757 LD="$lt_cv_path_LD"
18758 if test -n "$LD"; then
18759   { echo "$as_me:$LINENO: result: $LD" >&5
18760 echo "${ECHO_T}$LD" >&6; }
18761 else
18762   { echo "$as_me:$LINENO: result: no" >&5
18763 echo "${ECHO_T}no" >&6; }
18764 fi
18765 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18766 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18767    { (exit 1); exit 1; }; }
18768 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18769 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18770 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18771   echo $ECHO_N "(cached) $ECHO_C" >&6
18772 else
18773   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18774 case `$LD -v 2>&1 </dev/null` in
18775 *GNU* | *'with BFD'*)
18776   lt_cv_prog_gnu_ld=yes
18777   ;;
18778 *)
18779   lt_cv_prog_gnu_ld=no
18780   ;;
18781 esac
18782 fi
18783 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18784 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18785 with_gnu_ld=$lt_cv_prog_gnu_ld
18786
18787
18788
18789   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18790   # archiving commands below assume that GNU ld is being used.
18791   if test "$with_gnu_ld" = yes; then
18792     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18793     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'
18794
18795     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18796     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18797
18798     # If archive_cmds runs LD, not CC, wlarc should be empty
18799     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18800     #     investigate it a little bit more. (MM)
18801     wlarc='${wl}'
18802
18803     # ancient GNU ld didn't support --whole-archive et. al.
18804     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18805         grep 'no-whole-archive' > /dev/null; then
18806       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18807     else
18808       whole_archive_flag_spec_CXX=
18809     fi
18810   else
18811     with_gnu_ld=no
18812     wlarc=
18813
18814     # A generic and very simple default shared library creation
18815     # command for GNU C++ for the case where it uses the native
18816     # linker, instead of GNU ld.  If possible, this setting should
18817     # overridden to take advantage of the native linker features on
18818     # the platform it is being used on.
18819     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18820   fi
18821
18822   # Commands to make compiler produce verbose output that lists
18823   # what "hidden" libraries, object files and flags are used when
18824   # linking a shared library.
18825   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18826
18827 else
18828   GXX=no
18829   with_gnu_ld=no
18830   wlarc=
18831 fi
18832
18833 # PORTME: fill in a description of your system's C++ link characteristics
18834 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18835 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18836 ld_shlibs_CXX=yes
18837 case $host_os in
18838   aix3*)
18839     # FIXME: insert proper C++ library support
18840     ld_shlibs_CXX=no
18841     ;;
18842   aix4* | aix5*)
18843     if test "$host_cpu" = ia64; then
18844       # On IA64, the linker does run time linking by default, so we don't
18845       # have to do anything special.
18846       aix_use_runtimelinking=no
18847       exp_sym_flag='-Bexport'
18848       no_entry_flag=""
18849     else
18850       aix_use_runtimelinking=no
18851
18852       # Test if we are trying to use run time linking or normal
18853       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18854       # need to do runtime linking.
18855       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18856         for ld_flag in $LDFLAGS; do
18857           case $ld_flag in
18858           *-brtl*)
18859             aix_use_runtimelinking=yes
18860             break
18861             ;;
18862           esac
18863         done
18864         ;;
18865       esac
18866
18867       exp_sym_flag='-bexport'
18868       no_entry_flag='-bnoentry'
18869     fi
18870
18871     # When large executables or shared objects are built, AIX ld can
18872     # have problems creating the table of contents.  If linking a library
18873     # or program results in "error TOC overflow" add -mminimal-toc to
18874     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18875     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18876
18877     archive_cmds_CXX=''
18878     hardcode_direct_CXX=yes
18879     hardcode_libdir_separator_CXX=':'
18880     link_all_deplibs_CXX=yes
18881
18882     if test "$GXX" = yes; then
18883       case $host_os in aix4.[012]|aix4.[012].*)
18884       # We only want to do this on AIX 4.2 and lower, the check
18885       # below for broken collect2 doesn't work under 4.3+
18886         collect2name=`${CC} -print-prog-name=collect2`
18887         if test -f "$collect2name" && \
18888            strings "$collect2name" | grep resolve_lib_name >/dev/null
18889         then
18890           # We have reworked collect2
18891           hardcode_direct_CXX=yes
18892         else
18893           # We have old collect2
18894           hardcode_direct_CXX=unsupported
18895           # It fails to find uninstalled libraries when the uninstalled
18896           # path is not listed in the libpath.  Setting hardcode_minus_L
18897           # to unsupported forces relinking
18898           hardcode_minus_L_CXX=yes
18899           hardcode_libdir_flag_spec_CXX='-L$libdir'
18900           hardcode_libdir_separator_CXX=
18901         fi
18902         ;;
18903       esac
18904       shared_flag='-shared'
18905       if test "$aix_use_runtimelinking" = yes; then
18906         shared_flag="$shared_flag "'${wl}-G'
18907       fi
18908     else
18909       # not using gcc
18910       if test "$host_cpu" = ia64; then
18911         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18912         # chokes on -Wl,-G. The following line is correct:
18913         shared_flag='-G'
18914       else
18915         if test "$aix_use_runtimelinking" = yes; then
18916           shared_flag='${wl}-G'
18917         else
18918           shared_flag='${wl}-bM:SRE'
18919         fi
18920       fi
18921     fi
18922
18923     # It seems that -bexpall does not export symbols beginning with
18924     # underscore (_), so it is better to generate a list of symbols to export.
18925     always_export_symbols_CXX=yes
18926     if test "$aix_use_runtimelinking" = yes; then
18927       # Warning - without using the other runtime loading flags (-brtl),
18928       # -berok will link without error, but may produce a broken library.
18929       allow_undefined_flag_CXX='-berok'
18930       # Determine the default libpath from the value encoded in an empty executable.
18931       cat >conftest.$ac_ext <<_ACEOF
18932 /* confdefs.h.  */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h.  */
18937
18938 int
18939 main ()
18940 {
18941
18942   ;
18943   return 0;
18944 }
18945 _ACEOF
18946 rm -f conftest.$ac_objext conftest$ac_exeext
18947 if { (ac_try="$ac_link"
18948 case "(($ac_try" in
18949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950   *) ac_try_echo=$ac_try;;
18951 esac
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953   (eval "$ac_link") 2>conftest.er1
18954   ac_status=$?
18955   grep -v '^ *+' conftest.er1 >conftest.err
18956   rm -f conftest.er1
18957   cat conftest.err >&5
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); } &&
18960          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18961   { (case "(($ac_try" in
18962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963   *) ac_try_echo=$ac_try;;
18964 esac
18965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18966   (eval "$ac_try") 2>&5
18967   ac_status=$?
18968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969   (exit $ac_status); }; } &&
18970          { ac_try='test -s conftest$ac_exeext'
18971   { (case "(($ac_try" in
18972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973   *) ac_try_echo=$ac_try;;
18974 esac
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976   (eval "$ac_try") 2>&5
18977   ac_status=$?
18978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979   (exit $ac_status); }; }; then
18980
18981 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18982 }'`
18983 # Check for a 64-bit object if we didn't find anything.
18984 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; }
18985 }'`; fi
18986 else
18987   echo "$as_me: failed program was:" >&5
18988 sed 's/^/| /' conftest.$ac_ext >&5
18989
18990
18991 fi
18992
18993 rm -f core conftest.err conftest.$ac_objext \
18994       conftest$ac_exeext conftest.$ac_ext
18995 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18996
18997       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18998
18999       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"
19000      else
19001       if test "$host_cpu" = ia64; then
19002         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19003         allow_undefined_flag_CXX="-z nodefs"
19004         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"
19005       else
19006         # Determine the default libpath from the value encoded in an empty executable.
19007         cat >conftest.$ac_ext <<_ACEOF
19008 /* confdefs.h.  */
19009 _ACEOF
19010 cat confdefs.h >>conftest.$ac_ext
19011 cat >>conftest.$ac_ext <<_ACEOF
19012 /* end confdefs.h.  */
19013
19014 int
19015 main ()
19016 {
19017
19018   ;
19019   return 0;
19020 }
19021 _ACEOF
19022 rm -f conftest.$ac_objext conftest$ac_exeext
19023 if { (ac_try="$ac_link"
19024 case "(($ac_try" in
19025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026   *) ac_try_echo=$ac_try;;
19027 esac
19028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029   (eval "$ac_link") 2>conftest.er1
19030   ac_status=$?
19031   grep -v '^ *+' conftest.er1 >conftest.err
19032   rm -f conftest.er1
19033   cat conftest.err >&5
19034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035   (exit $ac_status); } &&
19036          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19037   { (case "(($ac_try" in
19038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039   *) ac_try_echo=$ac_try;;
19040 esac
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042   (eval "$ac_try") 2>&5
19043   ac_status=$?
19044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045   (exit $ac_status); }; } &&
19046          { ac_try='test -s conftest$ac_exeext'
19047   { (case "(($ac_try" in
19048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049   *) ac_try_echo=$ac_try;;
19050 esac
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052   (eval "$ac_try") 2>&5
19053   ac_status=$?
19054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055   (exit $ac_status); }; }; then
19056
19057 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19058 }'`
19059 # Check for a 64-bit object if we didn't find anything.
19060 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; }
19061 }'`; fi
19062 else
19063   echo "$as_me: failed program was:" >&5
19064 sed 's/^/| /' conftest.$ac_ext >&5
19065
19066
19067 fi
19068
19069 rm -f core conftest.err conftest.$ac_objext \
19070       conftest$ac_exeext conftest.$ac_ext
19071 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19072
19073         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19074         # Warning - without using the other run time loading flags,
19075         # -berok will link without error, but may produce a broken library.
19076         no_undefined_flag_CXX=' ${wl}-bernotok'
19077         allow_undefined_flag_CXX=' ${wl}-berok'
19078         # Exported symbols can be pulled into shared objects from archives
19079         whole_archive_flag_spec_CXX='$convenience'
19080         archive_cmds_need_lc_CXX=yes
19081         # This is similar to how AIX traditionally builds its shared libraries.
19082         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'
19083       fi
19084     fi
19085     ;;
19086
19087   beos*)
19088     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19089       allow_undefined_flag_CXX=unsupported
19090       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19091       # support --undefined.  This deserves some investigation.  FIXME
19092       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19093     else
19094       ld_shlibs_CXX=no
19095     fi
19096     ;;
19097
19098   chorus*)
19099     case $cc_basename in
19100       *)
19101         # FIXME: insert proper C++ library support
19102         ld_shlibs_CXX=no
19103         ;;
19104     esac
19105     ;;
19106
19107   cygwin* | mingw* | pw32*)
19108     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19109     # as there is no search path for DLLs.
19110     hardcode_libdir_flag_spec_CXX='-L$libdir'
19111     allow_undefined_flag_CXX=unsupported
19112     always_export_symbols_CXX=no
19113     enable_shared_with_static_runtimes_CXX=yes
19114
19115     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19116       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'
19117       # If the export-symbols file already is a .def file (1st line
19118       # is EXPORTS), use it as is; otherwise, prepend...
19119       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19120         cp $export_symbols $output_objdir/$soname.def;
19121       else
19122         echo EXPORTS > $output_objdir/$soname.def;
19123         cat $export_symbols >> $output_objdir/$soname.def;
19124       fi~
19125       $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'
19126     else
19127       ld_shlibs_CXX=no
19128     fi
19129   ;;
19130       darwin* | rhapsody*)
19131         case $host_os in
19132         rhapsody* | darwin1.[012])
19133          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19134          ;;
19135        *) # Darwin 1.3 on
19136          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19137            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19138          else
19139            case ${MACOSX_DEPLOYMENT_TARGET} in
19140              10.[012])
19141                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19142                ;;
19143              10.*)
19144                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19145                ;;
19146            esac
19147          fi
19148          ;;
19149         esac
19150       archive_cmds_need_lc_CXX=no
19151       hardcode_direct_CXX=no
19152       hardcode_automatic_CXX=yes
19153       hardcode_shlibpath_var_CXX=unsupported
19154       whole_archive_flag_spec_CXX=''
19155       link_all_deplibs_CXX=yes
19156
19157     if test "$GXX" = yes ; then
19158       lt_int_apple_cc_single_mod=no
19159       output_verbose_link_cmd='echo'
19160       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19161        lt_int_apple_cc_single_mod=yes
19162       fi
19163       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19164        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19165       else
19166           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'
19167         fi
19168         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19169         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19170           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19171             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}'
19172           else
19173             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}'
19174           fi
19175             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}'
19176       else
19177       case $cc_basename in
19178         xlc*)
19179          output_verbose_link_cmd='echo'
19180           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'
19181           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19182           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19183           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}'
19184           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}'
19185           ;;
19186        *)
19187          ld_shlibs_CXX=no
19188           ;;
19189       esac
19190       fi
19191         ;;
19192
19193   dgux*)
19194     case $cc_basename in
19195       ec++*)
19196         # FIXME: insert proper C++ library support
19197         ld_shlibs_CXX=no
19198         ;;
19199       ghcx*)
19200         # Green Hills C++ Compiler
19201         # FIXME: insert proper C++ library support
19202         ld_shlibs_CXX=no
19203         ;;
19204       *)
19205         # FIXME: insert proper C++ library support
19206         ld_shlibs_CXX=no
19207         ;;
19208     esac
19209     ;;
19210   freebsd[12]*)
19211     # C++ shared libraries reported to be fairly broken before switch to ELF
19212     ld_shlibs_CXX=no
19213     ;;
19214   freebsd-elf*)
19215     archive_cmds_need_lc_CXX=no
19216     ;;
19217   freebsd* | kfreebsd*-gnu | dragonfly*)
19218     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19219     # conventions
19220     ld_shlibs_CXX=yes
19221     ;;
19222   gnu*)
19223     ;;
19224   hpux9*)
19225     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19226     hardcode_libdir_separator_CXX=:
19227     export_dynamic_flag_spec_CXX='${wl}-E'
19228     hardcode_direct_CXX=yes
19229     hardcode_minus_L_CXX=yes # Not in the search PATH,
19230                                 # but as the default
19231                                 # location of the library.
19232
19233     case $cc_basename in
19234     CC*)
19235       # FIXME: insert proper C++ library support
19236       ld_shlibs_CXX=no
19237       ;;
19238     aCC*)
19239       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'
19240       # Commands to make compiler produce verbose output that lists
19241       # what "hidden" libraries, object files and flags are used when
19242       # linking a shared library.
19243       #
19244       # There doesn't appear to be a way to prevent this compiler from
19245       # explicitly linking system object files so we need to strip them
19246       # from the output so that they don't get included in the library
19247       # dependencies.
19248       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'
19249       ;;
19250     *)
19251       if test "$GXX" = yes; then
19252         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'
19253       else
19254         # FIXME: insert proper C++ library support
19255         ld_shlibs_CXX=no
19256       fi
19257       ;;
19258     esac
19259     ;;
19260   hpux10*|hpux11*)
19261     if test $with_gnu_ld = no; then
19262       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19263       hardcode_libdir_separator_CXX=:
19264
19265       case $host_cpu in
19266       hppa*64*|ia64*)
19267         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19268         ;;
19269       *)
19270         export_dynamic_flag_spec_CXX='${wl}-E'
19271         ;;
19272       esac
19273     fi
19274     case $host_cpu in
19275     hppa*64*|ia64*)
19276       hardcode_direct_CXX=no
19277       hardcode_shlibpath_var_CXX=no
19278       ;;
19279     *)
19280       hardcode_direct_CXX=yes
19281       hardcode_minus_L_CXX=yes # Not in the search PATH,
19282                                               # but as the default
19283                                               # location of the library.
19284       ;;
19285     esac
19286
19287     case $cc_basename in
19288       CC*)
19289         # FIXME: insert proper C++ library support
19290         ld_shlibs_CXX=no
19291         ;;
19292       aCC*)
19293         case $host_cpu in
19294         hppa*64*)
19295           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19296           ;;
19297         ia64*)
19298           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19299           ;;
19300         *)
19301           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19302           ;;
19303         esac
19304         # Commands to make compiler produce verbose output that lists
19305         # what "hidden" libraries, object files and flags are used when
19306         # linking a shared library.
19307         #
19308         # There doesn't appear to be a way to prevent this compiler from
19309         # explicitly linking system object files so we need to strip them
19310         # from the output so that they don't get included in the library
19311         # dependencies.
19312         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'
19313         ;;
19314       *)
19315         if test "$GXX" = yes; then
19316           if test $with_gnu_ld = no; then
19317             case $host_cpu in
19318             hppa*64*)
19319               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19320               ;;
19321             ia64*)
19322               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19323               ;;
19324             *)
19325               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'
19326               ;;
19327             esac
19328           fi
19329         else
19330           # FIXME: insert proper C++ library support
19331           ld_shlibs_CXX=no
19332         fi
19333         ;;
19334     esac
19335     ;;
19336   interix3*)
19337     hardcode_direct_CXX=no
19338     hardcode_shlibpath_var_CXX=no
19339     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19340     export_dynamic_flag_spec_CXX='${wl}-E'
19341     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19342     # Instead, shared libraries are loaded at an image base (0x10000000 by
19343     # default) and relocated if they conflict, which is a slow very memory
19344     # consuming and fragmenting process.  To avoid this, we pick a random,
19345     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19346     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19347     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'
19348     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'
19349     ;;
19350   irix5* | irix6*)
19351     case $cc_basename in
19352       CC*)
19353         # SGI C++
19354         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'
19355
19356         # Archives containing C++ object files must be created using
19357         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19358         # necessary to make sure instantiated templates are included
19359         # in the archive.
19360         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19361         ;;
19362       *)
19363         if test "$GXX" = yes; then
19364           if test "$with_gnu_ld" = no; then
19365             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'
19366           else
19367             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'
19368           fi
19369         fi
19370         link_all_deplibs_CXX=yes
19371         ;;
19372     esac
19373     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19374     hardcode_libdir_separator_CXX=:
19375     ;;
19376   linux*)
19377     case $cc_basename in
19378       KCC*)
19379         # Kuck and Associates, Inc. (KAI) C++ Compiler
19380
19381         # KCC will only create a shared library if the output file
19382         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19383         # to its proper name (with version) after linking.
19384         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'
19385         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'
19386         # Commands to make compiler produce verbose output that lists
19387         # what "hidden" libraries, object files and flags are used when
19388         # linking a shared library.
19389         #
19390         # There doesn't appear to be a way to prevent this compiler from
19391         # explicitly linking system object files so we need to strip them
19392         # from the output so that they don't get included in the library
19393         # dependencies.
19394         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'
19395
19396         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19397         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19398
19399         # Archives containing C++ object files must be created using
19400         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19401         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19402         ;;
19403       icpc*)
19404         # Intel C++
19405         with_gnu_ld=yes
19406         # version 8.0 and above of icpc choke on multiply defined symbols
19407         # if we add $predep_objects and $postdep_objects, however 7.1 and
19408         # earlier do not add the objects themselves.
19409         case `$CC -V 2>&1` in
19410         *"Version 7."*)
19411           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19412           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'
19413           ;;
19414         *)  # Version 8.0 or newer
19415           tmp_idyn=
19416           case $host_cpu in
19417             ia64*) tmp_idyn=' -i_dynamic';;
19418           esac
19419           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19420           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'
19421           ;;
19422         esac
19423         archive_cmds_need_lc_CXX=no
19424         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19425         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19426         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19427         ;;
19428       pgCC*)
19429         # Portland Group C++ compiler
19430         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19431         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'
19432
19433         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19434         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19435         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'
19436         ;;
19437       cxx*)
19438         # Compaq C++
19439         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19440         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'
19441
19442         runpath_var=LD_RUN_PATH
19443         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19444         hardcode_libdir_separator_CXX=:
19445
19446         # Commands to make compiler produce verbose output that lists
19447         # what "hidden" libraries, object files and flags are used when
19448         # linking a shared library.
19449         #
19450         # There doesn't appear to be a way to prevent this compiler from
19451         # explicitly linking system object files so we need to strip them
19452         # from the output so that they don't get included in the library
19453         # dependencies.
19454         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'
19455         ;;
19456     esac
19457     ;;
19458   lynxos*)
19459     # FIXME: insert proper C++ library support
19460     ld_shlibs_CXX=no
19461     ;;
19462   m88k*)
19463     # FIXME: insert proper C++ library support
19464     ld_shlibs_CXX=no
19465     ;;
19466   mvs*)
19467     case $cc_basename in
19468       cxx*)
19469         # FIXME: insert proper C++ library support
19470         ld_shlibs_CXX=no
19471         ;;
19472       *)
19473         # FIXME: insert proper C++ library support
19474         ld_shlibs_CXX=no
19475         ;;
19476     esac
19477     ;;
19478   netbsd*)
19479     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19480       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19481       wlarc=
19482       hardcode_libdir_flag_spec_CXX='-R$libdir'
19483       hardcode_direct_CXX=yes
19484       hardcode_shlibpath_var_CXX=no
19485     fi
19486     # Workaround some broken pre-1.5 toolchains
19487     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19488     ;;
19489   openbsd2*)
19490     # C++ shared libraries are fairly broken
19491     ld_shlibs_CXX=no
19492     ;;
19493   openbsd*)
19494     hardcode_direct_CXX=yes
19495     hardcode_shlibpath_var_CXX=no
19496     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19497     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19498     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19499       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19500       export_dynamic_flag_spec_CXX='${wl}-E'
19501       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19502     fi
19503     output_verbose_link_cmd='echo'
19504     ;;
19505   osf3*)
19506     case $cc_basename in
19507       KCC*)
19508         # Kuck and Associates, Inc. (KAI) C++ Compiler
19509
19510         # KCC will only create a shared library if the output file
19511         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19512         # to its proper name (with version) after linking.
19513         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'
19514
19515         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19516         hardcode_libdir_separator_CXX=:
19517
19518         # Archives containing C++ object files must be created using
19519         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19520         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19521
19522         ;;
19523       RCC*)
19524         # Rational C++ 2.4.1
19525         # FIXME: insert proper C++ library support
19526         ld_shlibs_CXX=no
19527         ;;
19528       cxx*)
19529         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19530         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'
19531
19532         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19533         hardcode_libdir_separator_CXX=:
19534
19535         # Commands to make compiler produce verbose output that lists
19536         # what "hidden" libraries, object files and flags are used when
19537         # linking a shared library.
19538         #
19539         # There doesn't appear to be a way to prevent this compiler from
19540         # explicitly linking system object files so we need to strip them
19541         # from the output so that they don't get included in the library
19542         # dependencies.
19543         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'
19544         ;;
19545       *)
19546         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19547           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19548           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'
19549
19550           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19551           hardcode_libdir_separator_CXX=:
19552
19553           # Commands to make compiler produce verbose output that lists
19554           # what "hidden" libraries, object files and flags are used when
19555           # linking a shared library.
19556           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19557
19558         else
19559           # FIXME: insert proper C++ library support
19560           ld_shlibs_CXX=no
19561         fi
19562         ;;
19563     esac
19564     ;;
19565   osf4* | osf5*)
19566     case $cc_basename in
19567       KCC*)
19568         # Kuck and Associates, Inc. (KAI) C++ Compiler
19569
19570         # KCC will only create a shared library if the output file
19571         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19572         # to its proper name (with version) after linking.
19573         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'
19574
19575         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19576         hardcode_libdir_separator_CXX=:
19577
19578         # Archives containing C++ object files must be created using
19579         # the KAI C++ compiler.
19580         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19581         ;;
19582       RCC*)
19583         # Rational C++ 2.4.1
19584         # FIXME: insert proper C++ library support
19585         ld_shlibs_CXX=no
19586         ;;
19587       cxx*)
19588         allow_undefined_flag_CXX=' -expect_unresolved \*'
19589         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'
19590         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19591           echo "-hidden">> $lib.exp~
19592           $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~
19593           $rm $lib.exp'
19594
19595         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19596         hardcode_libdir_separator_CXX=:
19597
19598         # Commands to make compiler produce verbose output that lists
19599         # what "hidden" libraries, object files and flags are used when
19600         # linking a shared library.
19601         #
19602         # There doesn't appear to be a way to prevent this compiler from
19603         # explicitly linking system object files so we need to strip them
19604         # from the output so that they don't get included in the library
19605         # dependencies.
19606         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'
19607         ;;
19608       *)
19609         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19610           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19611          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'
19612
19613           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19614           hardcode_libdir_separator_CXX=:
19615
19616           # Commands to make compiler produce verbose output that lists
19617           # what "hidden" libraries, object files and flags are used when
19618           # linking a shared library.
19619           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19620
19621         else
19622           # FIXME: insert proper C++ library support
19623           ld_shlibs_CXX=no
19624         fi
19625         ;;
19626     esac
19627     ;;
19628   psos*)
19629     # FIXME: insert proper C++ library support
19630     ld_shlibs_CXX=no
19631     ;;
19632   sunos4*)
19633     case $cc_basename in
19634       CC*)
19635         # Sun C++ 4.x
19636         # FIXME: insert proper C++ library support
19637         ld_shlibs_CXX=no
19638         ;;
19639       lcc*)
19640         # Lucid
19641         # FIXME: insert proper C++ library support
19642         ld_shlibs_CXX=no
19643         ;;
19644       *)
19645         # FIXME: insert proper C++ library support
19646         ld_shlibs_CXX=no
19647         ;;
19648     esac
19649     ;;
19650   solaris*)
19651     case $cc_basename in
19652       CC*)
19653         # Sun C++ 4.2, 5.x and Centerline C++
19654         archive_cmds_need_lc_CXX=yes
19655         no_undefined_flag_CXX=' -zdefs'
19656         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19657         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19658         $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'
19659
19660         hardcode_libdir_flag_spec_CXX='-R$libdir'
19661         hardcode_shlibpath_var_CXX=no
19662         case $host_os in
19663           solaris2.[0-5] | solaris2.[0-5].*) ;;
19664           *)
19665             # The C++ compiler is used as linker so we must use $wl
19666             # flag to pass the commands to the underlying system
19667             # linker. We must also pass each convience library through
19668             # to the system linker between allextract/defaultextract.
19669             # The C++ compiler will combine linker options so we
19670             # cannot just pass the convience library names through
19671             # without $wl.
19672             # Supported since Solaris 2.6 (maybe 2.5.1?)
19673             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'
19674             ;;
19675         esac
19676         link_all_deplibs_CXX=yes
19677
19678         output_verbose_link_cmd='echo'
19679
19680         # Archives containing C++ object files must be created using
19681         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19682         # necessary to make sure instantiated templates are included
19683         # in the archive.
19684         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19685         ;;
19686       gcx*)
19687         # Green Hills C++ Compiler
19688         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19689
19690         # The C++ compiler must be used to create the archive.
19691         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19692         ;;
19693       *)
19694         # GNU C++ compiler with Solaris linker
19695         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19696           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19697           if $CC --version | grep -v '^2\.7' > /dev/null; then
19698             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19699             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19700                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19701
19702             # Commands to make compiler produce verbose output that lists
19703             # what "hidden" libraries, object files and flags are used when
19704             # linking a shared library.
19705             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19706           else
19707             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19708             # platform.
19709             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19710             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19711                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19712
19713             # Commands to make compiler produce verbose output that lists
19714             # what "hidden" libraries, object files and flags are used when
19715             # linking a shared library.
19716             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19717           fi
19718
19719           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19720         fi
19721         ;;
19722     esac
19723     ;;
19724   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19725     no_undefined_flag_CXX='${wl}-z,text'
19726     archive_cmds_need_lc_CXX=no
19727     hardcode_shlibpath_var_CXX=no
19728     runpath_var='LD_RUN_PATH'
19729
19730     case $cc_basename in
19731       CC*)
19732         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19733         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19734         ;;
19735       *)
19736         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19737         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19738         ;;
19739     esac
19740     ;;
19741   sysv5* | sco3.2v5* | sco5v6*)
19742     # Note: We can NOT use -z defs as we might desire, because we do not
19743     # link with -lc, and that would cause any symbols used from libc to
19744     # always be unresolved, which means just about no library would
19745     # ever link correctly.  If we're not using GNU ld we use -z text
19746     # though, which does catch some bad symbols but isn't as heavy-handed
19747     # as -z defs.
19748     # For security reasons, it is highly recommended that you always
19749     # use absolute paths for naming shared libraries, and exclude the
19750     # DT_RUNPATH tag from executables and libraries.  But doing so
19751     # requires that you compile everything twice, which is a pain.
19752     # So that behaviour is only enabled if SCOABSPATH is set to a
19753     # non-empty value in the environment.  Most likely only useful for
19754     # creating official distributions of packages.
19755     # This is a hack until libtool officially supports absolute path
19756     # names for shared libraries.
19757     no_undefined_flag_CXX='${wl}-z,text'
19758     allow_undefined_flag_CXX='${wl}-z,nodefs'
19759     archive_cmds_need_lc_CXX=no
19760     hardcode_shlibpath_var_CXX=no
19761     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19762     hardcode_libdir_separator_CXX=':'
19763     link_all_deplibs_CXX=yes
19764     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19765     runpath_var='LD_RUN_PATH'
19766
19767     case $cc_basename in
19768       CC*)
19769         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19770         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19771         ;;
19772       *)
19773         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19774         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19775         ;;
19776     esac
19777     ;;
19778   tandem*)
19779     case $cc_basename in
19780       NCC*)
19781         # NonStop-UX NCC 3.20
19782         # FIXME: insert proper C++ library support
19783         ld_shlibs_CXX=no
19784         ;;
19785       *)
19786         # FIXME: insert proper C++ library support
19787         ld_shlibs_CXX=no
19788         ;;
19789     esac
19790     ;;
19791   vxworks*)
19792     # FIXME: insert proper C++ library support
19793     ld_shlibs_CXX=no
19794     ;;
19795   *)
19796     # FIXME: insert proper C++ library support
19797     ld_shlibs_CXX=no
19798     ;;
19799 esac
19800 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19801 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19802 test "$ld_shlibs_CXX" = no && can_build_shared=no
19803
19804 GCC_CXX="$GXX"
19805 LD_CXX="$LD"
19806
19807
19808 cat > conftest.$ac_ext <<EOF
19809 class Foo
19810 {
19811 public:
19812   Foo (void) { a = 0; }
19813 private:
19814   int a;
19815 };
19816 EOF
19817
19818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19819   (eval $ac_compile) 2>&5
19820   ac_status=$?
19821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822   (exit $ac_status); }; then
19823   # Parse the compiler output and extract the necessary
19824   # objects, libraries and library flags.
19825
19826   # Sentinel used to keep track of whether or not we are before
19827   # the conftest object file.
19828   pre_test_object_deps_done=no
19829
19830   # The `*' in the case matches for architectures that use `case' in
19831   # $output_verbose_cmd can trigger glob expansion during the loop
19832   # eval without this substitution.
19833   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19834
19835   for p in `eval $output_verbose_link_cmd`; do
19836     case $p in
19837
19838     -L* | -R* | -l*)
19839        # Some compilers place space between "-{L,R}" and the path.
19840        # Remove the space.
19841        if test $p = "-L" \
19842           || test $p = "-R"; then
19843          prev=$p
19844          continue
19845        else
19846          prev=
19847        fi
19848
19849        if test "$pre_test_object_deps_done" = no; then
19850          case $p in
19851          -L* | -R*)
19852            # Internal compiler library paths should come after those
19853            # provided the user.  The postdeps already come after the
19854            # user supplied libs so there is no need to process them.
19855            if test -z "$compiler_lib_search_path_CXX"; then
19856              compiler_lib_search_path_CXX="${prev}${p}"
19857            else
19858              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19859            fi
19860            ;;
19861          # The "-l" case would never come before the object being
19862          # linked, so don't bother handling this case.
19863          esac
19864        else
19865          if test -z "$postdeps_CXX"; then
19866            postdeps_CXX="${prev}${p}"
19867          else
19868            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19869          fi
19870        fi
19871        ;;
19872
19873     *.$objext)
19874        # This assumes that the test object file only shows up
19875        # once in the compiler output.
19876        if test "$p" = "conftest.$objext"; then
19877          pre_test_object_deps_done=yes
19878          continue
19879        fi
19880
19881        if test "$pre_test_object_deps_done" = no; then
19882          if test -z "$predep_objects_CXX"; then
19883            predep_objects_CXX="$p"
19884          else
19885            predep_objects_CXX="$predep_objects_CXX $p"
19886          fi
19887        else
19888          if test -z "$postdep_objects_CXX"; then
19889            postdep_objects_CXX="$p"
19890          else
19891            postdep_objects_CXX="$postdep_objects_CXX $p"
19892          fi
19893        fi
19894        ;;
19895
19896     *) ;; # Ignore the rest.
19897
19898     esac
19899   done
19900
19901   # Clean up.
19902   rm -f a.out a.exe
19903 else
19904   echo "libtool.m4: error: problem compiling CXX test program"
19905 fi
19906
19907 $rm -f confest.$objext
19908
19909 # PORTME: override above test on systems where it is broken
19910 case $host_os in
19911 interix3*)
19912   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19913   # hack all around it, let's just trust "g++" to DTRT.
19914   predep_objects_CXX=
19915   postdep_objects_CXX=
19916   postdeps_CXX=
19917   ;;
19918
19919 solaris*)
19920   case $cc_basename in
19921   CC*)
19922     # Adding this requires a known-good setup of shared libraries for
19923     # Sun compiler versions before 5.6, else PIC objects from an old
19924     # archive will be linked into the output, leading to subtle bugs.
19925     postdeps_CXX='-lCstd -lCrun'
19926     ;;
19927   esac
19928   ;;
19929 esac
19930
19931
19932 case " $postdeps_CXX " in
19933 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19934 esac
19935
19936 lt_prog_compiler_wl_CXX=
19937 lt_prog_compiler_pic_CXX=
19938 lt_prog_compiler_static_CXX=
19939
19940 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19941 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19942
19943   # C++ specific cases for pic, static, wl, etc.
19944   if test "$GXX" = yes; then
19945     lt_prog_compiler_wl_CXX='-Wl,'
19946     lt_prog_compiler_static_CXX='-static'
19947
19948     case $host_os in
19949     aix*)
19950       # All AIX code is PIC.
19951       if test "$host_cpu" = ia64; then
19952         # AIX 5 now supports IA64 processor
19953         lt_prog_compiler_static_CXX='-Bstatic'
19954       fi
19955       ;;
19956     amigaos*)
19957       # FIXME: we need at least 68020 code to build shared libraries, but
19958       # adding the `-m68020' flag to GCC prevents building anything better,
19959       # like `-m68040'.
19960       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19961       ;;
19962     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19963       # PIC is the default for these OSes.
19964       ;;
19965     mingw* | os2* | pw32*)
19966       # This hack is so that the source file can tell whether it is being
19967       # built for inclusion in a dll (and should export symbols for example).
19968       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19969       ;;
19970     darwin* | rhapsody*)
19971       # PIC is the default on this platform
19972       # Common symbols not allowed in MH_DYLIB files
19973       lt_prog_compiler_pic_CXX='-fno-common'
19974       ;;
19975     *djgpp*)
19976       # DJGPP does not support shared libraries at all
19977       lt_prog_compiler_pic_CXX=
19978       ;;
19979     interix3*)
19980       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19981       # Instead, we relocate shared libraries at runtime.
19982       ;;
19983     sysv4*MP*)
19984       if test -d /usr/nec; then
19985         lt_prog_compiler_pic_CXX=-Kconform_pic
19986       fi
19987       ;;
19988     hpux*)
19989       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19990       # not for PA HP-UX.
19991       case $host_cpu in
19992       hppa*64*|ia64*)
19993         ;;
19994       *)
19995         lt_prog_compiler_pic_CXX='-fPIC'
19996         ;;
19997       esac
19998       ;;
19999     *)
20000       lt_prog_compiler_pic_CXX='-fPIC'
20001       ;;
20002     esac
20003   else
20004     case $host_os in
20005       aix4* | aix5*)
20006         # All AIX code is PIC.
20007         if test "$host_cpu" = ia64; then
20008           # AIX 5 now supports IA64 processor
20009           lt_prog_compiler_static_CXX='-Bstatic'
20010         else
20011           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20012         fi
20013         ;;
20014       chorus*)
20015         case $cc_basename in
20016         cxch68*)
20017           # Green Hills C++ Compiler
20018           # _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"
20019           ;;
20020         esac
20021         ;;
20022        darwin*)
20023          # PIC is the default on this platform
20024          # Common symbols not allowed in MH_DYLIB files
20025          case $cc_basename in
20026            xlc*)
20027            lt_prog_compiler_pic_CXX='-qnocommon'
20028            lt_prog_compiler_wl_CXX='-Wl,'
20029            ;;
20030          esac
20031        ;;
20032       dgux*)
20033         case $cc_basename in
20034           ec++*)
20035             lt_prog_compiler_pic_CXX='-KPIC'
20036             ;;
20037           ghcx*)
20038             # Green Hills C++ Compiler
20039             lt_prog_compiler_pic_CXX='-pic'
20040             ;;
20041           *)
20042             ;;
20043         esac
20044         ;;
20045       freebsd* | kfreebsd*-gnu | dragonfly*)
20046         # FreeBSD uses GNU C++
20047         ;;
20048       hpux9* | hpux10* | hpux11*)
20049         case $cc_basename in
20050           CC*)
20051             lt_prog_compiler_wl_CXX='-Wl,'
20052             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20053             if test "$host_cpu" != ia64; then
20054               lt_prog_compiler_pic_CXX='+Z'
20055             fi
20056             ;;
20057           aCC*)
20058             lt_prog_compiler_wl_CXX='-Wl,'
20059             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20060             case $host_cpu in
20061             hppa*64*|ia64*)
20062               # +Z the default
20063               ;;
20064             *)
20065               lt_prog_compiler_pic_CXX='+Z'
20066               ;;
20067             esac
20068             ;;
20069           *)
20070             ;;
20071         esac
20072         ;;
20073       interix*)
20074         # This is c89, which is MS Visual C++ (no shared libs)
20075         # Anyone wants to do a port?
20076         ;;
20077       irix5* | irix6* | nonstopux*)
20078         case $cc_basename in
20079           CC*)
20080             lt_prog_compiler_wl_CXX='-Wl,'
20081             lt_prog_compiler_static_CXX='-non_shared'
20082             # CC pic flag -KPIC is the default.
20083             ;;
20084           *)
20085             ;;
20086         esac
20087         ;;
20088       linux*)
20089         case $cc_basename in
20090           KCC*)
20091             # KAI C++ Compiler
20092             lt_prog_compiler_wl_CXX='--backend -Wl,'
20093             lt_prog_compiler_pic_CXX='-fPIC'
20094             ;;
20095           icpc* | ecpc*)
20096             # Intel C++
20097             lt_prog_compiler_wl_CXX='-Wl,'
20098             lt_prog_compiler_pic_CXX='-KPIC'
20099             lt_prog_compiler_static_CXX='-static'
20100             ;;
20101           pgCC*)
20102             # Portland Group C++ compiler.
20103             lt_prog_compiler_wl_CXX='-Wl,'
20104             lt_prog_compiler_pic_CXX='-fpic'
20105             lt_prog_compiler_static_CXX='-Bstatic'
20106             ;;
20107           cxx*)
20108             # Compaq C++
20109             # Make sure the PIC flag is empty.  It appears that all Alpha
20110             # Linux and Compaq Tru64 Unix objects are PIC.
20111             lt_prog_compiler_pic_CXX=
20112             lt_prog_compiler_static_CXX='-non_shared'
20113             ;;
20114           *)
20115             ;;
20116         esac
20117         ;;
20118       lynxos*)
20119         ;;
20120       m88k*)
20121         ;;
20122       mvs*)
20123         case $cc_basename in
20124           cxx*)
20125             lt_prog_compiler_pic_CXX='-W c,exportall'
20126             ;;
20127           *)
20128             ;;
20129         esac
20130         ;;
20131       netbsd*)
20132         ;;
20133       osf3* | osf4* | osf5*)
20134         case $cc_basename in
20135           KCC*)
20136             lt_prog_compiler_wl_CXX='--backend -Wl,'
20137             ;;
20138           RCC*)
20139             # Rational C++ 2.4.1
20140             lt_prog_compiler_pic_CXX='-pic'
20141             ;;
20142           cxx*)
20143             # Digital/Compaq C++
20144             lt_prog_compiler_wl_CXX='-Wl,'
20145             # Make sure the PIC flag is empty.  It appears that all Alpha
20146             # Linux and Compaq Tru64 Unix objects are PIC.
20147             lt_prog_compiler_pic_CXX=
20148             lt_prog_compiler_static_CXX='-non_shared'
20149             ;;
20150           *)
20151             ;;
20152         esac
20153         ;;
20154       psos*)
20155         ;;
20156       solaris*)
20157         case $cc_basename in
20158           CC*)
20159             # Sun C++ 4.2, 5.x and Centerline C++
20160             lt_prog_compiler_pic_CXX='-KPIC'
20161             lt_prog_compiler_static_CXX='-Bstatic'
20162             lt_prog_compiler_wl_CXX='-Qoption ld '
20163             ;;
20164           gcx*)
20165             # Green Hills C++ Compiler
20166             lt_prog_compiler_pic_CXX='-PIC'
20167             ;;
20168           *)
20169             ;;
20170         esac
20171         ;;
20172       sunos4*)
20173         case $cc_basename in
20174           CC*)
20175             # Sun C++ 4.x
20176             lt_prog_compiler_pic_CXX='-pic'
20177             lt_prog_compiler_static_CXX='-Bstatic'
20178             ;;
20179           lcc*)
20180             # Lucid
20181             lt_prog_compiler_pic_CXX='-pic'
20182             ;;
20183           *)
20184             ;;
20185         esac
20186         ;;
20187       tandem*)
20188         case $cc_basename in
20189           NCC*)
20190             # NonStop-UX NCC 3.20
20191             lt_prog_compiler_pic_CXX='-KPIC'
20192             ;;
20193           *)
20194             ;;
20195         esac
20196         ;;
20197       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20198         case $cc_basename in
20199           CC*)
20200             lt_prog_compiler_wl_CXX='-Wl,'
20201             lt_prog_compiler_pic_CXX='-KPIC'
20202             lt_prog_compiler_static_CXX='-Bstatic'
20203             ;;
20204         esac
20205         ;;
20206       vxworks*)
20207         ;;
20208       *)
20209         lt_prog_compiler_can_build_shared_CXX=no
20210         ;;
20211     esac
20212   fi
20213
20214 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20215 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20216
20217 #
20218 # Check to make sure the PIC flag actually works.
20219 #
20220 if test -n "$lt_prog_compiler_pic_CXX"; then
20221
20222 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20223 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20224 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20225   echo $ECHO_N "(cached) $ECHO_C" >&6
20226 else
20227   lt_prog_compiler_pic_works_CXX=no
20228   ac_outfile=conftest.$ac_objext
20229    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20230    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20231    # Insert the option either (1) after the last *FLAGS variable, or
20232    # (2) before a word containing "conftest.", or (3) at the end.
20233    # Note that $ac_compile itself does not contain backslashes and begins
20234    # with a dollar sign (not a hyphen), so the echo should work correctly.
20235    # The option is referenced via a variable to avoid confusing sed.
20236    lt_compile=`echo "$ac_compile" | $SED \
20237    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20238    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20239    -e 's:$: $lt_compiler_flag:'`
20240    (eval echo "\"\$as_me:20240: $lt_compile\"" >&5)
20241    (eval "$lt_compile" 2>conftest.err)
20242    ac_status=$?
20243    cat conftest.err >&5
20244    echo "$as_me:20244: \$? = $ac_status" >&5
20245    if (exit $ac_status) && test -s "$ac_outfile"; then
20246      # The compiler can only warn and ignore the option if not recognized
20247      # So say no if there are warnings other than the usual output.
20248      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20249      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20250      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20251        lt_prog_compiler_pic_works_CXX=yes
20252      fi
20253    fi
20254    $rm conftest*
20255
20256 fi
20257 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20258 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20259
20260 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20261     case $lt_prog_compiler_pic_CXX in
20262      "" | " "*) ;;
20263      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20264      esac
20265 else
20266     lt_prog_compiler_pic_CXX=
20267      lt_prog_compiler_can_build_shared_CXX=no
20268 fi
20269
20270 fi
20271 case $host_os in
20272   # For platforms which do not support PIC, -DPIC is meaningless:
20273   *djgpp*)
20274     lt_prog_compiler_pic_CXX=
20275     ;;
20276   *)
20277     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20278     ;;
20279 esac
20280
20281 #
20282 # Check to make sure the static flag actually works.
20283 #
20284 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20285 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20286 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20287 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20288   echo $ECHO_N "(cached) $ECHO_C" >&6
20289 else
20290   lt_prog_compiler_static_works_CXX=no
20291    save_LDFLAGS="$LDFLAGS"
20292    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20293    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20294    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20295      # The linker can only warn and ignore the option if not recognized
20296      # So say no if there are warnings
20297      if test -s conftest.err; then
20298        # Append any errors to the config.log.
20299        cat conftest.err 1>&5
20300        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20301        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20302        if diff conftest.exp conftest.er2 >/dev/null; then
20303          lt_prog_compiler_static_works_CXX=yes
20304        fi
20305      else
20306        lt_prog_compiler_static_works_CXX=yes
20307      fi
20308    fi
20309    $rm conftest*
20310    LDFLAGS="$save_LDFLAGS"
20311
20312 fi
20313 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20314 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20315
20316 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20317     :
20318 else
20319     lt_prog_compiler_static_CXX=
20320 fi
20321
20322
20323 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20324 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20325 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20326   echo $ECHO_N "(cached) $ECHO_C" >&6
20327 else
20328   lt_cv_prog_compiler_c_o_CXX=no
20329    $rm -r conftest 2>/dev/null
20330    mkdir conftest
20331    cd conftest
20332    mkdir out
20333    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20334
20335    lt_compiler_flag="-o out/conftest2.$ac_objext"
20336    # Insert the option either (1) after the last *FLAGS variable, or
20337    # (2) before a word containing "conftest.", or (3) at the end.
20338    # Note that $ac_compile itself does not contain backslashes and begins
20339    # with a dollar sign (not a hyphen), so the echo should work correctly.
20340    lt_compile=`echo "$ac_compile" | $SED \
20341    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20342    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20343    -e 's:$: $lt_compiler_flag:'`
20344    (eval echo "\"\$as_me:20344: $lt_compile\"" >&5)
20345    (eval "$lt_compile" 2>out/conftest.err)
20346    ac_status=$?
20347    cat out/conftest.err >&5
20348    echo "$as_me:20348: \$? = $ac_status" >&5
20349    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20350    then
20351      # The compiler can only warn and ignore the option if not recognized
20352      # So say no if there are warnings
20353      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20354      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20355      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20356        lt_cv_prog_compiler_c_o_CXX=yes
20357      fi
20358    fi
20359    chmod u+w . 2>&5
20360    $rm conftest*
20361    # SGI C++ compiler will create directory out/ii_files/ for
20362    # template instantiation
20363    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20364    $rm out/* && rmdir out
20365    cd ..
20366    rmdir conftest
20367    $rm conftest*
20368
20369 fi
20370 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20371 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20372
20373
20374 hard_links="nottested"
20375 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20376   # do not overwrite the value of need_locks provided by the user
20377   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20378 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20379   hard_links=yes
20380   $rm conftest*
20381   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20382   touch conftest.a
20383   ln conftest.a conftest.b 2>&5 || hard_links=no
20384   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20385   { echo "$as_me:$LINENO: result: $hard_links" >&5
20386 echo "${ECHO_T}$hard_links" >&6; }
20387   if test "$hard_links" = no; then
20388     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20389 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20390     need_locks=warn
20391   fi
20392 else
20393   need_locks=no
20394 fi
20395
20396 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20397 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20398
20399   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20400   case $host_os in
20401   aix4* | aix5*)
20402     # If we're using GNU nm, then we don't want the "-C" option.
20403     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20404     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20405       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'
20406     else
20407       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'
20408     fi
20409     ;;
20410   pw32*)
20411     export_symbols_cmds_CXX="$ltdll_cmds"
20412   ;;
20413   cygwin* | mingw*)
20414     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'
20415   ;;
20416   *)
20417     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20418   ;;
20419   esac
20420
20421 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20422 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20423 test "$ld_shlibs_CXX" = no && can_build_shared=no
20424
20425 #
20426 # Do we need to explicitly link libc?
20427 #
20428 case "x$archive_cmds_need_lc_CXX" in
20429 x|xyes)
20430   # Assume -lc should be added
20431   archive_cmds_need_lc_CXX=yes
20432
20433   if test "$enable_shared" = yes && test "$GCC" = yes; then
20434     case $archive_cmds_CXX in
20435     *'~'*)
20436       # FIXME: we may have to deal with multi-command sequences.
20437       ;;
20438     '$CC '*)
20439       # Test whether the compiler implicitly links with -lc since on some
20440       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20441       # to ld, don't add -lc before -lgcc.
20442       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20443 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20444       $rm conftest*
20445       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20446
20447       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20448   (eval $ac_compile) 2>&5
20449   ac_status=$?
20450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451   (exit $ac_status); } 2>conftest.err; then
20452         soname=conftest
20453         lib=conftest
20454         libobjs=conftest.$ac_objext
20455         deplibs=
20456         wl=$lt_prog_compiler_wl_CXX
20457         pic_flag=$lt_prog_compiler_pic_CXX
20458         compiler_flags=-v
20459         linker_flags=-v
20460         verstring=
20461         output_objdir=.
20462         libname=conftest
20463         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20464         allow_undefined_flag_CXX=
20465         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20466   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20467   ac_status=$?
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); }
20470         then
20471           archive_cmds_need_lc_CXX=no
20472         else
20473           archive_cmds_need_lc_CXX=yes
20474         fi
20475         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20476       else
20477         cat conftest.err 1>&5
20478       fi
20479       $rm conftest*
20480       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20481 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20482       ;;
20483     esac
20484   fi
20485   ;;
20486 esac
20487
20488 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20489 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20490 library_names_spec=
20491 libname_spec='lib$name'
20492 soname_spec=
20493 shrext_cmds=".so"
20494 postinstall_cmds=
20495 postuninstall_cmds=
20496 finish_cmds=
20497 finish_eval=
20498 shlibpath_var=
20499 shlibpath_overrides_runpath=unknown
20500 version_type=none
20501 dynamic_linker="$host_os ld.so"
20502 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20503 if test "$GCC" = yes; then
20504   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20505   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20506     # if the path contains ";" then we assume it to be the separator
20507     # otherwise default to the standard path separator (i.e. ":") - it is
20508     # assumed that no part of a normal pathname contains ";" but that should
20509     # okay in the real world where ";" in dirpaths is itself problematic.
20510     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20511   else
20512     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20513   fi
20514 else
20515   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20516 fi
20517 need_lib_prefix=unknown
20518 hardcode_into_libs=no
20519
20520 # when you set need_version to no, make sure it does not cause -set_version
20521 # flags to be left without arguments
20522 need_version=unknown
20523
20524 case $host_os in
20525 aix3*)
20526   version_type=linux
20527   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20528   shlibpath_var=LIBPATH
20529
20530   # AIX 3 has no versioning support, so we append a major version to the name.
20531   soname_spec='${libname}${release}${shared_ext}$major'
20532   ;;
20533
20534 aix4* | aix5*)
20535   version_type=linux
20536   need_lib_prefix=no
20537   need_version=no
20538   hardcode_into_libs=yes
20539   if test "$host_cpu" = ia64; then
20540     # AIX 5 supports IA64
20541     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20542     shlibpath_var=LD_LIBRARY_PATH
20543   else
20544     # With GCC up to 2.95.x, collect2 would create an import file
20545     # for dependence libraries.  The import file would start with
20546     # the line `#! .'.  This would cause the generated library to
20547     # depend on `.', always an invalid library.  This was fixed in
20548     # development snapshots of GCC prior to 3.0.
20549     case $host_os in
20550       aix4 | aix4.[01] | aix4.[01].*)
20551       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20552            echo ' yes '
20553            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20554         :
20555       else
20556         can_build_shared=no
20557       fi
20558       ;;
20559     esac
20560     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20561     # soname into executable. Probably we can add versioning support to
20562     # collect2, so additional links can be useful in future.
20563     if test "$aix_use_runtimelinking" = yes; then
20564       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20565       # instead of lib<name>.a to let people know that these are not
20566       # typical AIX shared libraries.
20567       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20568     else
20569       # We preserve .a as extension for shared libraries through AIX4.2
20570       # and later when we are not doing run time linking.
20571       library_names_spec='${libname}${release}.a $libname.a'
20572       soname_spec='${libname}${release}${shared_ext}$major'
20573     fi
20574     shlibpath_var=LIBPATH
20575   fi
20576   ;;
20577
20578 amigaos*)
20579   library_names_spec='$libname.ixlibrary $libname.a'
20580   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20581   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'
20582   ;;
20583
20584 beos*)
20585   library_names_spec='${libname}${shared_ext}'
20586   dynamic_linker="$host_os ld.so"
20587   shlibpath_var=LIBRARY_PATH
20588   ;;
20589
20590 bsdi[45]*)
20591   version_type=linux
20592   need_version=no
20593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20594   soname_spec='${libname}${release}${shared_ext}$major'
20595   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20596   shlibpath_var=LD_LIBRARY_PATH
20597   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20598   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20599   # the default ld.so.conf also contains /usr/contrib/lib and
20600   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20601   # libtool to hard-code these into programs
20602   ;;
20603
20604 cygwin* | mingw* | pw32*)
20605   version_type=windows
20606   shrext_cmds=".dll"
20607   need_version=no
20608   need_lib_prefix=no
20609
20610   case $GCC,$host_os in
20611   yes,cygwin* | yes,mingw* | yes,pw32*)
20612     library_names_spec='$libname.dll.a'
20613     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20614     postinstall_cmds='base_file=`basename \${file}`~
20615       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20616       dldir=$destdir/`dirname \$dlpath`~
20617       test -d \$dldir || mkdir -p \$dldir~
20618       $install_prog $dir/$dlname \$dldir/$dlname~
20619       chmod a+x \$dldir/$dlname'
20620     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20621       dlpath=$dir/\$dldll~
20622        $rm \$dlpath'
20623     shlibpath_overrides_runpath=yes
20624
20625     case $host_os in
20626     cygwin*)
20627       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20628       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20629       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20630       ;;
20631     mingw*)
20632       # MinGW DLLs use traditional 'lib' prefix
20633       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20634       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20635       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20636         # It is most probably a Windows format PATH printed by
20637         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20638         # path with ; separators, and with drive letters. We can handle the
20639         # drive letters (cygwin fileutils understands them), so leave them,
20640         # especially as we might pass files found there to a mingw objdump,
20641         # which wouldn't understand a cygwinified path. Ahh.
20642         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20643       else
20644         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20645       fi
20646       ;;
20647     pw32*)
20648       # pw32 DLLs use 'pw' prefix rather than 'lib'
20649       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20650       ;;
20651     esac
20652     ;;
20653
20654   *)
20655     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20656     ;;
20657   esac
20658   dynamic_linker='Win32 ld.exe'
20659   # FIXME: first we should search . and the directory the executable is in
20660   shlibpath_var=PATH
20661   ;;
20662
20663 darwin* | rhapsody*)
20664   dynamic_linker="$host_os dyld"
20665   version_type=darwin
20666   need_lib_prefix=no
20667   need_version=no
20668   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20669   soname_spec='${libname}${release}${major}$shared_ext'
20670   shlibpath_overrides_runpath=yes
20671   shlibpath_var=DYLD_LIBRARY_PATH
20672   shrext_cmds='.dylib'
20673   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20674   if test "$GCC" = yes; then
20675     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"`
20676   else
20677     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20678   fi
20679   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20680   ;;
20681
20682 dgux*)
20683   version_type=linux
20684   need_lib_prefix=no
20685   need_version=no
20686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20687   soname_spec='${libname}${release}${shared_ext}$major'
20688   shlibpath_var=LD_LIBRARY_PATH
20689   ;;
20690
20691 freebsd1*)
20692   dynamic_linker=no
20693   ;;
20694
20695 kfreebsd*-gnu)
20696   version_type=linux
20697   need_lib_prefix=no
20698   need_version=no
20699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20700   soname_spec='${libname}${release}${shared_ext}$major'
20701   shlibpath_var=LD_LIBRARY_PATH
20702   shlibpath_overrides_runpath=no
20703   hardcode_into_libs=yes
20704   dynamic_linker='GNU ld.so'
20705   ;;
20706
20707 freebsd* | dragonfly*)
20708   # DragonFly does not have aout.  When/if they implement a new
20709   # versioning mechanism, adjust this.
20710   if test -x /usr/bin/objformat; then
20711     objformat=`/usr/bin/objformat`
20712   else
20713     case $host_os in
20714     freebsd[123]*) objformat=aout ;;
20715     *) objformat=elf ;;
20716     esac
20717   fi
20718   version_type=freebsd-$objformat
20719   case $version_type in
20720     freebsd-elf*)
20721       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20722       need_version=no
20723       need_lib_prefix=no
20724       ;;
20725     freebsd-*)
20726       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20727       need_version=yes
20728       ;;
20729   esac
20730   shlibpath_var=LD_LIBRARY_PATH
20731   case $host_os in
20732   freebsd2*)
20733     shlibpath_overrides_runpath=yes
20734     ;;
20735   freebsd3.[01]* | freebsdelf3.[01]*)
20736     shlibpath_overrides_runpath=yes
20737     hardcode_into_libs=yes
20738     ;;
20739   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20740   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20741     shlibpath_overrides_runpath=no
20742     hardcode_into_libs=yes
20743     ;;
20744   freebsd*) # from 4.6 on
20745     shlibpath_overrides_runpath=yes
20746     hardcode_into_libs=yes
20747     ;;
20748   esac
20749   ;;
20750
20751 gnu*)
20752   version_type=linux
20753   need_lib_prefix=no
20754   need_version=no
20755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20756   soname_spec='${libname}${release}${shared_ext}$major'
20757   shlibpath_var=LD_LIBRARY_PATH
20758   hardcode_into_libs=yes
20759   ;;
20760
20761 hpux9* | hpux10* | hpux11*)
20762   # Give a soname corresponding to the major version so that dld.sl refuses to
20763   # link against other versions.
20764   version_type=sunos
20765   need_lib_prefix=no
20766   need_version=no
20767   case $host_cpu in
20768   ia64*)
20769     shrext_cmds='.so'
20770     hardcode_into_libs=yes
20771     dynamic_linker="$host_os dld.so"
20772     shlibpath_var=LD_LIBRARY_PATH
20773     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20774     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20775     soname_spec='${libname}${release}${shared_ext}$major'
20776     if test "X$HPUX_IA64_MODE" = X32; then
20777       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20778     else
20779       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20780     fi
20781     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20782     ;;
20783    hppa*64*)
20784      shrext_cmds='.sl'
20785      hardcode_into_libs=yes
20786      dynamic_linker="$host_os dld.sl"
20787      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20788      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20789      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20790      soname_spec='${libname}${release}${shared_ext}$major'
20791      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20792      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20793      ;;
20794    *)
20795     shrext_cmds='.sl'
20796     dynamic_linker="$host_os dld.sl"
20797     shlibpath_var=SHLIB_PATH
20798     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20799     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20800     soname_spec='${libname}${release}${shared_ext}$major'
20801     ;;
20802   esac
20803   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20804   postinstall_cmds='chmod 555 $lib'
20805   ;;
20806
20807 interix3*)
20808   version_type=linux
20809   need_lib_prefix=no
20810   need_version=no
20811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20812   soname_spec='${libname}${release}${shared_ext}$major'
20813   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20814   shlibpath_var=LD_LIBRARY_PATH
20815   shlibpath_overrides_runpath=no
20816   hardcode_into_libs=yes
20817   ;;
20818
20819 irix5* | irix6* | nonstopux*)
20820   case $host_os in
20821     nonstopux*) version_type=nonstopux ;;
20822     *)
20823         if test "$lt_cv_prog_gnu_ld" = yes; then
20824                 version_type=linux
20825         else
20826                 version_type=irix
20827         fi ;;
20828   esac
20829   need_lib_prefix=no
20830   need_version=no
20831   soname_spec='${libname}${release}${shared_ext}$major'
20832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20833   case $host_os in
20834   irix5* | nonstopux*)
20835     libsuff= shlibsuff=
20836     ;;
20837   *)
20838     case $LD in # libtool.m4 will add one of these switches to LD
20839     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20840       libsuff= shlibsuff= libmagic=32-bit;;
20841     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20842       libsuff=32 shlibsuff=N32 libmagic=N32;;
20843     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20844       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20845     *) libsuff= shlibsuff= libmagic=never-match;;
20846     esac
20847     ;;
20848   esac
20849   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20850   shlibpath_overrides_runpath=no
20851   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20852   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20853   hardcode_into_libs=yes
20854   ;;
20855
20856 # No shared lib support for Linux oldld, aout, or coff.
20857 linux*oldld* | linux*aout* | linux*coff*)
20858   dynamic_linker=no
20859   ;;
20860
20861 # This must be Linux ELF.
20862 linux*)
20863   version_type=linux
20864   need_lib_prefix=no
20865   need_version=no
20866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20867   soname_spec='${libname}${release}${shared_ext}$major'
20868   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20869   shlibpath_var=LD_LIBRARY_PATH
20870   shlibpath_overrides_runpath=no
20871   # This implies no fast_install, which is unacceptable.
20872   # Some rework will be needed to allow for fast_install
20873   # before this can be enabled.
20874   hardcode_into_libs=yes
20875
20876   # Append ld.so.conf contents to the search path
20877   if test -f /etc/ld.so.conf; then
20878     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' ' '`
20879     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20880   fi
20881
20882   # We used to test for /lib/ld.so.1 and disable shared libraries on
20883   # powerpc, because MkLinux only supported shared libraries with the
20884   # GNU dynamic linker.  Since this was broken with cross compilers,
20885   # most powerpc-linux boxes support dynamic linking these days and
20886   # people can always --disable-shared, the test was removed, and we
20887   # assume the GNU/Linux dynamic linker is in use.
20888   dynamic_linker='GNU/Linux ld.so'
20889   ;;
20890
20891 knetbsd*-gnu)
20892   version_type=linux
20893   need_lib_prefix=no
20894   need_version=no
20895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20896   soname_spec='${libname}${release}${shared_ext}$major'
20897   shlibpath_var=LD_LIBRARY_PATH
20898   shlibpath_overrides_runpath=no
20899   hardcode_into_libs=yes
20900   dynamic_linker='GNU ld.so'
20901   ;;
20902
20903 netbsd*)
20904   version_type=sunos
20905   need_lib_prefix=no
20906   need_version=no
20907   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20909     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20910     dynamic_linker='NetBSD (a.out) ld.so'
20911   else
20912     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20913     soname_spec='${libname}${release}${shared_ext}$major'
20914     dynamic_linker='NetBSD ld.elf_so'
20915   fi
20916   shlibpath_var=LD_LIBRARY_PATH
20917   shlibpath_overrides_runpath=yes
20918   hardcode_into_libs=yes
20919   ;;
20920
20921 newsos6)
20922   version_type=linux
20923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20924   shlibpath_var=LD_LIBRARY_PATH
20925   shlibpath_overrides_runpath=yes
20926   ;;
20927
20928 nto-qnx*)
20929   version_type=linux
20930   need_lib_prefix=no
20931   need_version=no
20932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20933   soname_spec='${libname}${release}${shared_ext}$major'
20934   shlibpath_var=LD_LIBRARY_PATH
20935   shlibpath_overrides_runpath=yes
20936   ;;
20937
20938 openbsd*)
20939   version_type=sunos
20940   sys_lib_dlsearch_path_spec="/usr/lib"
20941   need_lib_prefix=no
20942   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20943   case $host_os in
20944     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20945     *)                         need_version=no  ;;
20946   esac
20947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20948   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20949   shlibpath_var=LD_LIBRARY_PATH
20950   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20951     case $host_os in
20952       openbsd2.[89] | openbsd2.[89].*)
20953         shlibpath_overrides_runpath=no
20954         ;;
20955       *)
20956         shlibpath_overrides_runpath=yes
20957         ;;
20958       esac
20959   else
20960     shlibpath_overrides_runpath=yes
20961   fi
20962   ;;
20963
20964 os2*)
20965   libname_spec='$name'
20966   shrext_cmds=".dll"
20967   need_lib_prefix=no
20968   library_names_spec='$libname${shared_ext} $libname.a'
20969   dynamic_linker='OS/2 ld.exe'
20970   shlibpath_var=LIBPATH
20971   ;;
20972
20973 osf3* | osf4* | osf5*)
20974   version_type=osf
20975   need_lib_prefix=no
20976   need_version=no
20977   soname_spec='${libname}${release}${shared_ext}$major'
20978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20979   shlibpath_var=LD_LIBRARY_PATH
20980   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20981   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20982   ;;
20983
20984 solaris*)
20985   version_type=linux
20986   need_lib_prefix=no
20987   need_version=no
20988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20989   soname_spec='${libname}${release}${shared_ext}$major'
20990   shlibpath_var=LD_LIBRARY_PATH
20991   shlibpath_overrides_runpath=yes
20992   hardcode_into_libs=yes
20993   # ldd complains unless libraries are executable
20994   postinstall_cmds='chmod +x $lib'
20995   ;;
20996
20997 sunos4*)
20998   version_type=sunos
20999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21000   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21001   shlibpath_var=LD_LIBRARY_PATH
21002   shlibpath_overrides_runpath=yes
21003   if test "$with_gnu_ld" = yes; then
21004     need_lib_prefix=no
21005   fi
21006   need_version=yes
21007   ;;
21008
21009 sysv4 | sysv4.3*)
21010   version_type=linux
21011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21012   soname_spec='${libname}${release}${shared_ext}$major'
21013   shlibpath_var=LD_LIBRARY_PATH
21014   case $host_vendor in
21015     sni)
21016       shlibpath_overrides_runpath=no
21017       need_lib_prefix=no
21018       export_dynamic_flag_spec='${wl}-Blargedynsym'
21019       runpath_var=LD_RUN_PATH
21020       ;;
21021     siemens)
21022       need_lib_prefix=no
21023       ;;
21024     motorola)
21025       need_lib_prefix=no
21026       need_version=no
21027       shlibpath_overrides_runpath=no
21028       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21029       ;;
21030   esac
21031   ;;
21032
21033 sysv4*MP*)
21034   if test -d /usr/nec ;then
21035     version_type=linux
21036     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21037     soname_spec='$libname${shared_ext}.$major'
21038     shlibpath_var=LD_LIBRARY_PATH
21039   fi
21040   ;;
21041
21042 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21043   version_type=freebsd-elf
21044   need_lib_prefix=no
21045   need_version=no
21046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21047   soname_spec='${libname}${release}${shared_ext}$major'
21048   shlibpath_var=LD_LIBRARY_PATH
21049   hardcode_into_libs=yes
21050   if test "$with_gnu_ld" = yes; then
21051     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21052     shlibpath_overrides_runpath=no
21053   else
21054     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21055     shlibpath_overrides_runpath=yes
21056     case $host_os in
21057       sco3.2v5*)
21058         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21059         ;;
21060     esac
21061   fi
21062   sys_lib_dlsearch_path_spec='/usr/lib'
21063   ;;
21064
21065 uts4*)
21066   version_type=linux
21067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21068   soname_spec='${libname}${release}${shared_ext}$major'
21069   shlibpath_var=LD_LIBRARY_PATH
21070   ;;
21071
21072 *)
21073   dynamic_linker=no
21074   ;;
21075 esac
21076 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21077 echo "${ECHO_T}$dynamic_linker" >&6; }
21078 test "$dynamic_linker" = no && can_build_shared=no
21079
21080 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21081 if test "$GCC" = yes; then
21082   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21083 fi
21084
21085 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21086 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21087 hardcode_action_CXX=
21088 if test -n "$hardcode_libdir_flag_spec_CXX" || \
21089    test -n "$runpath_var_CXX" || \
21090    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21091
21092   # We can hardcode non-existant directories.
21093   if test "$hardcode_direct_CXX" != no &&
21094      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21095      # have to relink, otherwise we might link with an installed library
21096      # when we should be linking with a yet-to-be-installed one
21097      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21098      test "$hardcode_minus_L_CXX" != no; then
21099     # Linking always hardcodes the temporary library directory.
21100     hardcode_action_CXX=relink
21101   else
21102     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21103     hardcode_action_CXX=immediate
21104   fi
21105 else
21106   # We cannot hardcode anything, or else we can only hardcode existing
21107   # directories.
21108   hardcode_action_CXX=unsupported
21109 fi
21110 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21111 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21112
21113 if test "$hardcode_action_CXX" = relink; then
21114   # Fast installation is not supported
21115   enable_fast_install=no
21116 elif test "$shlibpath_overrides_runpath" = yes ||
21117      test "$enable_shared" = no; then
21118   # Fast installation is not necessary
21119   enable_fast_install=needless
21120 fi
21121
21122
21123 # The else clause should only fire when bootstrapping the
21124 # libtool distribution, otherwise you forgot to ship ltmain.sh
21125 # with your package, and you will get complaints that there are
21126 # no rules to generate ltmain.sh.
21127 if test -f "$ltmain"; then
21128   # See if we are running on zsh, and set the options which allow our commands through
21129   # without removal of \ escapes.
21130   if test -n "${ZSH_VERSION+set}" ; then
21131     setopt NO_GLOB_SUBST
21132   fi
21133   # Now quote all the things that may contain metacharacters while being
21134   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21135   # variables and quote the copies for generation of the libtool script.
21136   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21137     SED SHELL STRIP \
21138     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21139     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21140     deplibs_check_method reload_flag reload_cmds need_locks \
21141     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21142     lt_cv_sys_global_symbol_to_c_name_address \
21143     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21144     old_postinstall_cmds old_postuninstall_cmds \
21145     compiler_CXX \
21146     CC_CXX \
21147     LD_CXX \
21148     lt_prog_compiler_wl_CXX \
21149     lt_prog_compiler_pic_CXX \
21150     lt_prog_compiler_static_CXX \
21151     lt_prog_compiler_no_builtin_flag_CXX \
21152     export_dynamic_flag_spec_CXX \
21153     thread_safe_flag_spec_CXX \
21154     whole_archive_flag_spec_CXX \
21155     enable_shared_with_static_runtimes_CXX \
21156     old_archive_cmds_CXX \
21157     old_archive_from_new_cmds_CXX \
21158     predep_objects_CXX \
21159     postdep_objects_CXX \
21160     predeps_CXX \
21161     postdeps_CXX \
21162     compiler_lib_search_path_CXX \
21163     archive_cmds_CXX \
21164     archive_expsym_cmds_CXX \
21165     postinstall_cmds_CXX \
21166     postuninstall_cmds_CXX \
21167     old_archive_from_expsyms_cmds_CXX \
21168     allow_undefined_flag_CXX \
21169     no_undefined_flag_CXX \
21170     export_symbols_cmds_CXX \
21171     hardcode_libdir_flag_spec_CXX \
21172     hardcode_libdir_flag_spec_ld_CXX \
21173     hardcode_libdir_separator_CXX \
21174     hardcode_automatic_CXX \
21175     module_cmds_CXX \
21176     module_expsym_cmds_CXX \
21177     lt_cv_prog_compiler_c_o_CXX \
21178     exclude_expsyms_CXX \
21179     include_expsyms_CXX; do
21180
21181     case $var in
21182     old_archive_cmds_CXX | \
21183     old_archive_from_new_cmds_CXX | \
21184     archive_cmds_CXX | \
21185     archive_expsym_cmds_CXX | \
21186     module_cmds_CXX | \
21187     module_expsym_cmds_CXX | \
21188     old_archive_from_expsyms_cmds_CXX | \
21189     export_symbols_cmds_CXX | \
21190     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21191     postinstall_cmds | postuninstall_cmds | \
21192     old_postinstall_cmds | old_postuninstall_cmds | \
21193     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21194       # Double-quote double-evaled strings.
21195       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21196       ;;
21197     *)
21198       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21199       ;;
21200     esac
21201   done
21202
21203   case $lt_echo in
21204   *'\$0 --fallback-echo"')
21205     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21206     ;;
21207   esac
21208
21209 cfgfile="$ofile"
21210
21211   cat <<__EOF__ >> "$cfgfile"
21212 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21213
21214 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21215
21216 # Shell to use when invoking shell scripts.
21217 SHELL=$lt_SHELL
21218
21219 # Whether or not to build shared libraries.
21220 build_libtool_libs=$enable_shared
21221
21222 # Whether or not to build static libraries.
21223 build_old_libs=$enable_static
21224
21225 # Whether or not to add -lc for building shared libraries.
21226 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21227
21228 # Whether or not to disallow shared libs when runtime libs are static
21229 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21230
21231 # Whether or not to optimize for fast installation.
21232 fast_install=$enable_fast_install
21233
21234 # The host system.
21235 host_alias=$host_alias
21236 host=$host
21237 host_os=$host_os
21238
21239 # The build system.
21240 build_alias=$build_alias
21241 build=$build
21242 build_os=$build_os
21243
21244 # An echo program that does not interpret backslashes.
21245 echo=$lt_echo
21246
21247 # The archiver.
21248 AR=$lt_AR
21249 AR_FLAGS=$lt_AR_FLAGS
21250
21251 # A C compiler.
21252 LTCC=$lt_LTCC
21253
21254 # LTCC compiler flags.
21255 LTCFLAGS=$lt_LTCFLAGS
21256
21257 # A language-specific compiler.
21258 CC=$lt_compiler_CXX
21259
21260 # Is the compiler the GNU C compiler?
21261 with_gcc=$GCC_CXX
21262
21263 # An ERE matcher.
21264 EGREP=$lt_EGREP
21265
21266 # The linker used to build libraries.
21267 LD=$lt_LD_CXX
21268
21269 # Whether we need hard or soft links.
21270 LN_S=$lt_LN_S
21271
21272 # A BSD-compatible nm program.
21273 NM=$lt_NM
21274
21275 # A symbol stripping program
21276 STRIP=$lt_STRIP
21277
21278 # Used to examine libraries when file_magic_cmd begins "file"
21279 MAGIC_CMD=$MAGIC_CMD
21280
21281 # Used on cygwin: DLL creation program.
21282 DLLTOOL="$DLLTOOL"
21283
21284 # Used on cygwin: object dumper.
21285 OBJDUMP="$OBJDUMP"
21286
21287 # Used on cygwin: assembler.
21288 AS="$AS"
21289
21290 # The name of the directory that contains temporary libtool files.
21291 objdir=$objdir
21292
21293 # How to create reloadable object files.
21294 reload_flag=$lt_reload_flag
21295 reload_cmds=$lt_reload_cmds
21296
21297 # How to pass a linker flag through the compiler.
21298 wl=$lt_lt_prog_compiler_wl_CXX
21299
21300 # Object file suffix (normally "o").
21301 objext="$ac_objext"
21302
21303 # Old archive suffix (normally "a").
21304 libext="$libext"
21305
21306 # Shared library suffix (normally ".so").
21307 shrext_cmds='$shrext_cmds'
21308
21309 # Executable file suffix (normally "").
21310 exeext="$exeext"
21311
21312 # Additional compiler flags for building library objects.
21313 pic_flag=$lt_lt_prog_compiler_pic_CXX
21314 pic_mode=$pic_mode
21315
21316 # What is the maximum length of a command?
21317 max_cmd_len=$lt_cv_sys_max_cmd_len
21318
21319 # Does compiler simultaneously support -c and -o options?
21320 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21321
21322 # Must we lock files when doing compilation?
21323 need_locks=$lt_need_locks
21324
21325 # Do we need the lib prefix for modules?
21326 need_lib_prefix=$need_lib_prefix
21327
21328 # Do we need a version for libraries?
21329 need_version=$need_version
21330
21331 # Whether dlopen is supported.
21332 dlopen_support=$enable_dlopen
21333
21334 # Whether dlopen of programs is supported.
21335 dlopen_self=$enable_dlopen_self
21336
21337 # Whether dlopen of statically linked programs is supported.
21338 dlopen_self_static=$enable_dlopen_self_static
21339
21340 # Compiler flag to prevent dynamic linking.
21341 link_static_flag=$lt_lt_prog_compiler_static_CXX
21342
21343 # Compiler flag to turn off builtin functions.
21344 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21345
21346 # Compiler flag to allow reflexive dlopens.
21347 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21348
21349 # Compiler flag to generate shared objects directly from archives.
21350 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21351
21352 # Compiler flag to generate thread-safe objects.
21353 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21354
21355 # Library versioning type.
21356 version_type=$version_type
21357
21358 # Format of library name prefix.
21359 libname_spec=$lt_libname_spec
21360
21361 # List of archive names.  First name is the real one, the rest are links.
21362 # The last name is the one that the linker finds with -lNAME.
21363 library_names_spec=$lt_library_names_spec
21364
21365 # The coded name of the library, if different from the real name.
21366 soname_spec=$lt_soname_spec
21367
21368 # Commands used to build and install an old-style archive.
21369 RANLIB=$lt_RANLIB
21370 old_archive_cmds=$lt_old_archive_cmds_CXX
21371 old_postinstall_cmds=$lt_old_postinstall_cmds
21372 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21373
21374 # Create an old-style archive from a shared archive.
21375 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21376
21377 # Create a temporary old-style archive to link instead of a shared archive.
21378 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21379
21380 # Commands used to build and install a shared archive.
21381 archive_cmds=$lt_archive_cmds_CXX
21382 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21383 postinstall_cmds=$lt_postinstall_cmds
21384 postuninstall_cmds=$lt_postuninstall_cmds
21385
21386 # Commands used to build a loadable module (assumed same as above if empty)
21387 module_cmds=$lt_module_cmds_CXX
21388 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21389
21390 # Commands to strip libraries.
21391 old_striplib=$lt_old_striplib
21392 striplib=$lt_striplib
21393
21394 # Dependencies to place before the objects being linked to create a
21395 # shared library.
21396 predep_objects=$lt_predep_objects_CXX
21397
21398 # Dependencies to place after the objects being linked to create a
21399 # shared library.
21400 postdep_objects=$lt_postdep_objects_CXX
21401
21402 # Dependencies to place before the objects being linked to create a
21403 # shared library.
21404 predeps=$lt_predeps_CXX
21405
21406 # Dependencies to place after the objects being linked to create a
21407 # shared library.
21408 postdeps=$lt_postdeps_CXX
21409
21410 # The library search path used internally by the compiler when linking
21411 # a shared library.
21412 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21413
21414 # Method to check whether dependent libraries are shared objects.
21415 deplibs_check_method=$lt_deplibs_check_method
21416
21417 # Command to use when deplibs_check_method == file_magic.
21418 file_magic_cmd=$lt_file_magic_cmd
21419
21420 # Flag that allows shared libraries with undefined symbols to be built.
21421 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21422
21423 # Flag that forces no undefined symbols.
21424 no_undefined_flag=$lt_no_undefined_flag_CXX
21425
21426 # Commands used to finish a libtool library installation in a directory.
21427 finish_cmds=$lt_finish_cmds
21428
21429 # Same as above, but a single script fragment to be evaled but not shown.
21430 finish_eval=$lt_finish_eval
21431
21432 # Take the output of nm and produce a listing of raw symbols and C names.
21433 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21434
21435 # Transform the output of nm in a proper C declaration
21436 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21437
21438 # Transform the output of nm in a C name address pair
21439 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21440
21441 # This is the shared library runtime path variable.
21442 runpath_var=$runpath_var
21443
21444 # This is the shared library path variable.
21445 shlibpath_var=$shlibpath_var
21446
21447 # Is shlibpath searched before the hard-coded library search path?
21448 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21449
21450 # How to hardcode a shared library path into an executable.
21451 hardcode_action=$hardcode_action_CXX
21452
21453 # Whether we should hardcode library paths into libraries.
21454 hardcode_into_libs=$hardcode_into_libs
21455
21456 # Flag to hardcode \$libdir into a binary during linking.
21457 # This must work even if \$libdir does not exist.
21458 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21459
21460 # If ld is used when linking, flag to hardcode \$libdir into
21461 # a binary during linking. This must work even if \$libdir does
21462 # not exist.
21463 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21464
21465 # Whether we need a single -rpath flag with a separated argument.
21466 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21467
21468 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21469 # resulting binary.
21470 hardcode_direct=$hardcode_direct_CXX
21471
21472 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21473 # resulting binary.
21474 hardcode_minus_L=$hardcode_minus_L_CXX
21475
21476 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21477 # the resulting binary.
21478 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21479
21480 # Set to yes if building a shared library automatically hardcodes DIR into the library
21481 # and all subsequent libraries and executables linked against it.
21482 hardcode_automatic=$hardcode_automatic_CXX
21483
21484 # Variables whose values should be saved in libtool wrapper scripts and
21485 # restored at relink time.
21486 variables_saved_for_relink="$variables_saved_for_relink"
21487
21488 # Whether libtool must link a program against all its dependency libraries.
21489 link_all_deplibs=$link_all_deplibs_CXX
21490
21491 # Compile-time system search path for libraries
21492 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21493
21494 # Run-time system search path for libraries
21495 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21496
21497 # Fix the shell variable \$srcfile for the compiler.
21498 fix_srcfile_path="$fix_srcfile_path_CXX"
21499
21500 # Set to yes if exported symbols are required.
21501 always_export_symbols=$always_export_symbols_CXX
21502
21503 # The commands to list exported symbols.
21504 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21505
21506 # The commands to extract the exported symbol list from a shared archive.
21507 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21508
21509 # Symbols that should not be listed in the preloaded symbols.
21510 exclude_expsyms=$lt_exclude_expsyms_CXX
21511
21512 # Symbols that must always be exported.
21513 include_expsyms=$lt_include_expsyms_CXX
21514
21515 # ### END LIBTOOL TAG CONFIG: $tagname
21516
21517 __EOF__
21518
21519
21520 else
21521   # If there is no Makefile yet, we rely on a make rule to execute
21522   # `config.status --recheck' to rerun these tests and create the
21523   # libtool script then.
21524   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21525   if test -f "$ltmain_in"; then
21526     test -f Makefile && make "$ltmain"
21527   fi
21528 fi
21529
21530
21531 ac_ext=c
21532 ac_cpp='$CPP $CPPFLAGS'
21533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21536
21537 CC=$lt_save_CC
21538 LDCXX=$LD
21539 LD=$lt_save_LD
21540 GCC=$lt_save_GCC
21541 with_gnu_ldcxx=$with_gnu_ld
21542 with_gnu_ld=$lt_save_with_gnu_ld
21543 lt_cv_path_LDCXX=$lt_cv_path_LD
21544 lt_cv_path_LD=$lt_save_path_LD
21545 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21546 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21547
21548         else
21549           tagname=""
21550         fi
21551         ;;
21552
21553       F77)
21554         if test -n "$F77" && test "X$F77" != "Xno"; then
21555
21556 ac_ext=f
21557 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21558 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21559 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21560
21561
21562 archive_cmds_need_lc_F77=no
21563 allow_undefined_flag_F77=
21564 always_export_symbols_F77=no
21565 archive_expsym_cmds_F77=
21566 export_dynamic_flag_spec_F77=
21567 hardcode_direct_F77=no
21568 hardcode_libdir_flag_spec_F77=
21569 hardcode_libdir_flag_spec_ld_F77=
21570 hardcode_libdir_separator_F77=
21571 hardcode_minus_L_F77=no
21572 hardcode_automatic_F77=no
21573 module_cmds_F77=
21574 module_expsym_cmds_F77=
21575 link_all_deplibs_F77=unknown
21576 old_archive_cmds_F77=$old_archive_cmds
21577 no_undefined_flag_F77=
21578 whole_archive_flag_spec_F77=
21579 enable_shared_with_static_runtimes_F77=no
21580
21581 # Source file extension for f77 test sources.
21582 ac_ext=f
21583
21584 # Object file extension for compiled f77 test sources.
21585 objext=o
21586 objext_F77=$objext
21587
21588 # Code to be used in simple compile tests
21589 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21590
21591 # Code to be used in simple link tests
21592 lt_simple_link_test_code="      program t\n      end\n"
21593
21594 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21595
21596 # If no C compiler was specified, use CC.
21597 LTCC=${LTCC-"$CC"}
21598
21599 # If no C compiler flags were specified, use CFLAGS.
21600 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21601
21602 # Allow CC to be a program name with arguments.
21603 compiler=$CC
21604
21605
21606 # save warnings/boilerplate of simple test code
21607 ac_outfile=conftest.$ac_objext
21608 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21609 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21610 _lt_compiler_boilerplate=`cat conftest.err`
21611 $rm conftest*
21612
21613 ac_outfile=conftest.$ac_objext
21614 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21615 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21616 _lt_linker_boilerplate=`cat conftest.err`
21617 $rm conftest*
21618
21619
21620 # Allow CC to be a program name with arguments.
21621 lt_save_CC="$CC"
21622 CC=${F77-"f77"}
21623 compiler=$CC
21624 compiler_F77=$CC
21625 for cc_temp in $compiler""; do
21626   case $cc_temp in
21627     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21628     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21629     \-*) ;;
21630     *) break;;
21631   esac
21632 done
21633 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21634
21635
21636 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21637 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21638 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21639 echo "${ECHO_T}$can_build_shared" >&6; }
21640
21641 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21642 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21643 test "$can_build_shared" = "no" && enable_shared=no
21644
21645 # On AIX, shared libraries and static libraries use the same namespace, and
21646 # are all built from PIC.
21647 case $host_os in
21648 aix3*)
21649   test "$enable_shared" = yes && enable_static=no
21650   if test -n "$RANLIB"; then
21651     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21652     postinstall_cmds='$RANLIB $lib'
21653   fi
21654   ;;
21655 aix4* | aix5*)
21656   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21657     test "$enable_shared" = yes && enable_static=no
21658   fi
21659   ;;
21660 esac
21661 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21662 echo "${ECHO_T}$enable_shared" >&6; }
21663
21664 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21665 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21666 # Make sure either enable_shared or enable_static is yes.
21667 test "$enable_shared" = yes || enable_static=yes
21668 { echo "$as_me:$LINENO: result: $enable_static" >&5
21669 echo "${ECHO_T}$enable_static" >&6; }
21670
21671 GCC_F77="$G77"
21672 LD_F77="$LD"
21673
21674 lt_prog_compiler_wl_F77=
21675 lt_prog_compiler_pic_F77=
21676 lt_prog_compiler_static_F77=
21677
21678 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21679 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21680
21681   if test "$GCC" = yes; then
21682     lt_prog_compiler_wl_F77='-Wl,'
21683     lt_prog_compiler_static_F77='-static'
21684
21685     case $host_os in
21686       aix*)
21687       # All AIX code is PIC.
21688       if test "$host_cpu" = ia64; then
21689         # AIX 5 now supports IA64 processor
21690         lt_prog_compiler_static_F77='-Bstatic'
21691       fi
21692       ;;
21693
21694     amigaos*)
21695       # FIXME: we need at least 68020 code to build shared libraries, but
21696       # adding the `-m68020' flag to GCC prevents building anything better,
21697       # like `-m68040'.
21698       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21699       ;;
21700
21701     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21702       # PIC is the default for these OSes.
21703       ;;
21704
21705     mingw* | pw32* | os2*)
21706       # This hack is so that the source file can tell whether it is being
21707       # built for inclusion in a dll (and should export symbols for example).
21708       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21709       ;;
21710
21711     darwin* | rhapsody*)
21712       # PIC is the default on this platform
21713       # Common symbols not allowed in MH_DYLIB files
21714       lt_prog_compiler_pic_F77='-fno-common'
21715       ;;
21716
21717     interix3*)
21718       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21719       # Instead, we relocate shared libraries at runtime.
21720       ;;
21721
21722     msdosdjgpp*)
21723       # Just because we use GCC doesn't mean we suddenly get shared libraries
21724       # on systems that don't support them.
21725       lt_prog_compiler_can_build_shared_F77=no
21726       enable_shared=no
21727       ;;
21728
21729     sysv4*MP*)
21730       if test -d /usr/nec; then
21731         lt_prog_compiler_pic_F77=-Kconform_pic
21732       fi
21733       ;;
21734
21735     hpux*)
21736       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21737       # not for PA HP-UX.
21738       case $host_cpu in
21739       hppa*64*|ia64*)
21740         # +Z the default
21741         ;;
21742       *)
21743         lt_prog_compiler_pic_F77='-fPIC'
21744         ;;
21745       esac
21746       ;;
21747
21748     *)
21749       lt_prog_compiler_pic_F77='-fPIC'
21750       ;;
21751     esac
21752   else
21753     # PORTME Check for flag to pass linker flags through the system compiler.
21754     case $host_os in
21755     aix*)
21756       lt_prog_compiler_wl_F77='-Wl,'
21757       if test "$host_cpu" = ia64; then
21758         # AIX 5 now supports IA64 processor
21759         lt_prog_compiler_static_F77='-Bstatic'
21760       else
21761         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21762       fi
21763       ;;
21764       darwin*)
21765         # PIC is the default on this platform
21766         # Common symbols not allowed in MH_DYLIB files
21767        case $cc_basename in
21768          xlc*)
21769          lt_prog_compiler_pic_F77='-qnocommon'
21770          lt_prog_compiler_wl_F77='-Wl,'
21771          ;;
21772        esac
21773        ;;
21774
21775     mingw* | pw32* | os2*)
21776       # This hack is so that the source file can tell whether it is being
21777       # built for inclusion in a dll (and should export symbols for example).
21778       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21779       ;;
21780
21781     hpux9* | hpux10* | hpux11*)
21782       lt_prog_compiler_wl_F77='-Wl,'
21783       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21784       # not for PA HP-UX.
21785       case $host_cpu in
21786       hppa*64*|ia64*)
21787         # +Z the default
21788         ;;
21789       *)
21790         lt_prog_compiler_pic_F77='+Z'
21791         ;;
21792       esac
21793       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21794       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21795       ;;
21796
21797     irix5* | irix6* | nonstopux*)
21798       lt_prog_compiler_wl_F77='-Wl,'
21799       # PIC (with -KPIC) is the default.
21800       lt_prog_compiler_static_F77='-non_shared'
21801       ;;
21802
21803     newsos6)
21804       lt_prog_compiler_pic_F77='-KPIC'
21805       lt_prog_compiler_static_F77='-Bstatic'
21806       ;;
21807
21808     linux*)
21809       case $cc_basename in
21810       icc* | ecc*)
21811         lt_prog_compiler_wl_F77='-Wl,'
21812         lt_prog_compiler_pic_F77='-KPIC'
21813         lt_prog_compiler_static_F77='-static'
21814         ;;
21815       pgcc* | pgf77* | pgf90* | pgf95*)
21816         # Portland Group compilers (*not* the Pentium gcc compiler,
21817         # which looks to be a dead project)
21818         lt_prog_compiler_wl_F77='-Wl,'
21819         lt_prog_compiler_pic_F77='-fpic'
21820         lt_prog_compiler_static_F77='-Bstatic'
21821         ;;
21822       ccc*)
21823         lt_prog_compiler_wl_F77='-Wl,'
21824         # All Alpha code is PIC.
21825         lt_prog_compiler_static_F77='-non_shared'
21826         ;;
21827       esac
21828       ;;
21829
21830     osf3* | osf4* | osf5*)
21831       lt_prog_compiler_wl_F77='-Wl,'
21832       # All OSF/1 code is PIC.
21833       lt_prog_compiler_static_F77='-non_shared'
21834       ;;
21835
21836     solaris*)
21837       lt_prog_compiler_pic_F77='-KPIC'
21838       lt_prog_compiler_static_F77='-Bstatic'
21839       case $cc_basename in
21840       f77* | f90* | f95*)
21841         lt_prog_compiler_wl_F77='-Qoption ld ';;
21842       *)
21843         lt_prog_compiler_wl_F77='-Wl,';;
21844       esac
21845       ;;
21846
21847     sunos4*)
21848       lt_prog_compiler_wl_F77='-Qoption ld '
21849       lt_prog_compiler_pic_F77='-PIC'
21850       lt_prog_compiler_static_F77='-Bstatic'
21851       ;;
21852
21853     sysv4 | sysv4.2uw2* | sysv4.3*)
21854       lt_prog_compiler_wl_F77='-Wl,'
21855       lt_prog_compiler_pic_F77='-KPIC'
21856       lt_prog_compiler_static_F77='-Bstatic'
21857       ;;
21858
21859     sysv4*MP*)
21860       if test -d /usr/nec ;then
21861         lt_prog_compiler_pic_F77='-Kconform_pic'
21862         lt_prog_compiler_static_F77='-Bstatic'
21863       fi
21864       ;;
21865
21866     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21867       lt_prog_compiler_wl_F77='-Wl,'
21868       lt_prog_compiler_pic_F77='-KPIC'
21869       lt_prog_compiler_static_F77='-Bstatic'
21870       ;;
21871
21872     unicos*)
21873       lt_prog_compiler_wl_F77='-Wl,'
21874       lt_prog_compiler_can_build_shared_F77=no
21875       ;;
21876
21877     uts4*)
21878       lt_prog_compiler_pic_F77='-pic'
21879       lt_prog_compiler_static_F77='-Bstatic'
21880       ;;
21881
21882     *)
21883       lt_prog_compiler_can_build_shared_F77=no
21884       ;;
21885     esac
21886   fi
21887
21888 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21889 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21890
21891 #
21892 # Check to make sure the PIC flag actually works.
21893 #
21894 if test -n "$lt_prog_compiler_pic_F77"; then
21895
21896 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21897 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21898 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21899   echo $ECHO_N "(cached) $ECHO_C" >&6
21900 else
21901   lt_prog_compiler_pic_works_F77=no
21902   ac_outfile=conftest.$ac_objext
21903    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21904    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21905    # Insert the option either (1) after the last *FLAGS variable, or
21906    # (2) before a word containing "conftest.", or (3) at the end.
21907    # Note that $ac_compile itself does not contain backslashes and begins
21908    # with a dollar sign (not a hyphen), so the echo should work correctly.
21909    # The option is referenced via a variable to avoid confusing sed.
21910    lt_compile=`echo "$ac_compile" | $SED \
21911    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21912    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21913    -e 's:$: $lt_compiler_flag:'`
21914    (eval echo "\"\$as_me:21914: $lt_compile\"" >&5)
21915    (eval "$lt_compile" 2>conftest.err)
21916    ac_status=$?
21917    cat conftest.err >&5
21918    echo "$as_me:21918: \$? = $ac_status" >&5
21919    if (exit $ac_status) && test -s "$ac_outfile"; then
21920      # The compiler can only warn and ignore the option if not recognized
21921      # So say no if there are warnings other than the usual output.
21922      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21923      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21924      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21925        lt_prog_compiler_pic_works_F77=yes
21926      fi
21927    fi
21928    $rm conftest*
21929
21930 fi
21931 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21932 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21933
21934 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21935     case $lt_prog_compiler_pic_F77 in
21936      "" | " "*) ;;
21937      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21938      esac
21939 else
21940     lt_prog_compiler_pic_F77=
21941      lt_prog_compiler_can_build_shared_F77=no
21942 fi
21943
21944 fi
21945 case $host_os in
21946   # For platforms which do not support PIC, -DPIC is meaningless:
21947   *djgpp*)
21948     lt_prog_compiler_pic_F77=
21949     ;;
21950   *)
21951     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21952     ;;
21953 esac
21954
21955 #
21956 # Check to make sure the static flag actually works.
21957 #
21958 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21959 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21960 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21961 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21962   echo $ECHO_N "(cached) $ECHO_C" >&6
21963 else
21964   lt_prog_compiler_static_works_F77=no
21965    save_LDFLAGS="$LDFLAGS"
21966    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21967    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21968    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21969      # The linker can only warn and ignore the option if not recognized
21970      # So say no if there are warnings
21971      if test -s conftest.err; then
21972        # Append any errors to the config.log.
21973        cat conftest.err 1>&5
21974        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21975        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21976        if diff conftest.exp conftest.er2 >/dev/null; then
21977          lt_prog_compiler_static_works_F77=yes
21978        fi
21979      else
21980        lt_prog_compiler_static_works_F77=yes
21981      fi
21982    fi
21983    $rm conftest*
21984    LDFLAGS="$save_LDFLAGS"
21985
21986 fi
21987 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21988 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21989
21990 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21991     :
21992 else
21993     lt_prog_compiler_static_F77=
21994 fi
21995
21996
21997 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21998 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21999 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
22000   echo $ECHO_N "(cached) $ECHO_C" >&6
22001 else
22002   lt_cv_prog_compiler_c_o_F77=no
22003    $rm -r conftest 2>/dev/null
22004    mkdir conftest
22005    cd conftest
22006    mkdir out
22007    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22008
22009    lt_compiler_flag="-o out/conftest2.$ac_objext"
22010    # Insert the option either (1) after the last *FLAGS variable, or
22011    # (2) before a word containing "conftest.", or (3) at the end.
22012    # Note that $ac_compile itself does not contain backslashes and begins
22013    # with a dollar sign (not a hyphen), so the echo should work correctly.
22014    lt_compile=`echo "$ac_compile" | $SED \
22015    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22016    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22017    -e 's:$: $lt_compiler_flag:'`
22018    (eval echo "\"\$as_me:22018: $lt_compile\"" >&5)
22019    (eval "$lt_compile" 2>out/conftest.err)
22020    ac_status=$?
22021    cat out/conftest.err >&5
22022    echo "$as_me:22022: \$? = $ac_status" >&5
22023    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22024    then
22025      # The compiler can only warn and ignore the option if not recognized
22026      # So say no if there are warnings
22027      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22028      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22029      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22030        lt_cv_prog_compiler_c_o_F77=yes
22031      fi
22032    fi
22033    chmod u+w . 2>&5
22034    $rm conftest*
22035    # SGI C++ compiler will create directory out/ii_files/ for
22036    # template instantiation
22037    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22038    $rm out/* && rmdir out
22039    cd ..
22040    rmdir conftest
22041    $rm conftest*
22042
22043 fi
22044 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22045 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
22046
22047
22048 hard_links="nottested"
22049 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22050   # do not overwrite the value of need_locks provided by the user
22051   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22052 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22053   hard_links=yes
22054   $rm conftest*
22055   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22056   touch conftest.a
22057   ln conftest.a conftest.b 2>&5 || hard_links=no
22058   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22059   { echo "$as_me:$LINENO: result: $hard_links" >&5
22060 echo "${ECHO_T}$hard_links" >&6; }
22061   if test "$hard_links" = no; then
22062     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22063 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22064     need_locks=warn
22065   fi
22066 else
22067   need_locks=no
22068 fi
22069
22070 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22071 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22072
22073   runpath_var=
22074   allow_undefined_flag_F77=
22075   enable_shared_with_static_runtimes_F77=no
22076   archive_cmds_F77=
22077   archive_expsym_cmds_F77=
22078   old_archive_From_new_cmds_F77=
22079   old_archive_from_expsyms_cmds_F77=
22080   export_dynamic_flag_spec_F77=
22081   whole_archive_flag_spec_F77=
22082   thread_safe_flag_spec_F77=
22083   hardcode_libdir_flag_spec_F77=
22084   hardcode_libdir_flag_spec_ld_F77=
22085   hardcode_libdir_separator_F77=
22086   hardcode_direct_F77=no
22087   hardcode_minus_L_F77=no
22088   hardcode_shlibpath_var_F77=unsupported
22089   link_all_deplibs_F77=unknown
22090   hardcode_automatic_F77=no
22091   module_cmds_F77=
22092   module_expsym_cmds_F77=
22093   always_export_symbols_F77=no
22094   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22095   # include_expsyms should be a list of space-separated symbols to be *always*
22096   # included in the symbol list
22097   include_expsyms_F77=
22098   # exclude_expsyms can be an extended regexp of symbols to exclude
22099   # it will be wrapped by ` (' and `)$', so one must not match beginning or
22100   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22101   # as well as any symbol that contains `d'.
22102   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22103   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22104   # platforms (ab)use it in PIC code, but their linkers get confused if
22105   # the symbol is explicitly referenced.  Since portable code cannot
22106   # rely on this symbol name, it's probably fine to never include it in
22107   # preloaded symbol tables.
22108   extract_expsyms_cmds=
22109   # Just being paranoid about ensuring that cc_basename is set.
22110   for cc_temp in $compiler""; do
22111   case $cc_temp in
22112     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22113     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22114     \-*) ;;
22115     *) break;;
22116   esac
22117 done
22118 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22119
22120   case $host_os in
22121   cygwin* | mingw* | pw32*)
22122     # FIXME: the MSVC++ port hasn't been tested in a loooong time
22123     # When not using gcc, we currently assume that we are using
22124     # Microsoft Visual C++.
22125     if test "$GCC" != yes; then
22126       with_gnu_ld=no
22127     fi
22128     ;;
22129   interix*)
22130     # we just hope/assume this is gcc and not c89 (= MSVC++)
22131     with_gnu_ld=yes
22132     ;;
22133   openbsd*)
22134     with_gnu_ld=no
22135     ;;
22136   esac
22137
22138   ld_shlibs_F77=yes
22139   if test "$with_gnu_ld" = yes; then
22140     # If archive_cmds runs LD, not CC, wlarc should be empty
22141     wlarc='${wl}'
22142
22143     # Set some defaults for GNU ld with shared library support. These
22144     # are reset later if shared libraries are not supported. Putting them
22145     # here allows them to be overridden if necessary.
22146     runpath_var=LD_RUN_PATH
22147     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22148     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22149     # ancient GNU ld didn't support --whole-archive et. al.
22150     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22151         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22152       else
22153         whole_archive_flag_spec_F77=
22154     fi
22155     supports_anon_versioning=no
22156     case `$LD -v 2>/dev/null` in
22157       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22158       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22159       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22160       *\ 2.11.*) ;; # other 2.11 versions
22161       *) supports_anon_versioning=yes ;;
22162     esac
22163
22164     # See if GNU ld supports shared libraries.
22165     case $host_os in
22166     aix3* | aix4* | aix5*)
22167       # On AIX/PPC, the GNU linker is very broken
22168       if test "$host_cpu" != ia64; then
22169         ld_shlibs_F77=no
22170         cat <<EOF 1>&2
22171
22172 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22173 *** to be unable to reliably create shared libraries on AIX.
22174 *** Therefore, libtool is disabling shared libraries support.  If you
22175 *** really care for shared libraries, you may want to modify your PATH
22176 *** so that a non-GNU linker is found, and then restart.
22177
22178 EOF
22179       fi
22180       ;;
22181
22182     amigaos*)
22183       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)'
22184       hardcode_libdir_flag_spec_F77='-L$libdir'
22185       hardcode_minus_L_F77=yes
22186
22187       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22188       # that the semantics of dynamic libraries on AmigaOS, at least up
22189       # to version 4, is to share data among multiple programs linked
22190       # with the same dynamic library.  Since this doesn't match the
22191       # behavior of shared libraries on other platforms, we can't use
22192       # them.
22193       ld_shlibs_F77=no
22194       ;;
22195
22196     beos*)
22197       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22198         allow_undefined_flag_F77=unsupported
22199         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22200         # support --undefined.  This deserves some investigation.  FIXME
22201         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22202       else
22203         ld_shlibs_F77=no
22204       fi
22205       ;;
22206
22207     cygwin* | mingw* | pw32*)
22208       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22209       # as there is no search path for DLLs.
22210       hardcode_libdir_flag_spec_F77='-L$libdir'
22211       allow_undefined_flag_F77=unsupported
22212       always_export_symbols_F77=no
22213       enable_shared_with_static_runtimes_F77=yes
22214       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22215
22216       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22217         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22218         # If the export-symbols file already is a .def file (1st line
22219         # is EXPORTS), use it as is; otherwise, prepend...
22220         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22221           cp $export_symbols $output_objdir/$soname.def;
22222         else
22223           echo EXPORTS > $output_objdir/$soname.def;
22224           cat $export_symbols >> $output_objdir/$soname.def;
22225         fi~
22226         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22227       else
22228         ld_shlibs_F77=no
22229       fi
22230       ;;
22231
22232     interix3*)
22233       hardcode_direct_F77=no
22234       hardcode_shlibpath_var_F77=no
22235       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22236       export_dynamic_flag_spec_F77='${wl}-E'
22237       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22238       # Instead, shared libraries are loaded at an image base (0x10000000 by
22239       # default) and relocated if they conflict, which is a slow very memory
22240       # consuming and fragmenting process.  To avoid this, we pick a random,
22241       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22242       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22243       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'
22244       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'
22245       ;;
22246
22247     linux*)
22248       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22249         tmp_addflag=
22250         case $cc_basename,$host_cpu in
22251         pgcc*)                          # Portland Group C compiler
22252           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'
22253           tmp_addflag=' $pic_flag'
22254           ;;
22255         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22256           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'
22257           tmp_addflag=' $pic_flag -Mnomain' ;;
22258         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22259           tmp_addflag=' -i_dynamic' ;;
22260         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22261           tmp_addflag=' -i_dynamic -nofor_main' ;;
22262         ifc* | ifort*)                  # Intel Fortran compiler
22263           tmp_addflag=' -nofor_main' ;;
22264         esac
22265         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22266
22267         if test $supports_anon_versioning = yes; then
22268           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22269   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22270   $echo "local: *; };" >> $output_objdir/$libname.ver~
22271           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22272         fi
22273       else
22274         ld_shlibs_F77=no
22275       fi
22276       ;;
22277
22278     netbsd*)
22279       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22280         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22281         wlarc=
22282       else
22283         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22284         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22285       fi
22286       ;;
22287
22288     solaris*)
22289       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22290         ld_shlibs_F77=no
22291         cat <<EOF 1>&2
22292
22293 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22294 *** create shared libraries on Solaris systems.  Therefore, libtool
22295 *** is disabling shared libraries support.  We urge you to upgrade GNU
22296 *** binutils to release 2.9.1 or newer.  Another option is to modify
22297 *** your PATH or compiler configuration so that the native linker is
22298 *** used, and then restart.
22299
22300 EOF
22301       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22302         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22303         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22304       else
22305         ld_shlibs_F77=no
22306       fi
22307       ;;
22308
22309     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22310       case `$LD -v 2>&1` in
22311         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22312         ld_shlibs_F77=no
22313         cat <<_LT_EOF 1>&2
22314
22315 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22316 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22317 *** is disabling shared libraries support.  We urge you to upgrade GNU
22318 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22319 *** your PATH or compiler configuration so that the native linker is
22320 *** used, and then restart.
22321
22322 _LT_EOF
22323         ;;
22324         *)
22325           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22326             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22327             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22328             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22329           else
22330             ld_shlibs_F77=no
22331           fi
22332         ;;
22333       esac
22334       ;;
22335
22336     sunos4*)
22337       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22338       wlarc=
22339       hardcode_direct_F77=yes
22340       hardcode_shlibpath_var_F77=no
22341       ;;
22342
22343     *)
22344       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22345         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22346         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22347       else
22348         ld_shlibs_F77=no
22349       fi
22350       ;;
22351     esac
22352
22353     if test "$ld_shlibs_F77" = no; then
22354       runpath_var=
22355       hardcode_libdir_flag_spec_F77=
22356       export_dynamic_flag_spec_F77=
22357       whole_archive_flag_spec_F77=
22358     fi
22359   else
22360     # PORTME fill in a description of your system's linker (not GNU ld)
22361     case $host_os in
22362     aix3*)
22363       allow_undefined_flag_F77=unsupported
22364       always_export_symbols_F77=yes
22365       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'
22366       # Note: this linker hardcodes the directories in LIBPATH if there
22367       # are no directories specified by -L.
22368       hardcode_minus_L_F77=yes
22369       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22370         # Neither direct hardcoding nor static linking is supported with a
22371         # broken collect2.
22372         hardcode_direct_F77=unsupported
22373       fi
22374       ;;
22375
22376     aix4* | aix5*)
22377       if test "$host_cpu" = ia64; then
22378         # On IA64, the linker does run time linking by default, so we don't
22379         # have to do anything special.
22380         aix_use_runtimelinking=no
22381         exp_sym_flag='-Bexport'
22382         no_entry_flag=""
22383       else
22384         # If we're using GNU nm, then we don't want the "-C" option.
22385         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22386         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22387           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'
22388         else
22389           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'
22390         fi
22391         aix_use_runtimelinking=no
22392
22393         # Test if we are trying to use run time linking or normal
22394         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22395         # need to do runtime linking.
22396         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22397           for ld_flag in $LDFLAGS; do
22398           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22399             aix_use_runtimelinking=yes
22400             break
22401           fi
22402           done
22403           ;;
22404         esac
22405
22406         exp_sym_flag='-bexport'
22407         no_entry_flag='-bnoentry'
22408       fi
22409
22410       # When large executables or shared objects are built, AIX ld can
22411       # have problems creating the table of contents.  If linking a library
22412       # or program results in "error TOC overflow" add -mminimal-toc to
22413       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22414       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22415
22416       archive_cmds_F77=''
22417       hardcode_direct_F77=yes
22418       hardcode_libdir_separator_F77=':'
22419       link_all_deplibs_F77=yes
22420
22421       if test "$GCC" = yes; then
22422         case $host_os in aix4.[012]|aix4.[012].*)
22423         # We only want to do this on AIX 4.2 and lower, the check
22424         # below for broken collect2 doesn't work under 4.3+
22425           collect2name=`${CC} -print-prog-name=collect2`
22426           if test -f "$collect2name" && \
22427            strings "$collect2name" | grep resolve_lib_name >/dev/null
22428           then
22429           # We have reworked collect2
22430           hardcode_direct_F77=yes
22431           else
22432           # We have old collect2
22433           hardcode_direct_F77=unsupported
22434           # It fails to find uninstalled libraries when the uninstalled
22435           # path is not listed in the libpath.  Setting hardcode_minus_L
22436           # to unsupported forces relinking
22437           hardcode_minus_L_F77=yes
22438           hardcode_libdir_flag_spec_F77='-L$libdir'
22439           hardcode_libdir_separator_F77=
22440           fi
22441           ;;
22442         esac
22443         shared_flag='-shared'
22444         if test "$aix_use_runtimelinking" = yes; then
22445           shared_flag="$shared_flag "'${wl}-G'
22446         fi
22447       else
22448         # not using gcc
22449         if test "$host_cpu" = ia64; then
22450         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22451         # chokes on -Wl,-G. The following line is correct:
22452           shared_flag='-G'
22453         else
22454           if test "$aix_use_runtimelinking" = yes; then
22455             shared_flag='${wl}-G'
22456           else
22457             shared_flag='${wl}-bM:SRE'
22458           fi
22459         fi
22460       fi
22461
22462       # It seems that -bexpall does not export symbols beginning with
22463       # underscore (_), so it is better to generate a list of symbols to export.
22464       always_export_symbols_F77=yes
22465       if test "$aix_use_runtimelinking" = yes; then
22466         # Warning - without using the other runtime loading flags (-brtl),
22467         # -berok will link without error, but may produce a broken library.
22468         allow_undefined_flag_F77='-berok'
22469        # Determine the default libpath from the value encoded in an empty executable.
22470        cat >conftest.$ac_ext <<_ACEOF
22471       program main
22472
22473       end
22474 _ACEOF
22475 rm -f conftest.$ac_objext conftest$ac_exeext
22476 if { (ac_try="$ac_link"
22477 case "(($ac_try" in
22478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479   *) ac_try_echo=$ac_try;;
22480 esac
22481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22482   (eval "$ac_link") 2>conftest.er1
22483   ac_status=$?
22484   grep -v '^ *+' conftest.er1 >conftest.err
22485   rm -f conftest.er1
22486   cat conftest.err >&5
22487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488   (exit $ac_status); } &&
22489          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22490   { (case "(($ac_try" in
22491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492   *) ac_try_echo=$ac_try;;
22493 esac
22494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495   (eval "$ac_try") 2>&5
22496   ac_status=$?
22497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498   (exit $ac_status); }; } &&
22499          { ac_try='test -s conftest$ac_exeext'
22500   { (case "(($ac_try" in
22501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502   *) ac_try_echo=$ac_try;;
22503 esac
22504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22505   (eval "$ac_try") 2>&5
22506   ac_status=$?
22507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508   (exit $ac_status); }; }; then
22509
22510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22511 }'`
22512 # Check for a 64-bit object if we didn't find anything.
22513 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; }
22514 }'`; fi
22515 else
22516   echo "$as_me: failed program was:" >&5
22517 sed 's/^/| /' conftest.$ac_ext >&5
22518
22519
22520 fi
22521
22522 rm -f core conftest.err conftest.$ac_objext \
22523       conftest$ac_exeext conftest.$ac_ext
22524 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22525
22526        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22527         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"
22528        else
22529         if test "$host_cpu" = ia64; then
22530           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22531           allow_undefined_flag_F77="-z nodefs"
22532           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"
22533         else
22534          # Determine the default libpath from the value encoded in an empty executable.
22535          cat >conftest.$ac_ext <<_ACEOF
22536       program main
22537
22538       end
22539 _ACEOF
22540 rm -f conftest.$ac_objext conftest$ac_exeext
22541 if { (ac_try="$ac_link"
22542 case "(($ac_try" in
22543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22544   *) ac_try_echo=$ac_try;;
22545 esac
22546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22547   (eval "$ac_link") 2>conftest.er1
22548   ac_status=$?
22549   grep -v '^ *+' conftest.er1 >conftest.err
22550   rm -f conftest.er1
22551   cat conftest.err >&5
22552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553   (exit $ac_status); } &&
22554          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22555   { (case "(($ac_try" in
22556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22557   *) ac_try_echo=$ac_try;;
22558 esac
22559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22560   (eval "$ac_try") 2>&5
22561   ac_status=$?
22562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563   (exit $ac_status); }; } &&
22564          { ac_try='test -s conftest$ac_exeext'
22565   { (case "(($ac_try" in
22566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567   *) ac_try_echo=$ac_try;;
22568 esac
22569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22570   (eval "$ac_try") 2>&5
22571   ac_status=$?
22572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573   (exit $ac_status); }; }; then
22574
22575 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22576 }'`
22577 # Check for a 64-bit object if we didn't find anything.
22578 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; }
22579 }'`; fi
22580 else
22581   echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22583
22584
22585 fi
22586
22587 rm -f core conftest.err conftest.$ac_objext \
22588       conftest$ac_exeext conftest.$ac_ext
22589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22590
22591          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22592           # Warning - without using the other run time loading flags,
22593           # -berok will link without error, but may produce a broken library.
22594           no_undefined_flag_F77=' ${wl}-bernotok'
22595           allow_undefined_flag_F77=' ${wl}-berok'
22596           # Exported symbols can be pulled into shared objects from archives
22597           whole_archive_flag_spec_F77='$convenience'
22598           archive_cmds_need_lc_F77=yes
22599           # This is similar to how AIX traditionally builds its shared libraries.
22600           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'
22601         fi
22602       fi
22603       ;;
22604
22605     amigaos*)
22606       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)'
22607       hardcode_libdir_flag_spec_F77='-L$libdir'
22608       hardcode_minus_L_F77=yes
22609       # see comment about different semantics on the GNU ld section
22610       ld_shlibs_F77=no
22611       ;;
22612
22613     bsdi[45]*)
22614       export_dynamic_flag_spec_F77=-rdynamic
22615       ;;
22616
22617     cygwin* | mingw* | pw32*)
22618       # When not using gcc, we currently assume that we are using
22619       # Microsoft Visual C++.
22620       # hardcode_libdir_flag_spec is actually meaningless, as there is
22621       # no search path for DLLs.
22622       hardcode_libdir_flag_spec_F77=' '
22623       allow_undefined_flag_F77=unsupported
22624       # Tell ltmain to make .lib files, not .a files.
22625       libext=lib
22626       # Tell ltmain to make .dll files, not .so files.
22627       shrext_cmds=".dll"
22628       # FIXME: Setting linknames here is a bad hack.
22629       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22630       # The linker will automatically build a .lib file if we build a DLL.
22631       old_archive_From_new_cmds_F77='true'
22632       # FIXME: Should let the user specify the lib program.
22633       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22634       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22635       enable_shared_with_static_runtimes_F77=yes
22636       ;;
22637
22638     darwin* | rhapsody*)
22639       case $host_os in
22640         rhapsody* | darwin1.[012])
22641          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22642          ;;
22643        *) # Darwin 1.3 on
22644          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22645            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22646          else
22647            case ${MACOSX_DEPLOYMENT_TARGET} in
22648              10.[012])
22649                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22650                ;;
22651              10.*)
22652                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22653                ;;
22654            esac
22655          fi
22656          ;;
22657       esac
22658       archive_cmds_need_lc_F77=no
22659       hardcode_direct_F77=no
22660       hardcode_automatic_F77=yes
22661       hardcode_shlibpath_var_F77=unsupported
22662       whole_archive_flag_spec_F77=''
22663       link_all_deplibs_F77=yes
22664     if test "$GCC" = yes ; then
22665         output_verbose_link_cmd='echo'
22666         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22667       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22668       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22669       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}'
22670       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}'
22671     else
22672       case $cc_basename in
22673         xlc*)
22674          output_verbose_link_cmd='echo'
22675          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22676          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22677           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22678          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}'
22679           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}'
22680           ;;
22681        *)
22682          ld_shlibs_F77=no
22683           ;;
22684       esac
22685     fi
22686       ;;
22687
22688     dgux*)
22689       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22690       hardcode_libdir_flag_spec_F77='-L$libdir'
22691       hardcode_shlibpath_var_F77=no
22692       ;;
22693
22694     freebsd1*)
22695       ld_shlibs_F77=no
22696       ;;
22697
22698     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22699     # support.  Future versions do this automatically, but an explicit c++rt0.o
22700     # does not break anything, and helps significantly (at the cost of a little
22701     # extra space).
22702     freebsd2.2*)
22703       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22704       hardcode_libdir_flag_spec_F77='-R$libdir'
22705       hardcode_direct_F77=yes
22706       hardcode_shlibpath_var_F77=no
22707       ;;
22708
22709     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22710     freebsd2*)
22711       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22712       hardcode_direct_F77=yes
22713       hardcode_minus_L_F77=yes
22714       hardcode_shlibpath_var_F77=no
22715       ;;
22716
22717     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22718     freebsd* | kfreebsd*-gnu | dragonfly*)
22719       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22720       hardcode_libdir_flag_spec_F77='-R$libdir'
22721       hardcode_direct_F77=yes
22722       hardcode_shlibpath_var_F77=no
22723       ;;
22724
22725     hpux9*)
22726       if test "$GCC" = yes; then
22727         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'
22728       else
22729         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'
22730       fi
22731       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22732       hardcode_libdir_separator_F77=:
22733       hardcode_direct_F77=yes
22734
22735       # hardcode_minus_L: Not really in the search PATH,
22736       # but as the default location of the library.
22737       hardcode_minus_L_F77=yes
22738       export_dynamic_flag_spec_F77='${wl}-E'
22739       ;;
22740
22741     hpux10*)
22742       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22743         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22744       else
22745         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22746       fi
22747       if test "$with_gnu_ld" = no; then
22748         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22749         hardcode_libdir_separator_F77=:
22750
22751         hardcode_direct_F77=yes
22752         export_dynamic_flag_spec_F77='${wl}-E'
22753
22754         # hardcode_minus_L: Not really in the search PATH,
22755         # but as the default location of the library.
22756         hardcode_minus_L_F77=yes
22757       fi
22758       ;;
22759
22760     hpux11*)
22761       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22762         case $host_cpu in
22763         hppa*64*)
22764           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22765           ;;
22766         ia64*)
22767           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22768           ;;
22769         *)
22770           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22771           ;;
22772         esac
22773       else
22774         case $host_cpu in
22775         hppa*64*)
22776           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22777           ;;
22778         ia64*)
22779           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22780           ;;
22781         *)
22782           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22783           ;;
22784         esac
22785       fi
22786       if test "$with_gnu_ld" = no; then
22787         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22788         hardcode_libdir_separator_F77=:
22789
22790         case $host_cpu in
22791         hppa*64*|ia64*)
22792           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22793           hardcode_direct_F77=no
22794           hardcode_shlibpath_var_F77=no
22795           ;;
22796         *)
22797           hardcode_direct_F77=yes
22798           export_dynamic_flag_spec_F77='${wl}-E'
22799
22800           # hardcode_minus_L: Not really in the search PATH,
22801           # but as the default location of the library.
22802           hardcode_minus_L_F77=yes
22803           ;;
22804         esac
22805       fi
22806       ;;
22807
22808     irix5* | irix6* | nonstopux*)
22809       if test "$GCC" = yes; then
22810         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'
22811       else
22812         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'
22813         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22814       fi
22815       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22816       hardcode_libdir_separator_F77=:
22817       link_all_deplibs_F77=yes
22818       ;;
22819
22820     netbsd*)
22821       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22822         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22823       else
22824         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22825       fi
22826       hardcode_libdir_flag_spec_F77='-R$libdir'
22827       hardcode_direct_F77=yes
22828       hardcode_shlibpath_var_F77=no
22829       ;;
22830
22831     newsos6)
22832       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22833       hardcode_direct_F77=yes
22834       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22835       hardcode_libdir_separator_F77=:
22836       hardcode_shlibpath_var_F77=no
22837       ;;
22838
22839     openbsd*)
22840       hardcode_direct_F77=yes
22841       hardcode_shlibpath_var_F77=no
22842       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22843         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22844         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22845         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22846         export_dynamic_flag_spec_F77='${wl}-E'
22847       else
22848        case $host_os in
22849          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22850            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22851            hardcode_libdir_flag_spec_F77='-R$libdir'
22852            ;;
22853          *)
22854            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22855            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22856            ;;
22857        esac
22858       fi
22859       ;;
22860
22861     os2*)
22862       hardcode_libdir_flag_spec_F77='-L$libdir'
22863       hardcode_minus_L_F77=yes
22864       allow_undefined_flag_F77=unsupported
22865       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'
22866       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22867       ;;
22868
22869     osf3*)
22870       if test "$GCC" = yes; then
22871         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22872         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'
22873       else
22874         allow_undefined_flag_F77=' -expect_unresolved \*'
22875         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'
22876       fi
22877       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22878       hardcode_libdir_separator_F77=:
22879       ;;
22880
22881     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22882       if test "$GCC" = yes; then
22883         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22884         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'
22885         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22886       else
22887         allow_undefined_flag_F77=' -expect_unresolved \*'
22888         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'
22889         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~
22890         $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'
22891
22892         # Both c and cxx compiler support -rpath directly
22893         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22894       fi
22895       hardcode_libdir_separator_F77=:
22896       ;;
22897
22898     solaris*)
22899       no_undefined_flag_F77=' -z text'
22900       if test "$GCC" = yes; then
22901         wlarc='${wl}'
22902         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22903         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22904           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22905       else
22906         wlarc=''
22907         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22908         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22909         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22910       fi
22911       hardcode_libdir_flag_spec_F77='-R$libdir'
22912       hardcode_shlibpath_var_F77=no
22913       case $host_os in
22914       solaris2.[0-5] | solaris2.[0-5].*) ;;
22915       *)
22916         # The compiler driver will combine linker options so we
22917         # cannot just pass the convience library names through
22918         # without $wl, iff we do not link with $LD.
22919         # Luckily, gcc supports the same syntax we need for Sun Studio.
22920         # Supported since Solaris 2.6 (maybe 2.5.1?)
22921         case $wlarc in
22922         '')
22923           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22924         *)
22925           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' ;;
22926         esac ;;
22927       esac
22928       link_all_deplibs_F77=yes
22929       ;;
22930
22931     sunos4*)
22932       if test "x$host_vendor" = xsequent; then
22933         # Use $CC to link under sequent, because it throws in some extra .o
22934         # files that make .init and .fini sections work.
22935         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22936       else
22937         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22938       fi
22939       hardcode_libdir_flag_spec_F77='-L$libdir'
22940       hardcode_direct_F77=yes
22941       hardcode_minus_L_F77=yes
22942       hardcode_shlibpath_var_F77=no
22943       ;;
22944
22945     sysv4)
22946       case $host_vendor in
22947         sni)
22948           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22949           hardcode_direct_F77=yes # is this really true???
22950         ;;
22951         siemens)
22952           ## LD is ld it makes a PLAMLIB
22953           ## CC just makes a GrossModule.
22954           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22955           reload_cmds_F77='$CC -r -o $output$reload_objs'
22956           hardcode_direct_F77=no
22957         ;;
22958         motorola)
22959           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22960           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22961         ;;
22962       esac
22963       runpath_var='LD_RUN_PATH'
22964       hardcode_shlibpath_var_F77=no
22965       ;;
22966
22967     sysv4.3*)
22968       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22969       hardcode_shlibpath_var_F77=no
22970       export_dynamic_flag_spec_F77='-Bexport'
22971       ;;
22972
22973     sysv4*MP*)
22974       if test -d /usr/nec; then
22975         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22976         hardcode_shlibpath_var_F77=no
22977         runpath_var=LD_RUN_PATH
22978         hardcode_runpath_var=yes
22979         ld_shlibs_F77=yes
22980       fi
22981       ;;
22982
22983     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22984       no_undefined_flag_F77='${wl}-z,text'
22985       archive_cmds_need_lc_F77=no
22986       hardcode_shlibpath_var_F77=no
22987       runpath_var='LD_RUN_PATH'
22988
22989       if test "$GCC" = yes; then
22990         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22991         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22992       else
22993         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22994         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22995       fi
22996       ;;
22997
22998     sysv5* | sco3.2v5* | sco5v6*)
22999       # Note: We can NOT use -z defs as we might desire, because we do not
23000       # link with -lc, and that would cause any symbols used from libc to
23001       # always be unresolved, which means just about no library would
23002       # ever link correctly.  If we're not using GNU ld we use -z text
23003       # though, which does catch some bad symbols but isn't as heavy-handed
23004       # as -z defs.
23005       no_undefined_flag_F77='${wl}-z,text'
23006       allow_undefined_flag_F77='${wl}-z,nodefs'
23007       archive_cmds_need_lc_F77=no
23008       hardcode_shlibpath_var_F77=no
23009       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23010       hardcode_libdir_separator_F77=':'
23011       link_all_deplibs_F77=yes
23012       export_dynamic_flag_spec_F77='${wl}-Bexport'
23013       runpath_var='LD_RUN_PATH'
23014
23015       if test "$GCC" = yes; then
23016         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23017         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23018       else
23019         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23020         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23021       fi
23022       ;;
23023
23024     uts4*)
23025       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23026       hardcode_libdir_flag_spec_F77='-L$libdir'
23027       hardcode_shlibpath_var_F77=no
23028       ;;
23029
23030     *)
23031       ld_shlibs_F77=no
23032       ;;
23033     esac
23034   fi
23035
23036 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23037 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
23038 test "$ld_shlibs_F77" = no && can_build_shared=no
23039
23040 #
23041 # Do we need to explicitly link libc?
23042 #
23043 case "x$archive_cmds_need_lc_F77" in
23044 x|xyes)
23045   # Assume -lc should be added
23046   archive_cmds_need_lc_F77=yes
23047
23048   if test "$enable_shared" = yes && test "$GCC" = yes; then
23049     case $archive_cmds_F77 in
23050     *'~'*)
23051       # FIXME: we may have to deal with multi-command sequences.
23052       ;;
23053     '$CC '*)
23054       # Test whether the compiler implicitly links with -lc since on some
23055       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23056       # to ld, don't add -lc before -lgcc.
23057       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23058 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23059       $rm conftest*
23060       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23061
23062       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23063   (eval $ac_compile) 2>&5
23064   ac_status=$?
23065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066   (exit $ac_status); } 2>conftest.err; then
23067         soname=conftest
23068         lib=conftest
23069         libobjs=conftest.$ac_objext
23070         deplibs=
23071         wl=$lt_prog_compiler_wl_F77
23072         pic_flag=$lt_prog_compiler_pic_F77
23073         compiler_flags=-v
23074         linker_flags=-v
23075         verstring=
23076         output_objdir=.
23077         libname=conftest
23078         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23079         allow_undefined_flag_F77=
23080         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23081   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23082   ac_status=$?
23083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084   (exit $ac_status); }
23085         then
23086           archive_cmds_need_lc_F77=no
23087         else
23088           archive_cmds_need_lc_F77=yes
23089         fi
23090         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23091       else
23092         cat conftest.err 1>&5
23093       fi
23094       $rm conftest*
23095       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23096 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23097       ;;
23098     esac
23099   fi
23100   ;;
23101 esac
23102
23103 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23104 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23105 library_names_spec=
23106 libname_spec='lib$name'
23107 soname_spec=
23108 shrext_cmds=".so"
23109 postinstall_cmds=
23110 postuninstall_cmds=
23111 finish_cmds=
23112 finish_eval=
23113 shlibpath_var=
23114 shlibpath_overrides_runpath=unknown
23115 version_type=none
23116 dynamic_linker="$host_os ld.so"
23117 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23118 if test "$GCC" = yes; then
23119   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23120   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23121     # if the path contains ";" then we assume it to be the separator
23122     # otherwise default to the standard path separator (i.e. ":") - it is
23123     # assumed that no part of a normal pathname contains ";" but that should
23124     # okay in the real world where ";" in dirpaths is itself problematic.
23125     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23126   else
23127     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23128   fi
23129 else
23130   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23131 fi
23132 need_lib_prefix=unknown
23133 hardcode_into_libs=no
23134
23135 # when you set need_version to no, make sure it does not cause -set_version
23136 # flags to be left without arguments
23137 need_version=unknown
23138
23139 case $host_os in
23140 aix3*)
23141   version_type=linux
23142   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23143   shlibpath_var=LIBPATH
23144
23145   # AIX 3 has no versioning support, so we append a major version to the name.
23146   soname_spec='${libname}${release}${shared_ext}$major'
23147   ;;
23148
23149 aix4* | aix5*)
23150   version_type=linux
23151   need_lib_prefix=no
23152   need_version=no
23153   hardcode_into_libs=yes
23154   if test "$host_cpu" = ia64; then
23155     # AIX 5 supports IA64
23156     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23157     shlibpath_var=LD_LIBRARY_PATH
23158   else
23159     # With GCC up to 2.95.x, collect2 would create an import file
23160     # for dependence libraries.  The import file would start with
23161     # the line `#! .'.  This would cause the generated library to
23162     # depend on `.', always an invalid library.  This was fixed in
23163     # development snapshots of GCC prior to 3.0.
23164     case $host_os in
23165       aix4 | aix4.[01] | aix4.[01].*)
23166       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23167            echo ' yes '
23168            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23169         :
23170       else
23171         can_build_shared=no
23172       fi
23173       ;;
23174     esac
23175     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23176     # soname into executable. Probably we can add versioning support to
23177     # collect2, so additional links can be useful in future.
23178     if test "$aix_use_runtimelinking" = yes; then
23179       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23180       # instead of lib<name>.a to let people know that these are not
23181       # typical AIX shared libraries.
23182       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23183     else
23184       # We preserve .a as extension for shared libraries through AIX4.2
23185       # and later when we are not doing run time linking.
23186       library_names_spec='${libname}${release}.a $libname.a'
23187       soname_spec='${libname}${release}${shared_ext}$major'
23188     fi
23189     shlibpath_var=LIBPATH
23190   fi
23191   ;;
23192
23193 amigaos*)
23194   library_names_spec='$libname.ixlibrary $libname.a'
23195   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23196   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'
23197   ;;
23198
23199 beos*)
23200   library_names_spec='${libname}${shared_ext}'
23201   dynamic_linker="$host_os ld.so"
23202   shlibpath_var=LIBRARY_PATH
23203   ;;
23204
23205 bsdi[45]*)
23206   version_type=linux
23207   need_version=no
23208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23209   soname_spec='${libname}${release}${shared_ext}$major'
23210   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23211   shlibpath_var=LD_LIBRARY_PATH
23212   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23213   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23214   # the default ld.so.conf also contains /usr/contrib/lib and
23215   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23216   # libtool to hard-code these into programs
23217   ;;
23218
23219 cygwin* | mingw* | pw32*)
23220   version_type=windows
23221   shrext_cmds=".dll"
23222   need_version=no
23223   need_lib_prefix=no
23224
23225   case $GCC,$host_os in
23226   yes,cygwin* | yes,mingw* | yes,pw32*)
23227     library_names_spec='$libname.dll.a'
23228     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23229     postinstall_cmds='base_file=`basename \${file}`~
23230       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23231       dldir=$destdir/`dirname \$dlpath`~
23232       test -d \$dldir || mkdir -p \$dldir~
23233       $install_prog $dir/$dlname \$dldir/$dlname~
23234       chmod a+x \$dldir/$dlname'
23235     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23236       dlpath=$dir/\$dldll~
23237        $rm \$dlpath'
23238     shlibpath_overrides_runpath=yes
23239
23240     case $host_os in
23241     cygwin*)
23242       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23243       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23244       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23245       ;;
23246     mingw*)
23247       # MinGW DLLs use traditional 'lib' prefix
23248       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23249       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23250       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23251         # It is most probably a Windows format PATH printed by
23252         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23253         # path with ; separators, and with drive letters. We can handle the
23254         # drive letters (cygwin fileutils understands them), so leave them,
23255         # especially as we might pass files found there to a mingw objdump,
23256         # which wouldn't understand a cygwinified path. Ahh.
23257         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23258       else
23259         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23260       fi
23261       ;;
23262     pw32*)
23263       # pw32 DLLs use 'pw' prefix rather than 'lib'
23264       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23265       ;;
23266     esac
23267     ;;
23268
23269   *)
23270     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23271     ;;
23272   esac
23273   dynamic_linker='Win32 ld.exe'
23274   # FIXME: first we should search . and the directory the executable is in
23275   shlibpath_var=PATH
23276   ;;
23277
23278 darwin* | rhapsody*)
23279   dynamic_linker="$host_os dyld"
23280   version_type=darwin
23281   need_lib_prefix=no
23282   need_version=no
23283   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23284   soname_spec='${libname}${release}${major}$shared_ext'
23285   shlibpath_overrides_runpath=yes
23286   shlibpath_var=DYLD_LIBRARY_PATH
23287   shrext_cmds='.dylib'
23288   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23289   if test "$GCC" = yes; then
23290     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"`
23291   else
23292     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23293   fi
23294   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23295   ;;
23296
23297 dgux*)
23298   version_type=linux
23299   need_lib_prefix=no
23300   need_version=no
23301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23302   soname_spec='${libname}${release}${shared_ext}$major'
23303   shlibpath_var=LD_LIBRARY_PATH
23304   ;;
23305
23306 freebsd1*)
23307   dynamic_linker=no
23308   ;;
23309
23310 kfreebsd*-gnu)
23311   version_type=linux
23312   need_lib_prefix=no
23313   need_version=no
23314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23315   soname_spec='${libname}${release}${shared_ext}$major'
23316   shlibpath_var=LD_LIBRARY_PATH
23317   shlibpath_overrides_runpath=no
23318   hardcode_into_libs=yes
23319   dynamic_linker='GNU ld.so'
23320   ;;
23321
23322 freebsd* | dragonfly*)
23323   # DragonFly does not have aout.  When/if they implement a new
23324   # versioning mechanism, adjust this.
23325   if test -x /usr/bin/objformat; then
23326     objformat=`/usr/bin/objformat`
23327   else
23328     case $host_os in
23329     freebsd[123]*) objformat=aout ;;
23330     *) objformat=elf ;;
23331     esac
23332   fi
23333   version_type=freebsd-$objformat
23334   case $version_type in
23335     freebsd-elf*)
23336       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23337       need_version=no
23338       need_lib_prefix=no
23339       ;;
23340     freebsd-*)
23341       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23342       need_version=yes
23343       ;;
23344   esac
23345   shlibpath_var=LD_LIBRARY_PATH
23346   case $host_os in
23347   freebsd2*)
23348     shlibpath_overrides_runpath=yes
23349     ;;
23350   freebsd3.[01]* | freebsdelf3.[01]*)
23351     shlibpath_overrides_runpath=yes
23352     hardcode_into_libs=yes
23353     ;;
23354   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23355   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23356     shlibpath_overrides_runpath=no
23357     hardcode_into_libs=yes
23358     ;;
23359   freebsd*) # from 4.6 on
23360     shlibpath_overrides_runpath=yes
23361     hardcode_into_libs=yes
23362     ;;
23363   esac
23364   ;;
23365
23366 gnu*)
23367   version_type=linux
23368   need_lib_prefix=no
23369   need_version=no
23370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23371   soname_spec='${libname}${release}${shared_ext}$major'
23372   shlibpath_var=LD_LIBRARY_PATH
23373   hardcode_into_libs=yes
23374   ;;
23375
23376 hpux9* | hpux10* | hpux11*)
23377   # Give a soname corresponding to the major version so that dld.sl refuses to
23378   # link against other versions.
23379   version_type=sunos
23380   need_lib_prefix=no
23381   need_version=no
23382   case $host_cpu in
23383   ia64*)
23384     shrext_cmds='.so'
23385     hardcode_into_libs=yes
23386     dynamic_linker="$host_os dld.so"
23387     shlibpath_var=LD_LIBRARY_PATH
23388     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23389     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23390     soname_spec='${libname}${release}${shared_ext}$major'
23391     if test "X$HPUX_IA64_MODE" = X32; then
23392       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23393     else
23394       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23395     fi
23396     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23397     ;;
23398    hppa*64*)
23399      shrext_cmds='.sl'
23400      hardcode_into_libs=yes
23401      dynamic_linker="$host_os dld.sl"
23402      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23403      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23404      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23405      soname_spec='${libname}${release}${shared_ext}$major'
23406      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23407      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23408      ;;
23409    *)
23410     shrext_cmds='.sl'
23411     dynamic_linker="$host_os dld.sl"
23412     shlibpath_var=SHLIB_PATH
23413     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23414     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23415     soname_spec='${libname}${release}${shared_ext}$major'
23416     ;;
23417   esac
23418   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23419   postinstall_cmds='chmod 555 $lib'
23420   ;;
23421
23422 interix3*)
23423   version_type=linux
23424   need_lib_prefix=no
23425   need_version=no
23426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23427   soname_spec='${libname}${release}${shared_ext}$major'
23428   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23429   shlibpath_var=LD_LIBRARY_PATH
23430   shlibpath_overrides_runpath=no
23431   hardcode_into_libs=yes
23432   ;;
23433
23434 irix5* | irix6* | nonstopux*)
23435   case $host_os in
23436     nonstopux*) version_type=nonstopux ;;
23437     *)
23438         if test "$lt_cv_prog_gnu_ld" = yes; then
23439                 version_type=linux
23440         else
23441                 version_type=irix
23442         fi ;;
23443   esac
23444   need_lib_prefix=no
23445   need_version=no
23446   soname_spec='${libname}${release}${shared_ext}$major'
23447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23448   case $host_os in
23449   irix5* | nonstopux*)
23450     libsuff= shlibsuff=
23451     ;;
23452   *)
23453     case $LD in # libtool.m4 will add one of these switches to LD
23454     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23455       libsuff= shlibsuff= libmagic=32-bit;;
23456     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23457       libsuff=32 shlibsuff=N32 libmagic=N32;;
23458     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23459       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23460     *) libsuff= shlibsuff= libmagic=never-match;;
23461     esac
23462     ;;
23463   esac
23464   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23465   shlibpath_overrides_runpath=no
23466   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23467   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23468   hardcode_into_libs=yes
23469   ;;
23470
23471 # No shared lib support for Linux oldld, aout, or coff.
23472 linux*oldld* | linux*aout* | linux*coff*)
23473   dynamic_linker=no
23474   ;;
23475
23476 # This must be Linux ELF.
23477 linux*)
23478   version_type=linux
23479   need_lib_prefix=no
23480   need_version=no
23481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23482   soname_spec='${libname}${release}${shared_ext}$major'
23483   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23484   shlibpath_var=LD_LIBRARY_PATH
23485   shlibpath_overrides_runpath=no
23486   # This implies no fast_install, which is unacceptable.
23487   # Some rework will be needed to allow for fast_install
23488   # before this can be enabled.
23489   hardcode_into_libs=yes
23490
23491   # Append ld.so.conf contents to the search path
23492   if test -f /etc/ld.so.conf; then
23493     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' ' '`
23494     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23495   fi
23496
23497   # We used to test for /lib/ld.so.1 and disable shared libraries on
23498   # powerpc, because MkLinux only supported shared libraries with the
23499   # GNU dynamic linker.  Since this was broken with cross compilers,
23500   # most powerpc-linux boxes support dynamic linking these days and
23501   # people can always --disable-shared, the test was removed, and we
23502   # assume the GNU/Linux dynamic linker is in use.
23503   dynamic_linker='GNU/Linux ld.so'
23504   ;;
23505
23506 knetbsd*-gnu)
23507   version_type=linux
23508   need_lib_prefix=no
23509   need_version=no
23510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23511   soname_spec='${libname}${release}${shared_ext}$major'
23512   shlibpath_var=LD_LIBRARY_PATH
23513   shlibpath_overrides_runpath=no
23514   hardcode_into_libs=yes
23515   dynamic_linker='GNU ld.so'
23516   ;;
23517
23518 netbsd*)
23519   version_type=sunos
23520   need_lib_prefix=no
23521   need_version=no
23522   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23523     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23524     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23525     dynamic_linker='NetBSD (a.out) ld.so'
23526   else
23527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23528     soname_spec='${libname}${release}${shared_ext}$major'
23529     dynamic_linker='NetBSD ld.elf_so'
23530   fi
23531   shlibpath_var=LD_LIBRARY_PATH
23532   shlibpath_overrides_runpath=yes
23533   hardcode_into_libs=yes
23534   ;;
23535
23536 newsos6)
23537   version_type=linux
23538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23539   shlibpath_var=LD_LIBRARY_PATH
23540   shlibpath_overrides_runpath=yes
23541   ;;
23542
23543 nto-qnx*)
23544   version_type=linux
23545   need_lib_prefix=no
23546   need_version=no
23547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23548   soname_spec='${libname}${release}${shared_ext}$major'
23549   shlibpath_var=LD_LIBRARY_PATH
23550   shlibpath_overrides_runpath=yes
23551   ;;
23552
23553 openbsd*)
23554   version_type=sunos
23555   sys_lib_dlsearch_path_spec="/usr/lib"
23556   need_lib_prefix=no
23557   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23558   case $host_os in
23559     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23560     *)                         need_version=no  ;;
23561   esac
23562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23563   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23564   shlibpath_var=LD_LIBRARY_PATH
23565   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23566     case $host_os in
23567       openbsd2.[89] | openbsd2.[89].*)
23568         shlibpath_overrides_runpath=no
23569         ;;
23570       *)
23571         shlibpath_overrides_runpath=yes
23572         ;;
23573       esac
23574   else
23575     shlibpath_overrides_runpath=yes
23576   fi
23577   ;;
23578
23579 os2*)
23580   libname_spec='$name'
23581   shrext_cmds=".dll"
23582   need_lib_prefix=no
23583   library_names_spec='$libname${shared_ext} $libname.a'
23584   dynamic_linker='OS/2 ld.exe'
23585   shlibpath_var=LIBPATH
23586   ;;
23587
23588 osf3* | osf4* | osf5*)
23589   version_type=osf
23590   need_lib_prefix=no
23591   need_version=no
23592   soname_spec='${libname}${release}${shared_ext}$major'
23593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23594   shlibpath_var=LD_LIBRARY_PATH
23595   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23596   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23597   ;;
23598
23599 solaris*)
23600   version_type=linux
23601   need_lib_prefix=no
23602   need_version=no
23603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23604   soname_spec='${libname}${release}${shared_ext}$major'
23605   shlibpath_var=LD_LIBRARY_PATH
23606   shlibpath_overrides_runpath=yes
23607   hardcode_into_libs=yes
23608   # ldd complains unless libraries are executable
23609   postinstall_cmds='chmod +x $lib'
23610   ;;
23611
23612 sunos4*)
23613   version_type=sunos
23614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23615   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23616   shlibpath_var=LD_LIBRARY_PATH
23617   shlibpath_overrides_runpath=yes
23618   if test "$with_gnu_ld" = yes; then
23619     need_lib_prefix=no
23620   fi
23621   need_version=yes
23622   ;;
23623
23624 sysv4 | sysv4.3*)
23625   version_type=linux
23626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23627   soname_spec='${libname}${release}${shared_ext}$major'
23628   shlibpath_var=LD_LIBRARY_PATH
23629   case $host_vendor in
23630     sni)
23631       shlibpath_overrides_runpath=no
23632       need_lib_prefix=no
23633       export_dynamic_flag_spec='${wl}-Blargedynsym'
23634       runpath_var=LD_RUN_PATH
23635       ;;
23636     siemens)
23637       need_lib_prefix=no
23638       ;;
23639     motorola)
23640       need_lib_prefix=no
23641       need_version=no
23642       shlibpath_overrides_runpath=no
23643       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23644       ;;
23645   esac
23646   ;;
23647
23648 sysv4*MP*)
23649   if test -d /usr/nec ;then
23650     version_type=linux
23651     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23652     soname_spec='$libname${shared_ext}.$major'
23653     shlibpath_var=LD_LIBRARY_PATH
23654   fi
23655   ;;
23656
23657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23658   version_type=freebsd-elf
23659   need_lib_prefix=no
23660   need_version=no
23661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23662   soname_spec='${libname}${release}${shared_ext}$major'
23663   shlibpath_var=LD_LIBRARY_PATH
23664   hardcode_into_libs=yes
23665   if test "$with_gnu_ld" = yes; then
23666     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23667     shlibpath_overrides_runpath=no
23668   else
23669     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23670     shlibpath_overrides_runpath=yes
23671     case $host_os in
23672       sco3.2v5*)
23673         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23674         ;;
23675     esac
23676   fi
23677   sys_lib_dlsearch_path_spec='/usr/lib'
23678   ;;
23679
23680 uts4*)
23681   version_type=linux
23682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23683   soname_spec='${libname}${release}${shared_ext}$major'
23684   shlibpath_var=LD_LIBRARY_PATH
23685   ;;
23686
23687 *)
23688   dynamic_linker=no
23689   ;;
23690 esac
23691 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23692 echo "${ECHO_T}$dynamic_linker" >&6; }
23693 test "$dynamic_linker" = no && can_build_shared=no
23694
23695 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23696 if test "$GCC" = yes; then
23697   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23698 fi
23699
23700 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23701 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23702 hardcode_action_F77=
23703 if test -n "$hardcode_libdir_flag_spec_F77" || \
23704    test -n "$runpath_var_F77" || \
23705    test "X$hardcode_automatic_F77" = "Xyes" ; then
23706
23707   # We can hardcode non-existant directories.
23708   if test "$hardcode_direct_F77" != no &&
23709      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23710      # have to relink, otherwise we might link with an installed library
23711      # when we should be linking with a yet-to-be-installed one
23712      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23713      test "$hardcode_minus_L_F77" != no; then
23714     # Linking always hardcodes the temporary library directory.
23715     hardcode_action_F77=relink
23716   else
23717     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23718     hardcode_action_F77=immediate
23719   fi
23720 else
23721   # We cannot hardcode anything, or else we can only hardcode existing
23722   # directories.
23723   hardcode_action_F77=unsupported
23724 fi
23725 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23726 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23727
23728 if test "$hardcode_action_F77" = relink; then
23729   # Fast installation is not supported
23730   enable_fast_install=no
23731 elif test "$shlibpath_overrides_runpath" = yes ||
23732      test "$enable_shared" = no; then
23733   # Fast installation is not necessary
23734   enable_fast_install=needless
23735 fi
23736
23737
23738 # The else clause should only fire when bootstrapping the
23739 # libtool distribution, otherwise you forgot to ship ltmain.sh
23740 # with your package, and you will get complaints that there are
23741 # no rules to generate ltmain.sh.
23742 if test -f "$ltmain"; then
23743   # See if we are running on zsh, and set the options which allow our commands through
23744   # without removal of \ escapes.
23745   if test -n "${ZSH_VERSION+set}" ; then
23746     setopt NO_GLOB_SUBST
23747   fi
23748   # Now quote all the things that may contain metacharacters while being
23749   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23750   # variables and quote the copies for generation of the libtool script.
23751   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23752     SED SHELL STRIP \
23753     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23754     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23755     deplibs_check_method reload_flag reload_cmds need_locks \
23756     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23757     lt_cv_sys_global_symbol_to_c_name_address \
23758     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23759     old_postinstall_cmds old_postuninstall_cmds \
23760     compiler_F77 \
23761     CC_F77 \
23762     LD_F77 \
23763     lt_prog_compiler_wl_F77 \
23764     lt_prog_compiler_pic_F77 \
23765     lt_prog_compiler_static_F77 \
23766     lt_prog_compiler_no_builtin_flag_F77 \
23767     export_dynamic_flag_spec_F77 \
23768     thread_safe_flag_spec_F77 \
23769     whole_archive_flag_spec_F77 \
23770     enable_shared_with_static_runtimes_F77 \
23771     old_archive_cmds_F77 \
23772     old_archive_from_new_cmds_F77 \
23773     predep_objects_F77 \
23774     postdep_objects_F77 \
23775     predeps_F77 \
23776     postdeps_F77 \
23777     compiler_lib_search_path_F77 \
23778     archive_cmds_F77 \
23779     archive_expsym_cmds_F77 \
23780     postinstall_cmds_F77 \
23781     postuninstall_cmds_F77 \
23782     old_archive_from_expsyms_cmds_F77 \
23783     allow_undefined_flag_F77 \
23784     no_undefined_flag_F77 \
23785     export_symbols_cmds_F77 \
23786     hardcode_libdir_flag_spec_F77 \
23787     hardcode_libdir_flag_spec_ld_F77 \
23788     hardcode_libdir_separator_F77 \
23789     hardcode_automatic_F77 \
23790     module_cmds_F77 \
23791     module_expsym_cmds_F77 \
23792     lt_cv_prog_compiler_c_o_F77 \
23793     exclude_expsyms_F77 \
23794     include_expsyms_F77; do
23795
23796     case $var in
23797     old_archive_cmds_F77 | \
23798     old_archive_from_new_cmds_F77 | \
23799     archive_cmds_F77 | \
23800     archive_expsym_cmds_F77 | \
23801     module_cmds_F77 | \
23802     module_expsym_cmds_F77 | \
23803     old_archive_from_expsyms_cmds_F77 | \
23804     export_symbols_cmds_F77 | \
23805     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23806     postinstall_cmds | postuninstall_cmds | \
23807     old_postinstall_cmds | old_postuninstall_cmds | \
23808     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23809       # Double-quote double-evaled strings.
23810       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23811       ;;
23812     *)
23813       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23814       ;;
23815     esac
23816   done
23817
23818   case $lt_echo in
23819   *'\$0 --fallback-echo"')
23820     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23821     ;;
23822   esac
23823
23824 cfgfile="$ofile"
23825
23826   cat <<__EOF__ >> "$cfgfile"
23827 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23828
23829 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23830
23831 # Shell to use when invoking shell scripts.
23832 SHELL=$lt_SHELL
23833
23834 # Whether or not to build shared libraries.
23835 build_libtool_libs=$enable_shared
23836
23837 # Whether or not to build static libraries.
23838 build_old_libs=$enable_static
23839
23840 # Whether or not to add -lc for building shared libraries.
23841 build_libtool_need_lc=$archive_cmds_need_lc_F77
23842
23843 # Whether or not to disallow shared libs when runtime libs are static
23844 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23845
23846 # Whether or not to optimize for fast installation.
23847 fast_install=$enable_fast_install
23848
23849 # The host system.
23850 host_alias=$host_alias
23851 host=$host
23852 host_os=$host_os
23853
23854 # The build system.
23855 build_alias=$build_alias
23856 build=$build
23857 build_os=$build_os
23858
23859 # An echo program that does not interpret backslashes.
23860 echo=$lt_echo
23861
23862 # The archiver.
23863 AR=$lt_AR
23864 AR_FLAGS=$lt_AR_FLAGS
23865
23866 # A C compiler.
23867 LTCC=$lt_LTCC
23868
23869 # LTCC compiler flags.
23870 LTCFLAGS=$lt_LTCFLAGS
23871
23872 # A language-specific compiler.
23873 CC=$lt_compiler_F77
23874
23875 # Is the compiler the GNU C compiler?
23876 with_gcc=$GCC_F77
23877
23878 # An ERE matcher.
23879 EGREP=$lt_EGREP
23880
23881 # The linker used to build libraries.
23882 LD=$lt_LD_F77
23883
23884 # Whether we need hard or soft links.
23885 LN_S=$lt_LN_S
23886
23887 # A BSD-compatible nm program.
23888 NM=$lt_NM
23889
23890 # A symbol stripping program
23891 STRIP=$lt_STRIP
23892
23893 # Used to examine libraries when file_magic_cmd begins "file"
23894 MAGIC_CMD=$MAGIC_CMD
23895
23896 # Used on cygwin: DLL creation program.
23897 DLLTOOL="$DLLTOOL"
23898
23899 # Used on cygwin: object dumper.
23900 OBJDUMP="$OBJDUMP"
23901
23902 # Used on cygwin: assembler.
23903 AS="$AS"
23904
23905 # The name of the directory that contains temporary libtool files.
23906 objdir=$objdir
23907
23908 # How to create reloadable object files.
23909 reload_flag=$lt_reload_flag
23910 reload_cmds=$lt_reload_cmds
23911
23912 # How to pass a linker flag through the compiler.
23913 wl=$lt_lt_prog_compiler_wl_F77
23914
23915 # Object file suffix (normally "o").
23916 objext="$ac_objext"
23917
23918 # Old archive suffix (normally "a").
23919 libext="$libext"
23920
23921 # Shared library suffix (normally ".so").
23922 shrext_cmds='$shrext_cmds'
23923
23924 # Executable file suffix (normally "").
23925 exeext="$exeext"
23926
23927 # Additional compiler flags for building library objects.
23928 pic_flag=$lt_lt_prog_compiler_pic_F77
23929 pic_mode=$pic_mode
23930
23931 # What is the maximum length of a command?
23932 max_cmd_len=$lt_cv_sys_max_cmd_len
23933
23934 # Does compiler simultaneously support -c and -o options?
23935 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23936
23937 # Must we lock files when doing compilation?
23938 need_locks=$lt_need_locks
23939
23940 # Do we need the lib prefix for modules?
23941 need_lib_prefix=$need_lib_prefix
23942
23943 # Do we need a version for libraries?
23944 need_version=$need_version
23945
23946 # Whether dlopen is supported.
23947 dlopen_support=$enable_dlopen
23948
23949 # Whether dlopen of programs is supported.
23950 dlopen_self=$enable_dlopen_self
23951
23952 # Whether dlopen of statically linked programs is supported.
23953 dlopen_self_static=$enable_dlopen_self_static
23954
23955 # Compiler flag to prevent dynamic linking.
23956 link_static_flag=$lt_lt_prog_compiler_static_F77
23957
23958 # Compiler flag to turn off builtin functions.
23959 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23960
23961 # Compiler flag to allow reflexive dlopens.
23962 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23963
23964 # Compiler flag to generate shared objects directly from archives.
23965 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23966
23967 # Compiler flag to generate thread-safe objects.
23968 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23969
23970 # Library versioning type.
23971 version_type=$version_type
23972
23973 # Format of library name prefix.
23974 libname_spec=$lt_libname_spec
23975
23976 # List of archive names.  First name is the real one, the rest are links.
23977 # The last name is the one that the linker finds with -lNAME.
23978 library_names_spec=$lt_library_names_spec
23979
23980 # The coded name of the library, if different from the real name.
23981 soname_spec=$lt_soname_spec
23982
23983 # Commands used to build and install an old-style archive.
23984 RANLIB=$lt_RANLIB
23985 old_archive_cmds=$lt_old_archive_cmds_F77
23986 old_postinstall_cmds=$lt_old_postinstall_cmds
23987 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23988
23989 # Create an old-style archive from a shared archive.
23990 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23991
23992 # Create a temporary old-style archive to link instead of a shared archive.
23993 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23994
23995 # Commands used to build and install a shared archive.
23996 archive_cmds=$lt_archive_cmds_F77
23997 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23998 postinstall_cmds=$lt_postinstall_cmds
23999 postuninstall_cmds=$lt_postuninstall_cmds
24000
24001 # Commands used to build a loadable module (assumed same as above if empty)
24002 module_cmds=$lt_module_cmds_F77
24003 module_expsym_cmds=$lt_module_expsym_cmds_F77
24004
24005 # Commands to strip libraries.
24006 old_striplib=$lt_old_striplib
24007 striplib=$lt_striplib
24008
24009 # Dependencies to place before the objects being linked to create a
24010 # shared library.
24011 predep_objects=$lt_predep_objects_F77
24012
24013 # Dependencies to place after the objects being linked to create a
24014 # shared library.
24015 postdep_objects=$lt_postdep_objects_F77
24016
24017 # Dependencies to place before the objects being linked to create a
24018 # shared library.
24019 predeps=$lt_predeps_F77
24020
24021 # Dependencies to place after the objects being linked to create a
24022 # shared library.
24023 postdeps=$lt_postdeps_F77
24024
24025 # The library search path used internally by the compiler when linking
24026 # a shared library.
24027 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24028
24029 # Method to check whether dependent libraries are shared objects.
24030 deplibs_check_method=$lt_deplibs_check_method
24031
24032 # Command to use when deplibs_check_method == file_magic.
24033 file_magic_cmd=$lt_file_magic_cmd
24034
24035 # Flag that allows shared libraries with undefined symbols to be built.
24036 allow_undefined_flag=$lt_allow_undefined_flag_F77
24037
24038 # Flag that forces no undefined symbols.
24039 no_undefined_flag=$lt_no_undefined_flag_F77
24040
24041 # Commands used to finish a libtool library installation in a directory.
24042 finish_cmds=$lt_finish_cmds
24043
24044 # Same as above, but a single script fragment to be evaled but not shown.
24045 finish_eval=$lt_finish_eval
24046
24047 # Take the output of nm and produce a listing of raw symbols and C names.
24048 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24049
24050 # Transform the output of nm in a proper C declaration
24051 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24052
24053 # Transform the output of nm in a C name address pair
24054 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24055
24056 # This is the shared library runtime path variable.
24057 runpath_var=$runpath_var
24058
24059 # This is the shared library path variable.
24060 shlibpath_var=$shlibpath_var
24061
24062 # Is shlibpath searched before the hard-coded library search path?
24063 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24064
24065 # How to hardcode a shared library path into an executable.
24066 hardcode_action=$hardcode_action_F77
24067
24068 # Whether we should hardcode library paths into libraries.
24069 hardcode_into_libs=$hardcode_into_libs
24070
24071 # Flag to hardcode \$libdir into a binary during linking.
24072 # This must work even if \$libdir does not exist.
24073 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24074
24075 # If ld is used when linking, flag to hardcode \$libdir into
24076 # a binary during linking. This must work even if \$libdir does
24077 # not exist.
24078 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24079
24080 # Whether we need a single -rpath flag with a separated argument.
24081 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24082
24083 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24084 # resulting binary.
24085 hardcode_direct=$hardcode_direct_F77
24086
24087 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24088 # resulting binary.
24089 hardcode_minus_L=$hardcode_minus_L_F77
24090
24091 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24092 # the resulting binary.
24093 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24094
24095 # Set to yes if building a shared library automatically hardcodes DIR into the library
24096 # and all subsequent libraries and executables linked against it.
24097 hardcode_automatic=$hardcode_automatic_F77
24098
24099 # Variables whose values should be saved in libtool wrapper scripts and
24100 # restored at relink time.
24101 variables_saved_for_relink="$variables_saved_for_relink"
24102
24103 # Whether libtool must link a program against all its dependency libraries.
24104 link_all_deplibs=$link_all_deplibs_F77
24105
24106 # Compile-time system search path for libraries
24107 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24108
24109 # Run-time system search path for libraries
24110 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24111
24112 # Fix the shell variable \$srcfile for the compiler.
24113 fix_srcfile_path="$fix_srcfile_path_F77"
24114
24115 # Set to yes if exported symbols are required.
24116 always_export_symbols=$always_export_symbols_F77
24117
24118 # The commands to list exported symbols.
24119 export_symbols_cmds=$lt_export_symbols_cmds_F77
24120
24121 # The commands to extract the exported symbol list from a shared archive.
24122 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24123
24124 # Symbols that should not be listed in the preloaded symbols.
24125 exclude_expsyms=$lt_exclude_expsyms_F77
24126
24127 # Symbols that must always be exported.
24128 include_expsyms=$lt_include_expsyms_F77
24129
24130 # ### END LIBTOOL TAG CONFIG: $tagname
24131
24132 __EOF__
24133
24134
24135 else
24136   # If there is no Makefile yet, we rely on a make rule to execute
24137   # `config.status --recheck' to rerun these tests and create the
24138   # libtool script then.
24139   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24140   if test -f "$ltmain_in"; then
24141     test -f Makefile && make "$ltmain"
24142   fi
24143 fi
24144
24145
24146 ac_ext=c
24147 ac_cpp='$CPP $CPPFLAGS'
24148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24151
24152 CC="$lt_save_CC"
24153
24154         else
24155           tagname=""
24156         fi
24157         ;;
24158
24159       GCJ)
24160         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24161           ac_ext=c
24162 ac_cpp='$CPP $CPPFLAGS'
24163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24166
24167
24168 # Source file extension for Java test sources.
24169 ac_ext=java
24170
24171 # Object file extension for compiled Java test sources.
24172 objext=o
24173 objext_GCJ=$objext
24174
24175 # Code to be used in simple compile tests
24176 lt_simple_compile_test_code="class foo {}\n"
24177
24178 # Code to be used in simple link tests
24179 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24180
24181 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24182
24183 # If no C compiler was specified, use CC.
24184 LTCC=${LTCC-"$CC"}
24185
24186 # If no C compiler flags were specified, use CFLAGS.
24187 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24188
24189 # Allow CC to be a program name with arguments.
24190 compiler=$CC
24191
24192
24193 # save warnings/boilerplate of simple test code
24194 ac_outfile=conftest.$ac_objext
24195 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24196 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24197 _lt_compiler_boilerplate=`cat conftest.err`
24198 $rm conftest*
24199
24200 ac_outfile=conftest.$ac_objext
24201 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24202 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24203 _lt_linker_boilerplate=`cat conftest.err`
24204 $rm conftest*
24205
24206
24207 # Allow CC to be a program name with arguments.
24208 lt_save_CC="$CC"
24209 CC=${GCJ-"gcj"}
24210 compiler=$CC
24211 compiler_GCJ=$CC
24212 for cc_temp in $compiler""; do
24213   case $cc_temp in
24214     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24215     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24216     \-*) ;;
24217     *) break;;
24218   esac
24219 done
24220 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24221
24222
24223 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24224 archive_cmds_need_lc_GCJ=no
24225
24226 old_archive_cmds_GCJ=$old_archive_cmds
24227
24228
24229 lt_prog_compiler_no_builtin_flag_GCJ=
24230
24231 if test "$GCC" = yes; then
24232   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24233
24234
24235 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24236 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24237 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24238   echo $ECHO_N "(cached) $ECHO_C" >&6
24239 else
24240   lt_cv_prog_compiler_rtti_exceptions=no
24241   ac_outfile=conftest.$ac_objext
24242    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24243    lt_compiler_flag="-fno-rtti -fno-exceptions"
24244    # Insert the option either (1) after the last *FLAGS variable, or
24245    # (2) before a word containing "conftest.", or (3) at the end.
24246    # Note that $ac_compile itself does not contain backslashes and begins
24247    # with a dollar sign (not a hyphen), so the echo should work correctly.
24248    # The option is referenced via a variable to avoid confusing sed.
24249    lt_compile=`echo "$ac_compile" | $SED \
24250    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24251    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24252    -e 's:$: $lt_compiler_flag:'`
24253    (eval echo "\"\$as_me:24253: $lt_compile\"" >&5)
24254    (eval "$lt_compile" 2>conftest.err)
24255    ac_status=$?
24256    cat conftest.err >&5
24257    echo "$as_me:24257: \$? = $ac_status" >&5
24258    if (exit $ac_status) && test -s "$ac_outfile"; then
24259      # The compiler can only warn and ignore the option if not recognized
24260      # So say no if there are warnings other than the usual output.
24261      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24262      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24263      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24264        lt_cv_prog_compiler_rtti_exceptions=yes
24265      fi
24266    fi
24267    $rm conftest*
24268
24269 fi
24270 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24271 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24272
24273 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24274     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24275 else
24276     :
24277 fi
24278
24279 fi
24280
24281 lt_prog_compiler_wl_GCJ=
24282 lt_prog_compiler_pic_GCJ=
24283 lt_prog_compiler_static_GCJ=
24284
24285 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24286 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24287
24288   if test "$GCC" = yes; then
24289     lt_prog_compiler_wl_GCJ='-Wl,'
24290     lt_prog_compiler_static_GCJ='-static'
24291
24292     case $host_os in
24293       aix*)
24294       # All AIX code is PIC.
24295       if test "$host_cpu" = ia64; then
24296         # AIX 5 now supports IA64 processor
24297         lt_prog_compiler_static_GCJ='-Bstatic'
24298       fi
24299       ;;
24300
24301     amigaos*)
24302       # FIXME: we need at least 68020 code to build shared libraries, but
24303       # adding the `-m68020' flag to GCC prevents building anything better,
24304       # like `-m68040'.
24305       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24306       ;;
24307
24308     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24309       # PIC is the default for these OSes.
24310       ;;
24311
24312     mingw* | pw32* | os2*)
24313       # This hack is so that the source file can tell whether it is being
24314       # built for inclusion in a dll (and should export symbols for example).
24315       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24316       ;;
24317
24318     darwin* | rhapsody*)
24319       # PIC is the default on this platform
24320       # Common symbols not allowed in MH_DYLIB files
24321       lt_prog_compiler_pic_GCJ='-fno-common'
24322       ;;
24323
24324     interix3*)
24325       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24326       # Instead, we relocate shared libraries at runtime.
24327       ;;
24328
24329     msdosdjgpp*)
24330       # Just because we use GCC doesn't mean we suddenly get shared libraries
24331       # on systems that don't support them.
24332       lt_prog_compiler_can_build_shared_GCJ=no
24333       enable_shared=no
24334       ;;
24335
24336     sysv4*MP*)
24337       if test -d /usr/nec; then
24338         lt_prog_compiler_pic_GCJ=-Kconform_pic
24339       fi
24340       ;;
24341
24342     hpux*)
24343       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24344       # not for PA HP-UX.
24345       case $host_cpu in
24346       hppa*64*|ia64*)
24347         # +Z the default
24348         ;;
24349       *)
24350         lt_prog_compiler_pic_GCJ='-fPIC'
24351         ;;
24352       esac
24353       ;;
24354
24355     *)
24356       lt_prog_compiler_pic_GCJ='-fPIC'
24357       ;;
24358     esac
24359   else
24360     # PORTME Check for flag to pass linker flags through the system compiler.
24361     case $host_os in
24362     aix*)
24363       lt_prog_compiler_wl_GCJ='-Wl,'
24364       if test "$host_cpu" = ia64; then
24365         # AIX 5 now supports IA64 processor
24366         lt_prog_compiler_static_GCJ='-Bstatic'
24367       else
24368         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24369       fi
24370       ;;
24371       darwin*)
24372         # PIC is the default on this platform
24373         # Common symbols not allowed in MH_DYLIB files
24374        case $cc_basename in
24375          xlc*)
24376          lt_prog_compiler_pic_GCJ='-qnocommon'
24377          lt_prog_compiler_wl_GCJ='-Wl,'
24378          ;;
24379        esac
24380        ;;
24381
24382     mingw* | pw32* | os2*)
24383       # This hack is so that the source file can tell whether it is being
24384       # built for inclusion in a dll (and should export symbols for example).
24385       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24386       ;;
24387
24388     hpux9* | hpux10* | hpux11*)
24389       lt_prog_compiler_wl_GCJ='-Wl,'
24390       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24391       # not for PA HP-UX.
24392       case $host_cpu in
24393       hppa*64*|ia64*)
24394         # +Z the default
24395         ;;
24396       *)
24397         lt_prog_compiler_pic_GCJ='+Z'
24398         ;;
24399       esac
24400       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24401       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24402       ;;
24403
24404     irix5* | irix6* | nonstopux*)
24405       lt_prog_compiler_wl_GCJ='-Wl,'
24406       # PIC (with -KPIC) is the default.
24407       lt_prog_compiler_static_GCJ='-non_shared'
24408       ;;
24409
24410     newsos6)
24411       lt_prog_compiler_pic_GCJ='-KPIC'
24412       lt_prog_compiler_static_GCJ='-Bstatic'
24413       ;;
24414
24415     linux*)
24416       case $cc_basename in
24417       icc* | ecc*)
24418         lt_prog_compiler_wl_GCJ='-Wl,'
24419         lt_prog_compiler_pic_GCJ='-KPIC'
24420         lt_prog_compiler_static_GCJ='-static'
24421         ;;
24422       pgcc* | pgf77* | pgf90* | pgf95*)
24423         # Portland Group compilers (*not* the Pentium gcc compiler,
24424         # which looks to be a dead project)
24425         lt_prog_compiler_wl_GCJ='-Wl,'
24426         lt_prog_compiler_pic_GCJ='-fpic'
24427         lt_prog_compiler_static_GCJ='-Bstatic'
24428         ;;
24429       ccc*)
24430         lt_prog_compiler_wl_GCJ='-Wl,'
24431         # All Alpha code is PIC.
24432         lt_prog_compiler_static_GCJ='-non_shared'
24433         ;;
24434       esac
24435       ;;
24436
24437     osf3* | osf4* | osf5*)
24438       lt_prog_compiler_wl_GCJ='-Wl,'
24439       # All OSF/1 code is PIC.
24440       lt_prog_compiler_static_GCJ='-non_shared'
24441       ;;
24442
24443     solaris*)
24444       lt_prog_compiler_pic_GCJ='-KPIC'
24445       lt_prog_compiler_static_GCJ='-Bstatic'
24446       case $cc_basename in
24447       f77* | f90* | f95*)
24448         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24449       *)
24450         lt_prog_compiler_wl_GCJ='-Wl,';;
24451       esac
24452       ;;
24453
24454     sunos4*)
24455       lt_prog_compiler_wl_GCJ='-Qoption ld '
24456       lt_prog_compiler_pic_GCJ='-PIC'
24457       lt_prog_compiler_static_GCJ='-Bstatic'
24458       ;;
24459
24460     sysv4 | sysv4.2uw2* | sysv4.3*)
24461       lt_prog_compiler_wl_GCJ='-Wl,'
24462       lt_prog_compiler_pic_GCJ='-KPIC'
24463       lt_prog_compiler_static_GCJ='-Bstatic'
24464       ;;
24465
24466     sysv4*MP*)
24467       if test -d /usr/nec ;then
24468         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24469         lt_prog_compiler_static_GCJ='-Bstatic'
24470       fi
24471       ;;
24472
24473     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24474       lt_prog_compiler_wl_GCJ='-Wl,'
24475       lt_prog_compiler_pic_GCJ='-KPIC'
24476       lt_prog_compiler_static_GCJ='-Bstatic'
24477       ;;
24478
24479     unicos*)
24480       lt_prog_compiler_wl_GCJ='-Wl,'
24481       lt_prog_compiler_can_build_shared_GCJ=no
24482       ;;
24483
24484     uts4*)
24485       lt_prog_compiler_pic_GCJ='-pic'
24486       lt_prog_compiler_static_GCJ='-Bstatic'
24487       ;;
24488
24489     *)
24490       lt_prog_compiler_can_build_shared_GCJ=no
24491       ;;
24492     esac
24493   fi
24494
24495 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24496 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24497
24498 #
24499 # Check to make sure the PIC flag actually works.
24500 #
24501 if test -n "$lt_prog_compiler_pic_GCJ"; then
24502
24503 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24504 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24505 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24506   echo $ECHO_N "(cached) $ECHO_C" >&6
24507 else
24508   lt_prog_compiler_pic_works_GCJ=no
24509   ac_outfile=conftest.$ac_objext
24510    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24511    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24512    # Insert the option either (1) after the last *FLAGS variable, or
24513    # (2) before a word containing "conftest.", or (3) at the end.
24514    # Note that $ac_compile itself does not contain backslashes and begins
24515    # with a dollar sign (not a hyphen), so the echo should work correctly.
24516    # The option is referenced via a variable to avoid confusing sed.
24517    lt_compile=`echo "$ac_compile" | $SED \
24518    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24519    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24520    -e 's:$: $lt_compiler_flag:'`
24521    (eval echo "\"\$as_me:24521: $lt_compile\"" >&5)
24522    (eval "$lt_compile" 2>conftest.err)
24523    ac_status=$?
24524    cat conftest.err >&5
24525    echo "$as_me:24525: \$? = $ac_status" >&5
24526    if (exit $ac_status) && test -s "$ac_outfile"; then
24527      # The compiler can only warn and ignore the option if not recognized
24528      # So say no if there are warnings other than the usual output.
24529      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24530      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24531      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24532        lt_prog_compiler_pic_works_GCJ=yes
24533      fi
24534    fi
24535    $rm conftest*
24536
24537 fi
24538 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24539 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24540
24541 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24542     case $lt_prog_compiler_pic_GCJ in
24543      "" | " "*) ;;
24544      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24545      esac
24546 else
24547     lt_prog_compiler_pic_GCJ=
24548      lt_prog_compiler_can_build_shared_GCJ=no
24549 fi
24550
24551 fi
24552 case $host_os in
24553   # For platforms which do not support PIC, -DPIC is meaningless:
24554   *djgpp*)
24555     lt_prog_compiler_pic_GCJ=
24556     ;;
24557   *)
24558     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24559     ;;
24560 esac
24561
24562 #
24563 # Check to make sure the static flag actually works.
24564 #
24565 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24566 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24567 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24568 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24569   echo $ECHO_N "(cached) $ECHO_C" >&6
24570 else
24571   lt_prog_compiler_static_works_GCJ=no
24572    save_LDFLAGS="$LDFLAGS"
24573    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24574    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24575    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24576      # The linker can only warn and ignore the option if not recognized
24577      # So say no if there are warnings
24578      if test -s conftest.err; then
24579        # Append any errors to the config.log.
24580        cat conftest.err 1>&5
24581        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24582        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24583        if diff conftest.exp conftest.er2 >/dev/null; then
24584          lt_prog_compiler_static_works_GCJ=yes
24585        fi
24586      else
24587        lt_prog_compiler_static_works_GCJ=yes
24588      fi
24589    fi
24590    $rm conftest*
24591    LDFLAGS="$save_LDFLAGS"
24592
24593 fi
24594 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24595 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24596
24597 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24598     :
24599 else
24600     lt_prog_compiler_static_GCJ=
24601 fi
24602
24603
24604 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24605 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24606 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24607   echo $ECHO_N "(cached) $ECHO_C" >&6
24608 else
24609   lt_cv_prog_compiler_c_o_GCJ=no
24610    $rm -r conftest 2>/dev/null
24611    mkdir conftest
24612    cd conftest
24613    mkdir out
24614    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24615
24616    lt_compiler_flag="-o out/conftest2.$ac_objext"
24617    # Insert the option either (1) after the last *FLAGS variable, or
24618    # (2) before a word containing "conftest.", or (3) at the end.
24619    # Note that $ac_compile itself does not contain backslashes and begins
24620    # with a dollar sign (not a hyphen), so the echo should work correctly.
24621    lt_compile=`echo "$ac_compile" | $SED \
24622    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24623    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24624    -e 's:$: $lt_compiler_flag:'`
24625    (eval echo "\"\$as_me:24625: $lt_compile\"" >&5)
24626    (eval "$lt_compile" 2>out/conftest.err)
24627    ac_status=$?
24628    cat out/conftest.err >&5
24629    echo "$as_me:24629: \$? = $ac_status" >&5
24630    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24631    then
24632      # The compiler can only warn and ignore the option if not recognized
24633      # So say no if there are warnings
24634      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24635      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24636      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24637        lt_cv_prog_compiler_c_o_GCJ=yes
24638      fi
24639    fi
24640    chmod u+w . 2>&5
24641    $rm conftest*
24642    # SGI C++ compiler will create directory out/ii_files/ for
24643    # template instantiation
24644    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24645    $rm out/* && rmdir out
24646    cd ..
24647    rmdir conftest
24648    $rm conftest*
24649
24650 fi
24651 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24652 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24653
24654
24655 hard_links="nottested"
24656 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24657   # do not overwrite the value of need_locks provided by the user
24658   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24659 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24660   hard_links=yes
24661   $rm conftest*
24662   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24663   touch conftest.a
24664   ln conftest.a conftest.b 2>&5 || hard_links=no
24665   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24666   { echo "$as_me:$LINENO: result: $hard_links" >&5
24667 echo "${ECHO_T}$hard_links" >&6; }
24668   if test "$hard_links" = no; then
24669     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24670 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24671     need_locks=warn
24672   fi
24673 else
24674   need_locks=no
24675 fi
24676
24677 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24678 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24679
24680   runpath_var=
24681   allow_undefined_flag_GCJ=
24682   enable_shared_with_static_runtimes_GCJ=no
24683   archive_cmds_GCJ=
24684   archive_expsym_cmds_GCJ=
24685   old_archive_From_new_cmds_GCJ=
24686   old_archive_from_expsyms_cmds_GCJ=
24687   export_dynamic_flag_spec_GCJ=
24688   whole_archive_flag_spec_GCJ=
24689   thread_safe_flag_spec_GCJ=
24690   hardcode_libdir_flag_spec_GCJ=
24691   hardcode_libdir_flag_spec_ld_GCJ=
24692   hardcode_libdir_separator_GCJ=
24693   hardcode_direct_GCJ=no
24694   hardcode_minus_L_GCJ=no
24695   hardcode_shlibpath_var_GCJ=unsupported
24696   link_all_deplibs_GCJ=unknown
24697   hardcode_automatic_GCJ=no
24698   module_cmds_GCJ=
24699   module_expsym_cmds_GCJ=
24700   always_export_symbols_GCJ=no
24701   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24702   # include_expsyms should be a list of space-separated symbols to be *always*
24703   # included in the symbol list
24704   include_expsyms_GCJ=
24705   # exclude_expsyms can be an extended regexp of symbols to exclude
24706   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24707   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24708   # as well as any symbol that contains `d'.
24709   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24710   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24711   # platforms (ab)use it in PIC code, but their linkers get confused if
24712   # the symbol is explicitly referenced.  Since portable code cannot
24713   # rely on this symbol name, it's probably fine to never include it in
24714   # preloaded symbol tables.
24715   extract_expsyms_cmds=
24716   # Just being paranoid about ensuring that cc_basename is set.
24717   for cc_temp in $compiler""; do
24718   case $cc_temp in
24719     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24720     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24721     \-*) ;;
24722     *) break;;
24723   esac
24724 done
24725 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24726
24727   case $host_os in
24728   cygwin* | mingw* | pw32*)
24729     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24730     # When not using gcc, we currently assume that we are using
24731     # Microsoft Visual C++.
24732     if test "$GCC" != yes; then
24733       with_gnu_ld=no
24734     fi
24735     ;;
24736   interix*)
24737     # we just hope/assume this is gcc and not c89 (= MSVC++)
24738     with_gnu_ld=yes
24739     ;;
24740   openbsd*)
24741     with_gnu_ld=no
24742     ;;
24743   esac
24744
24745   ld_shlibs_GCJ=yes
24746   if test "$with_gnu_ld" = yes; then
24747     # If archive_cmds runs LD, not CC, wlarc should be empty
24748     wlarc='${wl}'
24749
24750     # Set some defaults for GNU ld with shared library support. These
24751     # are reset later if shared libraries are not supported. Putting them
24752     # here allows them to be overridden if necessary.
24753     runpath_var=LD_RUN_PATH
24754     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24755     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24756     # ancient GNU ld didn't support --whole-archive et. al.
24757     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24758         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24759       else
24760         whole_archive_flag_spec_GCJ=
24761     fi
24762     supports_anon_versioning=no
24763     case `$LD -v 2>/dev/null` in
24764       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24765       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24766       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24767       *\ 2.11.*) ;; # other 2.11 versions
24768       *) supports_anon_versioning=yes ;;
24769     esac
24770
24771     # See if GNU ld supports shared libraries.
24772     case $host_os in
24773     aix3* | aix4* | aix5*)
24774       # On AIX/PPC, the GNU linker is very broken
24775       if test "$host_cpu" != ia64; then
24776         ld_shlibs_GCJ=no
24777         cat <<EOF 1>&2
24778
24779 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24780 *** to be unable to reliably create shared libraries on AIX.
24781 *** Therefore, libtool is disabling shared libraries support.  If you
24782 *** really care for shared libraries, you may want to modify your PATH
24783 *** so that a non-GNU linker is found, and then restart.
24784
24785 EOF
24786       fi
24787       ;;
24788
24789     amigaos*)
24790       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)'
24791       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24792       hardcode_minus_L_GCJ=yes
24793
24794       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24795       # that the semantics of dynamic libraries on AmigaOS, at least up
24796       # to version 4, is to share data among multiple programs linked
24797       # with the same dynamic library.  Since this doesn't match the
24798       # behavior of shared libraries on other platforms, we can't use
24799       # them.
24800       ld_shlibs_GCJ=no
24801       ;;
24802
24803     beos*)
24804       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24805         allow_undefined_flag_GCJ=unsupported
24806         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24807         # support --undefined.  This deserves some investigation.  FIXME
24808         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24809       else
24810         ld_shlibs_GCJ=no
24811       fi
24812       ;;
24813
24814     cygwin* | mingw* | pw32*)
24815       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24816       # as there is no search path for DLLs.
24817       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24818       allow_undefined_flag_GCJ=unsupported
24819       always_export_symbols_GCJ=no
24820       enable_shared_with_static_runtimes_GCJ=yes
24821       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24822
24823       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24824         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24825         # If the export-symbols file already is a .def file (1st line
24826         # is EXPORTS), use it as is; otherwise, prepend...
24827         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24828           cp $export_symbols $output_objdir/$soname.def;
24829         else
24830           echo EXPORTS > $output_objdir/$soname.def;
24831           cat $export_symbols >> $output_objdir/$soname.def;
24832         fi~
24833         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24834       else
24835         ld_shlibs_GCJ=no
24836       fi
24837       ;;
24838
24839     interix3*)
24840       hardcode_direct_GCJ=no
24841       hardcode_shlibpath_var_GCJ=no
24842       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24843       export_dynamic_flag_spec_GCJ='${wl}-E'
24844       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24845       # Instead, shared libraries are loaded at an image base (0x10000000 by
24846       # default) and relocated if they conflict, which is a slow very memory
24847       # consuming and fragmenting process.  To avoid this, we pick a random,
24848       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24849       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24850       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'
24851       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'
24852       ;;
24853
24854     linux*)
24855       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24856         tmp_addflag=
24857         case $cc_basename,$host_cpu in
24858         pgcc*)                          # Portland Group C compiler
24859           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'
24860           tmp_addflag=' $pic_flag'
24861           ;;
24862         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24863           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'
24864           tmp_addflag=' $pic_flag -Mnomain' ;;
24865         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24866           tmp_addflag=' -i_dynamic' ;;
24867         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24868           tmp_addflag=' -i_dynamic -nofor_main' ;;
24869         ifc* | ifort*)                  # Intel Fortran compiler
24870           tmp_addflag=' -nofor_main' ;;
24871         esac
24872         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24873
24874         if test $supports_anon_versioning = yes; then
24875           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24876   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24877   $echo "local: *; };" >> $output_objdir/$libname.ver~
24878           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24879         fi
24880       else
24881         ld_shlibs_GCJ=no
24882       fi
24883       ;;
24884
24885     netbsd*)
24886       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24887         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24888         wlarc=
24889       else
24890         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24891         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24892       fi
24893       ;;
24894
24895     solaris*)
24896       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24897         ld_shlibs_GCJ=no
24898         cat <<EOF 1>&2
24899
24900 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24901 *** create shared libraries on Solaris systems.  Therefore, libtool
24902 *** is disabling shared libraries support.  We urge you to upgrade GNU
24903 *** binutils to release 2.9.1 or newer.  Another option is to modify
24904 *** your PATH or compiler configuration so that the native linker is
24905 *** used, and then restart.
24906
24907 EOF
24908       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24909         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24910         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24911       else
24912         ld_shlibs_GCJ=no
24913       fi
24914       ;;
24915
24916     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24917       case `$LD -v 2>&1` in
24918         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24919         ld_shlibs_GCJ=no
24920         cat <<_LT_EOF 1>&2
24921
24922 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24923 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24924 *** is disabling shared libraries support.  We urge you to upgrade GNU
24925 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24926 *** your PATH or compiler configuration so that the native linker is
24927 *** used, and then restart.
24928
24929 _LT_EOF
24930         ;;
24931         *)
24932           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24933             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24934             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24935             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24936           else
24937             ld_shlibs_GCJ=no
24938           fi
24939         ;;
24940       esac
24941       ;;
24942
24943     sunos4*)
24944       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24945       wlarc=
24946       hardcode_direct_GCJ=yes
24947       hardcode_shlibpath_var_GCJ=no
24948       ;;
24949
24950     *)
24951       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24952         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24953         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24954       else
24955         ld_shlibs_GCJ=no
24956       fi
24957       ;;
24958     esac
24959
24960     if test "$ld_shlibs_GCJ" = no; then
24961       runpath_var=
24962       hardcode_libdir_flag_spec_GCJ=
24963       export_dynamic_flag_spec_GCJ=
24964       whole_archive_flag_spec_GCJ=
24965     fi
24966   else
24967     # PORTME fill in a description of your system's linker (not GNU ld)
24968     case $host_os in
24969     aix3*)
24970       allow_undefined_flag_GCJ=unsupported
24971       always_export_symbols_GCJ=yes
24972       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'
24973       # Note: this linker hardcodes the directories in LIBPATH if there
24974       # are no directories specified by -L.
24975       hardcode_minus_L_GCJ=yes
24976       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24977         # Neither direct hardcoding nor static linking is supported with a
24978         # broken collect2.
24979         hardcode_direct_GCJ=unsupported
24980       fi
24981       ;;
24982
24983     aix4* | aix5*)
24984       if test "$host_cpu" = ia64; then
24985         # On IA64, the linker does run time linking by default, so we don't
24986         # have to do anything special.
24987         aix_use_runtimelinking=no
24988         exp_sym_flag='-Bexport'
24989         no_entry_flag=""
24990       else
24991         # If we're using GNU nm, then we don't want the "-C" option.
24992         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24993         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24994           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'
24995         else
24996           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'
24997         fi
24998         aix_use_runtimelinking=no
24999
25000         # Test if we are trying to use run time linking or normal
25001         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25002         # need to do runtime linking.
25003         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25004           for ld_flag in $LDFLAGS; do
25005           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25006             aix_use_runtimelinking=yes
25007             break
25008           fi
25009           done
25010           ;;
25011         esac
25012
25013         exp_sym_flag='-bexport'
25014         no_entry_flag='-bnoentry'
25015       fi
25016
25017       # When large executables or shared objects are built, AIX ld can
25018       # have problems creating the table of contents.  If linking a library
25019       # or program results in "error TOC overflow" add -mminimal-toc to
25020       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
25021       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25022
25023       archive_cmds_GCJ=''
25024       hardcode_direct_GCJ=yes
25025       hardcode_libdir_separator_GCJ=':'
25026       link_all_deplibs_GCJ=yes
25027
25028       if test "$GCC" = yes; then
25029         case $host_os in aix4.[012]|aix4.[012].*)
25030         # We only want to do this on AIX 4.2 and lower, the check
25031         # below for broken collect2 doesn't work under 4.3+
25032           collect2name=`${CC} -print-prog-name=collect2`
25033           if test -f "$collect2name" && \
25034            strings "$collect2name" | grep resolve_lib_name >/dev/null
25035           then
25036           # We have reworked collect2
25037           hardcode_direct_GCJ=yes
25038           else
25039           # We have old collect2
25040           hardcode_direct_GCJ=unsupported
25041           # It fails to find uninstalled libraries when the uninstalled
25042           # path is not listed in the libpath.  Setting hardcode_minus_L
25043           # to unsupported forces relinking
25044           hardcode_minus_L_GCJ=yes
25045           hardcode_libdir_flag_spec_GCJ='-L$libdir'
25046           hardcode_libdir_separator_GCJ=
25047           fi
25048           ;;
25049         esac
25050         shared_flag='-shared'
25051         if test "$aix_use_runtimelinking" = yes; then
25052           shared_flag="$shared_flag "'${wl}-G'
25053         fi
25054       else
25055         # not using gcc
25056         if test "$host_cpu" = ia64; then
25057         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25058         # chokes on -Wl,-G. The following line is correct:
25059           shared_flag='-G'
25060         else
25061           if test "$aix_use_runtimelinking" = yes; then
25062             shared_flag='${wl}-G'
25063           else
25064             shared_flag='${wl}-bM:SRE'
25065           fi
25066         fi
25067       fi
25068
25069       # It seems that -bexpall does not export symbols beginning with
25070       # underscore (_), so it is better to generate a list of symbols to export.
25071       always_export_symbols_GCJ=yes
25072       if test "$aix_use_runtimelinking" = yes; then
25073         # Warning - without using the other runtime loading flags (-brtl),
25074         # -berok will link without error, but may produce a broken library.
25075         allow_undefined_flag_GCJ='-berok'
25076        # Determine the default libpath from the value encoded in an empty executable.
25077        cat >conftest.$ac_ext <<_ACEOF
25078 /* confdefs.h.  */
25079 _ACEOF
25080 cat confdefs.h >>conftest.$ac_ext
25081 cat >>conftest.$ac_ext <<_ACEOF
25082 /* end confdefs.h.  */
25083
25084 int
25085 main ()
25086 {
25087
25088   ;
25089   return 0;
25090 }
25091 _ACEOF
25092 rm -f conftest.$ac_objext conftest$ac_exeext
25093 if { (ac_try="$ac_link"
25094 case "(($ac_try" in
25095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25096   *) ac_try_echo=$ac_try;;
25097 esac
25098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25099   (eval "$ac_link") 2>conftest.er1
25100   ac_status=$?
25101   grep -v '^ *+' conftest.er1 >conftest.err
25102   rm -f conftest.er1
25103   cat conftest.err >&5
25104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105   (exit $ac_status); } &&
25106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25107   { (case "(($ac_try" in
25108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109   *) ac_try_echo=$ac_try;;
25110 esac
25111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25112   (eval "$ac_try") 2>&5
25113   ac_status=$?
25114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115   (exit $ac_status); }; } &&
25116          { ac_try='test -s conftest$ac_exeext'
25117   { (case "(($ac_try" in
25118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119   *) ac_try_echo=$ac_try;;
25120 esac
25121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25122   (eval "$ac_try") 2>&5
25123   ac_status=$?
25124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125   (exit $ac_status); }; }; then
25126
25127 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25128 }'`
25129 # Check for a 64-bit object if we didn't find anything.
25130 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; }
25131 }'`; fi
25132 else
25133   echo "$as_me: failed program was:" >&5
25134 sed 's/^/| /' conftest.$ac_ext >&5
25135
25136
25137 fi
25138
25139 rm -f core conftest.err conftest.$ac_objext \
25140       conftest$ac_exeext conftest.$ac_ext
25141 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25142
25143        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25144         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"
25145        else
25146         if test "$host_cpu" = ia64; then
25147           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25148           allow_undefined_flag_GCJ="-z nodefs"
25149           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"
25150         else
25151          # Determine the default libpath from the value encoded in an empty executable.
25152          cat >conftest.$ac_ext <<_ACEOF
25153 /* confdefs.h.  */
25154 _ACEOF
25155 cat confdefs.h >>conftest.$ac_ext
25156 cat >>conftest.$ac_ext <<_ACEOF
25157 /* end confdefs.h.  */
25158
25159 int
25160 main ()
25161 {
25162
25163   ;
25164   return 0;
25165 }
25166 _ACEOF
25167 rm -f conftest.$ac_objext conftest$ac_exeext
25168 if { (ac_try="$ac_link"
25169 case "(($ac_try" in
25170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171   *) ac_try_echo=$ac_try;;
25172 esac
25173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25174   (eval "$ac_link") 2>conftest.er1
25175   ac_status=$?
25176   grep -v '^ *+' conftest.er1 >conftest.err
25177   rm -f conftest.er1
25178   cat conftest.err >&5
25179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180   (exit $ac_status); } &&
25181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25182   { (case "(($ac_try" in
25183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25184   *) ac_try_echo=$ac_try;;
25185 esac
25186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25187   (eval "$ac_try") 2>&5
25188   ac_status=$?
25189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190   (exit $ac_status); }; } &&
25191          { ac_try='test -s conftest$ac_exeext'
25192   { (case "(($ac_try" in
25193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25194   *) ac_try_echo=$ac_try;;
25195 esac
25196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25197   (eval "$ac_try") 2>&5
25198   ac_status=$?
25199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200   (exit $ac_status); }; }; then
25201
25202 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25203 }'`
25204 # Check for a 64-bit object if we didn't find anything.
25205 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; }
25206 }'`; fi
25207 else
25208   echo "$as_me: failed program was:" >&5
25209 sed 's/^/| /' conftest.$ac_ext >&5
25210
25211
25212 fi
25213
25214 rm -f core conftest.err conftest.$ac_objext \
25215       conftest$ac_exeext conftest.$ac_ext
25216 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25217
25218          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25219           # Warning - without using the other run time loading flags,
25220           # -berok will link without error, but may produce a broken library.
25221           no_undefined_flag_GCJ=' ${wl}-bernotok'
25222           allow_undefined_flag_GCJ=' ${wl}-berok'
25223           # Exported symbols can be pulled into shared objects from archives
25224           whole_archive_flag_spec_GCJ='$convenience'
25225           archive_cmds_need_lc_GCJ=yes
25226           # This is similar to how AIX traditionally builds its shared libraries.
25227           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'
25228         fi
25229       fi
25230       ;;
25231
25232     amigaos*)
25233       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)'
25234       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25235       hardcode_minus_L_GCJ=yes
25236       # see comment about different semantics on the GNU ld section
25237       ld_shlibs_GCJ=no
25238       ;;
25239
25240     bsdi[45]*)
25241       export_dynamic_flag_spec_GCJ=-rdynamic
25242       ;;
25243
25244     cygwin* | mingw* | pw32*)
25245       # When not using gcc, we currently assume that we are using
25246       # Microsoft Visual C++.
25247       # hardcode_libdir_flag_spec is actually meaningless, as there is
25248       # no search path for DLLs.
25249       hardcode_libdir_flag_spec_GCJ=' '
25250       allow_undefined_flag_GCJ=unsupported
25251       # Tell ltmain to make .lib files, not .a files.
25252       libext=lib
25253       # Tell ltmain to make .dll files, not .so files.
25254       shrext_cmds=".dll"
25255       # FIXME: Setting linknames here is a bad hack.
25256       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25257       # The linker will automatically build a .lib file if we build a DLL.
25258       old_archive_From_new_cmds_GCJ='true'
25259       # FIXME: Should let the user specify the lib program.
25260       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25261       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25262       enable_shared_with_static_runtimes_GCJ=yes
25263       ;;
25264
25265     darwin* | rhapsody*)
25266       case $host_os in
25267         rhapsody* | darwin1.[012])
25268          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25269          ;;
25270        *) # Darwin 1.3 on
25271          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25272            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25273          else
25274            case ${MACOSX_DEPLOYMENT_TARGET} in
25275              10.[012])
25276                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25277                ;;
25278              10.*)
25279                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25280                ;;
25281            esac
25282          fi
25283          ;;
25284       esac
25285       archive_cmds_need_lc_GCJ=no
25286       hardcode_direct_GCJ=no
25287       hardcode_automatic_GCJ=yes
25288       hardcode_shlibpath_var_GCJ=unsupported
25289       whole_archive_flag_spec_GCJ=''
25290       link_all_deplibs_GCJ=yes
25291     if test "$GCC" = yes ; then
25292         output_verbose_link_cmd='echo'
25293         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25294       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25295       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25296       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}'
25297       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}'
25298     else
25299       case $cc_basename in
25300         xlc*)
25301          output_verbose_link_cmd='echo'
25302          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25303          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25304           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25305          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}'
25306           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}'
25307           ;;
25308        *)
25309          ld_shlibs_GCJ=no
25310           ;;
25311       esac
25312     fi
25313       ;;
25314
25315     dgux*)
25316       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25317       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25318       hardcode_shlibpath_var_GCJ=no
25319       ;;
25320
25321     freebsd1*)
25322       ld_shlibs_GCJ=no
25323       ;;
25324
25325     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25326     # support.  Future versions do this automatically, but an explicit c++rt0.o
25327     # does not break anything, and helps significantly (at the cost of a little
25328     # extra space).
25329     freebsd2.2*)
25330       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25331       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25332       hardcode_direct_GCJ=yes
25333       hardcode_shlibpath_var_GCJ=no
25334       ;;
25335
25336     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25337     freebsd2*)
25338       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25339       hardcode_direct_GCJ=yes
25340       hardcode_minus_L_GCJ=yes
25341       hardcode_shlibpath_var_GCJ=no
25342       ;;
25343
25344     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25345     freebsd* | kfreebsd*-gnu | dragonfly*)
25346       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25347       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25348       hardcode_direct_GCJ=yes
25349       hardcode_shlibpath_var_GCJ=no
25350       ;;
25351
25352     hpux9*)
25353       if test "$GCC" = yes; then
25354         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'
25355       else
25356         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'
25357       fi
25358       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25359       hardcode_libdir_separator_GCJ=:
25360       hardcode_direct_GCJ=yes
25361
25362       # hardcode_minus_L: Not really in the search PATH,
25363       # but as the default location of the library.
25364       hardcode_minus_L_GCJ=yes
25365       export_dynamic_flag_spec_GCJ='${wl}-E'
25366       ;;
25367
25368     hpux10*)
25369       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25370         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25371       else
25372         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25373       fi
25374       if test "$with_gnu_ld" = no; then
25375         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25376         hardcode_libdir_separator_GCJ=:
25377
25378         hardcode_direct_GCJ=yes
25379         export_dynamic_flag_spec_GCJ='${wl}-E'
25380
25381         # hardcode_minus_L: Not really in the search PATH,
25382         # but as the default location of the library.
25383         hardcode_minus_L_GCJ=yes
25384       fi
25385       ;;
25386
25387     hpux11*)
25388       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25389         case $host_cpu in
25390         hppa*64*)
25391           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25392           ;;
25393         ia64*)
25394           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25395           ;;
25396         *)
25397           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25398           ;;
25399         esac
25400       else
25401         case $host_cpu in
25402         hppa*64*)
25403           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25404           ;;
25405         ia64*)
25406           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25407           ;;
25408         *)
25409           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25410           ;;
25411         esac
25412       fi
25413       if test "$with_gnu_ld" = no; then
25414         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25415         hardcode_libdir_separator_GCJ=:
25416
25417         case $host_cpu in
25418         hppa*64*|ia64*)
25419           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25420           hardcode_direct_GCJ=no
25421           hardcode_shlibpath_var_GCJ=no
25422           ;;
25423         *)
25424           hardcode_direct_GCJ=yes
25425           export_dynamic_flag_spec_GCJ='${wl}-E'
25426
25427           # hardcode_minus_L: Not really in the search PATH,
25428           # but as the default location of the library.
25429           hardcode_minus_L_GCJ=yes
25430           ;;
25431         esac
25432       fi
25433       ;;
25434
25435     irix5* | irix6* | nonstopux*)
25436       if test "$GCC" = yes; then
25437         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'
25438       else
25439         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'
25440         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25441       fi
25442       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25443       hardcode_libdir_separator_GCJ=:
25444       link_all_deplibs_GCJ=yes
25445       ;;
25446
25447     netbsd*)
25448       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25449         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25450       else
25451         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25452       fi
25453       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25454       hardcode_direct_GCJ=yes
25455       hardcode_shlibpath_var_GCJ=no
25456       ;;
25457
25458     newsos6)
25459       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25460       hardcode_direct_GCJ=yes
25461       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25462       hardcode_libdir_separator_GCJ=:
25463       hardcode_shlibpath_var_GCJ=no
25464       ;;
25465
25466     openbsd*)
25467       hardcode_direct_GCJ=yes
25468       hardcode_shlibpath_var_GCJ=no
25469       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25470         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25471         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25472         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25473         export_dynamic_flag_spec_GCJ='${wl}-E'
25474       else
25475        case $host_os in
25476          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25477            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25478            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25479            ;;
25480          *)
25481            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25482            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25483            ;;
25484        esac
25485       fi
25486       ;;
25487
25488     os2*)
25489       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25490       hardcode_minus_L_GCJ=yes
25491       allow_undefined_flag_GCJ=unsupported
25492       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'
25493       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25494       ;;
25495
25496     osf3*)
25497       if test "$GCC" = yes; then
25498         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25499         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'
25500       else
25501         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25502         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'
25503       fi
25504       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25505       hardcode_libdir_separator_GCJ=:
25506       ;;
25507
25508     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25509       if test "$GCC" = yes; then
25510         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25511         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'
25512         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25513       else
25514         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25515         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'
25516         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~
25517         $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'
25518
25519         # Both c and cxx compiler support -rpath directly
25520         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25521       fi
25522       hardcode_libdir_separator_GCJ=:
25523       ;;
25524
25525     solaris*)
25526       no_undefined_flag_GCJ=' -z text'
25527       if test "$GCC" = yes; then
25528         wlarc='${wl}'
25529         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25530         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25531           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25532       else
25533         wlarc=''
25534         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25535         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25536         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25537       fi
25538       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25539       hardcode_shlibpath_var_GCJ=no
25540       case $host_os in
25541       solaris2.[0-5] | solaris2.[0-5].*) ;;
25542       *)
25543         # The compiler driver will combine linker options so we
25544         # cannot just pass the convience library names through
25545         # without $wl, iff we do not link with $LD.
25546         # Luckily, gcc supports the same syntax we need for Sun Studio.
25547         # Supported since Solaris 2.6 (maybe 2.5.1?)
25548         case $wlarc in
25549         '')
25550           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25551         *)
25552           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' ;;
25553         esac ;;
25554       esac
25555       link_all_deplibs_GCJ=yes
25556       ;;
25557
25558     sunos4*)
25559       if test "x$host_vendor" = xsequent; then
25560         # Use $CC to link under sequent, because it throws in some extra .o
25561         # files that make .init and .fini sections work.
25562         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25563       else
25564         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25565       fi
25566       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25567       hardcode_direct_GCJ=yes
25568       hardcode_minus_L_GCJ=yes
25569       hardcode_shlibpath_var_GCJ=no
25570       ;;
25571
25572     sysv4)
25573       case $host_vendor in
25574         sni)
25575           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25576           hardcode_direct_GCJ=yes # is this really true???
25577         ;;
25578         siemens)
25579           ## LD is ld it makes a PLAMLIB
25580           ## CC just makes a GrossModule.
25581           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25582           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25583           hardcode_direct_GCJ=no
25584         ;;
25585         motorola)
25586           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25587           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25588         ;;
25589       esac
25590       runpath_var='LD_RUN_PATH'
25591       hardcode_shlibpath_var_GCJ=no
25592       ;;
25593
25594     sysv4.3*)
25595       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25596       hardcode_shlibpath_var_GCJ=no
25597       export_dynamic_flag_spec_GCJ='-Bexport'
25598       ;;
25599
25600     sysv4*MP*)
25601       if test -d /usr/nec; then
25602         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25603         hardcode_shlibpath_var_GCJ=no
25604         runpath_var=LD_RUN_PATH
25605         hardcode_runpath_var=yes
25606         ld_shlibs_GCJ=yes
25607       fi
25608       ;;
25609
25610     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25611       no_undefined_flag_GCJ='${wl}-z,text'
25612       archive_cmds_need_lc_GCJ=no
25613       hardcode_shlibpath_var_GCJ=no
25614       runpath_var='LD_RUN_PATH'
25615
25616       if test "$GCC" = yes; then
25617         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25618         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25619       else
25620         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25621         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25622       fi
25623       ;;
25624
25625     sysv5* | sco3.2v5* | sco5v6*)
25626       # Note: We can NOT use -z defs as we might desire, because we do not
25627       # link with -lc, and that would cause any symbols used from libc to
25628       # always be unresolved, which means just about no library would
25629       # ever link correctly.  If we're not using GNU ld we use -z text
25630       # though, which does catch some bad symbols but isn't as heavy-handed
25631       # as -z defs.
25632       no_undefined_flag_GCJ='${wl}-z,text'
25633       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25634       archive_cmds_need_lc_GCJ=no
25635       hardcode_shlibpath_var_GCJ=no
25636       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25637       hardcode_libdir_separator_GCJ=':'
25638       link_all_deplibs_GCJ=yes
25639       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25640       runpath_var='LD_RUN_PATH'
25641
25642       if test "$GCC" = yes; then
25643         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25644         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25645       else
25646         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25647         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25648       fi
25649       ;;
25650
25651     uts4*)
25652       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25653       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25654       hardcode_shlibpath_var_GCJ=no
25655       ;;
25656
25657     *)
25658       ld_shlibs_GCJ=no
25659       ;;
25660     esac
25661   fi
25662
25663 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25664 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25665 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25666
25667 #
25668 # Do we need to explicitly link libc?
25669 #
25670 case "x$archive_cmds_need_lc_GCJ" in
25671 x|xyes)
25672   # Assume -lc should be added
25673   archive_cmds_need_lc_GCJ=yes
25674
25675   if test "$enable_shared" = yes && test "$GCC" = yes; then
25676     case $archive_cmds_GCJ in
25677     *'~'*)
25678       # FIXME: we may have to deal with multi-command sequences.
25679       ;;
25680     '$CC '*)
25681       # Test whether the compiler implicitly links with -lc since on some
25682       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25683       # to ld, don't add -lc before -lgcc.
25684       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25685 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25686       $rm conftest*
25687       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25688
25689       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25690   (eval $ac_compile) 2>&5
25691   ac_status=$?
25692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693   (exit $ac_status); } 2>conftest.err; then
25694         soname=conftest
25695         lib=conftest
25696         libobjs=conftest.$ac_objext
25697         deplibs=
25698         wl=$lt_prog_compiler_wl_GCJ
25699         pic_flag=$lt_prog_compiler_pic_GCJ
25700         compiler_flags=-v
25701         linker_flags=-v
25702         verstring=
25703         output_objdir=.
25704         libname=conftest
25705         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25706         allow_undefined_flag_GCJ=
25707         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25708   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25709   ac_status=$?
25710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711   (exit $ac_status); }
25712         then
25713           archive_cmds_need_lc_GCJ=no
25714         else
25715           archive_cmds_need_lc_GCJ=yes
25716         fi
25717         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25718       else
25719         cat conftest.err 1>&5
25720       fi
25721       $rm conftest*
25722       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25723 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25724       ;;
25725     esac
25726   fi
25727   ;;
25728 esac
25729
25730 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25731 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25732 library_names_spec=
25733 libname_spec='lib$name'
25734 soname_spec=
25735 shrext_cmds=".so"
25736 postinstall_cmds=
25737 postuninstall_cmds=
25738 finish_cmds=
25739 finish_eval=
25740 shlibpath_var=
25741 shlibpath_overrides_runpath=unknown
25742 version_type=none
25743 dynamic_linker="$host_os ld.so"
25744 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25745 if test "$GCC" = yes; then
25746   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25747   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25748     # if the path contains ";" then we assume it to be the separator
25749     # otherwise default to the standard path separator (i.e. ":") - it is
25750     # assumed that no part of a normal pathname contains ";" but that should
25751     # okay in the real world where ";" in dirpaths is itself problematic.
25752     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25753   else
25754     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25755   fi
25756 else
25757   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25758 fi
25759 need_lib_prefix=unknown
25760 hardcode_into_libs=no
25761
25762 # when you set need_version to no, make sure it does not cause -set_version
25763 # flags to be left without arguments
25764 need_version=unknown
25765
25766 case $host_os in
25767 aix3*)
25768   version_type=linux
25769   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25770   shlibpath_var=LIBPATH
25771
25772   # AIX 3 has no versioning support, so we append a major version to the name.
25773   soname_spec='${libname}${release}${shared_ext}$major'
25774   ;;
25775
25776 aix4* | aix5*)
25777   version_type=linux
25778   need_lib_prefix=no
25779   need_version=no
25780   hardcode_into_libs=yes
25781   if test "$host_cpu" = ia64; then
25782     # AIX 5 supports IA64
25783     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25784     shlibpath_var=LD_LIBRARY_PATH
25785   else
25786     # With GCC up to 2.95.x, collect2 would create an import file
25787     # for dependence libraries.  The import file would start with
25788     # the line `#! .'.  This would cause the generated library to
25789     # depend on `.', always an invalid library.  This was fixed in
25790     # development snapshots of GCC prior to 3.0.
25791     case $host_os in
25792       aix4 | aix4.[01] | aix4.[01].*)
25793       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25794            echo ' yes '
25795            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25796         :
25797       else
25798         can_build_shared=no
25799       fi
25800       ;;
25801     esac
25802     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25803     # soname into executable. Probably we can add versioning support to
25804     # collect2, so additional links can be useful in future.
25805     if test "$aix_use_runtimelinking" = yes; then
25806       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25807       # instead of lib<name>.a to let people know that these are not
25808       # typical AIX shared libraries.
25809       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25810     else
25811       # We preserve .a as extension for shared libraries through AIX4.2
25812       # and later when we are not doing run time linking.
25813       library_names_spec='${libname}${release}.a $libname.a'
25814       soname_spec='${libname}${release}${shared_ext}$major'
25815     fi
25816     shlibpath_var=LIBPATH
25817   fi
25818   ;;
25819
25820 amigaos*)
25821   library_names_spec='$libname.ixlibrary $libname.a'
25822   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25823   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'
25824   ;;
25825
25826 beos*)
25827   library_names_spec='${libname}${shared_ext}'
25828   dynamic_linker="$host_os ld.so"
25829   shlibpath_var=LIBRARY_PATH
25830   ;;
25831
25832 bsdi[45]*)
25833   version_type=linux
25834   need_version=no
25835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25836   soname_spec='${libname}${release}${shared_ext}$major'
25837   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25838   shlibpath_var=LD_LIBRARY_PATH
25839   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25840   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25841   # the default ld.so.conf also contains /usr/contrib/lib and
25842   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25843   # libtool to hard-code these into programs
25844   ;;
25845
25846 cygwin* | mingw* | pw32*)
25847   version_type=windows
25848   shrext_cmds=".dll"
25849   need_version=no
25850   need_lib_prefix=no
25851
25852   case $GCC,$host_os in
25853   yes,cygwin* | yes,mingw* | yes,pw32*)
25854     library_names_spec='$libname.dll.a'
25855     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25856     postinstall_cmds='base_file=`basename \${file}`~
25857       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25858       dldir=$destdir/`dirname \$dlpath`~
25859       test -d \$dldir || mkdir -p \$dldir~
25860       $install_prog $dir/$dlname \$dldir/$dlname~
25861       chmod a+x \$dldir/$dlname'
25862     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25863       dlpath=$dir/\$dldll~
25864        $rm \$dlpath'
25865     shlibpath_overrides_runpath=yes
25866
25867     case $host_os in
25868     cygwin*)
25869       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25870       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25871       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25872       ;;
25873     mingw*)
25874       # MinGW DLLs use traditional 'lib' prefix
25875       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25876       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25877       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25878         # It is most probably a Windows format PATH printed by
25879         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25880         # path with ; separators, and with drive letters. We can handle the
25881         # drive letters (cygwin fileutils understands them), so leave them,
25882         # especially as we might pass files found there to a mingw objdump,
25883         # which wouldn't understand a cygwinified path. Ahh.
25884         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25885       else
25886         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25887       fi
25888       ;;
25889     pw32*)
25890       # pw32 DLLs use 'pw' prefix rather than 'lib'
25891       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25892       ;;
25893     esac
25894     ;;
25895
25896   *)
25897     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25898     ;;
25899   esac
25900   dynamic_linker='Win32 ld.exe'
25901   # FIXME: first we should search . and the directory the executable is in
25902   shlibpath_var=PATH
25903   ;;
25904
25905 darwin* | rhapsody*)
25906   dynamic_linker="$host_os dyld"
25907   version_type=darwin
25908   need_lib_prefix=no
25909   need_version=no
25910   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25911   soname_spec='${libname}${release}${major}$shared_ext'
25912   shlibpath_overrides_runpath=yes
25913   shlibpath_var=DYLD_LIBRARY_PATH
25914   shrext_cmds='.dylib'
25915   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25916   if test "$GCC" = yes; then
25917     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"`
25918   else
25919     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25920   fi
25921   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25922   ;;
25923
25924 dgux*)
25925   version_type=linux
25926   need_lib_prefix=no
25927   need_version=no
25928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25929   soname_spec='${libname}${release}${shared_ext}$major'
25930   shlibpath_var=LD_LIBRARY_PATH
25931   ;;
25932
25933 freebsd1*)
25934   dynamic_linker=no
25935   ;;
25936
25937 kfreebsd*-gnu)
25938   version_type=linux
25939   need_lib_prefix=no
25940   need_version=no
25941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25942   soname_spec='${libname}${release}${shared_ext}$major'
25943   shlibpath_var=LD_LIBRARY_PATH
25944   shlibpath_overrides_runpath=no
25945   hardcode_into_libs=yes
25946   dynamic_linker='GNU ld.so'
25947   ;;
25948
25949 freebsd* | dragonfly*)
25950   # DragonFly does not have aout.  When/if they implement a new
25951   # versioning mechanism, adjust this.
25952   if test -x /usr/bin/objformat; then
25953     objformat=`/usr/bin/objformat`
25954   else
25955     case $host_os in
25956     freebsd[123]*) objformat=aout ;;
25957     *) objformat=elf ;;
25958     esac
25959   fi
25960   version_type=freebsd-$objformat
25961   case $version_type in
25962     freebsd-elf*)
25963       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25964       need_version=no
25965       need_lib_prefix=no
25966       ;;
25967     freebsd-*)
25968       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25969       need_version=yes
25970       ;;
25971   esac
25972   shlibpath_var=LD_LIBRARY_PATH
25973   case $host_os in
25974   freebsd2*)
25975     shlibpath_overrides_runpath=yes
25976     ;;
25977   freebsd3.[01]* | freebsdelf3.[01]*)
25978     shlibpath_overrides_runpath=yes
25979     hardcode_into_libs=yes
25980     ;;
25981   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25982   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25983     shlibpath_overrides_runpath=no
25984     hardcode_into_libs=yes
25985     ;;
25986   freebsd*) # from 4.6 on
25987     shlibpath_overrides_runpath=yes
25988     hardcode_into_libs=yes
25989     ;;
25990   esac
25991   ;;
25992
25993 gnu*)
25994   version_type=linux
25995   need_lib_prefix=no
25996   need_version=no
25997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25998   soname_spec='${libname}${release}${shared_ext}$major'
25999   shlibpath_var=LD_LIBRARY_PATH
26000   hardcode_into_libs=yes
26001   ;;
26002
26003 hpux9* | hpux10* | hpux11*)
26004   # Give a soname corresponding to the major version so that dld.sl refuses to
26005   # link against other versions.
26006   version_type=sunos
26007   need_lib_prefix=no
26008   need_version=no
26009   case $host_cpu in
26010   ia64*)
26011     shrext_cmds='.so'
26012     hardcode_into_libs=yes
26013     dynamic_linker="$host_os dld.so"
26014     shlibpath_var=LD_LIBRARY_PATH
26015     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26016     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26017     soname_spec='${libname}${release}${shared_ext}$major'
26018     if test "X$HPUX_IA64_MODE" = X32; then
26019       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26020     else
26021       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26022     fi
26023     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26024     ;;
26025    hppa*64*)
26026      shrext_cmds='.sl'
26027      hardcode_into_libs=yes
26028      dynamic_linker="$host_os dld.sl"
26029      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26030      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26031      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26032      soname_spec='${libname}${release}${shared_ext}$major'
26033      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26034      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26035      ;;
26036    *)
26037     shrext_cmds='.sl'
26038     dynamic_linker="$host_os dld.sl"
26039     shlibpath_var=SHLIB_PATH
26040     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26041     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26042     soname_spec='${libname}${release}${shared_ext}$major'
26043     ;;
26044   esac
26045   # HP-UX runs *really* slowly unless shared libraries are mode 555.
26046   postinstall_cmds='chmod 555 $lib'
26047   ;;
26048
26049 interix3*)
26050   version_type=linux
26051   need_lib_prefix=no
26052   need_version=no
26053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26054   soname_spec='${libname}${release}${shared_ext}$major'
26055   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26056   shlibpath_var=LD_LIBRARY_PATH
26057   shlibpath_overrides_runpath=no
26058   hardcode_into_libs=yes
26059   ;;
26060
26061 irix5* | irix6* | nonstopux*)
26062   case $host_os in
26063     nonstopux*) version_type=nonstopux ;;
26064     *)
26065         if test "$lt_cv_prog_gnu_ld" = yes; then
26066                 version_type=linux
26067         else
26068                 version_type=irix
26069         fi ;;
26070   esac
26071   need_lib_prefix=no
26072   need_version=no
26073   soname_spec='${libname}${release}${shared_ext}$major'
26074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26075   case $host_os in
26076   irix5* | nonstopux*)
26077     libsuff= shlibsuff=
26078     ;;
26079   *)
26080     case $LD in # libtool.m4 will add one of these switches to LD
26081     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26082       libsuff= shlibsuff= libmagic=32-bit;;
26083     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26084       libsuff=32 shlibsuff=N32 libmagic=N32;;
26085     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26086       libsuff=64 shlibsuff=64 libmagic=64-bit;;
26087     *) libsuff= shlibsuff= libmagic=never-match;;
26088     esac
26089     ;;
26090   esac
26091   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26092   shlibpath_overrides_runpath=no
26093   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26094   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26095   hardcode_into_libs=yes
26096   ;;
26097
26098 # No shared lib support for Linux oldld, aout, or coff.
26099 linux*oldld* | linux*aout* | linux*coff*)
26100   dynamic_linker=no
26101   ;;
26102
26103 # This must be Linux ELF.
26104 linux*)
26105   version_type=linux
26106   need_lib_prefix=no
26107   need_version=no
26108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26109   soname_spec='${libname}${release}${shared_ext}$major'
26110   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26111   shlibpath_var=LD_LIBRARY_PATH
26112   shlibpath_overrides_runpath=no
26113   # This implies no fast_install, which is unacceptable.
26114   # Some rework will be needed to allow for fast_install
26115   # before this can be enabled.
26116   hardcode_into_libs=yes
26117
26118   # Append ld.so.conf contents to the search path
26119   if test -f /etc/ld.so.conf; then
26120     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' ' '`
26121     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26122   fi
26123
26124   # We used to test for /lib/ld.so.1 and disable shared libraries on
26125   # powerpc, because MkLinux only supported shared libraries with the
26126   # GNU dynamic linker.  Since this was broken with cross compilers,
26127   # most powerpc-linux boxes support dynamic linking these days and
26128   # people can always --disable-shared, the test was removed, and we
26129   # assume the GNU/Linux dynamic linker is in use.
26130   dynamic_linker='GNU/Linux ld.so'
26131   ;;
26132
26133 knetbsd*-gnu)
26134   version_type=linux
26135   need_lib_prefix=no
26136   need_version=no
26137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26138   soname_spec='${libname}${release}${shared_ext}$major'
26139   shlibpath_var=LD_LIBRARY_PATH
26140   shlibpath_overrides_runpath=no
26141   hardcode_into_libs=yes
26142   dynamic_linker='GNU ld.so'
26143   ;;
26144
26145 netbsd*)
26146   version_type=sunos
26147   need_lib_prefix=no
26148   need_version=no
26149   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26150     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26151     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26152     dynamic_linker='NetBSD (a.out) ld.so'
26153   else
26154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26155     soname_spec='${libname}${release}${shared_ext}$major'
26156     dynamic_linker='NetBSD ld.elf_so'
26157   fi
26158   shlibpath_var=LD_LIBRARY_PATH
26159   shlibpath_overrides_runpath=yes
26160   hardcode_into_libs=yes
26161   ;;
26162
26163 newsos6)
26164   version_type=linux
26165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26166   shlibpath_var=LD_LIBRARY_PATH
26167   shlibpath_overrides_runpath=yes
26168   ;;
26169
26170 nto-qnx*)
26171   version_type=linux
26172   need_lib_prefix=no
26173   need_version=no
26174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26175   soname_spec='${libname}${release}${shared_ext}$major'
26176   shlibpath_var=LD_LIBRARY_PATH
26177   shlibpath_overrides_runpath=yes
26178   ;;
26179
26180 openbsd*)
26181   version_type=sunos
26182   sys_lib_dlsearch_path_spec="/usr/lib"
26183   need_lib_prefix=no
26184   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26185   case $host_os in
26186     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26187     *)                         need_version=no  ;;
26188   esac
26189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26190   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26191   shlibpath_var=LD_LIBRARY_PATH
26192   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26193     case $host_os in
26194       openbsd2.[89] | openbsd2.[89].*)
26195         shlibpath_overrides_runpath=no
26196         ;;
26197       *)
26198         shlibpath_overrides_runpath=yes
26199         ;;
26200       esac
26201   else
26202     shlibpath_overrides_runpath=yes
26203   fi
26204   ;;
26205
26206 os2*)
26207   libname_spec='$name'
26208   shrext_cmds=".dll"
26209   need_lib_prefix=no
26210   library_names_spec='$libname${shared_ext} $libname.a'
26211   dynamic_linker='OS/2 ld.exe'
26212   shlibpath_var=LIBPATH
26213   ;;
26214
26215 osf3* | osf4* | osf5*)
26216   version_type=osf
26217   need_lib_prefix=no
26218   need_version=no
26219   soname_spec='${libname}${release}${shared_ext}$major'
26220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26221   shlibpath_var=LD_LIBRARY_PATH
26222   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26223   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26224   ;;
26225
26226 solaris*)
26227   version_type=linux
26228   need_lib_prefix=no
26229   need_version=no
26230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26231   soname_spec='${libname}${release}${shared_ext}$major'
26232   shlibpath_var=LD_LIBRARY_PATH
26233   shlibpath_overrides_runpath=yes
26234   hardcode_into_libs=yes
26235   # ldd complains unless libraries are executable
26236   postinstall_cmds='chmod +x $lib'
26237   ;;
26238
26239 sunos4*)
26240   version_type=sunos
26241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26242   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26243   shlibpath_var=LD_LIBRARY_PATH
26244   shlibpath_overrides_runpath=yes
26245   if test "$with_gnu_ld" = yes; then
26246     need_lib_prefix=no
26247   fi
26248   need_version=yes
26249   ;;
26250
26251 sysv4 | sysv4.3*)
26252   version_type=linux
26253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26254   soname_spec='${libname}${release}${shared_ext}$major'
26255   shlibpath_var=LD_LIBRARY_PATH
26256   case $host_vendor in
26257     sni)
26258       shlibpath_overrides_runpath=no
26259       need_lib_prefix=no
26260       export_dynamic_flag_spec='${wl}-Blargedynsym'
26261       runpath_var=LD_RUN_PATH
26262       ;;
26263     siemens)
26264       need_lib_prefix=no
26265       ;;
26266     motorola)
26267       need_lib_prefix=no
26268       need_version=no
26269       shlibpath_overrides_runpath=no
26270       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26271       ;;
26272   esac
26273   ;;
26274
26275 sysv4*MP*)
26276   if test -d /usr/nec ;then
26277     version_type=linux
26278     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26279     soname_spec='$libname${shared_ext}.$major'
26280     shlibpath_var=LD_LIBRARY_PATH
26281   fi
26282   ;;
26283
26284 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26285   version_type=freebsd-elf
26286   need_lib_prefix=no
26287   need_version=no
26288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26289   soname_spec='${libname}${release}${shared_ext}$major'
26290   shlibpath_var=LD_LIBRARY_PATH
26291   hardcode_into_libs=yes
26292   if test "$with_gnu_ld" = yes; then
26293     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26294     shlibpath_overrides_runpath=no
26295   else
26296     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26297     shlibpath_overrides_runpath=yes
26298     case $host_os in
26299       sco3.2v5*)
26300         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26301         ;;
26302     esac
26303   fi
26304   sys_lib_dlsearch_path_spec='/usr/lib'
26305   ;;
26306
26307 uts4*)
26308   version_type=linux
26309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26310   soname_spec='${libname}${release}${shared_ext}$major'
26311   shlibpath_var=LD_LIBRARY_PATH
26312   ;;
26313
26314 *)
26315   dynamic_linker=no
26316   ;;
26317 esac
26318 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26319 echo "${ECHO_T}$dynamic_linker" >&6; }
26320 test "$dynamic_linker" = no && can_build_shared=no
26321
26322 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26323 if test "$GCC" = yes; then
26324   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26325 fi
26326
26327 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26328 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26329 hardcode_action_GCJ=
26330 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26331    test -n "$runpath_var_GCJ" || \
26332    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26333
26334   # We can hardcode non-existant directories.
26335   if test "$hardcode_direct_GCJ" != no &&
26336      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26337      # have to relink, otherwise we might link with an installed library
26338      # when we should be linking with a yet-to-be-installed one
26339      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26340      test "$hardcode_minus_L_GCJ" != no; then
26341     # Linking always hardcodes the temporary library directory.
26342     hardcode_action_GCJ=relink
26343   else
26344     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26345     hardcode_action_GCJ=immediate
26346   fi
26347 else
26348   # We cannot hardcode anything, or else we can only hardcode existing
26349   # directories.
26350   hardcode_action_GCJ=unsupported
26351 fi
26352 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26353 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26354
26355 if test "$hardcode_action_GCJ" = relink; then
26356   # Fast installation is not supported
26357   enable_fast_install=no
26358 elif test "$shlibpath_overrides_runpath" = yes ||
26359      test "$enable_shared" = no; then
26360   # Fast installation is not necessary
26361   enable_fast_install=needless
26362 fi
26363
26364
26365 # The else clause should only fire when bootstrapping the
26366 # libtool distribution, otherwise you forgot to ship ltmain.sh
26367 # with your package, and you will get complaints that there are
26368 # no rules to generate ltmain.sh.
26369 if test -f "$ltmain"; then
26370   # See if we are running on zsh, and set the options which allow our commands through
26371   # without removal of \ escapes.
26372   if test -n "${ZSH_VERSION+set}" ; then
26373     setopt NO_GLOB_SUBST
26374   fi
26375   # Now quote all the things that may contain metacharacters while being
26376   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26377   # variables and quote the copies for generation of the libtool script.
26378   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26379     SED SHELL STRIP \
26380     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26381     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26382     deplibs_check_method reload_flag reload_cmds need_locks \
26383     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26384     lt_cv_sys_global_symbol_to_c_name_address \
26385     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26386     old_postinstall_cmds old_postuninstall_cmds \
26387     compiler_GCJ \
26388     CC_GCJ \
26389     LD_GCJ \
26390     lt_prog_compiler_wl_GCJ \
26391     lt_prog_compiler_pic_GCJ \
26392     lt_prog_compiler_static_GCJ \
26393     lt_prog_compiler_no_builtin_flag_GCJ \
26394     export_dynamic_flag_spec_GCJ \
26395     thread_safe_flag_spec_GCJ \
26396     whole_archive_flag_spec_GCJ \
26397     enable_shared_with_static_runtimes_GCJ \
26398     old_archive_cmds_GCJ \
26399     old_archive_from_new_cmds_GCJ \
26400     predep_objects_GCJ \
26401     postdep_objects_GCJ \
26402     predeps_GCJ \
26403     postdeps_GCJ \
26404     compiler_lib_search_path_GCJ \
26405     archive_cmds_GCJ \
26406     archive_expsym_cmds_GCJ \
26407     postinstall_cmds_GCJ \
26408     postuninstall_cmds_GCJ \
26409     old_archive_from_expsyms_cmds_GCJ \
26410     allow_undefined_flag_GCJ \
26411     no_undefined_flag_GCJ \
26412     export_symbols_cmds_GCJ \
26413     hardcode_libdir_flag_spec_GCJ \
26414     hardcode_libdir_flag_spec_ld_GCJ \
26415     hardcode_libdir_separator_GCJ \
26416     hardcode_automatic_GCJ \
26417     module_cmds_GCJ \
26418     module_expsym_cmds_GCJ \
26419     lt_cv_prog_compiler_c_o_GCJ \
26420     exclude_expsyms_GCJ \
26421     include_expsyms_GCJ; do
26422
26423     case $var in
26424     old_archive_cmds_GCJ | \
26425     old_archive_from_new_cmds_GCJ | \
26426     archive_cmds_GCJ | \
26427     archive_expsym_cmds_GCJ | \
26428     module_cmds_GCJ | \
26429     module_expsym_cmds_GCJ | \
26430     old_archive_from_expsyms_cmds_GCJ | \
26431     export_symbols_cmds_GCJ | \
26432     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26433     postinstall_cmds | postuninstall_cmds | \
26434     old_postinstall_cmds | old_postuninstall_cmds | \
26435     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26436       # Double-quote double-evaled strings.
26437       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26438       ;;
26439     *)
26440       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26441       ;;
26442     esac
26443   done
26444
26445   case $lt_echo in
26446   *'\$0 --fallback-echo"')
26447     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26448     ;;
26449   esac
26450
26451 cfgfile="$ofile"
26452
26453   cat <<__EOF__ >> "$cfgfile"
26454 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26455
26456 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26457
26458 # Shell to use when invoking shell scripts.
26459 SHELL=$lt_SHELL
26460
26461 # Whether or not to build shared libraries.
26462 build_libtool_libs=$enable_shared
26463
26464 # Whether or not to build static libraries.
26465 build_old_libs=$enable_static
26466
26467 # Whether or not to add -lc for building shared libraries.
26468 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26469
26470 # Whether or not to disallow shared libs when runtime libs are static
26471 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26472
26473 # Whether or not to optimize for fast installation.
26474 fast_install=$enable_fast_install
26475
26476 # The host system.
26477 host_alias=$host_alias
26478 host=$host
26479 host_os=$host_os
26480
26481 # The build system.
26482 build_alias=$build_alias
26483 build=$build
26484 build_os=$build_os
26485
26486 # An echo program that does not interpret backslashes.
26487 echo=$lt_echo
26488
26489 # The archiver.
26490 AR=$lt_AR
26491 AR_FLAGS=$lt_AR_FLAGS
26492
26493 # A C compiler.
26494 LTCC=$lt_LTCC
26495
26496 # LTCC compiler flags.
26497 LTCFLAGS=$lt_LTCFLAGS
26498
26499 # A language-specific compiler.
26500 CC=$lt_compiler_GCJ
26501
26502 # Is the compiler the GNU C compiler?
26503 with_gcc=$GCC_GCJ
26504
26505 # An ERE matcher.
26506 EGREP=$lt_EGREP
26507
26508 # The linker used to build libraries.
26509 LD=$lt_LD_GCJ
26510
26511 # Whether we need hard or soft links.
26512 LN_S=$lt_LN_S
26513
26514 # A BSD-compatible nm program.
26515 NM=$lt_NM
26516
26517 # A symbol stripping program
26518 STRIP=$lt_STRIP
26519
26520 # Used to examine libraries when file_magic_cmd begins "file"
26521 MAGIC_CMD=$MAGIC_CMD
26522
26523 # Used on cygwin: DLL creation program.
26524 DLLTOOL="$DLLTOOL"
26525
26526 # Used on cygwin: object dumper.
26527 OBJDUMP="$OBJDUMP"
26528
26529 # Used on cygwin: assembler.
26530 AS="$AS"
26531
26532 # The name of the directory that contains temporary libtool files.
26533 objdir=$objdir
26534
26535 # How to create reloadable object files.
26536 reload_flag=$lt_reload_flag
26537 reload_cmds=$lt_reload_cmds
26538
26539 # How to pass a linker flag through the compiler.
26540 wl=$lt_lt_prog_compiler_wl_GCJ
26541
26542 # Object file suffix (normally "o").
26543 objext="$ac_objext"
26544
26545 # Old archive suffix (normally "a").
26546 libext="$libext"
26547
26548 # Shared library suffix (normally ".so").
26549 shrext_cmds='$shrext_cmds'
26550
26551 # Executable file suffix (normally "").
26552 exeext="$exeext"
26553
26554 # Additional compiler flags for building library objects.
26555 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26556 pic_mode=$pic_mode
26557
26558 # What is the maximum length of a command?
26559 max_cmd_len=$lt_cv_sys_max_cmd_len
26560
26561 # Does compiler simultaneously support -c and -o options?
26562 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26563
26564 # Must we lock files when doing compilation?
26565 need_locks=$lt_need_locks
26566
26567 # Do we need the lib prefix for modules?
26568 need_lib_prefix=$need_lib_prefix
26569
26570 # Do we need a version for libraries?
26571 need_version=$need_version
26572
26573 # Whether dlopen is supported.
26574 dlopen_support=$enable_dlopen
26575
26576 # Whether dlopen of programs is supported.
26577 dlopen_self=$enable_dlopen_self
26578
26579 # Whether dlopen of statically linked programs is supported.
26580 dlopen_self_static=$enable_dlopen_self_static
26581
26582 # Compiler flag to prevent dynamic linking.
26583 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26584
26585 # Compiler flag to turn off builtin functions.
26586 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26587
26588 # Compiler flag to allow reflexive dlopens.
26589 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26590
26591 # Compiler flag to generate shared objects directly from archives.
26592 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26593
26594 # Compiler flag to generate thread-safe objects.
26595 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26596
26597 # Library versioning type.
26598 version_type=$version_type
26599
26600 # Format of library name prefix.
26601 libname_spec=$lt_libname_spec
26602
26603 # List of archive names.  First name is the real one, the rest are links.
26604 # The last name is the one that the linker finds with -lNAME.
26605 library_names_spec=$lt_library_names_spec
26606
26607 # The coded name of the library, if different from the real name.
26608 soname_spec=$lt_soname_spec
26609
26610 # Commands used to build and install an old-style archive.
26611 RANLIB=$lt_RANLIB
26612 old_archive_cmds=$lt_old_archive_cmds_GCJ
26613 old_postinstall_cmds=$lt_old_postinstall_cmds
26614 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26615
26616 # Create an old-style archive from a shared archive.
26617 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26618
26619 # Create a temporary old-style archive to link instead of a shared archive.
26620 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26621
26622 # Commands used to build and install a shared archive.
26623 archive_cmds=$lt_archive_cmds_GCJ
26624 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26625 postinstall_cmds=$lt_postinstall_cmds
26626 postuninstall_cmds=$lt_postuninstall_cmds
26627
26628 # Commands used to build a loadable module (assumed same as above if empty)
26629 module_cmds=$lt_module_cmds_GCJ
26630 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26631
26632 # Commands to strip libraries.
26633 old_striplib=$lt_old_striplib
26634 striplib=$lt_striplib
26635
26636 # Dependencies to place before the objects being linked to create a
26637 # shared library.
26638 predep_objects=$lt_predep_objects_GCJ
26639
26640 # Dependencies to place after the objects being linked to create a
26641 # shared library.
26642 postdep_objects=$lt_postdep_objects_GCJ
26643
26644 # Dependencies to place before the objects being linked to create a
26645 # shared library.
26646 predeps=$lt_predeps_GCJ
26647
26648 # Dependencies to place after the objects being linked to create a
26649 # shared library.
26650 postdeps=$lt_postdeps_GCJ
26651
26652 # The library search path used internally by the compiler when linking
26653 # a shared library.
26654 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26655
26656 # Method to check whether dependent libraries are shared objects.
26657 deplibs_check_method=$lt_deplibs_check_method
26658
26659 # Command to use when deplibs_check_method == file_magic.
26660 file_magic_cmd=$lt_file_magic_cmd
26661
26662 # Flag that allows shared libraries with undefined symbols to be built.
26663 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26664
26665 # Flag that forces no undefined symbols.
26666 no_undefined_flag=$lt_no_undefined_flag_GCJ
26667
26668 # Commands used to finish a libtool library installation in a directory.
26669 finish_cmds=$lt_finish_cmds
26670
26671 # Same as above, but a single script fragment to be evaled but not shown.
26672 finish_eval=$lt_finish_eval
26673
26674 # Take the output of nm and produce a listing of raw symbols and C names.
26675 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26676
26677 # Transform the output of nm in a proper C declaration
26678 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26679
26680 # Transform the output of nm in a C name address pair
26681 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26682
26683 # This is the shared library runtime path variable.
26684 runpath_var=$runpath_var
26685
26686 # This is the shared library path variable.
26687 shlibpath_var=$shlibpath_var
26688
26689 # Is shlibpath searched before the hard-coded library search path?
26690 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26691
26692 # How to hardcode a shared library path into an executable.
26693 hardcode_action=$hardcode_action_GCJ
26694
26695 # Whether we should hardcode library paths into libraries.
26696 hardcode_into_libs=$hardcode_into_libs
26697
26698 # Flag to hardcode \$libdir into a binary during linking.
26699 # This must work even if \$libdir does not exist.
26700 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26701
26702 # If ld is used when linking, flag to hardcode \$libdir into
26703 # a binary during linking. This must work even if \$libdir does
26704 # not exist.
26705 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26706
26707 # Whether we need a single -rpath flag with a separated argument.
26708 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26709
26710 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26711 # resulting binary.
26712 hardcode_direct=$hardcode_direct_GCJ
26713
26714 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26715 # resulting binary.
26716 hardcode_minus_L=$hardcode_minus_L_GCJ
26717
26718 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26719 # the resulting binary.
26720 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26721
26722 # Set to yes if building a shared library automatically hardcodes DIR into the library
26723 # and all subsequent libraries and executables linked against it.
26724 hardcode_automatic=$hardcode_automatic_GCJ
26725
26726 # Variables whose values should be saved in libtool wrapper scripts and
26727 # restored at relink time.
26728 variables_saved_for_relink="$variables_saved_for_relink"
26729
26730 # Whether libtool must link a program against all its dependency libraries.
26731 link_all_deplibs=$link_all_deplibs_GCJ
26732
26733 # Compile-time system search path for libraries
26734 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26735
26736 # Run-time system search path for libraries
26737 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26738
26739 # Fix the shell variable \$srcfile for the compiler.
26740 fix_srcfile_path="$fix_srcfile_path_GCJ"
26741
26742 # Set to yes if exported symbols are required.
26743 always_export_symbols=$always_export_symbols_GCJ
26744
26745 # The commands to list exported symbols.
26746 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26747
26748 # The commands to extract the exported symbol list from a shared archive.
26749 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26750
26751 # Symbols that should not be listed in the preloaded symbols.
26752 exclude_expsyms=$lt_exclude_expsyms_GCJ
26753
26754 # Symbols that must always be exported.
26755 include_expsyms=$lt_include_expsyms_GCJ
26756
26757 # ### END LIBTOOL TAG CONFIG: $tagname
26758
26759 __EOF__
26760
26761
26762 else
26763   # If there is no Makefile yet, we rely on a make rule to execute
26764   # `config.status --recheck' to rerun these tests and create the
26765   # libtool script then.
26766   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26767   if test -f "$ltmain_in"; then
26768     test -f Makefile && make "$ltmain"
26769   fi
26770 fi
26771
26772
26773 ac_ext=c
26774 ac_cpp='$CPP $CPPFLAGS'
26775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26778
26779 CC="$lt_save_CC"
26780
26781         else
26782           tagname=""
26783         fi
26784         ;;
26785
26786       RC)
26787         ac_ext=c
26788 ac_cpp='$CPP $CPPFLAGS'
26789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26792
26793
26794 # Source file extension for RC test sources.
26795 ac_ext=rc
26796
26797 # Object file extension for compiled RC test sources.
26798 objext=o
26799 objext_RC=$objext
26800
26801 # Code to be used in simple compile tests
26802 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26803
26804 # Code to be used in simple link tests
26805 lt_simple_link_test_code="$lt_simple_compile_test_code"
26806
26807 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26808
26809 # If no C compiler was specified, use CC.
26810 LTCC=${LTCC-"$CC"}
26811
26812 # If no C compiler flags were specified, use CFLAGS.
26813 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26814
26815 # Allow CC to be a program name with arguments.
26816 compiler=$CC
26817
26818
26819 # save warnings/boilerplate of simple test code
26820 ac_outfile=conftest.$ac_objext
26821 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26822 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26823 _lt_compiler_boilerplate=`cat conftest.err`
26824 $rm conftest*
26825
26826 ac_outfile=conftest.$ac_objext
26827 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26828 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26829 _lt_linker_boilerplate=`cat conftest.err`
26830 $rm conftest*
26831
26832
26833 # Allow CC to be a program name with arguments.
26834 lt_save_CC="$CC"
26835 CC=${RC-"windres"}
26836 compiler=$CC
26837 compiler_RC=$CC
26838 for cc_temp in $compiler""; do
26839   case $cc_temp in
26840     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26841     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26842     \-*) ;;
26843     *) break;;
26844   esac
26845 done
26846 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26847
26848 lt_cv_prog_compiler_c_o_RC=yes
26849
26850 # The else clause should only fire when bootstrapping the
26851 # libtool distribution, otherwise you forgot to ship ltmain.sh
26852 # with your package, and you will get complaints that there are
26853 # no rules to generate ltmain.sh.
26854 if test -f "$ltmain"; then
26855   # See if we are running on zsh, and set the options which allow our commands through
26856   # without removal of \ escapes.
26857   if test -n "${ZSH_VERSION+set}" ; then
26858     setopt NO_GLOB_SUBST
26859   fi
26860   # Now quote all the things that may contain metacharacters while being
26861   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26862   # variables and quote the copies for generation of the libtool script.
26863   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26864     SED SHELL STRIP \
26865     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26866     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26867     deplibs_check_method reload_flag reload_cmds need_locks \
26868     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26869     lt_cv_sys_global_symbol_to_c_name_address \
26870     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26871     old_postinstall_cmds old_postuninstall_cmds \
26872     compiler_RC \
26873     CC_RC \
26874     LD_RC \
26875     lt_prog_compiler_wl_RC \
26876     lt_prog_compiler_pic_RC \
26877     lt_prog_compiler_static_RC \
26878     lt_prog_compiler_no_builtin_flag_RC \
26879     export_dynamic_flag_spec_RC \
26880     thread_safe_flag_spec_RC \
26881     whole_archive_flag_spec_RC \
26882     enable_shared_with_static_runtimes_RC \
26883     old_archive_cmds_RC \
26884     old_archive_from_new_cmds_RC \
26885     predep_objects_RC \
26886     postdep_objects_RC \
26887     predeps_RC \
26888     postdeps_RC \
26889     compiler_lib_search_path_RC \
26890     archive_cmds_RC \
26891     archive_expsym_cmds_RC \
26892     postinstall_cmds_RC \
26893     postuninstall_cmds_RC \
26894     old_archive_from_expsyms_cmds_RC \
26895     allow_undefined_flag_RC \
26896     no_undefined_flag_RC \
26897     export_symbols_cmds_RC \
26898     hardcode_libdir_flag_spec_RC \
26899     hardcode_libdir_flag_spec_ld_RC \
26900     hardcode_libdir_separator_RC \
26901     hardcode_automatic_RC \
26902     module_cmds_RC \
26903     module_expsym_cmds_RC \
26904     lt_cv_prog_compiler_c_o_RC \
26905     exclude_expsyms_RC \
26906     include_expsyms_RC; do
26907
26908     case $var in
26909     old_archive_cmds_RC | \
26910     old_archive_from_new_cmds_RC | \
26911     archive_cmds_RC | \
26912     archive_expsym_cmds_RC | \
26913     module_cmds_RC | \
26914     module_expsym_cmds_RC | \
26915     old_archive_from_expsyms_cmds_RC | \
26916     export_symbols_cmds_RC | \
26917     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26918     postinstall_cmds | postuninstall_cmds | \
26919     old_postinstall_cmds | old_postuninstall_cmds | \
26920     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26921       # Double-quote double-evaled strings.
26922       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26923       ;;
26924     *)
26925       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26926       ;;
26927     esac
26928   done
26929
26930   case $lt_echo in
26931   *'\$0 --fallback-echo"')
26932     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26933     ;;
26934   esac
26935
26936 cfgfile="$ofile"
26937
26938   cat <<__EOF__ >> "$cfgfile"
26939 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26940
26941 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26942
26943 # Shell to use when invoking shell scripts.
26944 SHELL=$lt_SHELL
26945
26946 # Whether or not to build shared libraries.
26947 build_libtool_libs=$enable_shared
26948
26949 # Whether or not to build static libraries.
26950 build_old_libs=$enable_static
26951
26952 # Whether or not to add -lc for building shared libraries.
26953 build_libtool_need_lc=$archive_cmds_need_lc_RC
26954
26955 # Whether or not to disallow shared libs when runtime libs are static
26956 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26957
26958 # Whether or not to optimize for fast installation.
26959 fast_install=$enable_fast_install
26960
26961 # The host system.
26962 host_alias=$host_alias
26963 host=$host
26964 host_os=$host_os
26965
26966 # The build system.
26967 build_alias=$build_alias
26968 build=$build
26969 build_os=$build_os
26970
26971 # An echo program that does not interpret backslashes.
26972 echo=$lt_echo
26973
26974 # The archiver.
26975 AR=$lt_AR
26976 AR_FLAGS=$lt_AR_FLAGS
26977
26978 # A C compiler.
26979 LTCC=$lt_LTCC
26980
26981 # LTCC compiler flags.
26982 LTCFLAGS=$lt_LTCFLAGS
26983
26984 # A language-specific compiler.
26985 CC=$lt_compiler_RC
26986
26987 # Is the compiler the GNU C compiler?
26988 with_gcc=$GCC_RC
26989
26990 # An ERE matcher.
26991 EGREP=$lt_EGREP
26992
26993 # The linker used to build libraries.
26994 LD=$lt_LD_RC
26995
26996 # Whether we need hard or soft links.
26997 LN_S=$lt_LN_S
26998
26999 # A BSD-compatible nm program.
27000 NM=$lt_NM
27001
27002 # A symbol stripping program
27003 STRIP=$lt_STRIP
27004
27005 # Used to examine libraries when file_magic_cmd begins "file"
27006 MAGIC_CMD=$MAGIC_CMD
27007
27008 # Used on cygwin: DLL creation program.
27009 DLLTOOL="$DLLTOOL"
27010
27011 # Used on cygwin: object dumper.
27012 OBJDUMP="$OBJDUMP"
27013
27014 # Used on cygwin: assembler.
27015 AS="$AS"
27016
27017 # The name of the directory that contains temporary libtool files.
27018 objdir=$objdir
27019
27020 # How to create reloadable object files.
27021 reload_flag=$lt_reload_flag
27022 reload_cmds=$lt_reload_cmds
27023
27024 # How to pass a linker flag through the compiler.
27025 wl=$lt_lt_prog_compiler_wl_RC
27026
27027 # Object file suffix (normally "o").
27028 objext="$ac_objext"
27029
27030 # Old archive suffix (normally "a").
27031 libext="$libext"
27032
27033 # Shared library suffix (normally ".so").
27034 shrext_cmds='$shrext_cmds'
27035
27036 # Executable file suffix (normally "").
27037 exeext="$exeext"
27038
27039 # Additional compiler flags for building library objects.
27040 pic_flag=$lt_lt_prog_compiler_pic_RC
27041 pic_mode=$pic_mode
27042
27043 # What is the maximum length of a command?
27044 max_cmd_len=$lt_cv_sys_max_cmd_len
27045
27046 # Does compiler simultaneously support -c and -o options?
27047 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27048
27049 # Must we lock files when doing compilation?
27050 need_locks=$lt_need_locks
27051
27052 # Do we need the lib prefix for modules?
27053 need_lib_prefix=$need_lib_prefix
27054
27055 # Do we need a version for libraries?
27056 need_version=$need_version
27057
27058 # Whether dlopen is supported.
27059 dlopen_support=$enable_dlopen
27060
27061 # Whether dlopen of programs is supported.
27062 dlopen_self=$enable_dlopen_self
27063
27064 # Whether dlopen of statically linked programs is supported.
27065 dlopen_self_static=$enable_dlopen_self_static
27066
27067 # Compiler flag to prevent dynamic linking.
27068 link_static_flag=$lt_lt_prog_compiler_static_RC
27069
27070 # Compiler flag to turn off builtin functions.
27071 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27072
27073 # Compiler flag to allow reflexive dlopens.
27074 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27075
27076 # Compiler flag to generate shared objects directly from archives.
27077 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27078
27079 # Compiler flag to generate thread-safe objects.
27080 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27081
27082 # Library versioning type.
27083 version_type=$version_type
27084
27085 # Format of library name prefix.
27086 libname_spec=$lt_libname_spec
27087
27088 # List of archive names.  First name is the real one, the rest are links.
27089 # The last name is the one that the linker finds with -lNAME.
27090 library_names_spec=$lt_library_names_spec
27091
27092 # The coded name of the library, if different from the real name.
27093 soname_spec=$lt_soname_spec
27094
27095 # Commands used to build and install an old-style archive.
27096 RANLIB=$lt_RANLIB
27097 old_archive_cmds=$lt_old_archive_cmds_RC
27098 old_postinstall_cmds=$lt_old_postinstall_cmds
27099 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27100
27101 # Create an old-style archive from a shared archive.
27102 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27103
27104 # Create a temporary old-style archive to link instead of a shared archive.
27105 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27106
27107 # Commands used to build and install a shared archive.
27108 archive_cmds=$lt_archive_cmds_RC
27109 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27110 postinstall_cmds=$lt_postinstall_cmds
27111 postuninstall_cmds=$lt_postuninstall_cmds
27112
27113 # Commands used to build a loadable module (assumed same as above if empty)
27114 module_cmds=$lt_module_cmds_RC
27115 module_expsym_cmds=$lt_module_expsym_cmds_RC
27116
27117 # Commands to strip libraries.
27118 old_striplib=$lt_old_striplib
27119 striplib=$lt_striplib
27120
27121 # Dependencies to place before the objects being linked to create a
27122 # shared library.
27123 predep_objects=$lt_predep_objects_RC
27124
27125 # Dependencies to place after the objects being linked to create a
27126 # shared library.
27127 postdep_objects=$lt_postdep_objects_RC
27128
27129 # Dependencies to place before the objects being linked to create a
27130 # shared library.
27131 predeps=$lt_predeps_RC
27132
27133 # Dependencies to place after the objects being linked to create a
27134 # shared library.
27135 postdeps=$lt_postdeps_RC
27136
27137 # The library search path used internally by the compiler when linking
27138 # a shared library.
27139 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27140
27141 # Method to check whether dependent libraries are shared objects.
27142 deplibs_check_method=$lt_deplibs_check_method
27143
27144 # Command to use when deplibs_check_method == file_magic.
27145 file_magic_cmd=$lt_file_magic_cmd
27146
27147 # Flag that allows shared libraries with undefined symbols to be built.
27148 allow_undefined_flag=$lt_allow_undefined_flag_RC
27149
27150 # Flag that forces no undefined symbols.
27151 no_undefined_flag=$lt_no_undefined_flag_RC
27152
27153 # Commands used to finish a libtool library installation in a directory.
27154 finish_cmds=$lt_finish_cmds
27155
27156 # Same as above, but a single script fragment to be evaled but not shown.
27157 finish_eval=$lt_finish_eval
27158
27159 # Take the output of nm and produce a listing of raw symbols and C names.
27160 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27161
27162 # Transform the output of nm in a proper C declaration
27163 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27164
27165 # Transform the output of nm in a C name address pair
27166 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27167
27168 # This is the shared library runtime path variable.
27169 runpath_var=$runpath_var
27170
27171 # This is the shared library path variable.
27172 shlibpath_var=$shlibpath_var
27173
27174 # Is shlibpath searched before the hard-coded library search path?
27175 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27176
27177 # How to hardcode a shared library path into an executable.
27178 hardcode_action=$hardcode_action_RC
27179
27180 # Whether we should hardcode library paths into libraries.
27181 hardcode_into_libs=$hardcode_into_libs
27182
27183 # Flag to hardcode \$libdir into a binary during linking.
27184 # This must work even if \$libdir does not exist.
27185 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27186
27187 # If ld is used when linking, flag to hardcode \$libdir into
27188 # a binary during linking. This must work even if \$libdir does
27189 # not exist.
27190 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27191
27192 # Whether we need a single -rpath flag with a separated argument.
27193 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27194
27195 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27196 # resulting binary.
27197 hardcode_direct=$hardcode_direct_RC
27198
27199 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27200 # resulting binary.
27201 hardcode_minus_L=$hardcode_minus_L_RC
27202
27203 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27204 # the resulting binary.
27205 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27206
27207 # Set to yes if building a shared library automatically hardcodes DIR into the library
27208 # and all subsequent libraries and executables linked against it.
27209 hardcode_automatic=$hardcode_automatic_RC
27210
27211 # Variables whose values should be saved in libtool wrapper scripts and
27212 # restored at relink time.
27213 variables_saved_for_relink="$variables_saved_for_relink"
27214
27215 # Whether libtool must link a program against all its dependency libraries.
27216 link_all_deplibs=$link_all_deplibs_RC
27217
27218 # Compile-time system search path for libraries
27219 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27220
27221 # Run-time system search path for libraries
27222 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27223
27224 # Fix the shell variable \$srcfile for the compiler.
27225 fix_srcfile_path="$fix_srcfile_path_RC"
27226
27227 # Set to yes if exported symbols are required.
27228 always_export_symbols=$always_export_symbols_RC
27229
27230 # The commands to list exported symbols.
27231 export_symbols_cmds=$lt_export_symbols_cmds_RC
27232
27233 # The commands to extract the exported symbol list from a shared archive.
27234 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27235
27236 # Symbols that should not be listed in the preloaded symbols.
27237 exclude_expsyms=$lt_exclude_expsyms_RC
27238
27239 # Symbols that must always be exported.
27240 include_expsyms=$lt_include_expsyms_RC
27241
27242 # ### END LIBTOOL TAG CONFIG: $tagname
27243
27244 __EOF__
27245
27246
27247 else
27248   # If there is no Makefile yet, we rely on a make rule to execute
27249   # `config.status --recheck' to rerun these tests and create the
27250   # libtool script then.
27251   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27252   if test -f "$ltmain_in"; then
27253     test -f Makefile && make "$ltmain"
27254   fi
27255 fi
27256
27257
27258 ac_ext=c
27259 ac_cpp='$CPP $CPPFLAGS'
27260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27263
27264 CC="$lt_save_CC"
27265
27266         ;;
27267
27268       *)
27269         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27270 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27271    { (exit 1); exit 1; }; }
27272         ;;
27273       esac
27274
27275       # Append the new tag name to the list of available tags.
27276       if test -n "$tagname" ; then
27277       available_tags="$available_tags $tagname"
27278     fi
27279     fi
27280   done
27281   IFS="$lt_save_ifs"
27282
27283   # Now substitute the updated list of available tags.
27284   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27285     mv "${ofile}T" "$ofile"
27286     chmod +x "$ofile"
27287   else
27288     rm -f "${ofile}T"
27289     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27290 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27291    { (exit 1); exit 1; }; }
27292   fi
27293 fi
27294
27295
27296
27297 # This can be used to rebuild libtool when needed
27298 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27299
27300 # Always use our own libtool.
27301 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27302
27303 # Prevent multiple expansion
27304
27305
27306
27307
27308
27309
27310
27311
27312
27313
27314
27315
27316
27317
27318
27319
27320
27321
27322
27323
27324
27325 if test "$lt_cv_dlopen_self" = "yes" ; then
27326
27327 cat >>confdefs.h <<\_ACEOF
27328 #define CAN_DLOPEN_SELF 1
27329 _ACEOF
27330
27331 fi
27332
27333
27334 if test "$WITH_LLVMGCCDIR" = "default" ; then
27335   LLVMGCC="llvm-gcc${EXEEXT}"
27336   LLVMGXX="llvm-g++${EXEEXT}"
27337   LLVMGCCCOMMAND="$LLVMGCC"
27338   LLVMGXXCOMMAND="$LLVMGXX"
27339   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27340
27341   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27342
27343   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27344 set dummy $LLVMGCC; ac_word=$2
27345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27347 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27348   echo $ECHO_N "(cached) $ECHO_C" >&6
27349 else
27350   case $LLVMGCC in
27351   [\\/]* | ?:[\\/]*)
27352   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27353   ;;
27354   *)
27355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27356 for as_dir in $PATH
27357 do
27358   IFS=$as_save_IFS
27359   test -z "$as_dir" && as_dir=.
27360   for ac_exec_ext in '' $ac_executable_extensions; do
27361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27362     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27364     break 2
27365   fi
27366 done
27367 done
27368 IFS=$as_save_IFS
27369
27370   ;;
27371 esac
27372 fi
27373 LLVMGCC=$ac_cv_path_LLVMGCC
27374 if test -n "$LLVMGCC"; then
27375   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27376 echo "${ECHO_T}$LLVMGCC" >&6; }
27377 else
27378   { echo "$as_me:$LINENO: result: no" >&5
27379 echo "${ECHO_T}no" >&6; }
27380 fi
27381
27382
27383   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27384 set dummy $LLVMGXX; ac_word=$2
27385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27387 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27388   echo $ECHO_N "(cached) $ECHO_C" >&6
27389 else
27390   case $LLVMGXX in
27391   [\\/]* | ?:[\\/]*)
27392   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27393   ;;
27394   *)
27395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27396 for as_dir in $PATH
27397 do
27398   IFS=$as_save_IFS
27399   test -z "$as_dir" && as_dir=.
27400   for ac_exec_ext in '' $ac_executable_extensions; do
27401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27402     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27404     break 2
27405   fi
27406 done
27407 done
27408 IFS=$as_save_IFS
27409
27410   ;;
27411 esac
27412 fi
27413 LLVMGXX=$ac_cv_path_LLVMGXX
27414 if test -n "$LLVMGXX"; then
27415   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27416 echo "${ECHO_T}$LLVMGXX" >&6; }
27417 else
27418   { echo "$as_me:$LINENO: result: no" >&5
27419 echo "${ECHO_T}no" >&6; }
27420 fi
27421
27422
27423 else
27424   if test -z "$LLVMGCC"; then
27425     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27426     LLVMGCCCOMMAND="$LLVMGCC"
27427   fi
27428   if test -z "$LLVMGXX"; then
27429     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27430     LLVMGXXCOMMAND="$LLVMGXX"
27431   fi
27432
27433   LLVMGCC=$LLVMGCC
27434
27435   LLVMGXX=$LLVMGXX
27436
27437   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27438
27439   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27440
27441 fi
27442
27443
27444 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27445 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27446
27447 ICC=no
27448 IXX=no
27449 case $CC in
27450   icc*|icpc*)
27451     ICC=yes
27452     IXX=yes
27453     ;;
27454    *)
27455     ;;
27456 esac
27457
27458 if test "$GCC" != "yes" && test "$ICC" != "yes"
27459 then
27460   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27461 echo "$as_me: error: gcc|icc required but not found" >&2;}
27462    { (exit 1); exit 1; }; }
27463 fi
27464
27465 if test "$GXX" != "yes" && test "$IXX" != "yes"
27466 then
27467   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27468 echo "$as_me: error: g++|icc required but not found" >&2;}
27469    { (exit 1); exit 1; }; }
27470 fi
27471
27472 if test "$GCC" = "yes"
27473 then
27474   cat >conftest.$ac_ext <<_ACEOF
27475 #if !defined(__GNUC__) || __GNUC__ < 3
27476 #error Unsupported GCC version
27477 #endif
27478
27479 _ACEOF
27480 rm -f conftest.$ac_objext
27481 if { (ac_try="$ac_compile"
27482 case "(($ac_try" in
27483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27484   *) ac_try_echo=$ac_try;;
27485 esac
27486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27487   (eval "$ac_compile") 2>conftest.er1
27488   ac_status=$?
27489   grep -v '^ *+' conftest.er1 >conftest.err
27490   rm -f conftest.er1
27491   cat conftest.err >&5
27492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493   (exit $ac_status); } &&
27494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27495   { (case "(($ac_try" in
27496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27497   *) ac_try_echo=$ac_try;;
27498 esac
27499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27500   (eval "$ac_try") 2>&5
27501   ac_status=$?
27502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503   (exit $ac_status); }; } &&
27504          { ac_try='test -s conftest.$ac_objext'
27505   { (case "(($ac_try" in
27506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27507   *) ac_try_echo=$ac_try;;
27508 esac
27509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27510   (eval "$ac_try") 2>&5
27511   ac_status=$?
27512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513   (exit $ac_status); }; }; then
27514   :
27515 else
27516   echo "$as_me: failed program was:" >&5
27517 sed 's/^/| /' conftest.$ac_ext >&5
27518
27519         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27520 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27521    { (exit 1); exit 1; }; }
27522 fi
27523
27524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27525 fi
27526
27527 if test -z "$llvm_cv_gnu_make_command"
27528 then
27529   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27530 echo "$as_me: error: GNU Make required but not found" >&2;}
27531    { (exit 1); exit 1; }; }
27532 fi
27533
27534 { echo "$as_me:$LINENO: result: ok" >&5
27535 echo "${ECHO_T}ok" >&6; }
27536
27537
27538
27539 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27540 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27541 if test "${ac_cv_lib_m_sin+set}" = set; then
27542   echo $ECHO_N "(cached) $ECHO_C" >&6
27543 else
27544   ac_check_lib_save_LIBS=$LIBS
27545 LIBS="-lm  $LIBS"
27546 cat >conftest.$ac_ext <<_ACEOF
27547 /* confdefs.h.  */
27548 _ACEOF
27549 cat confdefs.h >>conftest.$ac_ext
27550 cat >>conftest.$ac_ext <<_ACEOF
27551 /* end confdefs.h.  */
27552
27553 /* Override any GCC internal prototype to avoid an error.
27554    Use char because int might match the return type of a GCC
27555    builtin and then its argument prototype would still apply.  */
27556 #ifdef __cplusplus
27557 extern "C"
27558 #endif
27559 char sin ();
27560 int
27561 main ()
27562 {
27563 return sin ();
27564   ;
27565   return 0;
27566 }
27567 _ACEOF
27568 rm -f conftest.$ac_objext conftest$ac_exeext
27569 if { (ac_try="$ac_link"
27570 case "(($ac_try" in
27571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27572   *) ac_try_echo=$ac_try;;
27573 esac
27574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27575   (eval "$ac_link") 2>conftest.er1
27576   ac_status=$?
27577   grep -v '^ *+' conftest.er1 >conftest.err
27578   rm -f conftest.er1
27579   cat conftest.err >&5
27580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581   (exit $ac_status); } &&
27582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27583   { (case "(($ac_try" in
27584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27585   *) ac_try_echo=$ac_try;;
27586 esac
27587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27588   (eval "$ac_try") 2>&5
27589   ac_status=$?
27590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591   (exit $ac_status); }; } &&
27592          { ac_try='test -s conftest$ac_exeext'
27593   { (case "(($ac_try" in
27594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27595   *) ac_try_echo=$ac_try;;
27596 esac
27597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27598   (eval "$ac_try") 2>&5
27599   ac_status=$?
27600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601   (exit $ac_status); }; }; then
27602   ac_cv_lib_m_sin=yes
27603 else
27604   echo "$as_me: failed program was:" >&5
27605 sed 's/^/| /' conftest.$ac_ext >&5
27606
27607         ac_cv_lib_m_sin=no
27608 fi
27609
27610 rm -f core conftest.err conftest.$ac_objext \
27611       conftest$ac_exeext conftest.$ac_ext
27612 LIBS=$ac_check_lib_save_LIBS
27613 fi
27614 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27615 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27616 if test $ac_cv_lib_m_sin = yes; then
27617   cat >>confdefs.h <<_ACEOF
27618 #define HAVE_LIBM 1
27619 _ACEOF
27620
27621   LIBS="-lm $LIBS"
27622
27623 fi
27624
27625 if test "$llvm_cv_os_type" = "MingW" ; then
27626
27627 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27628 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27629 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27630   echo $ECHO_N "(cached) $ECHO_C" >&6
27631 else
27632   ac_check_lib_save_LIBS=$LIBS
27633 LIBS="-limagehlp  $LIBS"
27634 cat >conftest.$ac_ext <<_ACEOF
27635 /* confdefs.h.  */
27636 _ACEOF
27637 cat confdefs.h >>conftest.$ac_ext
27638 cat >>conftest.$ac_ext <<_ACEOF
27639 /* end confdefs.h.  */
27640
27641
27642 int
27643 main ()
27644 {
27645 return main ();
27646   ;
27647   return 0;
27648 }
27649 _ACEOF
27650 rm -f conftest.$ac_objext conftest$ac_exeext
27651 if { (ac_try="$ac_link"
27652 case "(($ac_try" in
27653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27654   *) ac_try_echo=$ac_try;;
27655 esac
27656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27657   (eval "$ac_link") 2>conftest.er1
27658   ac_status=$?
27659   grep -v '^ *+' conftest.er1 >conftest.err
27660   rm -f conftest.er1
27661   cat conftest.err >&5
27662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663   (exit $ac_status); } &&
27664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27665   { (case "(($ac_try" in
27666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27667   *) ac_try_echo=$ac_try;;
27668 esac
27669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27670   (eval "$ac_try") 2>&5
27671   ac_status=$?
27672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673   (exit $ac_status); }; } &&
27674          { ac_try='test -s conftest$ac_exeext'
27675   { (case "(($ac_try" in
27676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677   *) ac_try_echo=$ac_try;;
27678 esac
27679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680   (eval "$ac_try") 2>&5
27681   ac_status=$?
27682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683   (exit $ac_status); }; }; then
27684   ac_cv_lib_imagehlp_main=yes
27685 else
27686   echo "$as_me: failed program was:" >&5
27687 sed 's/^/| /' conftest.$ac_ext >&5
27688
27689         ac_cv_lib_imagehlp_main=no
27690 fi
27691
27692 rm -f core conftest.err conftest.$ac_objext \
27693       conftest$ac_exeext conftest.$ac_ext
27694 LIBS=$ac_check_lib_save_LIBS
27695 fi
27696 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27697 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27698 if test $ac_cv_lib_imagehlp_main = yes; then
27699   cat >>confdefs.h <<_ACEOF
27700 #define HAVE_LIBIMAGEHLP 1
27701 _ACEOF
27702
27703   LIBS="-limagehlp $LIBS"
27704
27705 fi
27706
27707
27708 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27709 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27710 if test "${ac_cv_lib_psapi_main+set}" = set; then
27711   echo $ECHO_N "(cached) $ECHO_C" >&6
27712 else
27713   ac_check_lib_save_LIBS=$LIBS
27714 LIBS="-lpsapi  $LIBS"
27715 cat >conftest.$ac_ext <<_ACEOF
27716 /* confdefs.h.  */
27717 _ACEOF
27718 cat confdefs.h >>conftest.$ac_ext
27719 cat >>conftest.$ac_ext <<_ACEOF
27720 /* end confdefs.h.  */
27721
27722
27723 int
27724 main ()
27725 {
27726 return main ();
27727   ;
27728   return 0;
27729 }
27730 _ACEOF
27731 rm -f conftest.$ac_objext conftest$ac_exeext
27732 if { (ac_try="$ac_link"
27733 case "(($ac_try" in
27734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27735   *) ac_try_echo=$ac_try;;
27736 esac
27737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27738   (eval "$ac_link") 2>conftest.er1
27739   ac_status=$?
27740   grep -v '^ *+' conftest.er1 >conftest.err
27741   rm -f conftest.er1
27742   cat conftest.err >&5
27743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744   (exit $ac_status); } &&
27745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27746   { (case "(($ac_try" in
27747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27748   *) ac_try_echo=$ac_try;;
27749 esac
27750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27751   (eval "$ac_try") 2>&5
27752   ac_status=$?
27753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754   (exit $ac_status); }; } &&
27755          { ac_try='test -s conftest$ac_exeext'
27756   { (case "(($ac_try" in
27757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758   *) ac_try_echo=$ac_try;;
27759 esac
27760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761   (eval "$ac_try") 2>&5
27762   ac_status=$?
27763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764   (exit $ac_status); }; }; then
27765   ac_cv_lib_psapi_main=yes
27766 else
27767   echo "$as_me: failed program was:" >&5
27768 sed 's/^/| /' conftest.$ac_ext >&5
27769
27770         ac_cv_lib_psapi_main=no
27771 fi
27772
27773 rm -f core conftest.err conftest.$ac_objext \
27774       conftest$ac_exeext conftest.$ac_ext
27775 LIBS=$ac_check_lib_save_LIBS
27776 fi
27777 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27778 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27779 if test $ac_cv_lib_psapi_main = yes; then
27780   cat >>confdefs.h <<_ACEOF
27781 #define HAVE_LIBPSAPI 1
27782 _ACEOF
27783
27784   LIBS="-lpsapi $LIBS"
27785
27786 fi
27787
27788 fi
27789
27790 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27791 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27792 if test "${ac_cv_search_dlopen+set}" = set; then
27793   echo $ECHO_N "(cached) $ECHO_C" >&6
27794 else
27795   ac_func_search_save_LIBS=$LIBS
27796 cat >conftest.$ac_ext <<_ACEOF
27797 /* confdefs.h.  */
27798 _ACEOF
27799 cat confdefs.h >>conftest.$ac_ext
27800 cat >>conftest.$ac_ext <<_ACEOF
27801 /* end confdefs.h.  */
27802
27803 /* Override any GCC internal prototype to avoid an error.
27804    Use char because int might match the return type of a GCC
27805    builtin and then its argument prototype would still apply.  */
27806 #ifdef __cplusplus
27807 extern "C"
27808 #endif
27809 char dlopen ();
27810 int
27811 main ()
27812 {
27813 return dlopen ();
27814   ;
27815   return 0;
27816 }
27817 _ACEOF
27818 for ac_lib in '' dl; do
27819   if test -z "$ac_lib"; then
27820     ac_res="none required"
27821   else
27822     ac_res=-l$ac_lib
27823     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27824   fi
27825   rm -f conftest.$ac_objext conftest$ac_exeext
27826 if { (ac_try="$ac_link"
27827 case "(($ac_try" in
27828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27829   *) ac_try_echo=$ac_try;;
27830 esac
27831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27832   (eval "$ac_link") 2>conftest.er1
27833   ac_status=$?
27834   grep -v '^ *+' conftest.er1 >conftest.err
27835   rm -f conftest.er1
27836   cat conftest.err >&5
27837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838   (exit $ac_status); } &&
27839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27840   { (case "(($ac_try" in
27841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27842   *) ac_try_echo=$ac_try;;
27843 esac
27844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27845   (eval "$ac_try") 2>&5
27846   ac_status=$?
27847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848   (exit $ac_status); }; } &&
27849          { ac_try='test -s conftest$ac_exeext'
27850   { (case "(($ac_try" in
27851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27852   *) ac_try_echo=$ac_try;;
27853 esac
27854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27855   (eval "$ac_try") 2>&5
27856   ac_status=$?
27857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27858   (exit $ac_status); }; }; then
27859   ac_cv_search_dlopen=$ac_res
27860 else
27861   echo "$as_me: failed program was:" >&5
27862 sed 's/^/| /' conftest.$ac_ext >&5
27863
27864
27865 fi
27866
27867 rm -f core conftest.err conftest.$ac_objext \
27868       conftest$ac_exeext
27869   if test "${ac_cv_search_dlopen+set}" = set; then
27870   break
27871 fi
27872 done
27873 if test "${ac_cv_search_dlopen+set}" = set; then
27874   :
27875 else
27876   ac_cv_search_dlopen=no
27877 fi
27878 rm conftest.$ac_ext
27879 LIBS=$ac_func_search_save_LIBS
27880 fi
27881 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27882 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27883 ac_res=$ac_cv_search_dlopen
27884 if test "$ac_res" != no; then
27885   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27886
27887 cat >>confdefs.h <<\_ACEOF
27888 #define HAVE_DLOPEN 1
27889 _ACEOF
27890
27891 else
27892   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27893 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27894 fi
27895
27896
27897 if test "$llvm_cv_enable_libffi" = "yes" ; then
27898   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27899 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27900 if test "${ac_cv_search_ffi_call+set}" = set; then
27901   echo $ECHO_N "(cached) $ECHO_C" >&6
27902 else
27903   ac_func_search_save_LIBS=$LIBS
27904 cat >conftest.$ac_ext <<_ACEOF
27905 /* confdefs.h.  */
27906 _ACEOF
27907 cat confdefs.h >>conftest.$ac_ext
27908 cat >>conftest.$ac_ext <<_ACEOF
27909 /* end confdefs.h.  */
27910
27911 /* Override any GCC internal prototype to avoid an error.
27912    Use char because int might match the return type of a GCC
27913    builtin and then its argument prototype would still apply.  */
27914 #ifdef __cplusplus
27915 extern "C"
27916 #endif
27917 char ffi_call ();
27918 int
27919 main ()
27920 {
27921 return ffi_call ();
27922   ;
27923   return 0;
27924 }
27925 _ACEOF
27926 for ac_lib in '' ffi; do
27927   if test -z "$ac_lib"; then
27928     ac_res="none required"
27929   else
27930     ac_res=-l$ac_lib
27931     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27932   fi
27933   rm -f conftest.$ac_objext conftest$ac_exeext
27934 if { (ac_try="$ac_link"
27935 case "(($ac_try" in
27936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27937   *) ac_try_echo=$ac_try;;
27938 esac
27939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27940   (eval "$ac_link") 2>conftest.er1
27941   ac_status=$?
27942   grep -v '^ *+' conftest.er1 >conftest.err
27943   rm -f conftest.er1
27944   cat conftest.err >&5
27945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946   (exit $ac_status); } &&
27947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27948   { (case "(($ac_try" in
27949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27950   *) ac_try_echo=$ac_try;;
27951 esac
27952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27953   (eval "$ac_try") 2>&5
27954   ac_status=$?
27955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956   (exit $ac_status); }; } &&
27957          { ac_try='test -s conftest$ac_exeext'
27958   { (case "(($ac_try" in
27959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27960   *) ac_try_echo=$ac_try;;
27961 esac
27962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27963   (eval "$ac_try") 2>&5
27964   ac_status=$?
27965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966   (exit $ac_status); }; }; then
27967   ac_cv_search_ffi_call=$ac_res
27968 else
27969   echo "$as_me: failed program was:" >&5
27970 sed 's/^/| /' conftest.$ac_ext >&5
27971
27972
27973 fi
27974
27975 rm -f core conftest.err conftest.$ac_objext \
27976       conftest$ac_exeext
27977   if test "${ac_cv_search_ffi_call+set}" = set; then
27978   break
27979 fi
27980 done
27981 if test "${ac_cv_search_ffi_call+set}" = set; then
27982   :
27983 else
27984   ac_cv_search_ffi_call=no
27985 fi
27986 rm conftest.$ac_ext
27987 LIBS=$ac_func_search_save_LIBS
27988 fi
27989 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27990 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27991 ac_res=$ac_cv_search_ffi_call
27992 if test "$ac_res" != no; then
27993   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27994
27995 cat >>confdefs.h <<\_ACEOF
27996 #define HAVE_FFI_CALL 1
27997 _ACEOF
27998
27999 else
28000   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
28001 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
28002 fi
28003
28004 fi
28005
28006 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
28007 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
28008 if test "${ac_cv_search_mallinfo+set}" = set; then
28009   echo $ECHO_N "(cached) $ECHO_C" >&6
28010 else
28011   ac_func_search_save_LIBS=$LIBS
28012 cat >conftest.$ac_ext <<_ACEOF
28013 /* confdefs.h.  */
28014 _ACEOF
28015 cat confdefs.h >>conftest.$ac_ext
28016 cat >>conftest.$ac_ext <<_ACEOF
28017 /* end confdefs.h.  */
28018
28019 /* Override any GCC internal prototype to avoid an error.
28020    Use char because int might match the return type of a GCC
28021    builtin and then its argument prototype would still apply.  */
28022 #ifdef __cplusplus
28023 extern "C"
28024 #endif
28025 char mallinfo ();
28026 int
28027 main ()
28028 {
28029 return mallinfo ();
28030   ;
28031   return 0;
28032 }
28033 _ACEOF
28034 for ac_lib in '' malloc; do
28035   if test -z "$ac_lib"; then
28036     ac_res="none required"
28037   else
28038     ac_res=-l$ac_lib
28039     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28040   fi
28041   rm -f conftest.$ac_objext conftest$ac_exeext
28042 if { (ac_try="$ac_link"
28043 case "(($ac_try" in
28044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28045   *) ac_try_echo=$ac_try;;
28046 esac
28047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28048   (eval "$ac_link") 2>conftest.er1
28049   ac_status=$?
28050   grep -v '^ *+' conftest.er1 >conftest.err
28051   rm -f conftest.er1
28052   cat conftest.err >&5
28053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054   (exit $ac_status); } &&
28055          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28056   { (case "(($ac_try" in
28057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28058   *) ac_try_echo=$ac_try;;
28059 esac
28060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28061   (eval "$ac_try") 2>&5
28062   ac_status=$?
28063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064   (exit $ac_status); }; } &&
28065          { ac_try='test -s conftest$ac_exeext'
28066   { (case "(($ac_try" in
28067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068   *) ac_try_echo=$ac_try;;
28069 esac
28070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28071   (eval "$ac_try") 2>&5
28072   ac_status=$?
28073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074   (exit $ac_status); }; }; then
28075   ac_cv_search_mallinfo=$ac_res
28076 else
28077   echo "$as_me: failed program was:" >&5
28078 sed 's/^/| /' conftest.$ac_ext >&5
28079
28080
28081 fi
28082
28083 rm -f core conftest.err conftest.$ac_objext \
28084       conftest$ac_exeext
28085   if test "${ac_cv_search_mallinfo+set}" = set; then
28086   break
28087 fi
28088 done
28089 if test "${ac_cv_search_mallinfo+set}" = set; then
28090   :
28091 else
28092   ac_cv_search_mallinfo=no
28093 fi
28094 rm conftest.$ac_ext
28095 LIBS=$ac_func_search_save_LIBS
28096 fi
28097 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28098 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28099 ac_res=$ac_cv_search_mallinfo
28100 if test "$ac_res" != no; then
28101   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28102
28103 cat >>confdefs.h <<\_ACEOF
28104 #define HAVE_MALLINFO 1
28105 _ACEOF
28106
28107 fi
28108
28109
28110 if test "$ENABLE_THREADS" -eq 1 ; then
28111
28112 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28113 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28114 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28115   echo $ECHO_N "(cached) $ECHO_C" >&6
28116 else
28117   ac_check_lib_save_LIBS=$LIBS
28118 LIBS="-lpthread  $LIBS"
28119 cat >conftest.$ac_ext <<_ACEOF
28120 /* confdefs.h.  */
28121 _ACEOF
28122 cat confdefs.h >>conftest.$ac_ext
28123 cat >>conftest.$ac_ext <<_ACEOF
28124 /* end confdefs.h.  */
28125
28126 /* Override any GCC internal prototype to avoid an error.
28127    Use char because int might match the return type of a GCC
28128    builtin and then its argument prototype would still apply.  */
28129 #ifdef __cplusplus
28130 extern "C"
28131 #endif
28132 char pthread_mutex_init ();
28133 int
28134 main ()
28135 {
28136 return pthread_mutex_init ();
28137   ;
28138   return 0;
28139 }
28140 _ACEOF
28141 rm -f conftest.$ac_objext conftest$ac_exeext
28142 if { (ac_try="$ac_link"
28143 case "(($ac_try" in
28144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28145   *) ac_try_echo=$ac_try;;
28146 esac
28147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28148   (eval "$ac_link") 2>conftest.er1
28149   ac_status=$?
28150   grep -v '^ *+' conftest.er1 >conftest.err
28151   rm -f conftest.er1
28152   cat conftest.err >&5
28153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154   (exit $ac_status); } &&
28155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28156   { (case "(($ac_try" in
28157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28158   *) ac_try_echo=$ac_try;;
28159 esac
28160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28161   (eval "$ac_try") 2>&5
28162   ac_status=$?
28163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164   (exit $ac_status); }; } &&
28165          { ac_try='test -s conftest$ac_exeext'
28166   { (case "(($ac_try" in
28167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168   *) ac_try_echo=$ac_try;;
28169 esac
28170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171   (eval "$ac_try") 2>&5
28172   ac_status=$?
28173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174   (exit $ac_status); }; }; then
28175   ac_cv_lib_pthread_pthread_mutex_init=yes
28176 else
28177   echo "$as_me: failed program was:" >&5
28178 sed 's/^/| /' conftest.$ac_ext >&5
28179
28180         ac_cv_lib_pthread_pthread_mutex_init=no
28181 fi
28182
28183 rm -f core conftest.err conftest.$ac_objext \
28184       conftest$ac_exeext conftest.$ac_ext
28185 LIBS=$ac_check_lib_save_LIBS
28186 fi
28187 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28188 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28189 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28190   cat >>confdefs.h <<_ACEOF
28191 #define HAVE_LIBPTHREAD 1
28192 _ACEOF
28193
28194   LIBS="-lpthread $LIBS"
28195
28196 fi
28197
28198   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28199 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28200 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28201   echo $ECHO_N "(cached) $ECHO_C" >&6
28202 else
28203   ac_func_search_save_LIBS=$LIBS
28204 cat >conftest.$ac_ext <<_ACEOF
28205 /* confdefs.h.  */
28206 _ACEOF
28207 cat confdefs.h >>conftest.$ac_ext
28208 cat >>conftest.$ac_ext <<_ACEOF
28209 /* end confdefs.h.  */
28210
28211 /* Override any GCC internal prototype to avoid an error.
28212    Use char because int might match the return type of a GCC
28213    builtin and then its argument prototype would still apply.  */
28214 #ifdef __cplusplus
28215 extern "C"
28216 #endif
28217 char pthread_mutex_lock ();
28218 int
28219 main ()
28220 {
28221 return pthread_mutex_lock ();
28222   ;
28223   return 0;
28224 }
28225 _ACEOF
28226 for ac_lib in '' pthread; do
28227   if test -z "$ac_lib"; then
28228     ac_res="none required"
28229   else
28230     ac_res=-l$ac_lib
28231     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28232   fi
28233   rm -f conftest.$ac_objext conftest$ac_exeext
28234 if { (ac_try="$ac_link"
28235 case "(($ac_try" in
28236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28237   *) ac_try_echo=$ac_try;;
28238 esac
28239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28240   (eval "$ac_link") 2>conftest.er1
28241   ac_status=$?
28242   grep -v '^ *+' conftest.er1 >conftest.err
28243   rm -f conftest.er1
28244   cat conftest.err >&5
28245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246   (exit $ac_status); } &&
28247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28248   { (case "(($ac_try" in
28249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28250   *) ac_try_echo=$ac_try;;
28251 esac
28252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28253   (eval "$ac_try") 2>&5
28254   ac_status=$?
28255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256   (exit $ac_status); }; } &&
28257          { ac_try='test -s conftest$ac_exeext'
28258   { (case "(($ac_try" in
28259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28260   *) ac_try_echo=$ac_try;;
28261 esac
28262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28263   (eval "$ac_try") 2>&5
28264   ac_status=$?
28265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266   (exit $ac_status); }; }; then
28267   ac_cv_search_pthread_mutex_lock=$ac_res
28268 else
28269   echo "$as_me: failed program was:" >&5
28270 sed 's/^/| /' conftest.$ac_ext >&5
28271
28272
28273 fi
28274
28275 rm -f core conftest.err conftest.$ac_objext \
28276       conftest$ac_exeext
28277   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28278   break
28279 fi
28280 done
28281 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28282   :
28283 else
28284   ac_cv_search_pthread_mutex_lock=no
28285 fi
28286 rm conftest.$ac_ext
28287 LIBS=$ac_func_search_save_LIBS
28288 fi
28289 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28290 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28291 ac_res=$ac_cv_search_pthread_mutex_lock
28292 if test "$ac_res" != no; then
28293   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28294
28295 cat >>confdefs.h <<\_ACEOF
28296 #define HAVE_PTHREAD_MUTEX_LOCK 1
28297 _ACEOF
28298
28299 fi
28300
28301   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28302 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28303 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28304   echo $ECHO_N "(cached) $ECHO_C" >&6
28305 else
28306   ac_func_search_save_LIBS=$LIBS
28307 cat >conftest.$ac_ext <<_ACEOF
28308 /* confdefs.h.  */
28309 _ACEOF
28310 cat confdefs.h >>conftest.$ac_ext
28311 cat >>conftest.$ac_ext <<_ACEOF
28312 /* end confdefs.h.  */
28313
28314 /* Override any GCC internal prototype to avoid an error.
28315    Use char because int might match the return type of a GCC
28316    builtin and then its argument prototype would still apply.  */
28317 #ifdef __cplusplus
28318 extern "C"
28319 #endif
28320 char pthread_rwlock_init ();
28321 int
28322 main ()
28323 {
28324 return pthread_rwlock_init ();
28325   ;
28326   return 0;
28327 }
28328 _ACEOF
28329 for ac_lib in '' pthread; do
28330   if test -z "$ac_lib"; then
28331     ac_res="none required"
28332   else
28333     ac_res=-l$ac_lib
28334     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28335   fi
28336   rm -f conftest.$ac_objext conftest$ac_exeext
28337 if { (ac_try="$ac_link"
28338 case "(($ac_try" in
28339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28340   *) ac_try_echo=$ac_try;;
28341 esac
28342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28343   (eval "$ac_link") 2>conftest.er1
28344   ac_status=$?
28345   grep -v '^ *+' conftest.er1 >conftest.err
28346   rm -f conftest.er1
28347   cat conftest.err >&5
28348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349   (exit $ac_status); } &&
28350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28351   { (case "(($ac_try" in
28352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353   *) ac_try_echo=$ac_try;;
28354 esac
28355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28356   (eval "$ac_try") 2>&5
28357   ac_status=$?
28358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359   (exit $ac_status); }; } &&
28360          { ac_try='test -s conftest$ac_exeext'
28361   { (case "(($ac_try" in
28362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28363   *) ac_try_echo=$ac_try;;
28364 esac
28365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28366   (eval "$ac_try") 2>&5
28367   ac_status=$?
28368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369   (exit $ac_status); }; }; then
28370   ac_cv_search_pthread_rwlock_init=$ac_res
28371 else
28372   echo "$as_me: failed program was:" >&5
28373 sed 's/^/| /' conftest.$ac_ext >&5
28374
28375
28376 fi
28377
28378 rm -f core conftest.err conftest.$ac_objext \
28379       conftest$ac_exeext
28380   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28381   break
28382 fi
28383 done
28384 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28385   :
28386 else
28387   ac_cv_search_pthread_rwlock_init=no
28388 fi
28389 rm conftest.$ac_ext
28390 LIBS=$ac_func_search_save_LIBS
28391 fi
28392 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28393 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28394 ac_res=$ac_cv_search_pthread_rwlock_init
28395 if test "$ac_res" != no; then
28396   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28397
28398 cat >>confdefs.h <<\_ACEOF
28399 #define HAVE_PTHREAD_RWLOCK_INIT 1
28400 _ACEOF
28401
28402 fi
28403
28404   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28405 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28406 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28407   echo $ECHO_N "(cached) $ECHO_C" >&6
28408 else
28409   ac_func_search_save_LIBS=$LIBS
28410 cat >conftest.$ac_ext <<_ACEOF
28411 /* confdefs.h.  */
28412 _ACEOF
28413 cat confdefs.h >>conftest.$ac_ext
28414 cat >>conftest.$ac_ext <<_ACEOF
28415 /* end confdefs.h.  */
28416
28417 /* Override any GCC internal prototype to avoid an error.
28418    Use char because int might match the return type of a GCC
28419    builtin and then its argument prototype would still apply.  */
28420 #ifdef __cplusplus
28421 extern "C"
28422 #endif
28423 char pthread_getspecific ();
28424 int
28425 main ()
28426 {
28427 return pthread_getspecific ();
28428   ;
28429   return 0;
28430 }
28431 _ACEOF
28432 for ac_lib in '' pthread; do
28433   if test -z "$ac_lib"; then
28434     ac_res="none required"
28435   else
28436     ac_res=-l$ac_lib
28437     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28438   fi
28439   rm -f conftest.$ac_objext conftest$ac_exeext
28440 if { (ac_try="$ac_link"
28441 case "(($ac_try" in
28442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28443   *) ac_try_echo=$ac_try;;
28444 esac
28445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28446   (eval "$ac_link") 2>conftest.er1
28447   ac_status=$?
28448   grep -v '^ *+' conftest.er1 >conftest.err
28449   rm -f conftest.er1
28450   cat conftest.err >&5
28451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452   (exit $ac_status); } &&
28453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28454   { (case "(($ac_try" in
28455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28456   *) ac_try_echo=$ac_try;;
28457 esac
28458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28459   (eval "$ac_try") 2>&5
28460   ac_status=$?
28461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462   (exit $ac_status); }; } &&
28463          { ac_try='test -s conftest$ac_exeext'
28464   { (case "(($ac_try" in
28465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28466   *) ac_try_echo=$ac_try;;
28467 esac
28468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28469   (eval "$ac_try") 2>&5
28470   ac_status=$?
28471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472   (exit $ac_status); }; }; then
28473   ac_cv_search_pthread_getspecific=$ac_res
28474 else
28475   echo "$as_me: failed program was:" >&5
28476 sed 's/^/| /' conftest.$ac_ext >&5
28477
28478
28479 fi
28480
28481 rm -f core conftest.err conftest.$ac_objext \
28482       conftest$ac_exeext
28483   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28484   break
28485 fi
28486 done
28487 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28488   :
28489 else
28490   ac_cv_search_pthread_getspecific=no
28491 fi
28492 rm conftest.$ac_ext
28493 LIBS=$ac_func_search_save_LIBS
28494 fi
28495 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28496 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28497 ac_res=$ac_cv_search_pthread_getspecific
28498 if test "$ac_res" != no; then
28499   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28500
28501 cat >>confdefs.h <<\_ACEOF
28502 #define HAVE_PTHREAD_GETSPECIFIC 1
28503 _ACEOF
28504
28505 fi
28506
28507 fi
28508
28509
28510 # Check whether --with-udis86 was given.
28511 if test "${with_udis86+set}" = set; then
28512   withval=$with_udis86;
28513       USE_UDIS86=1
28514
28515       case "$withval" in
28516         /usr/lib|yes) ;;
28517         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28518       esac
28519
28520 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28521 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28522 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28523   echo $ECHO_N "(cached) $ECHO_C" >&6
28524 else
28525   ac_check_lib_save_LIBS=$LIBS
28526 LIBS="-ludis86  $LIBS"
28527 cat >conftest.$ac_ext <<_ACEOF
28528 /* confdefs.h.  */
28529 _ACEOF
28530 cat confdefs.h >>conftest.$ac_ext
28531 cat >>conftest.$ac_ext <<_ACEOF
28532 /* end confdefs.h.  */
28533
28534 /* Override any GCC internal prototype to avoid an error.
28535    Use char because int might match the return type of a GCC
28536    builtin and then its argument prototype would still apply.  */
28537 #ifdef __cplusplus
28538 extern "C"
28539 #endif
28540 char ud_init ();
28541 int
28542 main ()
28543 {
28544 return ud_init ();
28545   ;
28546   return 0;
28547 }
28548 _ACEOF
28549 rm -f conftest.$ac_objext conftest$ac_exeext
28550 if { (ac_try="$ac_link"
28551 case "(($ac_try" in
28552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28553   *) ac_try_echo=$ac_try;;
28554 esac
28555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28556   (eval "$ac_link") 2>conftest.er1
28557   ac_status=$?
28558   grep -v '^ *+' conftest.er1 >conftest.err
28559   rm -f conftest.er1
28560   cat conftest.err >&5
28561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562   (exit $ac_status); } &&
28563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28564   { (case "(($ac_try" in
28565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28566   *) ac_try_echo=$ac_try;;
28567 esac
28568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28569   (eval "$ac_try") 2>&5
28570   ac_status=$?
28571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572   (exit $ac_status); }; } &&
28573          { ac_try='test -s conftest$ac_exeext'
28574   { (case "(($ac_try" in
28575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28576   *) ac_try_echo=$ac_try;;
28577 esac
28578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28579   (eval "$ac_try") 2>&5
28580   ac_status=$?
28581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582   (exit $ac_status); }; }; then
28583   ac_cv_lib_udis86_ud_init=yes
28584 else
28585   echo "$as_me: failed program was:" >&5
28586 sed 's/^/| /' conftest.$ac_ext >&5
28587
28588         ac_cv_lib_udis86_ud_init=no
28589 fi
28590
28591 rm -f core conftest.err conftest.$ac_objext \
28592       conftest$ac_exeext conftest.$ac_ext
28593 LIBS=$ac_check_lib_save_LIBS
28594 fi
28595 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28596 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28597 if test $ac_cv_lib_udis86_ud_init = yes; then
28598   cat >>confdefs.h <<_ACEOF
28599 #define HAVE_LIBUDIS86 1
28600 _ACEOF
28601
28602   LIBS="-ludis86 $LIBS"
28603
28604 else
28605
28606         echo "Error! You need to have libudis86 around."
28607         exit -1
28608
28609 fi
28610
28611
28612 else
28613   USE_UDIS86=0
28614
28615 fi
28616
28617
28618 cat >>confdefs.h <<_ACEOF
28619 #define USE_UDIS86 $USE_UDIS86
28620 _ACEOF
28621
28622
28623
28624 # Check whether --with-oprofile was given.
28625 if test "${with_oprofile+set}" = set; then
28626   withval=$with_oprofile;
28627       USE_OPROFILE=1
28628
28629       case "$withval" in
28630         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28631         *) llvm_cv_oppath="${withval}/lib/oprofile"
28632            CPPFLAGS="-I${withval}/include";;
28633       esac
28634       LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28635       { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28636 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28637 if test "${ac_cv_search_op_open_agent+set}" = set; then
28638   echo $ECHO_N "(cached) $ECHO_C" >&6
28639 else
28640   ac_func_search_save_LIBS=$LIBS
28641 cat >conftest.$ac_ext <<_ACEOF
28642 /* confdefs.h.  */
28643 _ACEOF
28644 cat confdefs.h >>conftest.$ac_ext
28645 cat >>conftest.$ac_ext <<_ACEOF
28646 /* end confdefs.h.  */
28647
28648 /* Override any GCC internal prototype to avoid an error.
28649    Use char because int might match the return type of a GCC
28650    builtin and then its argument prototype would still apply.  */
28651 #ifdef __cplusplus
28652 extern "C"
28653 #endif
28654 char op_open_agent ();
28655 int
28656 main ()
28657 {
28658 return op_open_agent ();
28659   ;
28660   return 0;
28661 }
28662 _ACEOF
28663 for ac_lib in '' opagent; do
28664   if test -z "$ac_lib"; then
28665     ac_res="none required"
28666   else
28667     ac_res=-l$ac_lib
28668     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28669   fi
28670   rm -f conftest.$ac_objext conftest$ac_exeext
28671 if { (ac_try="$ac_link"
28672 case "(($ac_try" in
28673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28674   *) ac_try_echo=$ac_try;;
28675 esac
28676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28677   (eval "$ac_link") 2>conftest.er1
28678   ac_status=$?
28679   grep -v '^ *+' conftest.er1 >conftest.err
28680   rm -f conftest.er1
28681   cat conftest.err >&5
28682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28683   (exit $ac_status); } &&
28684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28685   { (case "(($ac_try" in
28686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28687   *) ac_try_echo=$ac_try;;
28688 esac
28689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28690   (eval "$ac_try") 2>&5
28691   ac_status=$?
28692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693   (exit $ac_status); }; } &&
28694          { ac_try='test -s conftest$ac_exeext'
28695   { (case "(($ac_try" in
28696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697   *) ac_try_echo=$ac_try;;
28698 esac
28699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700   (eval "$ac_try") 2>&5
28701   ac_status=$?
28702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703   (exit $ac_status); }; }; then
28704   ac_cv_search_op_open_agent=$ac_res
28705 else
28706   echo "$as_me: failed program was:" >&5
28707 sed 's/^/| /' conftest.$ac_ext >&5
28708
28709
28710 fi
28711
28712 rm -f core conftest.err conftest.$ac_objext \
28713       conftest$ac_exeext
28714   if test "${ac_cv_search_op_open_agent+set}" = set; then
28715   break
28716 fi
28717 done
28718 if test "${ac_cv_search_op_open_agent+set}" = set; then
28719   :
28720 else
28721   ac_cv_search_op_open_agent=no
28722 fi
28723 rm conftest.$ac_ext
28724 LIBS=$ac_func_search_save_LIBS
28725 fi
28726 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28727 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28728 ac_res=$ac_cv_search_op_open_agent
28729 if test "$ac_res" != no; then
28730   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28731
28732 else
28733
28734         echo "Error! You need to have libopagent around."
28735         exit -1
28736
28737 fi
28738
28739       if test "${ac_cv_header_opagent_h+set}" = set; then
28740   { echo "$as_me:$LINENO: checking for opagent.h" >&5
28741 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28742 if test "${ac_cv_header_opagent_h+set}" = set; then
28743   echo $ECHO_N "(cached) $ECHO_C" >&6
28744 fi
28745 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28746 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28747 else
28748   # Is the header compilable?
28749 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28750 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28751 cat >conftest.$ac_ext <<_ACEOF
28752 /* confdefs.h.  */
28753 _ACEOF
28754 cat confdefs.h >>conftest.$ac_ext
28755 cat >>conftest.$ac_ext <<_ACEOF
28756 /* end confdefs.h.  */
28757 $ac_includes_default
28758 #include <opagent.h>
28759 _ACEOF
28760 rm -f conftest.$ac_objext
28761 if { (ac_try="$ac_compile"
28762 case "(($ac_try" in
28763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764   *) ac_try_echo=$ac_try;;
28765 esac
28766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767   (eval "$ac_compile") 2>conftest.er1
28768   ac_status=$?
28769   grep -v '^ *+' conftest.er1 >conftest.err
28770   rm -f conftest.er1
28771   cat conftest.err >&5
28772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773   (exit $ac_status); } &&
28774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28775   { (case "(($ac_try" in
28776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777   *) ac_try_echo=$ac_try;;
28778 esac
28779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780   (eval "$ac_try") 2>&5
28781   ac_status=$?
28782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783   (exit $ac_status); }; } &&
28784          { ac_try='test -s conftest.$ac_objext'
28785   { (case "(($ac_try" in
28786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28787   *) ac_try_echo=$ac_try;;
28788 esac
28789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28790   (eval "$ac_try") 2>&5
28791   ac_status=$?
28792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793   (exit $ac_status); }; }; then
28794   ac_header_compiler=yes
28795 else
28796   echo "$as_me: failed program was:" >&5
28797 sed 's/^/| /' conftest.$ac_ext >&5
28798
28799         ac_header_compiler=no
28800 fi
28801
28802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28804 echo "${ECHO_T}$ac_header_compiler" >&6; }
28805
28806 # Is the header present?
28807 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28808 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28809 cat >conftest.$ac_ext <<_ACEOF
28810 /* confdefs.h.  */
28811 _ACEOF
28812 cat confdefs.h >>conftest.$ac_ext
28813 cat >>conftest.$ac_ext <<_ACEOF
28814 /* end confdefs.h.  */
28815 #include <opagent.h>
28816 _ACEOF
28817 if { (ac_try="$ac_cpp conftest.$ac_ext"
28818 case "(($ac_try" in
28819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28820   *) ac_try_echo=$ac_try;;
28821 esac
28822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28823   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28824   ac_status=$?
28825   grep -v '^ *+' conftest.er1 >conftest.err
28826   rm -f conftest.er1
28827   cat conftest.err >&5
28828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829   (exit $ac_status); } >/dev/null; then
28830   if test -s conftest.err; then
28831     ac_cpp_err=$ac_c_preproc_warn_flag
28832     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28833   else
28834     ac_cpp_err=
28835   fi
28836 else
28837   ac_cpp_err=yes
28838 fi
28839 if test -z "$ac_cpp_err"; then
28840   ac_header_preproc=yes
28841 else
28842   echo "$as_me: failed program was:" >&5
28843 sed 's/^/| /' conftest.$ac_ext >&5
28844
28845   ac_header_preproc=no
28846 fi
28847
28848 rm -f conftest.err conftest.$ac_ext
28849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28850 echo "${ECHO_T}$ac_header_preproc" >&6; }
28851
28852 # So?  What about this header?
28853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28854   yes:no: )
28855     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28856 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28857     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28858 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28859     ac_header_preproc=yes
28860     ;;
28861   no:yes:* )
28862     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28863 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28864     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
28865 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
28866     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28867 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28868     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
28869 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28870     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28871 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28872     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28873 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28874     ( cat <<\_ASBOX
28875 ## ----------------------------------- ##
28876 ## Report this to llvmbugs@cs.uiuc.edu ##
28877 ## ----------------------------------- ##
28878 _ASBOX
28879      ) | sed "s/^/$as_me: WARNING:     /" >&2
28880     ;;
28881 esac
28882 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28883 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28884 if test "${ac_cv_header_opagent_h+set}" = set; then
28885   echo $ECHO_N "(cached) $ECHO_C" >&6
28886 else
28887   ac_cv_header_opagent_h=$ac_header_preproc
28888 fi
28889 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28890 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28891
28892 fi
28893 if test $ac_cv_header_opagent_h = yes; then
28894   :
28895 else
28896
28897         echo "Error! You need to have opagent.h around."
28898         exit -1
28899
28900 fi
28901
28902
28903
28904 else
28905
28906       llvm_cv_old_LIBS="$LIBS"
28907       LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28908             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28909 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28910 if test "${ac_cv_search_op_open_agent+set}" = set; then
28911   echo $ECHO_N "(cached) $ECHO_C" >&6
28912 else
28913   ac_func_search_save_LIBS=$LIBS
28914 cat >conftest.$ac_ext <<_ACEOF
28915 /* confdefs.h.  */
28916 _ACEOF
28917 cat confdefs.h >>conftest.$ac_ext
28918 cat >>conftest.$ac_ext <<_ACEOF
28919 /* end confdefs.h.  */
28920
28921 /* Override any GCC internal prototype to avoid an error.
28922    Use char because int might match the return type of a GCC
28923    builtin and then its argument prototype would still apply.  */
28924 #ifdef __cplusplus
28925 extern "C"
28926 #endif
28927 char op_open_agent ();
28928 int
28929 main ()
28930 {
28931 return op_open_agent ();
28932   ;
28933   return 0;
28934 }
28935 _ACEOF
28936 for ac_lib in '' opagent; do
28937   if test -z "$ac_lib"; then
28938     ac_res="none required"
28939   else
28940     ac_res=-l$ac_lib
28941     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28942   fi
28943   rm -f conftest.$ac_objext conftest$ac_exeext
28944 if { (ac_try="$ac_link"
28945 case "(($ac_try" in
28946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947   *) ac_try_echo=$ac_try;;
28948 esac
28949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950   (eval "$ac_link") 2>conftest.er1
28951   ac_status=$?
28952   grep -v '^ *+' conftest.er1 >conftest.err
28953   rm -f conftest.er1
28954   cat conftest.err >&5
28955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956   (exit $ac_status); } &&
28957          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28958   { (case "(($ac_try" in
28959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960   *) ac_try_echo=$ac_try;;
28961 esac
28962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28963   (eval "$ac_try") 2>&5
28964   ac_status=$?
28965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966   (exit $ac_status); }; } &&
28967          { ac_try='test -s conftest$ac_exeext'
28968   { (case "(($ac_try" in
28969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28970   *) ac_try_echo=$ac_try;;
28971 esac
28972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28973   (eval "$ac_try") 2>&5
28974   ac_status=$?
28975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976   (exit $ac_status); }; }; then
28977   ac_cv_search_op_open_agent=$ac_res
28978 else
28979   echo "$as_me: failed program was:" >&5
28980 sed 's/^/| /' conftest.$ac_ext >&5
28981
28982
28983 fi
28984
28985 rm -f core conftest.err conftest.$ac_objext \
28986       conftest$ac_exeext
28987   if test "${ac_cv_search_op_open_agent+set}" = set; then
28988   break
28989 fi
28990 done
28991 if test "${ac_cv_search_op_open_agent+set}" = set; then
28992   :
28993 else
28994   ac_cv_search_op_open_agent=no
28995 fi
28996 rm conftest.$ac_ext
28997 LIBS=$ac_func_search_save_LIBS
28998 fi
28999 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
29000 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
29001 ac_res=$ac_cv_search_op_open_agent
29002 if test "$ac_res" != no; then
29003   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29004   USE_OPROFILE=1
29005
29006 else
29007   LIBS="$llvm_cv_old_LIBS"
29008                       USE_OPROFILE=0
29009
29010 fi
29011
29012       if test "${ac_cv_header_opagent_h+set}" = set; then
29013   { echo "$as_me:$LINENO: checking for opagent.h" >&5
29014 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29015 if test "${ac_cv_header_opagent_h+set}" = set; then
29016   echo $ECHO_N "(cached) $ECHO_C" >&6
29017 fi
29018 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29019 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29020 else
29021   # Is the header compilable?
29022 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
29023 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
29024 cat >conftest.$ac_ext <<_ACEOF
29025 /* confdefs.h.  */
29026 _ACEOF
29027 cat confdefs.h >>conftest.$ac_ext
29028 cat >>conftest.$ac_ext <<_ACEOF
29029 /* end confdefs.h.  */
29030 $ac_includes_default
29031 #include <opagent.h>
29032 _ACEOF
29033 rm -f conftest.$ac_objext
29034 if { (ac_try="$ac_compile"
29035 case "(($ac_try" in
29036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037   *) ac_try_echo=$ac_try;;
29038 esac
29039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040   (eval "$ac_compile") 2>conftest.er1
29041   ac_status=$?
29042   grep -v '^ *+' conftest.er1 >conftest.err
29043   rm -f conftest.er1
29044   cat conftest.err >&5
29045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046   (exit $ac_status); } &&
29047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29048   { (case "(($ac_try" in
29049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29050   *) ac_try_echo=$ac_try;;
29051 esac
29052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29053   (eval "$ac_try") 2>&5
29054   ac_status=$?
29055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056   (exit $ac_status); }; } &&
29057          { ac_try='test -s conftest.$ac_objext'
29058   { (case "(($ac_try" in
29059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29060   *) ac_try_echo=$ac_try;;
29061 esac
29062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29063   (eval "$ac_try") 2>&5
29064   ac_status=$?
29065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066   (exit $ac_status); }; }; then
29067   ac_header_compiler=yes
29068 else
29069   echo "$as_me: failed program was:" >&5
29070 sed 's/^/| /' conftest.$ac_ext >&5
29071
29072         ac_header_compiler=no
29073 fi
29074
29075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29077 echo "${ECHO_T}$ac_header_compiler" >&6; }
29078
29079 # Is the header present?
29080 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
29081 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
29082 cat >conftest.$ac_ext <<_ACEOF
29083 /* confdefs.h.  */
29084 _ACEOF
29085 cat confdefs.h >>conftest.$ac_ext
29086 cat >>conftest.$ac_ext <<_ACEOF
29087 /* end confdefs.h.  */
29088 #include <opagent.h>
29089 _ACEOF
29090 if { (ac_try="$ac_cpp conftest.$ac_ext"
29091 case "(($ac_try" in
29092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29093   *) ac_try_echo=$ac_try;;
29094 esac
29095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29096   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29097   ac_status=$?
29098   grep -v '^ *+' conftest.er1 >conftest.err
29099   rm -f conftest.er1
29100   cat conftest.err >&5
29101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102   (exit $ac_status); } >/dev/null; then
29103   if test -s conftest.err; then
29104     ac_cpp_err=$ac_c_preproc_warn_flag
29105     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29106   else
29107     ac_cpp_err=
29108   fi
29109 else
29110   ac_cpp_err=yes
29111 fi
29112 if test -z "$ac_cpp_err"; then
29113   ac_header_preproc=yes
29114 else
29115   echo "$as_me: failed program was:" >&5
29116 sed 's/^/| /' conftest.$ac_ext >&5
29117
29118   ac_header_preproc=no
29119 fi
29120
29121 rm -f conftest.err conftest.$ac_ext
29122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29123 echo "${ECHO_T}$ac_header_preproc" >&6; }
29124
29125 # So?  What about this header?
29126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29127   yes:no: )
29128     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29129 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29130     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29131 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29132     ac_header_preproc=yes
29133     ;;
29134   no:yes:* )
29135     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29136 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29137     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
29138 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
29139     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29140 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29141     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
29142 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29143     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29144 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29145     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29146 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29147     ( cat <<\_ASBOX
29148 ## ----------------------------------- ##
29149 ## Report this to llvmbugs@cs.uiuc.edu ##
29150 ## ----------------------------------- ##
29151 _ASBOX
29152      ) | sed "s/^/$as_me: WARNING:     /" >&2
29153     ;;
29154 esac
29155 { echo "$as_me:$LINENO: checking for opagent.h" >&5
29156 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29157 if test "${ac_cv_header_opagent_h+set}" = set; then
29158   echo $ECHO_N "(cached) $ECHO_C" >&6
29159 else
29160   ac_cv_header_opagent_h=$ac_header_preproc
29161 fi
29162 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29163 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29164
29165 fi
29166 if test $ac_cv_header_opagent_h = yes; then
29167   :
29168 else
29169
29170         LIBS="$llvm_cv_old_LIBS"
29171         USE_OPROFILE=0
29172
29173
29174 fi
29175
29176
29177
29178 fi
29179
29180
29181 cat >>confdefs.h <<_ACEOF
29182 #define USE_OPROFILE $USE_OPROFILE
29183 _ACEOF
29184
29185
29186
29187
29188
29189
29190
29191
29192 ac_header_dirent=no
29193 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29194   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29195 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29196 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29198   echo $ECHO_N "(cached) $ECHO_C" >&6
29199 else
29200   cat >conftest.$ac_ext <<_ACEOF
29201 /* confdefs.h.  */
29202 _ACEOF
29203 cat confdefs.h >>conftest.$ac_ext
29204 cat >>conftest.$ac_ext <<_ACEOF
29205 /* end confdefs.h.  */
29206 #include <sys/types.h>
29207 #include <$ac_hdr>
29208
29209 int
29210 main ()
29211 {
29212 if ((DIR *) 0)
29213 return 0;
29214   ;
29215   return 0;
29216 }
29217 _ACEOF
29218 rm -f conftest.$ac_objext
29219 if { (ac_try="$ac_compile"
29220 case "(($ac_try" in
29221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29222   *) ac_try_echo=$ac_try;;
29223 esac
29224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29225   (eval "$ac_compile") 2>conftest.er1
29226   ac_status=$?
29227   grep -v '^ *+' conftest.er1 >conftest.err
29228   rm -f conftest.er1
29229   cat conftest.err >&5
29230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29231   (exit $ac_status); } &&
29232          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29233   { (case "(($ac_try" in
29234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29235   *) ac_try_echo=$ac_try;;
29236 esac
29237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29238   (eval "$ac_try") 2>&5
29239   ac_status=$?
29240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241   (exit $ac_status); }; } &&
29242          { ac_try='test -s conftest.$ac_objext'
29243   { (case "(($ac_try" in
29244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245   *) ac_try_echo=$ac_try;;
29246 esac
29247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248   (eval "$ac_try") 2>&5
29249   ac_status=$?
29250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251   (exit $ac_status); }; }; then
29252   eval "$as_ac_Header=yes"
29253 else
29254   echo "$as_me: failed program was:" >&5
29255 sed 's/^/| /' conftest.$ac_ext >&5
29256
29257         eval "$as_ac_Header=no"
29258 fi
29259
29260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29261 fi
29262 ac_res=`eval echo '${'$as_ac_Header'}'`
29263                { echo "$as_me:$LINENO: result: $ac_res" >&5
29264 echo "${ECHO_T}$ac_res" >&6; }
29265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29266   cat >>confdefs.h <<_ACEOF
29267 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29268 _ACEOF
29269
29270 ac_header_dirent=$ac_hdr; break
29271 fi
29272
29273 done
29274 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29275 if test $ac_header_dirent = dirent.h; then
29276   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29277 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29278 if test "${ac_cv_search_opendir+set}" = set; then
29279   echo $ECHO_N "(cached) $ECHO_C" >&6
29280 else
29281   ac_func_search_save_LIBS=$LIBS
29282 cat >conftest.$ac_ext <<_ACEOF
29283 /* confdefs.h.  */
29284 _ACEOF
29285 cat confdefs.h >>conftest.$ac_ext
29286 cat >>conftest.$ac_ext <<_ACEOF
29287 /* end confdefs.h.  */
29288
29289 /* Override any GCC internal prototype to avoid an error.
29290    Use char because int might match the return type of a GCC
29291    builtin and then its argument prototype would still apply.  */
29292 #ifdef __cplusplus
29293 extern "C"
29294 #endif
29295 char opendir ();
29296 int
29297 main ()
29298 {
29299 return opendir ();
29300   ;
29301   return 0;
29302 }
29303 _ACEOF
29304 for ac_lib in '' dir; do
29305   if test -z "$ac_lib"; then
29306     ac_res="none required"
29307   else
29308     ac_res=-l$ac_lib
29309     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29310   fi
29311   rm -f conftest.$ac_objext conftest$ac_exeext
29312 if { (ac_try="$ac_link"
29313 case "(($ac_try" in
29314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29315   *) ac_try_echo=$ac_try;;
29316 esac
29317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29318   (eval "$ac_link") 2>conftest.er1
29319   ac_status=$?
29320   grep -v '^ *+' conftest.er1 >conftest.err
29321   rm -f conftest.er1
29322   cat conftest.err >&5
29323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29324   (exit $ac_status); } &&
29325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29326   { (case "(($ac_try" in
29327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29328   *) ac_try_echo=$ac_try;;
29329 esac
29330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29331   (eval "$ac_try") 2>&5
29332   ac_status=$?
29333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334   (exit $ac_status); }; } &&
29335          { ac_try='test -s conftest$ac_exeext'
29336   { (case "(($ac_try" in
29337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29338   *) ac_try_echo=$ac_try;;
29339 esac
29340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29341   (eval "$ac_try") 2>&5
29342   ac_status=$?
29343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29344   (exit $ac_status); }; }; then
29345   ac_cv_search_opendir=$ac_res
29346 else
29347   echo "$as_me: failed program was:" >&5
29348 sed 's/^/| /' conftest.$ac_ext >&5
29349
29350
29351 fi
29352
29353 rm -f core conftest.err conftest.$ac_objext \
29354       conftest$ac_exeext
29355   if test "${ac_cv_search_opendir+set}" = set; then
29356   break
29357 fi
29358 done
29359 if test "${ac_cv_search_opendir+set}" = set; then
29360   :
29361 else
29362   ac_cv_search_opendir=no
29363 fi
29364 rm conftest.$ac_ext
29365 LIBS=$ac_func_search_save_LIBS
29366 fi
29367 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29368 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29369 ac_res=$ac_cv_search_opendir
29370 if test "$ac_res" != no; then
29371   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29372
29373 fi
29374
29375 else
29376   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29377 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29378 if test "${ac_cv_search_opendir+set}" = set; then
29379   echo $ECHO_N "(cached) $ECHO_C" >&6
29380 else
29381   ac_func_search_save_LIBS=$LIBS
29382 cat >conftest.$ac_ext <<_ACEOF
29383 /* confdefs.h.  */
29384 _ACEOF
29385 cat confdefs.h >>conftest.$ac_ext
29386 cat >>conftest.$ac_ext <<_ACEOF
29387 /* end confdefs.h.  */
29388
29389 /* Override any GCC internal prototype to avoid an error.
29390    Use char because int might match the return type of a GCC
29391    builtin and then its argument prototype would still apply.  */
29392 #ifdef __cplusplus
29393 extern "C"
29394 #endif
29395 char opendir ();
29396 int
29397 main ()
29398 {
29399 return opendir ();
29400   ;
29401   return 0;
29402 }
29403 _ACEOF
29404 for ac_lib in '' x; do
29405   if test -z "$ac_lib"; then
29406     ac_res="none required"
29407   else
29408     ac_res=-l$ac_lib
29409     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29410   fi
29411   rm -f conftest.$ac_objext conftest$ac_exeext
29412 if { (ac_try="$ac_link"
29413 case "(($ac_try" in
29414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415   *) ac_try_echo=$ac_try;;
29416 esac
29417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418   (eval "$ac_link") 2>conftest.er1
29419   ac_status=$?
29420   grep -v '^ *+' conftest.er1 >conftest.err
29421   rm -f conftest.er1
29422   cat conftest.err >&5
29423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29424   (exit $ac_status); } &&
29425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29426   { (case "(($ac_try" in
29427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29428   *) ac_try_echo=$ac_try;;
29429 esac
29430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29431   (eval "$ac_try") 2>&5
29432   ac_status=$?
29433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434   (exit $ac_status); }; } &&
29435          { ac_try='test -s conftest$ac_exeext'
29436   { (case "(($ac_try" in
29437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29438   *) ac_try_echo=$ac_try;;
29439 esac
29440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29441   (eval "$ac_try") 2>&5
29442   ac_status=$?
29443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444   (exit $ac_status); }; }; then
29445   ac_cv_search_opendir=$ac_res
29446 else
29447   echo "$as_me: failed program was:" >&5
29448 sed 's/^/| /' conftest.$ac_ext >&5
29449
29450
29451 fi
29452
29453 rm -f core conftest.err conftest.$ac_objext \
29454       conftest$ac_exeext
29455   if test "${ac_cv_search_opendir+set}" = set; then
29456   break
29457 fi
29458 done
29459 if test "${ac_cv_search_opendir+set}" = set; then
29460   :
29461 else
29462   ac_cv_search_opendir=no
29463 fi
29464 rm conftest.$ac_ext
29465 LIBS=$ac_func_search_save_LIBS
29466 fi
29467 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29468 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29469 ac_res=$ac_cv_search_opendir
29470 if test "$ac_res" != no; then
29471   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29472
29473 fi
29474
29475 fi
29476
29477 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29478 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29479 if test "${ac_cv_header_mmap_anon+set}" = set; then
29480   echo $ECHO_N "(cached) $ECHO_C" >&6
29481 else
29482    ac_ext=c
29483 ac_cpp='$CPP $CPPFLAGS'
29484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29487
29488   cat >conftest.$ac_ext <<_ACEOF
29489 /* confdefs.h.  */
29490 _ACEOF
29491 cat confdefs.h >>conftest.$ac_ext
29492 cat >>conftest.$ac_ext <<_ACEOF
29493 /* end confdefs.h.  */
29494 #include <sys/mman.h>
29495 #include <unistd.h>
29496 #include <fcntl.h>
29497 int
29498 main ()
29499 {
29500 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29501   ;
29502   return 0;
29503 }
29504 _ACEOF
29505 rm -f conftest.$ac_objext
29506 if { (ac_try="$ac_compile"
29507 case "(($ac_try" in
29508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29509   *) ac_try_echo=$ac_try;;
29510 esac
29511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29512   (eval "$ac_compile") 2>conftest.er1
29513   ac_status=$?
29514   grep -v '^ *+' conftest.er1 >conftest.err
29515   rm -f conftest.er1
29516   cat conftest.err >&5
29517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518   (exit $ac_status); } &&
29519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29520   { (case "(($ac_try" in
29521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29522   *) ac_try_echo=$ac_try;;
29523 esac
29524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29525   (eval "$ac_try") 2>&5
29526   ac_status=$?
29527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528   (exit $ac_status); }; } &&
29529          { ac_try='test -s conftest.$ac_objext'
29530   { (case "(($ac_try" in
29531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29532   *) ac_try_echo=$ac_try;;
29533 esac
29534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29535   (eval "$ac_try") 2>&5
29536   ac_status=$?
29537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538   (exit $ac_status); }; }; then
29539   ac_cv_header_mmap_anon=yes
29540 else
29541   echo "$as_me: failed program was:" >&5
29542 sed 's/^/| /' conftest.$ac_ext >&5
29543
29544         ac_cv_header_mmap_anon=no
29545 fi
29546
29547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29548   ac_ext=c
29549 ac_cpp='$CPP $CPPFLAGS'
29550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29553
29554
29555 fi
29556 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29557 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29558 if test "$ac_cv_header_mmap_anon" = yes; then
29559
29560 cat >>confdefs.h <<\_ACEOF
29561 #define HAVE_MMAP_ANONYMOUS 1
29562 _ACEOF
29563
29564 fi
29565
29566 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29567 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29568 if test "${ac_cv_header_stat_broken+set}" = set; then
29569   echo $ECHO_N "(cached) $ECHO_C" >&6
29570 else
29571   cat >conftest.$ac_ext <<_ACEOF
29572 /* confdefs.h.  */
29573 _ACEOF
29574 cat confdefs.h >>conftest.$ac_ext
29575 cat >>conftest.$ac_ext <<_ACEOF
29576 /* end confdefs.h.  */
29577 #include <sys/types.h>
29578 #include <sys/stat.h>
29579
29580 #if defined S_ISBLK && defined S_IFDIR
29581 # if S_ISBLK (S_IFDIR)
29582 You lose.
29583 # endif
29584 #endif
29585
29586 #if defined S_ISBLK && defined S_IFCHR
29587 # if S_ISBLK (S_IFCHR)
29588 You lose.
29589 # endif
29590 #endif
29591
29592 #if defined S_ISLNK && defined S_IFREG
29593 # if S_ISLNK (S_IFREG)
29594 You lose.
29595 # endif
29596 #endif
29597
29598 #if defined S_ISSOCK && defined S_IFREG
29599 # if S_ISSOCK (S_IFREG)
29600 You lose.
29601 # endif
29602 #endif
29603
29604 _ACEOF
29605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29606   $EGREP "You lose" >/dev/null 2>&1; then
29607   ac_cv_header_stat_broken=yes
29608 else
29609   ac_cv_header_stat_broken=no
29610 fi
29611 rm -f conftest*
29612
29613 fi
29614 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29615 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29616 if test $ac_cv_header_stat_broken = yes; then
29617
29618 cat >>confdefs.h <<\_ACEOF
29619 #define STAT_MACROS_BROKEN 1
29620 _ACEOF
29621
29622 fi
29623
29624 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29625 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29626 if test "${ac_cv_header_stdc+set}" = set; then
29627   echo $ECHO_N "(cached) $ECHO_C" >&6
29628 else
29629   cat >conftest.$ac_ext <<_ACEOF
29630 /* confdefs.h.  */
29631 _ACEOF
29632 cat confdefs.h >>conftest.$ac_ext
29633 cat >>conftest.$ac_ext <<_ACEOF
29634 /* end confdefs.h.  */
29635 #include <stdlib.h>
29636 #include <stdarg.h>
29637 #include <string.h>
29638 #include <float.h>
29639
29640 int
29641 main ()
29642 {
29643
29644   ;
29645   return 0;
29646 }
29647 _ACEOF
29648 rm -f conftest.$ac_objext
29649 if { (ac_try="$ac_compile"
29650 case "(($ac_try" in
29651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29652   *) ac_try_echo=$ac_try;;
29653 esac
29654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29655   (eval "$ac_compile") 2>conftest.er1
29656   ac_status=$?
29657   grep -v '^ *+' conftest.er1 >conftest.err
29658   rm -f conftest.er1
29659   cat conftest.err >&5
29660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661   (exit $ac_status); } &&
29662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29663   { (case "(($ac_try" in
29664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665   *) ac_try_echo=$ac_try;;
29666 esac
29667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668   (eval "$ac_try") 2>&5
29669   ac_status=$?
29670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29671   (exit $ac_status); }; } &&
29672          { ac_try='test -s conftest.$ac_objext'
29673   { (case "(($ac_try" in
29674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29675   *) ac_try_echo=$ac_try;;
29676 esac
29677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29678   (eval "$ac_try") 2>&5
29679   ac_status=$?
29680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681   (exit $ac_status); }; }; then
29682   ac_cv_header_stdc=yes
29683 else
29684   echo "$as_me: failed program was:" >&5
29685 sed 's/^/| /' conftest.$ac_ext >&5
29686
29687         ac_cv_header_stdc=no
29688 fi
29689
29690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29691
29692 if test $ac_cv_header_stdc = yes; then
29693   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29694   cat >conftest.$ac_ext <<_ACEOF
29695 /* confdefs.h.  */
29696 _ACEOF
29697 cat confdefs.h >>conftest.$ac_ext
29698 cat >>conftest.$ac_ext <<_ACEOF
29699 /* end confdefs.h.  */
29700 #include <string.h>
29701
29702 _ACEOF
29703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29704   $EGREP "memchr" >/dev/null 2>&1; then
29705   :
29706 else
29707   ac_cv_header_stdc=no
29708 fi
29709 rm -f conftest*
29710
29711 fi
29712
29713 if test $ac_cv_header_stdc = yes; then
29714   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29715   cat >conftest.$ac_ext <<_ACEOF
29716 /* confdefs.h.  */
29717 _ACEOF
29718 cat confdefs.h >>conftest.$ac_ext
29719 cat >>conftest.$ac_ext <<_ACEOF
29720 /* end confdefs.h.  */
29721 #include <stdlib.h>
29722
29723 _ACEOF
29724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29725   $EGREP "free" >/dev/null 2>&1; then
29726   :
29727 else
29728   ac_cv_header_stdc=no
29729 fi
29730 rm -f conftest*
29731
29732 fi
29733
29734 if test $ac_cv_header_stdc = yes; then
29735   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29736   if test "$cross_compiling" = yes; then
29737   :
29738 else
29739   cat >conftest.$ac_ext <<_ACEOF
29740 /* confdefs.h.  */
29741 _ACEOF
29742 cat confdefs.h >>conftest.$ac_ext
29743 cat >>conftest.$ac_ext <<_ACEOF
29744 /* end confdefs.h.  */
29745 #include <ctype.h>
29746 #include <stdlib.h>
29747 #if ((' ' & 0x0FF) == 0x020)
29748 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29749 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29750 #else
29751 # define ISLOWER(c) \
29752                    (('a' <= (c) && (c) <= 'i') \
29753                      || ('j' <= (c) && (c) <= 'r') \
29754                      || ('s' <= (c) && (c) <= 'z'))
29755 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29756 #endif
29757
29758 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29759 int
29760 main ()
29761 {
29762   int i;
29763   for (i = 0; i < 256; i++)
29764     if (XOR (islower (i), ISLOWER (i))
29765         || toupper (i) != TOUPPER (i))
29766       return 2;
29767   return 0;
29768 }
29769 _ACEOF
29770 rm -f conftest$ac_exeext
29771 if { (ac_try="$ac_link"
29772 case "(($ac_try" in
29773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29774   *) ac_try_echo=$ac_try;;
29775 esac
29776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29777   (eval "$ac_link") 2>&5
29778   ac_status=$?
29779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29781   { (case "(($ac_try" in
29782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783   *) ac_try_echo=$ac_try;;
29784 esac
29785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29786   (eval "$ac_try") 2>&5
29787   ac_status=$?
29788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789   (exit $ac_status); }; }; then
29790   :
29791 else
29792   echo "$as_me: program exited with status $ac_status" >&5
29793 echo "$as_me: failed program was:" >&5
29794 sed 's/^/| /' conftest.$ac_ext >&5
29795
29796 ( exit $ac_status )
29797 ac_cv_header_stdc=no
29798 fi
29799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29800 fi
29801
29802
29803 fi
29804 fi
29805 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29806 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29807 if test $ac_cv_header_stdc = yes; then
29808
29809 cat >>confdefs.h <<\_ACEOF
29810 #define STDC_HEADERS 1
29811 _ACEOF
29812
29813 fi
29814
29815 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29816 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29817 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29818   echo $ECHO_N "(cached) $ECHO_C" >&6
29819 else
29820   cat >conftest.$ac_ext <<_ACEOF
29821 /* confdefs.h.  */
29822 _ACEOF
29823 cat confdefs.h >>conftest.$ac_ext
29824 cat >>conftest.$ac_ext <<_ACEOF
29825 /* end confdefs.h.  */
29826 #include <sys/types.h>
29827 #include <sys/wait.h>
29828 #ifndef WEXITSTATUS
29829 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29830 #endif
29831 #ifndef WIFEXITED
29832 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29833 #endif
29834
29835 int
29836 main ()
29837 {
29838   int s;
29839   wait (&s);
29840   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29841   ;
29842   return 0;
29843 }
29844 _ACEOF
29845 rm -f conftest.$ac_objext
29846 if { (ac_try="$ac_compile"
29847 case "(($ac_try" in
29848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849   *) ac_try_echo=$ac_try;;
29850 esac
29851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852   (eval "$ac_compile") 2>conftest.er1
29853   ac_status=$?
29854   grep -v '^ *+' conftest.er1 >conftest.err
29855   rm -f conftest.er1
29856   cat conftest.err >&5
29857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858   (exit $ac_status); } &&
29859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29860   { (case "(($ac_try" in
29861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29862   *) ac_try_echo=$ac_try;;
29863 esac
29864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29865   (eval "$ac_try") 2>&5
29866   ac_status=$?
29867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868   (exit $ac_status); }; } &&
29869          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29879   ac_cv_header_sys_wait_h=yes
29880 else
29881   echo "$as_me: failed program was:" >&5
29882 sed 's/^/| /' conftest.$ac_ext >&5
29883
29884         ac_cv_header_sys_wait_h=no
29885 fi
29886
29887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29888 fi
29889 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29890 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29891 if test $ac_cv_header_sys_wait_h = yes; then
29892
29893 cat >>confdefs.h <<\_ACEOF
29894 #define HAVE_SYS_WAIT_H 1
29895 _ACEOF
29896
29897 fi
29898
29899 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29900 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29901 if test "${ac_cv_header_time+set}" = set; then
29902   echo $ECHO_N "(cached) $ECHO_C" >&6
29903 else
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 <sys/types.h>
29911 #include <sys/time.h>
29912 #include <time.h>
29913
29914 int
29915 main ()
29916 {
29917 if ((struct tm *) 0)
29918 return 0;
29919   ;
29920   return 0;
29921 }
29922 _ACEOF
29923 rm -f conftest.$ac_objext
29924 if { (ac_try="$ac_compile"
29925 case "(($ac_try" in
29926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29927   *) ac_try_echo=$ac_try;;
29928 esac
29929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29930   (eval "$ac_compile") 2>conftest.er1
29931   ac_status=$?
29932   grep -v '^ *+' conftest.er1 >conftest.err
29933   rm -f conftest.er1
29934   cat conftest.err >&5
29935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936   (exit $ac_status); } &&
29937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29938   { (case "(($ac_try" in
29939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29940   *) ac_try_echo=$ac_try;;
29941 esac
29942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29943   (eval "$ac_try") 2>&5
29944   ac_status=$?
29945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946   (exit $ac_status); }; } &&
29947          { ac_try='test -s conftest.$ac_objext'
29948   { (case "(($ac_try" in
29949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29950   *) ac_try_echo=$ac_try;;
29951 esac
29952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29953   (eval "$ac_try") 2>&5
29954   ac_status=$?
29955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956   (exit $ac_status); }; }; then
29957   ac_cv_header_time=yes
29958 else
29959   echo "$as_me: failed program was:" >&5
29960 sed 's/^/| /' conftest.$ac_ext >&5
29961
29962         ac_cv_header_time=no
29963 fi
29964
29965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29966 fi
29967 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29968 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29969 if test $ac_cv_header_time = yes; then
29970
29971 cat >>confdefs.h <<\_ACEOF
29972 #define TIME_WITH_SYS_TIME 1
29973 _ACEOF
29974
29975 fi
29976
29977
29978
29979
29980
29981
29982
29983
29984 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29985 do
29986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29988   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29991   echo $ECHO_N "(cached) $ECHO_C" >&6
29992 fi
29993 ac_res=`eval echo '${'$as_ac_Header'}'`
29994                { echo "$as_me:$LINENO: result: $ac_res" >&5
29995 echo "${ECHO_T}$ac_res" >&6; }
29996 else
29997   # Is the header compilable?
29998 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30000 cat >conftest.$ac_ext <<_ACEOF
30001 /* confdefs.h.  */
30002 _ACEOF
30003 cat confdefs.h >>conftest.$ac_ext
30004 cat >>conftest.$ac_ext <<_ACEOF
30005 /* end confdefs.h.  */
30006 $ac_includes_default
30007 #include <$ac_header>
30008 _ACEOF
30009 rm -f conftest.$ac_objext
30010 if { (ac_try="$ac_compile"
30011 case "(($ac_try" in
30012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30013   *) ac_try_echo=$ac_try;;
30014 esac
30015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30016   (eval "$ac_compile") 2>conftest.er1
30017   ac_status=$?
30018   grep -v '^ *+' conftest.er1 >conftest.err
30019   rm -f conftest.er1
30020   cat conftest.err >&5
30021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022   (exit $ac_status); } &&
30023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30024   { (case "(($ac_try" in
30025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30026   *) ac_try_echo=$ac_try;;
30027 esac
30028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30029   (eval "$ac_try") 2>&5
30030   ac_status=$?
30031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032   (exit $ac_status); }; } &&
30033          { ac_try='test -s conftest.$ac_objext'
30034   { (case "(($ac_try" in
30035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30036   *) ac_try_echo=$ac_try;;
30037 esac
30038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30039   (eval "$ac_try") 2>&5
30040   ac_status=$?
30041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042   (exit $ac_status); }; }; then
30043   ac_header_compiler=yes
30044 else
30045   echo "$as_me: failed program was:" >&5
30046 sed 's/^/| /' conftest.$ac_ext >&5
30047
30048         ac_header_compiler=no
30049 fi
30050
30051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30053 echo "${ECHO_T}$ac_header_compiler" >&6; }
30054
30055 # Is the header present?
30056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30058 cat >conftest.$ac_ext <<_ACEOF
30059 /* confdefs.h.  */
30060 _ACEOF
30061 cat confdefs.h >>conftest.$ac_ext
30062 cat >>conftest.$ac_ext <<_ACEOF
30063 /* end confdefs.h.  */
30064 #include <$ac_header>
30065 _ACEOF
30066 if { (ac_try="$ac_cpp conftest.$ac_ext"
30067 case "(($ac_try" in
30068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30069   *) ac_try_echo=$ac_try;;
30070 esac
30071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30072   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30073   ac_status=$?
30074   grep -v '^ *+' conftest.er1 >conftest.err
30075   rm -f conftest.er1
30076   cat conftest.err >&5
30077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078   (exit $ac_status); } >/dev/null; then
30079   if test -s conftest.err; then
30080     ac_cpp_err=$ac_c_preproc_warn_flag
30081     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30082   else
30083     ac_cpp_err=
30084   fi
30085 else
30086   ac_cpp_err=yes
30087 fi
30088 if test -z "$ac_cpp_err"; then
30089   ac_header_preproc=yes
30090 else
30091   echo "$as_me: failed program was:" >&5
30092 sed 's/^/| /' conftest.$ac_ext >&5
30093
30094   ac_header_preproc=no
30095 fi
30096
30097 rm -f conftest.err conftest.$ac_ext
30098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30099 echo "${ECHO_T}$ac_header_preproc" >&6; }
30100
30101 # So?  What about this header?
30102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30103   yes:no: )
30104     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30107 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30108     ac_header_preproc=yes
30109     ;;
30110   no:yes:* )
30111     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30113     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30114 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30115     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30116 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30117     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30118 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30121     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30122 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30123     ( cat <<\_ASBOX
30124 ## ----------------------------------- ##
30125 ## Report this to llvmbugs@cs.uiuc.edu ##
30126 ## ----------------------------------- ##
30127 _ASBOX
30128      ) | sed "s/^/$as_me: WARNING:     /" >&2
30129     ;;
30130 esac
30131 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30134   echo $ECHO_N "(cached) $ECHO_C" >&6
30135 else
30136   eval "$as_ac_Header=\$ac_header_preproc"
30137 fi
30138 ac_res=`eval echo '${'$as_ac_Header'}'`
30139                { echo "$as_me:$LINENO: result: $ac_res" >&5
30140 echo "${ECHO_T}$ac_res" >&6; }
30141
30142 fi
30143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30144   cat >>confdefs.h <<_ACEOF
30145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30146 _ACEOF
30147
30148 fi
30149
30150 done
30151
30152
30153
30154
30155
30156
30157
30158 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
30159 do
30160 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30162   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30165   echo $ECHO_N "(cached) $ECHO_C" >&6
30166 fi
30167 ac_res=`eval echo '${'$as_ac_Header'}'`
30168                { echo "$as_me:$LINENO: result: $ac_res" >&5
30169 echo "${ECHO_T}$ac_res" >&6; }
30170 else
30171   # Is the header compilable?
30172 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30174 cat >conftest.$ac_ext <<_ACEOF
30175 /* confdefs.h.  */
30176 _ACEOF
30177 cat confdefs.h >>conftest.$ac_ext
30178 cat >>conftest.$ac_ext <<_ACEOF
30179 /* end confdefs.h.  */
30180 $ac_includes_default
30181 #include <$ac_header>
30182 _ACEOF
30183 rm -f conftest.$ac_objext
30184 if { (ac_try="$ac_compile"
30185 case "(($ac_try" in
30186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187   *) ac_try_echo=$ac_try;;
30188 esac
30189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190   (eval "$ac_compile") 2>conftest.er1
30191   ac_status=$?
30192   grep -v '^ *+' conftest.er1 >conftest.err
30193   rm -f conftest.er1
30194   cat conftest.err >&5
30195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196   (exit $ac_status); } &&
30197          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30198   { (case "(($ac_try" in
30199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200   *) ac_try_echo=$ac_try;;
30201 esac
30202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203   (eval "$ac_try") 2>&5
30204   ac_status=$?
30205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206   (exit $ac_status); }; } &&
30207          { ac_try='test -s conftest.$ac_objext'
30208   { (case "(($ac_try" in
30209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30210   *) ac_try_echo=$ac_try;;
30211 esac
30212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213   (eval "$ac_try") 2>&5
30214   ac_status=$?
30215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216   (exit $ac_status); }; }; then
30217   ac_header_compiler=yes
30218 else
30219   echo "$as_me: failed program was:" >&5
30220 sed 's/^/| /' conftest.$ac_ext >&5
30221
30222         ac_header_compiler=no
30223 fi
30224
30225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30227 echo "${ECHO_T}$ac_header_compiler" >&6; }
30228
30229 # Is the header present?
30230 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30232 cat >conftest.$ac_ext <<_ACEOF
30233 /* confdefs.h.  */
30234 _ACEOF
30235 cat confdefs.h >>conftest.$ac_ext
30236 cat >>conftest.$ac_ext <<_ACEOF
30237 /* end confdefs.h.  */
30238 #include <$ac_header>
30239 _ACEOF
30240 if { (ac_try="$ac_cpp conftest.$ac_ext"
30241 case "(($ac_try" in
30242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30243   *) ac_try_echo=$ac_try;;
30244 esac
30245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30246   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30247   ac_status=$?
30248   grep -v '^ *+' conftest.er1 >conftest.err
30249   rm -f conftest.er1
30250   cat conftest.err >&5
30251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30252   (exit $ac_status); } >/dev/null; then
30253   if test -s conftest.err; then
30254     ac_cpp_err=$ac_c_preproc_warn_flag
30255     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30256   else
30257     ac_cpp_err=
30258   fi
30259 else
30260   ac_cpp_err=yes
30261 fi
30262 if test -z "$ac_cpp_err"; then
30263   ac_header_preproc=yes
30264 else
30265   echo "$as_me: failed program was:" >&5
30266 sed 's/^/| /' conftest.$ac_ext >&5
30267
30268   ac_header_preproc=no
30269 fi
30270
30271 rm -f conftest.err conftest.$ac_ext
30272 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30273 echo "${ECHO_T}$ac_header_preproc" >&6; }
30274
30275 # So?  What about this header?
30276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30277   yes:no: )
30278     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30280     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30282     ac_header_preproc=yes
30283     ;;
30284   no:yes:* )
30285     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30287     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30288 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30289     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30291     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30292 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30295     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30297     ( cat <<\_ASBOX
30298 ## ----------------------------------- ##
30299 ## Report this to llvmbugs@cs.uiuc.edu ##
30300 ## ----------------------------------- ##
30301 _ASBOX
30302      ) | sed "s/^/$as_me: WARNING:     /" >&2
30303     ;;
30304 esac
30305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30308   echo $ECHO_N "(cached) $ECHO_C" >&6
30309 else
30310   eval "$as_ac_Header=\$ac_header_preproc"
30311 fi
30312 ac_res=`eval echo '${'$as_ac_Header'}'`
30313                { echo "$as_me:$LINENO: result: $ac_res" >&5
30314 echo "${ECHO_T}$ac_res" >&6; }
30315
30316 fi
30317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30318   cat >>confdefs.h <<_ACEOF
30319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30320 _ACEOF
30321
30322 fi
30323
30324 done
30325
30326
30327
30328 for ac_header in utime.h windows.h
30329 do
30330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30332   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30335   echo $ECHO_N "(cached) $ECHO_C" >&6
30336 fi
30337 ac_res=`eval echo '${'$as_ac_Header'}'`
30338                { echo "$as_me:$LINENO: result: $ac_res" >&5
30339 echo "${ECHO_T}$ac_res" >&6; }
30340 else
30341   # Is the header compilable?
30342 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30344 cat >conftest.$ac_ext <<_ACEOF
30345 /* confdefs.h.  */
30346 _ACEOF
30347 cat confdefs.h >>conftest.$ac_ext
30348 cat >>conftest.$ac_ext <<_ACEOF
30349 /* end confdefs.h.  */
30350 $ac_includes_default
30351 #include <$ac_header>
30352 _ACEOF
30353 rm -f conftest.$ac_objext
30354 if { (ac_try="$ac_compile"
30355 case "(($ac_try" in
30356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30357   *) ac_try_echo=$ac_try;;
30358 esac
30359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30360   (eval "$ac_compile") 2>conftest.er1
30361   ac_status=$?
30362   grep -v '^ *+' conftest.er1 >conftest.err
30363   rm -f conftest.er1
30364   cat conftest.err >&5
30365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366   (exit $ac_status); } &&
30367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30368   { (case "(($ac_try" in
30369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30370   *) ac_try_echo=$ac_try;;
30371 esac
30372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30373   (eval "$ac_try") 2>&5
30374   ac_status=$?
30375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376   (exit $ac_status); }; } &&
30377          { ac_try='test -s conftest.$ac_objext'
30378   { (case "(($ac_try" in
30379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30380   *) ac_try_echo=$ac_try;;
30381 esac
30382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30383   (eval "$ac_try") 2>&5
30384   ac_status=$?
30385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386   (exit $ac_status); }; }; then
30387   ac_header_compiler=yes
30388 else
30389   echo "$as_me: failed program was:" >&5
30390 sed 's/^/| /' conftest.$ac_ext >&5
30391
30392         ac_header_compiler=no
30393 fi
30394
30395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30397 echo "${ECHO_T}$ac_header_compiler" >&6; }
30398
30399 # Is the header present?
30400 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30402 cat >conftest.$ac_ext <<_ACEOF
30403 /* confdefs.h.  */
30404 _ACEOF
30405 cat confdefs.h >>conftest.$ac_ext
30406 cat >>conftest.$ac_ext <<_ACEOF
30407 /* end confdefs.h.  */
30408 #include <$ac_header>
30409 _ACEOF
30410 if { (ac_try="$ac_cpp conftest.$ac_ext"
30411 case "(($ac_try" in
30412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30413   *) ac_try_echo=$ac_try;;
30414 esac
30415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30416   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30417   ac_status=$?
30418   grep -v '^ *+' conftest.er1 >conftest.err
30419   rm -f conftest.er1
30420   cat conftest.err >&5
30421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30422   (exit $ac_status); } >/dev/null; then
30423   if test -s conftest.err; then
30424     ac_cpp_err=$ac_c_preproc_warn_flag
30425     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30426   else
30427     ac_cpp_err=
30428   fi
30429 else
30430   ac_cpp_err=yes
30431 fi
30432 if test -z "$ac_cpp_err"; then
30433   ac_header_preproc=yes
30434 else
30435   echo "$as_me: failed program was:" >&5
30436 sed 's/^/| /' conftest.$ac_ext >&5
30437
30438   ac_header_preproc=no
30439 fi
30440
30441 rm -f conftest.err conftest.$ac_ext
30442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30443 echo "${ECHO_T}$ac_header_preproc" >&6; }
30444
30445 # So?  What about this header?
30446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30447   yes:no: )
30448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30452     ac_header_preproc=yes
30453     ;;
30454   no:yes:* )
30455     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30457     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30458 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30459     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30461     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30462 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30465     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30467     ( cat <<\_ASBOX
30468 ## ----------------------------------- ##
30469 ## Report this to llvmbugs@cs.uiuc.edu ##
30470 ## ----------------------------------- ##
30471 _ASBOX
30472      ) | sed "s/^/$as_me: WARNING:     /" >&2
30473     ;;
30474 esac
30475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30478   echo $ECHO_N "(cached) $ECHO_C" >&6
30479 else
30480   eval "$as_ac_Header=\$ac_header_preproc"
30481 fi
30482 ac_res=`eval echo '${'$as_ac_Header'}'`
30483                { echo "$as_me:$LINENO: result: $ac_res" >&5
30484 echo "${ECHO_T}$ac_res" >&6; }
30485
30486 fi
30487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30488   cat >>confdefs.h <<_ACEOF
30489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30490 _ACEOF
30491
30492 fi
30493
30494 done
30495
30496
30497
30498
30499
30500 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30501 do
30502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30504   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30507   echo $ECHO_N "(cached) $ECHO_C" >&6
30508 fi
30509 ac_res=`eval echo '${'$as_ac_Header'}'`
30510                { echo "$as_me:$LINENO: result: $ac_res" >&5
30511 echo "${ECHO_T}$ac_res" >&6; }
30512 else
30513   # Is the header compilable?
30514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30516 cat >conftest.$ac_ext <<_ACEOF
30517 /* confdefs.h.  */
30518 _ACEOF
30519 cat confdefs.h >>conftest.$ac_ext
30520 cat >>conftest.$ac_ext <<_ACEOF
30521 /* end confdefs.h.  */
30522 $ac_includes_default
30523 #include <$ac_header>
30524 _ACEOF
30525 rm -f conftest.$ac_objext
30526 if { (ac_try="$ac_compile"
30527 case "(($ac_try" in
30528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30529   *) ac_try_echo=$ac_try;;
30530 esac
30531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30532   (eval "$ac_compile") 2>conftest.er1
30533   ac_status=$?
30534   grep -v '^ *+' conftest.er1 >conftest.err
30535   rm -f conftest.er1
30536   cat conftest.err >&5
30537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538   (exit $ac_status); } &&
30539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30540   { (case "(($ac_try" in
30541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30542   *) ac_try_echo=$ac_try;;
30543 esac
30544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30545   (eval "$ac_try") 2>&5
30546   ac_status=$?
30547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548   (exit $ac_status); }; } &&
30549          { ac_try='test -s conftest.$ac_objext'
30550   { (case "(($ac_try" in
30551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30552   *) ac_try_echo=$ac_try;;
30553 esac
30554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30555   (eval "$ac_try") 2>&5
30556   ac_status=$?
30557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558   (exit $ac_status); }; }; then
30559   ac_header_compiler=yes
30560 else
30561   echo "$as_me: failed program was:" >&5
30562 sed 's/^/| /' conftest.$ac_ext >&5
30563
30564         ac_header_compiler=no
30565 fi
30566
30567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30569 echo "${ECHO_T}$ac_header_compiler" >&6; }
30570
30571 # Is the header present?
30572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30574 cat >conftest.$ac_ext <<_ACEOF
30575 /* confdefs.h.  */
30576 _ACEOF
30577 cat confdefs.h >>conftest.$ac_ext
30578 cat >>conftest.$ac_ext <<_ACEOF
30579 /* end confdefs.h.  */
30580 #include <$ac_header>
30581 _ACEOF
30582 if { (ac_try="$ac_cpp conftest.$ac_ext"
30583 case "(($ac_try" in
30584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30585   *) ac_try_echo=$ac_try;;
30586 esac
30587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30588   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30589   ac_status=$?
30590   grep -v '^ *+' conftest.er1 >conftest.err
30591   rm -f conftest.er1
30592   cat conftest.err >&5
30593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30594   (exit $ac_status); } >/dev/null; then
30595   if test -s conftest.err; then
30596     ac_cpp_err=$ac_c_preproc_warn_flag
30597     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30598   else
30599     ac_cpp_err=
30600   fi
30601 else
30602   ac_cpp_err=yes
30603 fi
30604 if test -z "$ac_cpp_err"; then
30605   ac_header_preproc=yes
30606 else
30607   echo "$as_me: failed program was:" >&5
30608 sed 's/^/| /' conftest.$ac_ext >&5
30609
30610   ac_header_preproc=no
30611 fi
30612
30613 rm -f conftest.err conftest.$ac_ext
30614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30615 echo "${ECHO_T}$ac_header_preproc" >&6; }
30616
30617 # So?  What about this header?
30618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30619   yes:no: )
30620     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30624     ac_header_preproc=yes
30625     ;;
30626   no:yes:* )
30627     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30629     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30630 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30631     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30633     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30634 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30635     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30637     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30639     ( cat <<\_ASBOX
30640 ## ----------------------------------- ##
30641 ## Report this to llvmbugs@cs.uiuc.edu ##
30642 ## ----------------------------------- ##
30643 _ASBOX
30644      ) | sed "s/^/$as_me: WARNING:     /" >&2
30645     ;;
30646 esac
30647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30650   echo $ECHO_N "(cached) $ECHO_C" >&6
30651 else
30652   eval "$as_ac_Header=\$ac_header_preproc"
30653 fi
30654 ac_res=`eval echo '${'$as_ac_Header'}'`
30655                { echo "$as_me:$LINENO: result: $ac_res" >&5
30656 echo "${ECHO_T}$ac_res" >&6; }
30657
30658 fi
30659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30660   cat >>confdefs.h <<_ACEOF
30661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30662 _ACEOF
30663
30664 fi
30665
30666 done
30667
30668
30669
30670
30671
30672 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30673 do
30674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30676   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30679   echo $ECHO_N "(cached) $ECHO_C" >&6
30680 fi
30681 ac_res=`eval echo '${'$as_ac_Header'}'`
30682                { echo "$as_me:$LINENO: result: $ac_res" >&5
30683 echo "${ECHO_T}$ac_res" >&6; }
30684 else
30685   # Is the header compilable?
30686 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30688 cat >conftest.$ac_ext <<_ACEOF
30689 /* confdefs.h.  */
30690 _ACEOF
30691 cat confdefs.h >>conftest.$ac_ext
30692 cat >>conftest.$ac_ext <<_ACEOF
30693 /* end confdefs.h.  */
30694 $ac_includes_default
30695 #include <$ac_header>
30696 _ACEOF
30697 rm -f conftest.$ac_objext
30698 if { (ac_try="$ac_compile"
30699 case "(($ac_try" in
30700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30701   *) ac_try_echo=$ac_try;;
30702 esac
30703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30704   (eval "$ac_compile") 2>conftest.er1
30705   ac_status=$?
30706   grep -v '^ *+' conftest.er1 >conftest.err
30707   rm -f conftest.er1
30708   cat conftest.err >&5
30709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710   (exit $ac_status); } &&
30711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30712   { (case "(($ac_try" in
30713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30714   *) ac_try_echo=$ac_try;;
30715 esac
30716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30717   (eval "$ac_try") 2>&5
30718   ac_status=$?
30719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720   (exit $ac_status); }; } &&
30721          { ac_try='test -s conftest.$ac_objext'
30722   { (case "(($ac_try" in
30723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30724   *) ac_try_echo=$ac_try;;
30725 esac
30726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30727   (eval "$ac_try") 2>&5
30728   ac_status=$?
30729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730   (exit $ac_status); }; }; then
30731   ac_header_compiler=yes
30732 else
30733   echo "$as_me: failed program was:" >&5
30734 sed 's/^/| /' conftest.$ac_ext >&5
30735
30736         ac_header_compiler=no
30737 fi
30738
30739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30740 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30741 echo "${ECHO_T}$ac_header_compiler" >&6; }
30742
30743 # Is the header present?
30744 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30746 cat >conftest.$ac_ext <<_ACEOF
30747 /* confdefs.h.  */
30748 _ACEOF
30749 cat confdefs.h >>conftest.$ac_ext
30750 cat >>conftest.$ac_ext <<_ACEOF
30751 /* end confdefs.h.  */
30752 #include <$ac_header>
30753 _ACEOF
30754 if { (ac_try="$ac_cpp conftest.$ac_ext"
30755 case "(($ac_try" in
30756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30757   *) ac_try_echo=$ac_try;;
30758 esac
30759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30760   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30761   ac_status=$?
30762   grep -v '^ *+' conftest.er1 >conftest.err
30763   rm -f conftest.er1
30764   cat conftest.err >&5
30765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766   (exit $ac_status); } >/dev/null; then
30767   if test -s conftest.err; then
30768     ac_cpp_err=$ac_c_preproc_warn_flag
30769     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30770   else
30771     ac_cpp_err=
30772   fi
30773 else
30774   ac_cpp_err=yes
30775 fi
30776 if test -z "$ac_cpp_err"; then
30777   ac_header_preproc=yes
30778 else
30779   echo "$as_me: failed program was:" >&5
30780 sed 's/^/| /' conftest.$ac_ext >&5
30781
30782   ac_header_preproc=no
30783 fi
30784
30785 rm -f conftest.err conftest.$ac_ext
30786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30787 echo "${ECHO_T}$ac_header_preproc" >&6; }
30788
30789 # So?  What about this header?
30790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30791   yes:no: )
30792     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30796     ac_header_preproc=yes
30797     ;;
30798   no:yes:* )
30799     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30801     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30802 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30803     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30805     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30806 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30809     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30811     ( cat <<\_ASBOX
30812 ## ----------------------------------- ##
30813 ## Report this to llvmbugs@cs.uiuc.edu ##
30814 ## ----------------------------------- ##
30815 _ASBOX
30816      ) | sed "s/^/$as_me: WARNING:     /" >&2
30817     ;;
30818 esac
30819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30822   echo $ECHO_N "(cached) $ECHO_C" >&6
30823 else
30824   eval "$as_ac_Header=\$ac_header_preproc"
30825 fi
30826 ac_res=`eval echo '${'$as_ac_Header'}'`
30827                { echo "$as_me:$LINENO: result: $ac_res" >&5
30828 echo "${ECHO_T}$ac_res" >&6; }
30829
30830 fi
30831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30832   cat >>confdefs.h <<_ACEOF
30833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30834 _ACEOF
30835
30836 fi
30837
30838 done
30839
30840 if test "$ENABLE_THREADS" -eq 1 ; then
30841
30842 for ac_header in pthread.h
30843 do
30844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30846   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30849   echo $ECHO_N "(cached) $ECHO_C" >&6
30850 fi
30851 ac_res=`eval echo '${'$as_ac_Header'}'`
30852                { echo "$as_me:$LINENO: result: $ac_res" >&5
30853 echo "${ECHO_T}$ac_res" >&6; }
30854 else
30855   # Is the header compilable?
30856 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30858 cat >conftest.$ac_ext <<_ACEOF
30859 /* confdefs.h.  */
30860 _ACEOF
30861 cat confdefs.h >>conftest.$ac_ext
30862 cat >>conftest.$ac_ext <<_ACEOF
30863 /* end confdefs.h.  */
30864 $ac_includes_default
30865 #include <$ac_header>
30866 _ACEOF
30867 rm -f conftest.$ac_objext
30868 if { (ac_try="$ac_compile"
30869 case "(($ac_try" in
30870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30871   *) ac_try_echo=$ac_try;;
30872 esac
30873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30874   (eval "$ac_compile") 2>conftest.er1
30875   ac_status=$?
30876   grep -v '^ *+' conftest.er1 >conftest.err
30877   rm -f conftest.er1
30878   cat conftest.err >&5
30879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880   (exit $ac_status); } &&
30881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30882   { (case "(($ac_try" in
30883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30884   *) ac_try_echo=$ac_try;;
30885 esac
30886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30887   (eval "$ac_try") 2>&5
30888   ac_status=$?
30889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890   (exit $ac_status); }; } &&
30891          { ac_try='test -s conftest.$ac_objext'
30892   { (case "(($ac_try" in
30893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30894   *) ac_try_echo=$ac_try;;
30895 esac
30896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30897   (eval "$ac_try") 2>&5
30898   ac_status=$?
30899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900   (exit $ac_status); }; }; then
30901   ac_header_compiler=yes
30902 else
30903   echo "$as_me: failed program was:" >&5
30904 sed 's/^/| /' conftest.$ac_ext >&5
30905
30906         ac_header_compiler=no
30907 fi
30908
30909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30910 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30911 echo "${ECHO_T}$ac_header_compiler" >&6; }
30912
30913 # Is the header present?
30914 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30915 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30916 cat >conftest.$ac_ext <<_ACEOF
30917 /* confdefs.h.  */
30918 _ACEOF
30919 cat confdefs.h >>conftest.$ac_ext
30920 cat >>conftest.$ac_ext <<_ACEOF
30921 /* end confdefs.h.  */
30922 #include <$ac_header>
30923 _ACEOF
30924 if { (ac_try="$ac_cpp conftest.$ac_ext"
30925 case "(($ac_try" in
30926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30927   *) ac_try_echo=$ac_try;;
30928 esac
30929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30930   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30931   ac_status=$?
30932   grep -v '^ *+' conftest.er1 >conftest.err
30933   rm -f conftest.er1
30934   cat conftest.err >&5
30935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30936   (exit $ac_status); } >/dev/null; then
30937   if test -s conftest.err; then
30938     ac_cpp_err=$ac_c_preproc_warn_flag
30939     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30940   else
30941     ac_cpp_err=
30942   fi
30943 else
30944   ac_cpp_err=yes
30945 fi
30946 if test -z "$ac_cpp_err"; then
30947   ac_header_preproc=yes
30948 else
30949   echo "$as_me: failed program was:" >&5
30950 sed 's/^/| /' conftest.$ac_ext >&5
30951
30952   ac_header_preproc=no
30953 fi
30954
30955 rm -f conftest.err conftest.$ac_ext
30956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30957 echo "${ECHO_T}$ac_header_preproc" >&6; }
30958
30959 # So?  What about this header?
30960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30961   yes:no: )
30962     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30966     ac_header_preproc=yes
30967     ;;
30968   no:yes:* )
30969     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30971     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30972 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30973     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30975     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30976 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30979     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30981     ( cat <<\_ASBOX
30982 ## ----------------------------------- ##
30983 ## Report this to llvmbugs@cs.uiuc.edu ##
30984 ## ----------------------------------- ##
30985 _ASBOX
30986      ) | sed "s/^/$as_me: WARNING:     /" >&2
30987     ;;
30988 esac
30989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30992   echo $ECHO_N "(cached) $ECHO_C" >&6
30993 else
30994   eval "$as_ac_Header=\$ac_header_preproc"
30995 fi
30996 ac_res=`eval echo '${'$as_ac_Header'}'`
30997                { echo "$as_me:$LINENO: result: $ac_res" >&5
30998 echo "${ECHO_T}$ac_res" >&6; }
30999
31000 fi
31001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31002   cat >>confdefs.h <<_ACEOF
31003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31004 _ACEOF
31005  HAVE_PTHREAD=1
31006
31007 else
31008   HAVE_PTHREAD=0
31009
31010 fi
31011
31012 done
31013
31014 else
31015   HAVE_PTHREAD=0
31016
31017 fi
31018
31019 if test "$llvm_cv_enable_libffi" = "yes" ; then
31020
31021
31022 for ac_header in ffi.h ffi/ffi.h
31023 do
31024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31026   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31029   echo $ECHO_N "(cached) $ECHO_C" >&6
31030 fi
31031 ac_res=`eval echo '${'$as_ac_Header'}'`
31032                { echo "$as_me:$LINENO: result: $ac_res" >&5
31033 echo "${ECHO_T}$ac_res" >&6; }
31034 else
31035   # Is the header compilable?
31036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31038 cat >conftest.$ac_ext <<_ACEOF
31039 /* confdefs.h.  */
31040 _ACEOF
31041 cat confdefs.h >>conftest.$ac_ext
31042 cat >>conftest.$ac_ext <<_ACEOF
31043 /* end confdefs.h.  */
31044 $ac_includes_default
31045 #include <$ac_header>
31046 _ACEOF
31047 rm -f conftest.$ac_objext
31048 if { (ac_try="$ac_compile"
31049 case "(($ac_try" in
31050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051   *) ac_try_echo=$ac_try;;
31052 esac
31053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054   (eval "$ac_compile") 2>conftest.er1
31055   ac_status=$?
31056   grep -v '^ *+' conftest.er1 >conftest.err
31057   rm -f conftest.er1
31058   cat conftest.err >&5
31059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060   (exit $ac_status); } &&
31061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31062   { (case "(($ac_try" in
31063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31064   *) ac_try_echo=$ac_try;;
31065 esac
31066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31067   (eval "$ac_try") 2>&5
31068   ac_status=$?
31069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070   (exit $ac_status); }; } &&
31071          { ac_try='test -s conftest.$ac_objext'
31072   { (case "(($ac_try" in
31073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31074   *) ac_try_echo=$ac_try;;
31075 esac
31076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31077   (eval "$ac_try") 2>&5
31078   ac_status=$?
31079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31080   (exit $ac_status); }; }; then
31081   ac_header_compiler=yes
31082 else
31083   echo "$as_me: failed program was:" >&5
31084 sed 's/^/| /' conftest.$ac_ext >&5
31085
31086         ac_header_compiler=no
31087 fi
31088
31089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31091 echo "${ECHO_T}$ac_header_compiler" >&6; }
31092
31093 # Is the header present?
31094 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31096 cat >conftest.$ac_ext <<_ACEOF
31097 /* confdefs.h.  */
31098 _ACEOF
31099 cat confdefs.h >>conftest.$ac_ext
31100 cat >>conftest.$ac_ext <<_ACEOF
31101 /* end confdefs.h.  */
31102 #include <$ac_header>
31103 _ACEOF
31104 if { (ac_try="$ac_cpp conftest.$ac_ext"
31105 case "(($ac_try" in
31106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31107   *) ac_try_echo=$ac_try;;
31108 esac
31109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31110   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31111   ac_status=$?
31112   grep -v '^ *+' conftest.er1 >conftest.err
31113   rm -f conftest.er1
31114   cat conftest.err >&5
31115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116   (exit $ac_status); } >/dev/null; then
31117   if test -s conftest.err; then
31118     ac_cpp_err=$ac_c_preproc_warn_flag
31119     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31120   else
31121     ac_cpp_err=
31122   fi
31123 else
31124   ac_cpp_err=yes
31125 fi
31126 if test -z "$ac_cpp_err"; then
31127   ac_header_preproc=yes
31128 else
31129   echo "$as_me: failed program was:" >&5
31130 sed 's/^/| /' conftest.$ac_ext >&5
31131
31132   ac_header_preproc=no
31133 fi
31134
31135 rm -f conftest.err conftest.$ac_ext
31136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31137 echo "${ECHO_T}$ac_header_preproc" >&6; }
31138
31139 # So?  What about this header?
31140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31141   yes:no: )
31142     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31146     ac_header_preproc=yes
31147     ;;
31148   no:yes:* )
31149     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31151     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31152 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31153     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31155     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31156 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31159     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31161     ( cat <<\_ASBOX
31162 ## ----------------------------------- ##
31163 ## Report this to llvmbugs@cs.uiuc.edu ##
31164 ## ----------------------------------- ##
31165 _ASBOX
31166      ) | sed "s/^/$as_me: WARNING:     /" >&2
31167     ;;
31168 esac
31169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31172   echo $ECHO_N "(cached) $ECHO_C" >&6
31173 else
31174   eval "$as_ac_Header=\$ac_header_preproc"
31175 fi
31176 ac_res=`eval echo '${'$as_ac_Header'}'`
31177                { echo "$as_me:$LINENO: result: $ac_res" >&5
31178 echo "${ECHO_T}$ac_res" >&6; }
31179
31180 fi
31181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31182   cat >>confdefs.h <<_ACEOF
31183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31184 _ACEOF
31185
31186 fi
31187
31188 done
31189
31190 fi
31191
31192
31193
31194   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31195 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31196 if test "${ac_cv_huge_val_sanity+set}" = set; then
31197   echo $ECHO_N "(cached) $ECHO_C" >&6
31198 else
31199
31200     ac_ext=cpp
31201 ac_cpp='$CXXCPP $CPPFLAGS'
31202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31205
31206     CXXFLAGS=-pedantic
31207     if test "$cross_compiling" = yes; then
31208   ac_cv_huge_val_sanity=yes
31209 else
31210   cat >conftest.$ac_ext <<_ACEOF
31211 /* confdefs.h.  */
31212 _ACEOF
31213 cat confdefs.h >>conftest.$ac_ext
31214 cat >>conftest.$ac_ext <<_ACEOF
31215 /* end confdefs.h.  */
31216 #include <math.h>
31217 int
31218 main ()
31219 {
31220 double x = HUGE_VAL; return x != x;
31221   ;
31222   return 0;
31223 }
31224 _ACEOF
31225 rm -f conftest$ac_exeext
31226 if { (ac_try="$ac_link"
31227 case "(($ac_try" in
31228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31229   *) ac_try_echo=$ac_try;;
31230 esac
31231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31232   (eval "$ac_link") 2>&5
31233   ac_status=$?
31234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31235   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
31245   ac_cv_huge_val_sanity=yes
31246 else
31247   echo "$as_me: program exited with status $ac_status" >&5
31248 echo "$as_me: failed program was:" >&5
31249 sed 's/^/| /' conftest.$ac_ext >&5
31250
31251 ( exit $ac_status )
31252 ac_cv_huge_val_sanity=no
31253 fi
31254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31255 fi
31256
31257
31258     ac_ext=c
31259 ac_cpp='$CPP $CPPFLAGS'
31260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31263
31264
31265 fi
31266 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31267 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31268   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31269
31270
31271 { echo "$as_me:$LINENO: checking for pid_t" >&5
31272 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31273 if test "${ac_cv_type_pid_t+set}" = set; then
31274   echo $ECHO_N "(cached) $ECHO_C" >&6
31275 else
31276   cat >conftest.$ac_ext <<_ACEOF
31277 /* confdefs.h.  */
31278 _ACEOF
31279 cat confdefs.h >>conftest.$ac_ext
31280 cat >>conftest.$ac_ext <<_ACEOF
31281 /* end confdefs.h.  */
31282 $ac_includes_default
31283 typedef pid_t ac__type_new_;
31284 int
31285 main ()
31286 {
31287 if ((ac__type_new_ *) 0)
31288   return 0;
31289 if (sizeof (ac__type_new_))
31290   return 0;
31291   ;
31292   return 0;
31293 }
31294 _ACEOF
31295 rm -f conftest.$ac_objext
31296 if { (ac_try="$ac_compile"
31297 case "(($ac_try" in
31298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31299   *) ac_try_echo=$ac_try;;
31300 esac
31301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31302   (eval "$ac_compile") 2>conftest.er1
31303   ac_status=$?
31304   grep -v '^ *+' conftest.er1 >conftest.err
31305   rm -f conftest.er1
31306   cat conftest.err >&5
31307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308   (exit $ac_status); } &&
31309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31310   { (case "(($ac_try" in
31311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31312   *) ac_try_echo=$ac_try;;
31313 esac
31314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31315   (eval "$ac_try") 2>&5
31316   ac_status=$?
31317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318   (exit $ac_status); }; } &&
31319          { ac_try='test -s conftest.$ac_objext'
31320   { (case "(($ac_try" in
31321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31322   *) ac_try_echo=$ac_try;;
31323 esac
31324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31325   (eval "$ac_try") 2>&5
31326   ac_status=$?
31327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328   (exit $ac_status); }; }; then
31329   ac_cv_type_pid_t=yes
31330 else
31331   echo "$as_me: failed program was:" >&5
31332 sed 's/^/| /' conftest.$ac_ext >&5
31333
31334         ac_cv_type_pid_t=no
31335 fi
31336
31337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31338 fi
31339 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31340 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31341 if test $ac_cv_type_pid_t = yes; then
31342   :
31343 else
31344
31345 cat >>confdefs.h <<_ACEOF
31346 #define pid_t int
31347 _ACEOF
31348
31349 fi
31350
31351 { echo "$as_me:$LINENO: checking for size_t" >&5
31352 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31353 if test "${ac_cv_type_size_t+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 $ac_includes_default
31363 typedef size_t ac__type_new_;
31364 int
31365 main ()
31366 {
31367 if ((ac__type_new_ *) 0)
31368   return 0;
31369 if (sizeof (ac__type_new_))
31370   return 0;
31371   ;
31372   return 0;
31373 }
31374 _ACEOF
31375 rm -f conftest.$ac_objext
31376 if { (ac_try="$ac_compile"
31377 case "(($ac_try" in
31378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31379   *) ac_try_echo=$ac_try;;
31380 esac
31381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31382   (eval "$ac_compile") 2>conftest.er1
31383   ac_status=$?
31384   grep -v '^ *+' conftest.er1 >conftest.err
31385   rm -f conftest.er1
31386   cat conftest.err >&5
31387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388   (exit $ac_status); } &&
31389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31390   { (case "(($ac_try" in
31391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392   *) ac_try_echo=$ac_try;;
31393 esac
31394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31395   (eval "$ac_try") 2>&5
31396   ac_status=$?
31397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398   (exit $ac_status); }; } &&
31399          { ac_try='test -s conftest.$ac_objext'
31400   { (case "(($ac_try" in
31401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31402   *) ac_try_echo=$ac_try;;
31403 esac
31404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31405   (eval "$ac_try") 2>&5
31406   ac_status=$?
31407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408   (exit $ac_status); }; }; then
31409   ac_cv_type_size_t=yes
31410 else
31411   echo "$as_me: failed program was:" >&5
31412 sed 's/^/| /' conftest.$ac_ext >&5
31413
31414         ac_cv_type_size_t=no
31415 fi
31416
31417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31418 fi
31419 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31420 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31421 if test $ac_cv_type_size_t = yes; then
31422   :
31423 else
31424
31425 cat >>confdefs.h <<_ACEOF
31426 #define size_t unsigned int
31427 _ACEOF
31428
31429 fi
31430
31431 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31432 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31433 if test "${ac_cv_type_signal+set}" = set; then
31434   echo $ECHO_N "(cached) $ECHO_C" >&6
31435 else
31436   cat >conftest.$ac_ext <<_ACEOF
31437 /* confdefs.h.  */
31438 _ACEOF
31439 cat confdefs.h >>conftest.$ac_ext
31440 cat >>conftest.$ac_ext <<_ACEOF
31441 /* end confdefs.h.  */
31442 #include <sys/types.h>
31443 #include <signal.h>
31444
31445 int
31446 main ()
31447 {
31448 return *(signal (0, 0)) (0) == 1;
31449   ;
31450   return 0;
31451 }
31452 _ACEOF
31453 rm -f conftest.$ac_objext
31454 if { (ac_try="$ac_compile"
31455 case "(($ac_try" in
31456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31457   *) ac_try_echo=$ac_try;;
31458 esac
31459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31460   (eval "$ac_compile") 2>conftest.er1
31461   ac_status=$?
31462   grep -v '^ *+' conftest.er1 >conftest.err
31463   rm -f conftest.er1
31464   cat conftest.err >&5
31465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31466   (exit $ac_status); } &&
31467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31468   { (case "(($ac_try" in
31469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31470   *) ac_try_echo=$ac_try;;
31471 esac
31472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31473   (eval "$ac_try") 2>&5
31474   ac_status=$?
31475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31476   (exit $ac_status); }; } &&
31477          { ac_try='test -s conftest.$ac_objext'
31478   { (case "(($ac_try" in
31479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31480   *) ac_try_echo=$ac_try;;
31481 esac
31482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31483   (eval "$ac_try") 2>&5
31484   ac_status=$?
31485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486   (exit $ac_status); }; }; then
31487   ac_cv_type_signal=int
31488 else
31489   echo "$as_me: failed program was:" >&5
31490 sed 's/^/| /' conftest.$ac_ext >&5
31491
31492         ac_cv_type_signal=void
31493 fi
31494
31495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31496 fi
31497 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31498 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31499
31500 cat >>confdefs.h <<_ACEOF
31501 #define RETSIGTYPE $ac_cv_type_signal
31502 _ACEOF
31503
31504
31505 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31506 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31507 if test "${ac_cv_struct_tm+set}" = set; then
31508   echo $ECHO_N "(cached) $ECHO_C" >&6
31509 else
31510   cat >conftest.$ac_ext <<_ACEOF
31511 /* confdefs.h.  */
31512 _ACEOF
31513 cat confdefs.h >>conftest.$ac_ext
31514 cat >>conftest.$ac_ext <<_ACEOF
31515 /* end confdefs.h.  */
31516 #include <sys/types.h>
31517 #include <time.h>
31518
31519 int
31520 main ()
31521 {
31522 struct tm *tp; tp->tm_sec;
31523   ;
31524   return 0;
31525 }
31526 _ACEOF
31527 rm -f conftest.$ac_objext
31528 if { (ac_try="$ac_compile"
31529 case "(($ac_try" in
31530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31531   *) ac_try_echo=$ac_try;;
31532 esac
31533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31534   (eval "$ac_compile") 2>conftest.er1
31535   ac_status=$?
31536   grep -v '^ *+' conftest.er1 >conftest.err
31537   rm -f conftest.er1
31538   cat conftest.err >&5
31539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540   (exit $ac_status); } &&
31541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31542   { (case "(($ac_try" in
31543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31544   *) ac_try_echo=$ac_try;;
31545 esac
31546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31547   (eval "$ac_try") 2>&5
31548   ac_status=$?
31549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550   (exit $ac_status); }; } &&
31551          { ac_try='test -s conftest.$ac_objext'
31552   { (case "(($ac_try" in
31553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31554   *) ac_try_echo=$ac_try;;
31555 esac
31556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31557   (eval "$ac_try") 2>&5
31558   ac_status=$?
31559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560   (exit $ac_status); }; }; then
31561   ac_cv_struct_tm=time.h
31562 else
31563   echo "$as_me: failed program was:" >&5
31564 sed 's/^/| /' conftest.$ac_ext >&5
31565
31566         ac_cv_struct_tm=sys/time.h
31567 fi
31568
31569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31570 fi
31571 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31572 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31573 if test $ac_cv_struct_tm = sys/time.h; then
31574
31575 cat >>confdefs.h <<\_ACEOF
31576 #define TM_IN_SYS_TIME 1
31577 _ACEOF
31578
31579 fi
31580
31581 { echo "$as_me:$LINENO: checking for int64_t" >&5
31582 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31583 if test "${ac_cv_type_int64_t+set}" = set; then
31584   echo $ECHO_N "(cached) $ECHO_C" >&6
31585 else
31586   cat >conftest.$ac_ext <<_ACEOF
31587 /* confdefs.h.  */
31588 _ACEOF
31589 cat confdefs.h >>conftest.$ac_ext
31590 cat >>conftest.$ac_ext <<_ACEOF
31591 /* end confdefs.h.  */
31592 $ac_includes_default
31593 typedef int64_t ac__type_new_;
31594 int
31595 main ()
31596 {
31597 if ((ac__type_new_ *) 0)
31598   return 0;
31599 if (sizeof (ac__type_new_))
31600   return 0;
31601   ;
31602   return 0;
31603 }
31604 _ACEOF
31605 rm -f conftest.$ac_objext
31606 if { (ac_try="$ac_compile"
31607 case "(($ac_try" in
31608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31609   *) ac_try_echo=$ac_try;;
31610 esac
31611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31612   (eval "$ac_compile") 2>conftest.er1
31613   ac_status=$?
31614   grep -v '^ *+' conftest.er1 >conftest.err
31615   rm -f conftest.er1
31616   cat conftest.err >&5
31617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618   (exit $ac_status); } &&
31619          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31620   { (case "(($ac_try" in
31621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31622   *) ac_try_echo=$ac_try;;
31623 esac
31624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31625   (eval "$ac_try") 2>&5
31626   ac_status=$?
31627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628   (exit $ac_status); }; } &&
31629          { ac_try='test -s conftest.$ac_objext'
31630   { (case "(($ac_try" in
31631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31632   *) ac_try_echo=$ac_try;;
31633 esac
31634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31635   (eval "$ac_try") 2>&5
31636   ac_status=$?
31637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638   (exit $ac_status); }; }; then
31639   ac_cv_type_int64_t=yes
31640 else
31641   echo "$as_me: failed program was:" >&5
31642 sed 's/^/| /' conftest.$ac_ext >&5
31643
31644         ac_cv_type_int64_t=no
31645 fi
31646
31647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31648 fi
31649 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31650 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31651 if test $ac_cv_type_int64_t = yes; then
31652
31653 cat >>confdefs.h <<_ACEOF
31654 #define HAVE_INT64_T 1
31655 _ACEOF
31656
31657
31658 else
31659   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31660 echo "$as_me: error: Type int64_t required but not found" >&2;}
31661    { (exit 1); exit 1; }; }
31662 fi
31663
31664 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31665 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31666 if test "${ac_cv_type_uint64_t+set}" = set; then
31667   echo $ECHO_N "(cached) $ECHO_C" >&6
31668 else
31669   cat >conftest.$ac_ext <<_ACEOF
31670 /* confdefs.h.  */
31671 _ACEOF
31672 cat confdefs.h >>conftest.$ac_ext
31673 cat >>conftest.$ac_ext <<_ACEOF
31674 /* end confdefs.h.  */
31675 $ac_includes_default
31676 typedef uint64_t ac__type_new_;
31677 int
31678 main ()
31679 {
31680 if ((ac__type_new_ *) 0)
31681   return 0;
31682 if (sizeof (ac__type_new_))
31683   return 0;
31684   ;
31685   return 0;
31686 }
31687 _ACEOF
31688 rm -f conftest.$ac_objext
31689 if { (ac_try="$ac_compile"
31690 case "(($ac_try" in
31691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31692   *) ac_try_echo=$ac_try;;
31693 esac
31694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31695   (eval "$ac_compile") 2>conftest.er1
31696   ac_status=$?
31697   grep -v '^ *+' conftest.er1 >conftest.err
31698   rm -f conftest.er1
31699   cat conftest.err >&5
31700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701   (exit $ac_status); } &&
31702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31703   { (case "(($ac_try" in
31704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31705   *) ac_try_echo=$ac_try;;
31706 esac
31707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31708   (eval "$ac_try") 2>&5
31709   ac_status=$?
31710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711   (exit $ac_status); }; } &&
31712          { ac_try='test -s conftest.$ac_objext'
31713   { (case "(($ac_try" in
31714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31715   *) ac_try_echo=$ac_try;;
31716 esac
31717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31718   (eval "$ac_try") 2>&5
31719   ac_status=$?
31720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31721   (exit $ac_status); }; }; then
31722   ac_cv_type_uint64_t=yes
31723 else
31724   echo "$as_me: failed program was:" >&5
31725 sed 's/^/| /' conftest.$ac_ext >&5
31726
31727         ac_cv_type_uint64_t=no
31728 fi
31729
31730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31731 fi
31732 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31733 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31734 if test $ac_cv_type_uint64_t = yes; then
31735
31736 cat >>confdefs.h <<_ACEOF
31737 #define HAVE_UINT64_T 1
31738 _ACEOF
31739
31740
31741 else
31742   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31743 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31744 if test "${ac_cv_type_u_int64_t+set}" = set; then
31745   echo $ECHO_N "(cached) $ECHO_C" >&6
31746 else
31747   cat >conftest.$ac_ext <<_ACEOF
31748 /* confdefs.h.  */
31749 _ACEOF
31750 cat confdefs.h >>conftest.$ac_ext
31751 cat >>conftest.$ac_ext <<_ACEOF
31752 /* end confdefs.h.  */
31753 $ac_includes_default
31754 typedef u_int64_t ac__type_new_;
31755 int
31756 main ()
31757 {
31758 if ((ac__type_new_ *) 0)
31759   return 0;
31760 if (sizeof (ac__type_new_))
31761   return 0;
31762   ;
31763   return 0;
31764 }
31765 _ACEOF
31766 rm -f conftest.$ac_objext
31767 if { (ac_try="$ac_compile"
31768 case "(($ac_try" in
31769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31770   *) ac_try_echo=$ac_try;;
31771 esac
31772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31773   (eval "$ac_compile") 2>conftest.er1
31774   ac_status=$?
31775   grep -v '^ *+' conftest.er1 >conftest.err
31776   rm -f conftest.er1
31777   cat conftest.err >&5
31778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31779   (exit $ac_status); } &&
31780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31781   { (case "(($ac_try" in
31782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31783   *) ac_try_echo=$ac_try;;
31784 esac
31785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31786   (eval "$ac_try") 2>&5
31787   ac_status=$?
31788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789   (exit $ac_status); }; } &&
31790          { ac_try='test -s conftest.$ac_objext'
31791   { (case "(($ac_try" in
31792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31793   *) ac_try_echo=$ac_try;;
31794 esac
31795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31796   (eval "$ac_try") 2>&5
31797   ac_status=$?
31798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799   (exit $ac_status); }; }; then
31800   ac_cv_type_u_int64_t=yes
31801 else
31802   echo "$as_me: failed program was:" >&5
31803 sed 's/^/| /' conftest.$ac_ext >&5
31804
31805         ac_cv_type_u_int64_t=no
31806 fi
31807
31808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31809 fi
31810 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31811 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31812 if test $ac_cv_type_u_int64_t = yes; then
31813
31814 cat >>confdefs.h <<_ACEOF
31815 #define HAVE_U_INT64_T 1
31816 _ACEOF
31817
31818
31819 else
31820   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31821 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31822    { (exit 1); exit 1; }; }
31823 fi
31824
31825 fi
31826
31827
31828
31829
31830
31831
31832
31833
31834
31835
31836 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31837 do
31838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31839 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31842   echo $ECHO_N "(cached) $ECHO_C" >&6
31843 else
31844   cat >conftest.$ac_ext <<_ACEOF
31845 /* confdefs.h.  */
31846 _ACEOF
31847 cat confdefs.h >>conftest.$ac_ext
31848 cat >>conftest.$ac_ext <<_ACEOF
31849 /* end confdefs.h.  */
31850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31852 #define $ac_func innocuous_$ac_func
31853
31854 /* System header to define __stub macros and hopefully few prototypes,
31855     which can conflict with char $ac_func (); below.
31856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31857     <limits.h> exists even on freestanding compilers.  */
31858
31859 #ifdef __STDC__
31860 # include <limits.h>
31861 #else
31862 # include <assert.h>
31863 #endif
31864
31865 #undef $ac_func
31866
31867 /* Override any GCC internal prototype to avoid an error.
31868    Use char because int might match the return type of a GCC
31869    builtin and then its argument prototype would still apply.  */
31870 #ifdef __cplusplus
31871 extern "C"
31872 #endif
31873 char $ac_func ();
31874 /* The GNU C library defines this for functions which it implements
31875     to always fail with ENOSYS.  Some functions are actually named
31876     something starting with __ and the normal name is an alias.  */
31877 #if defined __stub_$ac_func || defined __stub___$ac_func
31878 choke me
31879 #endif
31880
31881 int
31882 main ()
31883 {
31884 return $ac_func ();
31885   ;
31886   return 0;
31887 }
31888 _ACEOF
31889 rm -f conftest.$ac_objext conftest$ac_exeext
31890 if { (ac_try="$ac_link"
31891 case "(($ac_try" in
31892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31893   *) ac_try_echo=$ac_try;;
31894 esac
31895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31896   (eval "$ac_link") 2>conftest.er1
31897   ac_status=$?
31898   grep -v '^ *+' conftest.er1 >conftest.err
31899   rm -f conftest.er1
31900   cat conftest.err >&5
31901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31902   (exit $ac_status); } &&
31903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31904   { (case "(($ac_try" in
31905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31906   *) ac_try_echo=$ac_try;;
31907 esac
31908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31909   (eval "$ac_try") 2>&5
31910   ac_status=$?
31911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912   (exit $ac_status); }; } &&
31913          { ac_try='test -s conftest$ac_exeext'
31914   { (case "(($ac_try" in
31915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31916   *) ac_try_echo=$ac_try;;
31917 esac
31918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31919   (eval "$ac_try") 2>&5
31920   ac_status=$?
31921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31922   (exit $ac_status); }; }; then
31923   eval "$as_ac_var=yes"
31924 else
31925   echo "$as_me: failed program was:" >&5
31926 sed 's/^/| /' conftest.$ac_ext >&5
31927
31928         eval "$as_ac_var=no"
31929 fi
31930
31931 rm -f core conftest.err conftest.$ac_objext \
31932       conftest$ac_exeext conftest.$ac_ext
31933 fi
31934 ac_res=`eval echo '${'$as_ac_var'}'`
31935                { echo "$as_me:$LINENO: result: $ac_res" >&5
31936 echo "${ECHO_T}$ac_res" >&6; }
31937 if test `eval echo '${'$as_ac_var'}'` = yes; then
31938   cat >>confdefs.h <<_ACEOF
31939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31940 _ACEOF
31941
31942 fi
31943 done
31944
31945
31946
31947
31948
31949 for ac_func in powf fmodf strtof round
31950 do
31951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31955   echo $ECHO_N "(cached) $ECHO_C" >&6
31956 else
31957   cat >conftest.$ac_ext <<_ACEOF
31958 /* confdefs.h.  */
31959 _ACEOF
31960 cat confdefs.h >>conftest.$ac_ext
31961 cat >>conftest.$ac_ext <<_ACEOF
31962 /* end confdefs.h.  */
31963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31965 #define $ac_func innocuous_$ac_func
31966
31967 /* System header to define __stub macros and hopefully few prototypes,
31968     which can conflict with char $ac_func (); below.
31969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31970     <limits.h> exists even on freestanding compilers.  */
31971
31972 #ifdef __STDC__
31973 # include <limits.h>
31974 #else
31975 # include <assert.h>
31976 #endif
31977
31978 #undef $ac_func
31979
31980 /* Override any GCC internal prototype to avoid an error.
31981    Use char because int might match the return type of a GCC
31982    builtin and then its argument prototype would still apply.  */
31983 #ifdef __cplusplus
31984 extern "C"
31985 #endif
31986 char $ac_func ();
31987 /* The GNU C library defines this for functions which it implements
31988     to always fail with ENOSYS.  Some functions are actually named
31989     something starting with __ and the normal name is an alias.  */
31990 #if defined __stub_$ac_func || defined __stub___$ac_func
31991 choke me
31992 #endif
31993
31994 int
31995 main ()
31996 {
31997 return $ac_func ();
31998   ;
31999   return 0;
32000 }
32001 _ACEOF
32002 rm -f conftest.$ac_objext conftest$ac_exeext
32003 if { (ac_try="$ac_link"
32004 case "(($ac_try" in
32005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32006   *) ac_try_echo=$ac_try;;
32007 esac
32008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32009   (eval "$ac_link") 2>conftest.er1
32010   ac_status=$?
32011   grep -v '^ *+' conftest.er1 >conftest.err
32012   rm -f conftest.er1
32013   cat conftest.err >&5
32014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32015   (exit $ac_status); } &&
32016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32017   { (case "(($ac_try" in
32018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32019   *) ac_try_echo=$ac_try;;
32020 esac
32021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32022   (eval "$ac_try") 2>&5
32023   ac_status=$?
32024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025   (exit $ac_status); }; } &&
32026          { ac_try='test -s conftest$ac_exeext'
32027   { (case "(($ac_try" in
32028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32029   *) ac_try_echo=$ac_try;;
32030 esac
32031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32032   (eval "$ac_try") 2>&5
32033   ac_status=$?
32034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035   (exit $ac_status); }; }; then
32036   eval "$as_ac_var=yes"
32037 else
32038   echo "$as_me: failed program was:" >&5
32039 sed 's/^/| /' conftest.$ac_ext >&5
32040
32041         eval "$as_ac_var=no"
32042 fi
32043
32044 rm -f core conftest.err conftest.$ac_objext \
32045       conftest$ac_exeext conftest.$ac_ext
32046 fi
32047 ac_res=`eval echo '${'$as_ac_var'}'`
32048                { echo "$as_me:$LINENO: result: $ac_res" >&5
32049 echo "${ECHO_T}$ac_res" >&6; }
32050 if test `eval echo '${'$as_ac_var'}'` = yes; then
32051   cat >>confdefs.h <<_ACEOF
32052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32053 _ACEOF
32054
32055 fi
32056 done
32057
32058
32059
32060
32061
32062
32063 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
32064 do
32065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32066 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32069   echo $ECHO_N "(cached) $ECHO_C" >&6
32070 else
32071   cat >conftest.$ac_ext <<_ACEOF
32072 /* confdefs.h.  */
32073 _ACEOF
32074 cat confdefs.h >>conftest.$ac_ext
32075 cat >>conftest.$ac_ext <<_ACEOF
32076 /* end confdefs.h.  */
32077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32079 #define $ac_func innocuous_$ac_func
32080
32081 /* System header to define __stub macros and hopefully few prototypes,
32082     which can conflict with char $ac_func (); below.
32083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32084     <limits.h> exists even on freestanding compilers.  */
32085
32086 #ifdef __STDC__
32087 # include <limits.h>
32088 #else
32089 # include <assert.h>
32090 #endif
32091
32092 #undef $ac_func
32093
32094 /* Override any GCC internal prototype to avoid an error.
32095    Use char because int might match the return type of a GCC
32096    builtin and then its argument prototype would still apply.  */
32097 #ifdef __cplusplus
32098 extern "C"
32099 #endif
32100 char $ac_func ();
32101 /* The GNU C library defines this for functions which it implements
32102     to always fail with ENOSYS.  Some functions are actually named
32103     something starting with __ and the normal name is an alias.  */
32104 #if defined __stub_$ac_func || defined __stub___$ac_func
32105 choke me
32106 #endif
32107
32108 int
32109 main ()
32110 {
32111 return $ac_func ();
32112   ;
32113   return 0;
32114 }
32115 _ACEOF
32116 rm -f conftest.$ac_objext conftest$ac_exeext
32117 if { (ac_try="$ac_link"
32118 case "(($ac_try" in
32119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32120   *) ac_try_echo=$ac_try;;
32121 esac
32122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32123   (eval "$ac_link") 2>conftest.er1
32124   ac_status=$?
32125   grep -v '^ *+' conftest.er1 >conftest.err
32126   rm -f conftest.er1
32127   cat conftest.err >&5
32128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129   (exit $ac_status); } &&
32130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32131   { (case "(($ac_try" in
32132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32133   *) ac_try_echo=$ac_try;;
32134 esac
32135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32136   (eval "$ac_try") 2>&5
32137   ac_status=$?
32138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139   (exit $ac_status); }; } &&
32140          { ac_try='test -s conftest$ac_exeext'
32141   { (case "(($ac_try" in
32142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32143   *) ac_try_echo=$ac_try;;
32144 esac
32145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32146   (eval "$ac_try") 2>&5
32147   ac_status=$?
32148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32149   (exit $ac_status); }; }; then
32150   eval "$as_ac_var=yes"
32151 else
32152   echo "$as_me: failed program was:" >&5
32153 sed 's/^/| /' conftest.$ac_ext >&5
32154
32155         eval "$as_ac_var=no"
32156 fi
32157
32158 rm -f core conftest.err conftest.$ac_objext \
32159       conftest$ac_exeext conftest.$ac_ext
32160 fi
32161 ac_res=`eval echo '${'$as_ac_var'}'`
32162                { echo "$as_me:$LINENO: result: $ac_res" >&5
32163 echo "${ECHO_T}$ac_res" >&6; }
32164 if test `eval echo '${'$as_ac_var'}'` = yes; then
32165   cat >>confdefs.h <<_ACEOF
32166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32167 _ACEOF
32168
32169 fi
32170 done
32171
32172
32173
32174
32175 for ac_func in isatty mkdtemp mkstemp
32176 do
32177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32181   echo $ECHO_N "(cached) $ECHO_C" >&6
32182 else
32183   cat >conftest.$ac_ext <<_ACEOF
32184 /* confdefs.h.  */
32185 _ACEOF
32186 cat confdefs.h >>conftest.$ac_ext
32187 cat >>conftest.$ac_ext <<_ACEOF
32188 /* end confdefs.h.  */
32189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32191 #define $ac_func innocuous_$ac_func
32192
32193 /* System header to define __stub macros and hopefully few prototypes,
32194     which can conflict with char $ac_func (); below.
32195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32196     <limits.h> exists even on freestanding compilers.  */
32197
32198 #ifdef __STDC__
32199 # include <limits.h>
32200 #else
32201 # include <assert.h>
32202 #endif
32203
32204 #undef $ac_func
32205
32206 /* Override any GCC internal prototype to avoid an error.
32207    Use char because int might match the return type of a GCC
32208    builtin and then its argument prototype would still apply.  */
32209 #ifdef __cplusplus
32210 extern "C"
32211 #endif
32212 char $ac_func ();
32213 /* The GNU C library defines this for functions which it implements
32214     to always fail with ENOSYS.  Some functions are actually named
32215     something starting with __ and the normal name is an alias.  */
32216 #if defined __stub_$ac_func || defined __stub___$ac_func
32217 choke me
32218 #endif
32219
32220 int
32221 main ()
32222 {
32223 return $ac_func ();
32224   ;
32225   return 0;
32226 }
32227 _ACEOF
32228 rm -f conftest.$ac_objext conftest$ac_exeext
32229 if { (ac_try="$ac_link"
32230 case "(($ac_try" in
32231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32232   *) ac_try_echo=$ac_try;;
32233 esac
32234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32235   (eval "$ac_link") 2>conftest.er1
32236   ac_status=$?
32237   grep -v '^ *+' conftest.er1 >conftest.err
32238   rm -f conftest.er1
32239   cat conftest.err >&5
32240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241   (exit $ac_status); } &&
32242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32243   { (case "(($ac_try" in
32244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32245   *) ac_try_echo=$ac_try;;
32246 esac
32247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32248   (eval "$ac_try") 2>&5
32249   ac_status=$?
32250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251   (exit $ac_status); }; } &&
32252          { ac_try='test -s conftest$ac_exeext'
32253   { (case "(($ac_try" in
32254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32255   *) ac_try_echo=$ac_try;;
32256 esac
32257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32258   (eval "$ac_try") 2>&5
32259   ac_status=$?
32260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261   (exit $ac_status); }; }; then
32262   eval "$as_ac_var=yes"
32263 else
32264   echo "$as_me: failed program was:" >&5
32265 sed 's/^/| /' conftest.$ac_ext >&5
32266
32267         eval "$as_ac_var=no"
32268 fi
32269
32270 rm -f core conftest.err conftest.$ac_objext \
32271       conftest$ac_exeext conftest.$ac_ext
32272 fi
32273 ac_res=`eval echo '${'$as_ac_var'}'`
32274                { echo "$as_me:$LINENO: result: $ac_res" >&5
32275 echo "${ECHO_T}$ac_res" >&6; }
32276 if test `eval echo '${'$as_ac_var'}'` = yes; then
32277   cat >>confdefs.h <<_ACEOF
32278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32279 _ACEOF
32280
32281 fi
32282 done
32283
32284
32285
32286
32287
32288
32289 for ac_func in mktemp realpath sbrk setrlimit strdup
32290 do
32291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32295   echo $ECHO_N "(cached) $ECHO_C" >&6
32296 else
32297   cat >conftest.$ac_ext <<_ACEOF
32298 /* confdefs.h.  */
32299 _ACEOF
32300 cat confdefs.h >>conftest.$ac_ext
32301 cat >>conftest.$ac_ext <<_ACEOF
32302 /* end confdefs.h.  */
32303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32304    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32305 #define $ac_func innocuous_$ac_func
32306
32307 /* System header to define __stub macros and hopefully few prototypes,
32308     which can conflict with char $ac_func (); below.
32309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32310     <limits.h> exists even on freestanding compilers.  */
32311
32312 #ifdef __STDC__
32313 # include <limits.h>
32314 #else
32315 # include <assert.h>
32316 #endif
32317
32318 #undef $ac_func
32319
32320 /* Override any GCC internal prototype to avoid an error.
32321    Use char because int might match the return type of a GCC
32322    builtin and then its argument prototype would still apply.  */
32323 #ifdef __cplusplus
32324 extern "C"
32325 #endif
32326 char $ac_func ();
32327 /* The GNU C library defines this for functions which it implements
32328     to always fail with ENOSYS.  Some functions are actually named
32329     something starting with __ and the normal name is an alias.  */
32330 #if defined __stub_$ac_func || defined __stub___$ac_func
32331 choke me
32332 #endif
32333
32334 int
32335 main ()
32336 {
32337 return $ac_func ();
32338   ;
32339   return 0;
32340 }
32341 _ACEOF
32342 rm -f conftest.$ac_objext conftest$ac_exeext
32343 if { (ac_try="$ac_link"
32344 case "(($ac_try" in
32345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32346   *) ac_try_echo=$ac_try;;
32347 esac
32348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32349   (eval "$ac_link") 2>conftest.er1
32350   ac_status=$?
32351   grep -v '^ *+' conftest.er1 >conftest.err
32352   rm -f conftest.er1
32353   cat conftest.err >&5
32354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355   (exit $ac_status); } &&
32356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32357   { (case "(($ac_try" in
32358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32359   *) ac_try_echo=$ac_try;;
32360 esac
32361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32362   (eval "$ac_try") 2>&5
32363   ac_status=$?
32364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365   (exit $ac_status); }; } &&
32366          { ac_try='test -s conftest$ac_exeext'
32367   { (case "(($ac_try" in
32368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32369   *) ac_try_echo=$ac_try;;
32370 esac
32371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32372   (eval "$ac_try") 2>&5
32373   ac_status=$?
32374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32375   (exit $ac_status); }; }; then
32376   eval "$as_ac_var=yes"
32377 else
32378   echo "$as_me: failed program was:" >&5
32379 sed 's/^/| /' conftest.$ac_ext >&5
32380
32381         eval "$as_ac_var=no"
32382 fi
32383
32384 rm -f core conftest.err conftest.$ac_objext \
32385       conftest$ac_exeext conftest.$ac_ext
32386 fi
32387 ac_res=`eval echo '${'$as_ac_var'}'`
32388                { echo "$as_me:$LINENO: result: $ac_res" >&5
32389 echo "${ECHO_T}$ac_res" >&6; }
32390 if test `eval echo '${'$as_ac_var'}'` = yes; then
32391   cat >>confdefs.h <<_ACEOF
32392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32393 _ACEOF
32394
32395 fi
32396 done
32397
32398
32399
32400
32401
32402 for ac_func in strerror strerror_r strerror_s setenv
32403 do
32404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32408   echo $ECHO_N "(cached) $ECHO_C" >&6
32409 else
32410   cat >conftest.$ac_ext <<_ACEOF
32411 /* confdefs.h.  */
32412 _ACEOF
32413 cat confdefs.h >>conftest.$ac_ext
32414 cat >>conftest.$ac_ext <<_ACEOF
32415 /* end confdefs.h.  */
32416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32418 #define $ac_func innocuous_$ac_func
32419
32420 /* System header to define __stub macros and hopefully few prototypes,
32421     which can conflict with char $ac_func (); below.
32422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32423     <limits.h> exists even on freestanding compilers.  */
32424
32425 #ifdef __STDC__
32426 # include <limits.h>
32427 #else
32428 # include <assert.h>
32429 #endif
32430
32431 #undef $ac_func
32432
32433 /* Override any GCC internal prototype to avoid an error.
32434    Use char because int might match the return type of a GCC
32435    builtin and then its argument prototype would still apply.  */
32436 #ifdef __cplusplus
32437 extern "C"
32438 #endif
32439 char $ac_func ();
32440 /* The GNU C library defines this for functions which it implements
32441     to always fail with ENOSYS.  Some functions are actually named
32442     something starting with __ and the normal name is an alias.  */
32443 #if defined __stub_$ac_func || defined __stub___$ac_func
32444 choke me
32445 #endif
32446
32447 int
32448 main ()
32449 {
32450 return $ac_func ();
32451   ;
32452   return 0;
32453 }
32454 _ACEOF
32455 rm -f conftest.$ac_objext conftest$ac_exeext
32456 if { (ac_try="$ac_link"
32457 case "(($ac_try" in
32458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32459   *) ac_try_echo=$ac_try;;
32460 esac
32461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32462   (eval "$ac_link") 2>conftest.er1
32463   ac_status=$?
32464   grep -v '^ *+' conftest.er1 >conftest.err
32465   rm -f conftest.er1
32466   cat conftest.err >&5
32467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468   (exit $ac_status); } &&
32469          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32470   { (case "(($ac_try" in
32471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32472   *) ac_try_echo=$ac_try;;
32473 esac
32474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32475   (eval "$ac_try") 2>&5
32476   ac_status=$?
32477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478   (exit $ac_status); }; } &&
32479          { ac_try='test -s conftest$ac_exeext'
32480   { (case "(($ac_try" in
32481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32482   *) ac_try_echo=$ac_try;;
32483 esac
32484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32485   (eval "$ac_try") 2>&5
32486   ac_status=$?
32487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32488   (exit $ac_status); }; }; then
32489   eval "$as_ac_var=yes"
32490 else
32491   echo "$as_me: failed program was:" >&5
32492 sed 's/^/| /' conftest.$ac_ext >&5
32493
32494         eval "$as_ac_var=no"
32495 fi
32496
32497 rm -f core conftest.err conftest.$ac_objext \
32498       conftest$ac_exeext conftest.$ac_ext
32499 fi
32500 ac_res=`eval echo '${'$as_ac_var'}'`
32501                { echo "$as_me:$LINENO: result: $ac_res" >&5
32502 echo "${ECHO_T}$ac_res" >&6; }
32503 if test `eval echo '${'$as_ac_var'}'` = yes; then
32504   cat >>confdefs.h <<_ACEOF
32505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32506 _ACEOF
32507
32508 fi
32509 done
32510
32511
32512
32513
32514
32515 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32516 do
32517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32521   echo $ECHO_N "(cached) $ECHO_C" >&6
32522 else
32523   cat >conftest.$ac_ext <<_ACEOF
32524 /* confdefs.h.  */
32525 _ACEOF
32526 cat confdefs.h >>conftest.$ac_ext
32527 cat >>conftest.$ac_ext <<_ACEOF
32528 /* end confdefs.h.  */
32529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32531 #define $ac_func innocuous_$ac_func
32532
32533 /* System header to define __stub macros and hopefully few prototypes,
32534     which can conflict with char $ac_func (); below.
32535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32536     <limits.h> exists even on freestanding compilers.  */
32537
32538 #ifdef __STDC__
32539 # include <limits.h>
32540 #else
32541 # include <assert.h>
32542 #endif
32543
32544 #undef $ac_func
32545
32546 /* Override any GCC internal prototype to avoid an error.
32547    Use char because int might match the return type of a GCC
32548    builtin and then its argument prototype would still apply.  */
32549 #ifdef __cplusplus
32550 extern "C"
32551 #endif
32552 char $ac_func ();
32553 /* The GNU C library defines this for functions which it implements
32554     to always fail with ENOSYS.  Some functions are actually named
32555     something starting with __ and the normal name is an alias.  */
32556 #if defined __stub_$ac_func || defined __stub___$ac_func
32557 choke me
32558 #endif
32559
32560 int
32561 main ()
32562 {
32563 return $ac_func ();
32564   ;
32565   return 0;
32566 }
32567 _ACEOF
32568 rm -f conftest.$ac_objext conftest$ac_exeext
32569 if { (ac_try="$ac_link"
32570 case "(($ac_try" in
32571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32572   *) ac_try_echo=$ac_try;;
32573 esac
32574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32575   (eval "$ac_link") 2>conftest.er1
32576   ac_status=$?
32577   grep -v '^ *+' conftest.er1 >conftest.err
32578   rm -f conftest.er1
32579   cat conftest.err >&5
32580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32581   (exit $ac_status); } &&
32582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32583   { (case "(($ac_try" in
32584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32585   *) ac_try_echo=$ac_try;;
32586 esac
32587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32588   (eval "$ac_try") 2>&5
32589   ac_status=$?
32590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591   (exit $ac_status); }; } &&
32592          { ac_try='test -s conftest$ac_exeext'
32593   { (case "(($ac_try" in
32594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32595   *) ac_try_echo=$ac_try;;
32596 esac
32597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32598   (eval "$ac_try") 2>&5
32599   ac_status=$?
32600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32601   (exit $ac_status); }; }; then
32602   eval "$as_ac_var=yes"
32603 else
32604   echo "$as_me: failed program was:" >&5
32605 sed 's/^/| /' conftest.$ac_ext >&5
32606
32607         eval "$as_ac_var=no"
32608 fi
32609
32610 rm -f core conftest.err conftest.$ac_objext \
32611       conftest$ac_exeext conftest.$ac_ext
32612 fi
32613 ac_res=`eval echo '${'$as_ac_var'}'`
32614                { echo "$as_me:$LINENO: result: $ac_res" >&5
32615 echo "${ECHO_T}$ac_res" >&6; }
32616 if test `eval echo '${'$as_ac_var'}'` = yes; then
32617   cat >>confdefs.h <<_ACEOF
32618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32619 _ACEOF
32620
32621 fi
32622 done
32623
32624
32625
32626
32627
32628 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32629 do
32630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32634   echo $ECHO_N "(cached) $ECHO_C" >&6
32635 else
32636   cat >conftest.$ac_ext <<_ACEOF
32637 /* confdefs.h.  */
32638 _ACEOF
32639 cat confdefs.h >>conftest.$ac_ext
32640 cat >>conftest.$ac_ext <<_ACEOF
32641 /* end confdefs.h.  */
32642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32644 #define $ac_func innocuous_$ac_func
32645
32646 /* System header to define __stub macros and hopefully few prototypes,
32647     which can conflict with char $ac_func (); below.
32648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32649     <limits.h> exists even on freestanding compilers.  */
32650
32651 #ifdef __STDC__
32652 # include <limits.h>
32653 #else
32654 # include <assert.h>
32655 #endif
32656
32657 #undef $ac_func
32658
32659 /* Override any GCC internal prototype to avoid an error.
32660    Use char because int might match the return type of a GCC
32661    builtin and then its argument prototype would still apply.  */
32662 #ifdef __cplusplus
32663 extern "C"
32664 #endif
32665 char $ac_func ();
32666 /* The GNU C library defines this for functions which it implements
32667     to always fail with ENOSYS.  Some functions are actually named
32668     something starting with __ and the normal name is an alias.  */
32669 #if defined __stub_$ac_func || defined __stub___$ac_func
32670 choke me
32671 #endif
32672
32673 int
32674 main ()
32675 {
32676 return $ac_func ();
32677   ;
32678   return 0;
32679 }
32680 _ACEOF
32681 rm -f conftest.$ac_objext conftest$ac_exeext
32682 if { (ac_try="$ac_link"
32683 case "(($ac_try" in
32684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32685   *) ac_try_echo=$ac_try;;
32686 esac
32687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32688   (eval "$ac_link") 2>conftest.er1
32689   ac_status=$?
32690   grep -v '^ *+' conftest.er1 >conftest.err
32691   rm -f conftest.er1
32692   cat conftest.err >&5
32693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32694   (exit $ac_status); } &&
32695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32696   { (case "(($ac_try" in
32697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32698   *) ac_try_echo=$ac_try;;
32699 esac
32700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32701   (eval "$ac_try") 2>&5
32702   ac_status=$?
32703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704   (exit $ac_status); }; } &&
32705          { ac_try='test -s conftest$ac_exeext'
32706   { (case "(($ac_try" in
32707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32708   *) ac_try_echo=$ac_try;;
32709 esac
32710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32711   (eval "$ac_try") 2>&5
32712   ac_status=$?
32713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32714   (exit $ac_status); }; }; then
32715   eval "$as_ac_var=yes"
32716 else
32717   echo "$as_me: failed program was:" >&5
32718 sed 's/^/| /' conftest.$ac_ext >&5
32719
32720         eval "$as_ac_var=no"
32721 fi
32722
32723 rm -f core conftest.err conftest.$ac_objext \
32724       conftest$ac_exeext conftest.$ac_ext
32725 fi
32726 ac_res=`eval echo '${'$as_ac_var'}'`
32727                { echo "$as_me:$LINENO: result: $ac_res" >&5
32728 echo "${ECHO_T}$ac_res" >&6; }
32729 if test `eval echo '${'$as_ac_var'}'` = yes; then
32730   cat >>confdefs.h <<_ACEOF
32731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32732 _ACEOF
32733
32734 fi
32735 done
32736
32737 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32738 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32739 if test "${llvm_cv_c_printf_a+set}" = set; then
32740   echo $ECHO_N "(cached) $ECHO_C" >&6
32741 else
32742   ac_ext=c
32743 ac_cpp='$CPP $CPPFLAGS'
32744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32747
32748  if test "$cross_compiling" = yes; then
32749   llvmac_cv_c_printf_a=no
32750 else
32751   cat >conftest.$ac_ext <<_ACEOF
32752
32753   /* confdefs.h.  */
32754 _ACEOF
32755 cat confdefs.h >>conftest.$ac_ext
32756 cat >>conftest.$ac_ext <<_ACEOF
32757 /* end confdefs.h.  */
32758
32759 #include <stdio.h>
32760 #include <stdlib.h>
32761
32762 int
32763 main ()
32764 {
32765
32766 volatile double A, B;
32767 char Buffer[100];
32768 A = 1;
32769 A /= 10.0;
32770 sprintf(Buffer, "%a", A);
32771 B = atof(Buffer);
32772 if (A != B)
32773   return (1);
32774 if (A != 0x1.999999999999ap-4)
32775   return (1);
32776 return (0);
32777   ;
32778   return 0;
32779 }
32780 _ACEOF
32781 rm -f conftest$ac_exeext
32782 if { (ac_try="$ac_link"
32783 case "(($ac_try" in
32784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32785   *) ac_try_echo=$ac_try;;
32786 esac
32787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32788   (eval "$ac_link") 2>&5
32789   ac_status=$?
32790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32792   { (case "(($ac_try" in
32793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32794   *) ac_try_echo=$ac_try;;
32795 esac
32796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32797   (eval "$ac_try") 2>&5
32798   ac_status=$?
32799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800   (exit $ac_status); }; }; then
32801   llvm_cv_c_printf_a=yes
32802 else
32803   echo "$as_me: program exited with status $ac_status" >&5
32804 echo "$as_me: failed program was:" >&5
32805 sed 's/^/| /' conftest.$ac_ext >&5
32806
32807 ( exit $ac_status )
32808 llvmac_cv_c_printf_a=no
32809 fi
32810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32811 fi
32812
32813
32814  ac_ext=c
32815 ac_cpp='$CPP $CPPFLAGS'
32816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32819
32820 fi
32821 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32822 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32823  if test "$llvm_cv_c_printf_a" = "yes"; then
32824
32825 cat >>confdefs.h <<\_ACEOF
32826 #define HAVE_PRINTF_A 1
32827 _ACEOF
32828
32829  fi
32830
32831 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32832 # for constant arguments.  Useless!
32833 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32834 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32835 if test "${ac_cv_working_alloca_h+set}" = set; then
32836   echo $ECHO_N "(cached) $ECHO_C" >&6
32837 else
32838   cat >conftest.$ac_ext <<_ACEOF
32839 /* confdefs.h.  */
32840 _ACEOF
32841 cat confdefs.h >>conftest.$ac_ext
32842 cat >>conftest.$ac_ext <<_ACEOF
32843 /* end confdefs.h.  */
32844 #include <alloca.h>
32845 int
32846 main ()
32847 {
32848 char *p = (char *) alloca (2 * sizeof (int));
32849                           if (p) return 0;
32850   ;
32851   return 0;
32852 }
32853 _ACEOF
32854 rm -f conftest.$ac_objext conftest$ac_exeext
32855 if { (ac_try="$ac_link"
32856 case "(($ac_try" in
32857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32858   *) ac_try_echo=$ac_try;;
32859 esac
32860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32861   (eval "$ac_link") 2>conftest.er1
32862   ac_status=$?
32863   grep -v '^ *+' conftest.er1 >conftest.err
32864   rm -f conftest.er1
32865   cat conftest.err >&5
32866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867   (exit $ac_status); } &&
32868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32869   { (case "(($ac_try" in
32870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32871   *) ac_try_echo=$ac_try;;
32872 esac
32873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32874   (eval "$ac_try") 2>&5
32875   ac_status=$?
32876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32877   (exit $ac_status); }; } &&
32878          { ac_try='test -s conftest$ac_exeext'
32879   { (case "(($ac_try" in
32880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32881   *) ac_try_echo=$ac_try;;
32882 esac
32883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32884   (eval "$ac_try") 2>&5
32885   ac_status=$?
32886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887   (exit $ac_status); }; }; then
32888   ac_cv_working_alloca_h=yes
32889 else
32890   echo "$as_me: failed program was:" >&5
32891 sed 's/^/| /' conftest.$ac_ext >&5
32892
32893         ac_cv_working_alloca_h=no
32894 fi
32895
32896 rm -f core conftest.err conftest.$ac_objext \
32897       conftest$ac_exeext conftest.$ac_ext
32898 fi
32899 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32900 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32901 if test $ac_cv_working_alloca_h = yes; then
32902
32903 cat >>confdefs.h <<\_ACEOF
32904 #define HAVE_ALLOCA_H 1
32905 _ACEOF
32906
32907 fi
32908
32909 { echo "$as_me:$LINENO: checking for alloca" >&5
32910 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32911 if test "${ac_cv_func_alloca_works+set}" = set; then
32912   echo $ECHO_N "(cached) $ECHO_C" >&6
32913 else
32914   cat >conftest.$ac_ext <<_ACEOF
32915 /* confdefs.h.  */
32916 _ACEOF
32917 cat confdefs.h >>conftest.$ac_ext
32918 cat >>conftest.$ac_ext <<_ACEOF
32919 /* end confdefs.h.  */
32920 #ifdef __GNUC__
32921 # define alloca __builtin_alloca
32922 #else
32923 # ifdef _MSC_VER
32924 #  include <malloc.h>
32925 #  define alloca _alloca
32926 # else
32927 #  if HAVE_ALLOCA_H
32928 #   include <alloca.h>
32929 #  else
32930 #   ifdef _AIX
32931  #pragma alloca
32932 #   else
32933 #    ifndef alloca /* predefined by HP cc +Olibcalls */
32934 char *alloca ();
32935 #    endif
32936 #   endif
32937 #  endif
32938 # endif
32939 #endif
32940
32941 int
32942 main ()
32943 {
32944 char *p = (char *) alloca (1);
32945                                     if (p) return 0;
32946   ;
32947   return 0;
32948 }
32949 _ACEOF
32950 rm -f conftest.$ac_objext conftest$ac_exeext
32951 if { (ac_try="$ac_link"
32952 case "(($ac_try" in
32953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32954   *) ac_try_echo=$ac_try;;
32955 esac
32956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32957   (eval "$ac_link") 2>conftest.er1
32958   ac_status=$?
32959   grep -v '^ *+' conftest.er1 >conftest.err
32960   rm -f conftest.er1
32961   cat conftest.err >&5
32962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963   (exit $ac_status); } &&
32964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32965   { (case "(($ac_try" in
32966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32967   *) ac_try_echo=$ac_try;;
32968 esac
32969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32970   (eval "$ac_try") 2>&5
32971   ac_status=$?
32972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973   (exit $ac_status); }; } &&
32974          { ac_try='test -s conftest$ac_exeext'
32975   { (case "(($ac_try" in
32976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32977   *) ac_try_echo=$ac_try;;
32978 esac
32979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32980   (eval "$ac_try") 2>&5
32981   ac_status=$?
32982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983   (exit $ac_status); }; }; then
32984   ac_cv_func_alloca_works=yes
32985 else
32986   echo "$as_me: failed program was:" >&5
32987 sed 's/^/| /' conftest.$ac_ext >&5
32988
32989         ac_cv_func_alloca_works=no
32990 fi
32991
32992 rm -f core conftest.err conftest.$ac_objext \
32993       conftest$ac_exeext conftest.$ac_ext
32994 fi
32995 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32996 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32997
32998 if test $ac_cv_func_alloca_works = yes; then
32999
33000 cat >>confdefs.h <<\_ACEOF
33001 #define HAVE_ALLOCA 1
33002 _ACEOF
33003
33004 else
33005   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
33006 # that cause trouble.  Some versions do not even contain alloca or
33007 # contain a buggy version.  If you still want to use their alloca,
33008 # use ar to extract alloca.o from them instead of compiling alloca.c.
33009
33010 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
33011
33012 cat >>confdefs.h <<\_ACEOF
33013 #define C_ALLOCA 1
33014 _ACEOF
33015
33016
33017 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
33018 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
33019 if test "${ac_cv_os_cray+set}" = set; then
33020   echo $ECHO_N "(cached) $ECHO_C" >&6
33021 else
33022   cat >conftest.$ac_ext <<_ACEOF
33023 /* confdefs.h.  */
33024 _ACEOF
33025 cat confdefs.h >>conftest.$ac_ext
33026 cat >>conftest.$ac_ext <<_ACEOF
33027 /* end confdefs.h.  */
33028 #if defined CRAY && ! defined CRAY2
33029 webecray
33030 #else
33031 wenotbecray
33032 #endif
33033
33034 _ACEOF
33035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33036   $EGREP "webecray" >/dev/null 2>&1; then
33037   ac_cv_os_cray=yes
33038 else
33039   ac_cv_os_cray=no
33040 fi
33041 rm -f conftest*
33042
33043 fi
33044 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
33045 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
33046 if test $ac_cv_os_cray = yes; then
33047   for ac_func in _getb67 GETB67 getb67; do
33048     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33052   echo $ECHO_N "(cached) $ECHO_C" >&6
33053 else
33054   cat >conftest.$ac_ext <<_ACEOF
33055 /* confdefs.h.  */
33056 _ACEOF
33057 cat confdefs.h >>conftest.$ac_ext
33058 cat >>conftest.$ac_ext <<_ACEOF
33059 /* end confdefs.h.  */
33060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33062 #define $ac_func innocuous_$ac_func
33063
33064 /* System header to define __stub macros and hopefully few prototypes,
33065     which can conflict with char $ac_func (); below.
33066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33067     <limits.h> exists even on freestanding compilers.  */
33068
33069 #ifdef __STDC__
33070 # include <limits.h>
33071 #else
33072 # include <assert.h>
33073 #endif
33074
33075 #undef $ac_func
33076
33077 /* Override any GCC internal prototype to avoid an error.
33078    Use char because int might match the return type of a GCC
33079    builtin and then its argument prototype would still apply.  */
33080 #ifdef __cplusplus
33081 extern "C"
33082 #endif
33083 char $ac_func ();
33084 /* The GNU C library defines this for functions which it implements
33085     to always fail with ENOSYS.  Some functions are actually named
33086     something starting with __ and the normal name is an alias.  */
33087 #if defined __stub_$ac_func || defined __stub___$ac_func
33088 choke me
33089 #endif
33090
33091 int
33092 main ()
33093 {
33094 return $ac_func ();
33095   ;
33096   return 0;
33097 }
33098 _ACEOF
33099 rm -f conftest.$ac_objext conftest$ac_exeext
33100 if { (ac_try="$ac_link"
33101 case "(($ac_try" in
33102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33103   *) ac_try_echo=$ac_try;;
33104 esac
33105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33106   (eval "$ac_link") 2>conftest.er1
33107   ac_status=$?
33108   grep -v '^ *+' conftest.er1 >conftest.err
33109   rm -f conftest.er1
33110   cat conftest.err >&5
33111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33112   (exit $ac_status); } &&
33113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33114   { (case "(($ac_try" in
33115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33116   *) ac_try_echo=$ac_try;;
33117 esac
33118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33119   (eval "$ac_try") 2>&5
33120   ac_status=$?
33121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122   (exit $ac_status); }; } &&
33123          { ac_try='test -s conftest$ac_exeext'
33124   { (case "(($ac_try" in
33125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126   *) ac_try_echo=$ac_try;;
33127 esac
33128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129   (eval "$ac_try") 2>&5
33130   ac_status=$?
33131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132   (exit $ac_status); }; }; then
33133   eval "$as_ac_var=yes"
33134 else
33135   echo "$as_me: failed program was:" >&5
33136 sed 's/^/| /' conftest.$ac_ext >&5
33137
33138         eval "$as_ac_var=no"
33139 fi
33140
33141 rm -f core conftest.err conftest.$ac_objext \
33142       conftest$ac_exeext conftest.$ac_ext
33143 fi
33144 ac_res=`eval echo '${'$as_ac_var'}'`
33145                { echo "$as_me:$LINENO: result: $ac_res" >&5
33146 echo "${ECHO_T}$ac_res" >&6; }
33147 if test `eval echo '${'$as_ac_var'}'` = yes; then
33148
33149 cat >>confdefs.h <<_ACEOF
33150 #define CRAY_STACKSEG_END $ac_func
33151 _ACEOF
33152
33153     break
33154 fi
33155
33156   done
33157 fi
33158
33159 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33160 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33161 if test "${ac_cv_c_stack_direction+set}" = set; then
33162   echo $ECHO_N "(cached) $ECHO_C" >&6
33163 else
33164   if test "$cross_compiling" = yes; then
33165   ac_cv_c_stack_direction=0
33166 else
33167   cat >conftest.$ac_ext <<_ACEOF
33168 /* confdefs.h.  */
33169 _ACEOF
33170 cat confdefs.h >>conftest.$ac_ext
33171 cat >>conftest.$ac_ext <<_ACEOF
33172 /* end confdefs.h.  */
33173 $ac_includes_default
33174 int
33175 find_stack_direction ()
33176 {
33177   static char *addr = 0;
33178   auto char dummy;
33179   if (addr == 0)
33180     {
33181       addr = &dummy;
33182       return find_stack_direction ();
33183     }
33184   else
33185     return (&dummy > addr) ? 1 : -1;
33186 }
33187
33188 int
33189 main ()
33190 {
33191   return find_stack_direction () < 0;
33192 }
33193 _ACEOF
33194 rm -f conftest$ac_exeext
33195 if { (ac_try="$ac_link"
33196 case "(($ac_try" in
33197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33198   *) ac_try_echo=$ac_try;;
33199 esac
33200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33201   (eval "$ac_link") 2>&5
33202   ac_status=$?
33203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33204   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33205   { (case "(($ac_try" in
33206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33207   *) ac_try_echo=$ac_try;;
33208 esac
33209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33210   (eval "$ac_try") 2>&5
33211   ac_status=$?
33212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213   (exit $ac_status); }; }; then
33214   ac_cv_c_stack_direction=1
33215 else
33216   echo "$as_me: program exited with status $ac_status" >&5
33217 echo "$as_me: failed program was:" >&5
33218 sed 's/^/| /' conftest.$ac_ext >&5
33219
33220 ( exit $ac_status )
33221 ac_cv_c_stack_direction=-1
33222 fi
33223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33224 fi
33225
33226
33227 fi
33228 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33229 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33230
33231 cat >>confdefs.h <<_ACEOF
33232 #define STACK_DIRECTION $ac_cv_c_stack_direction
33233 _ACEOF
33234
33235
33236 fi
33237
33238
33239 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33240 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33241 if test "${ac_cv_func_rand48+set}" = set; then
33242   echo $ECHO_N "(cached) $ECHO_C" >&6
33243 else
33244   ac_ext=cpp
33245 ac_cpp='$CXXCPP $CPPFLAGS'
33246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33249
33250    cat >conftest.$ac_ext <<_ACEOF
33251 /* confdefs.h.  */
33252 _ACEOF
33253 cat confdefs.h >>conftest.$ac_ext
33254 cat >>conftest.$ac_ext <<_ACEOF
33255 /* end confdefs.h.  */
33256 #include <stdlib.h>
33257 int
33258 main ()
33259 {
33260 srand48(0);lrand48();drand48();
33261   ;
33262   return 0;
33263 }
33264 _ACEOF
33265 rm -f conftest.$ac_objext
33266 if { (ac_try="$ac_compile"
33267 case "(($ac_try" in
33268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33269   *) ac_try_echo=$ac_try;;
33270 esac
33271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33272   (eval "$ac_compile") 2>conftest.er1
33273   ac_status=$?
33274   grep -v '^ *+' conftest.er1 >conftest.err
33275   rm -f conftest.er1
33276   cat conftest.err >&5
33277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278   (exit $ac_status); } &&
33279          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33280   { (case "(($ac_try" in
33281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33282   *) ac_try_echo=$ac_try;;
33283 esac
33284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33285   (eval "$ac_try") 2>&5
33286   ac_status=$?
33287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288   (exit $ac_status); }; } &&
33289          { ac_try='test -s conftest.$ac_objext'
33290   { (case "(($ac_try" in
33291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33292   *) ac_try_echo=$ac_try;;
33293 esac
33294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33295   (eval "$ac_try") 2>&5
33296   ac_status=$?
33297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298   (exit $ac_status); }; }; then
33299   ac_cv_func_rand48=yes
33300 else
33301   echo "$as_me: failed program was:" >&5
33302 sed 's/^/| /' conftest.$ac_ext >&5
33303
33304         ac_cv_func_rand48=no
33305 fi
33306
33307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33308   ac_ext=c
33309 ac_cpp='$CPP $CPPFLAGS'
33310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33313
33314 fi
33315 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33316 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33317
33318 if test "$ac_cv_func_rand48" = "yes" ; then
33319
33320 cat >>confdefs.h <<\_ACEOF
33321 #define HAVE_RAND48 1
33322 _ACEOF
33323
33324 fi
33325
33326
33327 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33328 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33329 if test "${ac_cv_cxx_namespaces+set}" = set; then
33330   echo $ECHO_N "(cached) $ECHO_C" >&6
33331 else
33332   ac_ext=cpp
33333 ac_cpp='$CXXCPP $CPPFLAGS'
33334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33337
33338  cat >conftest.$ac_ext <<_ACEOF
33339 /* confdefs.h.  */
33340 _ACEOF
33341 cat confdefs.h >>conftest.$ac_ext
33342 cat >>conftest.$ac_ext <<_ACEOF
33343 /* end confdefs.h.  */
33344 namespace Outer { namespace Inner { int i = 0; }}
33345 int
33346 main ()
33347 {
33348 using namespace Outer::Inner; return i;
33349   ;
33350   return 0;
33351 }
33352 _ACEOF
33353 rm -f conftest.$ac_objext
33354 if { (ac_try="$ac_compile"
33355 case "(($ac_try" in
33356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33357   *) ac_try_echo=$ac_try;;
33358 esac
33359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33360   (eval "$ac_compile") 2>conftest.er1
33361   ac_status=$?
33362   grep -v '^ *+' conftest.er1 >conftest.err
33363   rm -f conftest.er1
33364   cat conftest.err >&5
33365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366   (exit $ac_status); } &&
33367          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33368   { (case "(($ac_try" in
33369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33370   *) ac_try_echo=$ac_try;;
33371 esac
33372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33373   (eval "$ac_try") 2>&5
33374   ac_status=$?
33375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376   (exit $ac_status); }; } &&
33377          { ac_try='test -s conftest.$ac_objext'
33378   { (case "(($ac_try" in
33379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33380   *) ac_try_echo=$ac_try;;
33381 esac
33382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33383   (eval "$ac_try") 2>&5
33384   ac_status=$?
33385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33386   (exit $ac_status); }; }; then
33387   ac_cv_cxx_namespaces=yes
33388 else
33389   echo "$as_me: failed program was:" >&5
33390 sed 's/^/| /' conftest.$ac_ext >&5
33391
33392         ac_cv_cxx_namespaces=no
33393 fi
33394
33395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33396  ac_ext=c
33397 ac_cpp='$CPP $CPPFLAGS'
33398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33401
33402
33403 fi
33404 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33405 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33406 if test "$ac_cv_cxx_namespaces" = yes; then
33407
33408 cat >>confdefs.h <<\_ACEOF
33409 #define HAVE_NAMESPACES
33410 _ACEOF
33411
33412 fi
33413
33414 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33415 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33416 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33417   echo $ECHO_N "(cached) $ECHO_C" >&6
33418 else
33419
33420   ac_ext=cpp
33421 ac_cpp='$CXXCPP $CPPFLAGS'
33422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33425
33426   cat >conftest.$ac_ext <<_ACEOF
33427 /* confdefs.h.  */
33428 _ACEOF
33429 cat confdefs.h >>conftest.$ac_ext
33430 cat >>conftest.$ac_ext <<_ACEOF
33431 /* end confdefs.h.  */
33432 #include <iterator>
33433 #ifdef HAVE_NAMESPACES
33434 using namespace std;
33435 #endif
33436 int
33437 main ()
33438 {
33439 iterator<int,int,int> t; return 0;
33440   ;
33441   return 0;
33442 }
33443 _ACEOF
33444 rm -f conftest.$ac_objext
33445 if { (ac_try="$ac_compile"
33446 case "(($ac_try" in
33447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33448   *) ac_try_echo=$ac_try;;
33449 esac
33450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33451   (eval "$ac_compile") 2>conftest.er1
33452   ac_status=$?
33453   grep -v '^ *+' conftest.er1 >conftest.err
33454   rm -f conftest.er1
33455   cat conftest.err >&5
33456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457   (exit $ac_status); } &&
33458          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33459   { (case "(($ac_try" in
33460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33461   *) ac_try_echo=$ac_try;;
33462 esac
33463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33464   (eval "$ac_try") 2>&5
33465   ac_status=$?
33466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467   (exit $ac_status); }; } &&
33468          { ac_try='test -s conftest.$ac_objext'
33469   { (case "(($ac_try" in
33470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33471   *) ac_try_echo=$ac_try;;
33472 esac
33473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33474   (eval "$ac_try") 2>&5
33475   ac_status=$?
33476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477   (exit $ac_status); }; }; then
33478   ac_cv_cxx_have_std_iterator=yes
33479 else
33480   echo "$as_me: failed program was:" >&5
33481 sed 's/^/| /' conftest.$ac_ext >&5
33482
33483         ac_cv_cxx_have_std_iterator=no
33484 fi
33485
33486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33487   ac_ext=c
33488 ac_cpp='$CPP $CPPFLAGS'
33489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33492
33493
33494 fi
33495 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33496 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33497 if test "$ac_cv_cxx_have_std_iterator" = yes
33498 then
33499
33500 cat >>confdefs.h <<\_ACEOF
33501 #define HAVE_STD_ITERATOR 1
33502 _ACEOF
33503
33504 else
33505
33506 cat >>confdefs.h <<\_ACEOF
33507 #define HAVE_STD_ITERATOR 0
33508 _ACEOF
33509
33510 fi
33511
33512 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33513 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33514 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33515   echo $ECHO_N "(cached) $ECHO_C" >&6
33516 else
33517
33518   ac_ext=cpp
33519 ac_cpp='$CXXCPP $CPPFLAGS'
33520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33523
33524   cat >conftest.$ac_ext <<_ACEOF
33525 /* confdefs.h.  */
33526 _ACEOF
33527 cat confdefs.h >>conftest.$ac_ext
33528 cat >>conftest.$ac_ext <<_ACEOF
33529 /* end confdefs.h.  */
33530 #include <iterator>
33531 #ifdef HAVE_NAMESPACES
33532 using namespace std;
33533 #endif
33534 int
33535 main ()
33536 {
33537 bidirectional_iterator<int,int> t; return 0;
33538   ;
33539   return 0;
33540 }
33541 _ACEOF
33542 rm -f conftest.$ac_objext
33543 if { (ac_try="$ac_compile"
33544 case "(($ac_try" in
33545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33546   *) ac_try_echo=$ac_try;;
33547 esac
33548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33549   (eval "$ac_compile") 2>conftest.er1
33550   ac_status=$?
33551   grep -v '^ *+' conftest.er1 >conftest.err
33552   rm -f conftest.er1
33553   cat conftest.err >&5
33554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555   (exit $ac_status); } &&
33556          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33557   { (case "(($ac_try" in
33558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33559   *) ac_try_echo=$ac_try;;
33560 esac
33561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33562   (eval "$ac_try") 2>&5
33563   ac_status=$?
33564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565   (exit $ac_status); }; } &&
33566          { ac_try='test -s conftest.$ac_objext'
33567   { (case "(($ac_try" in
33568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33569   *) ac_try_echo=$ac_try;;
33570 esac
33571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33572   (eval "$ac_try") 2>&5
33573   ac_status=$?
33574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33575   (exit $ac_status); }; }; then
33576   ac_cv_cxx_have_bi_iterator=yes
33577 else
33578   echo "$as_me: failed program was:" >&5
33579 sed 's/^/| /' conftest.$ac_ext >&5
33580
33581         ac_cv_cxx_have_bi_iterator=no
33582 fi
33583
33584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33585   ac_ext=c
33586 ac_cpp='$CPP $CPPFLAGS'
33587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33590
33591
33592 fi
33593 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33594 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33595 if test "$ac_cv_cxx_have_bi_iterator" = yes
33596 then
33597
33598 cat >>confdefs.h <<\_ACEOF
33599 #define HAVE_BI_ITERATOR 1
33600 _ACEOF
33601
33602 else
33603
33604 cat >>confdefs.h <<\_ACEOF
33605 #define HAVE_BI_ITERATOR 0
33606 _ACEOF
33607
33608 fi
33609
33610 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33611 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33612 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33613   echo $ECHO_N "(cached) $ECHO_C" >&6
33614 else
33615
33616   ac_ext=cpp
33617 ac_cpp='$CXXCPP $CPPFLAGS'
33618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33621
33622   cat >conftest.$ac_ext <<_ACEOF
33623 /* confdefs.h.  */
33624 _ACEOF
33625 cat confdefs.h >>conftest.$ac_ext
33626 cat >>conftest.$ac_ext <<_ACEOF
33627 /* end confdefs.h.  */
33628 #include <iterator>
33629 #ifdef HAVE_NAMESPACES
33630 using namespace std;
33631 #endif
33632 int
33633 main ()
33634 {
33635 forward_iterator<int,int> t; return 0;
33636   ;
33637   return 0;
33638 }
33639 _ACEOF
33640 rm -f conftest.$ac_objext
33641 if { (ac_try="$ac_compile"
33642 case "(($ac_try" in
33643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33644   *) ac_try_echo=$ac_try;;
33645 esac
33646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33647   (eval "$ac_compile") 2>conftest.er1
33648   ac_status=$?
33649   grep -v '^ *+' conftest.er1 >conftest.err
33650   rm -f conftest.er1
33651   cat conftest.err >&5
33652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653   (exit $ac_status); } &&
33654          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33655   { (case "(($ac_try" in
33656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33657   *) ac_try_echo=$ac_try;;
33658 esac
33659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33660   (eval "$ac_try") 2>&5
33661   ac_status=$?
33662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33663   (exit $ac_status); }; } &&
33664          { ac_try='test -s conftest.$ac_objext'
33665   { (case "(($ac_try" in
33666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33667   *) ac_try_echo=$ac_try;;
33668 esac
33669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33670   (eval "$ac_try") 2>&5
33671   ac_status=$?
33672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673   (exit $ac_status); }; }; then
33674   ac_cv_cxx_have_fwd_iterator=yes
33675 else
33676   echo "$as_me: failed program was:" >&5
33677 sed 's/^/| /' conftest.$ac_ext >&5
33678
33679         ac_cv_cxx_have_fwd_iterator=no
33680 fi
33681
33682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33683   ac_ext=c
33684 ac_cpp='$CPP $CPPFLAGS'
33685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33688
33689
33690 fi
33691 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33692 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33693 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33694 then
33695
33696 cat >>confdefs.h <<\_ACEOF
33697 #define HAVE_FWD_ITERATOR 1
33698 _ACEOF
33699
33700 else
33701
33702 cat >>confdefs.h <<\_ACEOF
33703 #define HAVE_FWD_ITERATOR 0
33704 _ACEOF
33705
33706 fi
33707
33708
33709 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33710 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33711 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33712   echo $ECHO_N "(cached) $ECHO_C" >&6
33713 else
33714   ac_ext=cpp
33715 ac_cpp='$CXXCPP $CPPFLAGS'
33716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33719
33720    cat >conftest.$ac_ext <<_ACEOF
33721 /* confdefs.h.  */
33722 _ACEOF
33723 cat confdefs.h >>conftest.$ac_ext
33724 cat >>conftest.$ac_ext <<_ACEOF
33725 /* end confdefs.h.  */
33726 #include <math.h>
33727 int
33728 main ()
33729 {
33730 float f; isnan(f);
33731   ;
33732   return 0;
33733 }
33734 _ACEOF
33735 rm -f conftest.$ac_objext
33736 if { (ac_try="$ac_compile"
33737 case "(($ac_try" in
33738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33739   *) ac_try_echo=$ac_try;;
33740 esac
33741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33742   (eval "$ac_compile") 2>conftest.er1
33743   ac_status=$?
33744   grep -v '^ *+' conftest.er1 >conftest.err
33745   rm -f conftest.er1
33746   cat conftest.err >&5
33747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748   (exit $ac_status); } &&
33749          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33750   { (case "(($ac_try" in
33751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33752   *) ac_try_echo=$ac_try;;
33753 esac
33754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33755   (eval "$ac_try") 2>&5
33756   ac_status=$?
33757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758   (exit $ac_status); }; } &&
33759          { ac_try='test -s conftest.$ac_objext'
33760   { (case "(($ac_try" in
33761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762   *) ac_try_echo=$ac_try;;
33763 esac
33764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765   (eval "$ac_try") 2>&5
33766   ac_status=$?
33767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33768   (exit $ac_status); }; }; then
33769   ac_cv_func_isnan_in_math_h=yes
33770 else
33771   echo "$as_me: failed program was:" >&5
33772 sed 's/^/| /' conftest.$ac_ext >&5
33773
33774         ac_cv_func_isnan_in_math_h=no
33775 fi
33776
33777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33778   ac_ext=c
33779 ac_cpp='$CPP $CPPFLAGS'
33780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33783
33784 fi
33785 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33786 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33787
33788
33789 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33790
33791 cat >>confdefs.h <<\_ACEOF
33792 #define HAVE_ISNAN_IN_MATH_H 1
33793 _ACEOF
33794
33795 fi
33796
33797 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33798 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33799 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33800   echo $ECHO_N "(cached) $ECHO_C" >&6
33801 else
33802   ac_ext=cpp
33803 ac_cpp='$CXXCPP $CPPFLAGS'
33804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33807
33808    cat >conftest.$ac_ext <<_ACEOF
33809 /* confdefs.h.  */
33810 _ACEOF
33811 cat confdefs.h >>conftest.$ac_ext
33812 cat >>conftest.$ac_ext <<_ACEOF
33813 /* end confdefs.h.  */
33814 #include <cmath>
33815 int
33816 main ()
33817 {
33818 float f; isnan(f);
33819   ;
33820   return 0;
33821 }
33822 _ACEOF
33823 rm -f conftest.$ac_objext
33824 if { (ac_try="$ac_compile"
33825 case "(($ac_try" in
33826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33827   *) ac_try_echo=$ac_try;;
33828 esac
33829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33830   (eval "$ac_compile") 2>conftest.er1
33831   ac_status=$?
33832   grep -v '^ *+' conftest.er1 >conftest.err
33833   rm -f conftest.er1
33834   cat conftest.err >&5
33835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33836   (exit $ac_status); } &&
33837          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33838   { (case "(($ac_try" in
33839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33840   *) ac_try_echo=$ac_try;;
33841 esac
33842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33843   (eval "$ac_try") 2>&5
33844   ac_status=$?
33845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33846   (exit $ac_status); }; } &&
33847          { ac_try='test -s conftest.$ac_objext'
33848   { (case "(($ac_try" in
33849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33850   *) ac_try_echo=$ac_try;;
33851 esac
33852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33853   (eval "$ac_try") 2>&5
33854   ac_status=$?
33855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33856   (exit $ac_status); }; }; then
33857   ac_cv_func_isnan_in_cmath=yes
33858 else
33859   echo "$as_me: failed program was:" >&5
33860 sed 's/^/| /' conftest.$ac_ext >&5
33861
33862         ac_cv_func_isnan_in_cmath=no
33863 fi
33864
33865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33866   ac_ext=c
33867 ac_cpp='$CPP $CPPFLAGS'
33868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33871
33872 fi
33873 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33874 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33875
33876 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33877
33878 cat >>confdefs.h <<\_ACEOF
33879 #define HAVE_ISNAN_IN_CMATH 1
33880 _ACEOF
33881
33882 fi
33883
33884 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33885 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33886 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33887   echo $ECHO_N "(cached) $ECHO_C" >&6
33888 else
33889   ac_ext=cpp
33890 ac_cpp='$CXXCPP $CPPFLAGS'
33891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33894
33895    cat >conftest.$ac_ext <<_ACEOF
33896 /* confdefs.h.  */
33897 _ACEOF
33898 cat confdefs.h >>conftest.$ac_ext
33899 cat >>conftest.$ac_ext <<_ACEOF
33900 /* end confdefs.h.  */
33901 #include <cmath>
33902 int
33903 main ()
33904 {
33905 float f; std::isnan(f);
33906   ;
33907   return 0;
33908 }
33909 _ACEOF
33910 rm -f conftest.$ac_objext
33911 if { (ac_try="$ac_compile"
33912 case "(($ac_try" in
33913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33914   *) ac_try_echo=$ac_try;;
33915 esac
33916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33917   (eval "$ac_compile") 2>conftest.er1
33918   ac_status=$?
33919   grep -v '^ *+' conftest.er1 >conftest.err
33920   rm -f conftest.er1
33921   cat conftest.err >&5
33922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33923   (exit $ac_status); } &&
33924          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33925   { (case "(($ac_try" in
33926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33927   *) ac_try_echo=$ac_try;;
33928 esac
33929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33930   (eval "$ac_try") 2>&5
33931   ac_status=$?
33932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933   (exit $ac_status); }; } &&
33934          { ac_try='test -s conftest.$ac_objext'
33935   { (case "(($ac_try" in
33936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33937   *) ac_try_echo=$ac_try;;
33938 esac
33939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33940   (eval "$ac_try") 2>&5
33941   ac_status=$?
33942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33943   (exit $ac_status); }; }; then
33944   ac_cv_func_std_isnan_in_cmath=yes
33945 else
33946   echo "$as_me: failed program was:" >&5
33947 sed 's/^/| /' conftest.$ac_ext >&5
33948
33949         ac_cv_func_std_isnan_in_cmath=no
33950 fi
33951
33952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33953   ac_ext=c
33954 ac_cpp='$CPP $CPPFLAGS'
33955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33958
33959 fi
33960 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33961 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33962
33963 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33964
33965 cat >>confdefs.h <<\_ACEOF
33966 #define HAVE_STD_ISNAN_IN_CMATH 1
33967 _ACEOF
33968
33969 fi
33970
33971
33972 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33973 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33974 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33975   echo $ECHO_N "(cached) $ECHO_C" >&6
33976 else
33977   ac_ext=cpp
33978 ac_cpp='$CXXCPP $CPPFLAGS'
33979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33982
33983    cat >conftest.$ac_ext <<_ACEOF
33984 /* confdefs.h.  */
33985 _ACEOF
33986 cat confdefs.h >>conftest.$ac_ext
33987 cat >>conftest.$ac_ext <<_ACEOF
33988 /* end confdefs.h.  */
33989 #include <math.h>
33990 int
33991 main ()
33992 {
33993 float f; isinf(f);
33994   ;
33995   return 0;
33996 }
33997 _ACEOF
33998 rm -f conftest.$ac_objext
33999 if { (ac_try="$ac_compile"
34000 case "(($ac_try" in
34001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34002   *) ac_try_echo=$ac_try;;
34003 esac
34004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34005   (eval "$ac_compile") 2>conftest.er1
34006   ac_status=$?
34007   grep -v '^ *+' conftest.er1 >conftest.err
34008   rm -f conftest.er1
34009   cat conftest.err >&5
34010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011   (exit $ac_status); } &&
34012          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34013   { (case "(($ac_try" in
34014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34015   *) ac_try_echo=$ac_try;;
34016 esac
34017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34018   (eval "$ac_try") 2>&5
34019   ac_status=$?
34020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021   (exit $ac_status); }; } &&
34022          { ac_try='test -s conftest.$ac_objext'
34023   { (case "(($ac_try" in
34024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34025   *) ac_try_echo=$ac_try;;
34026 esac
34027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34028   (eval "$ac_try") 2>&5
34029   ac_status=$?
34030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34031   (exit $ac_status); }; }; then
34032   ac_cv_func_isinf_in_math_h=yes
34033 else
34034   echo "$as_me: failed program was:" >&5
34035 sed 's/^/| /' conftest.$ac_ext >&5
34036
34037         ac_cv_func_isinf_in_math_h=no
34038 fi
34039
34040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34041   ac_ext=c
34042 ac_cpp='$CPP $CPPFLAGS'
34043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34046
34047 fi
34048 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
34049 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
34050
34051 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
34052
34053 cat >>confdefs.h <<\_ACEOF
34054 #define HAVE_ISINF_IN_MATH_H 1
34055 _ACEOF
34056
34057 fi
34058
34059 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
34060 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
34061 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
34062   echo $ECHO_N "(cached) $ECHO_C" >&6
34063 else
34064   ac_ext=cpp
34065 ac_cpp='$CXXCPP $CPPFLAGS'
34066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34069
34070    cat >conftest.$ac_ext <<_ACEOF
34071 /* confdefs.h.  */
34072 _ACEOF
34073 cat confdefs.h >>conftest.$ac_ext
34074 cat >>conftest.$ac_ext <<_ACEOF
34075 /* end confdefs.h.  */
34076 #include <cmath>
34077 int
34078 main ()
34079 {
34080 float f; isinf(f);
34081   ;
34082   return 0;
34083 }
34084 _ACEOF
34085 rm -f conftest.$ac_objext
34086 if { (ac_try="$ac_compile"
34087 case "(($ac_try" in
34088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34089   *) ac_try_echo=$ac_try;;
34090 esac
34091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34092   (eval "$ac_compile") 2>conftest.er1
34093   ac_status=$?
34094   grep -v '^ *+' conftest.er1 >conftest.err
34095   rm -f conftest.er1
34096   cat conftest.err >&5
34097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34098   (exit $ac_status); } &&
34099          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34100   { (case "(($ac_try" in
34101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34102   *) ac_try_echo=$ac_try;;
34103 esac
34104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34105   (eval "$ac_try") 2>&5
34106   ac_status=$?
34107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108   (exit $ac_status); }; } &&
34109          { ac_try='test -s conftest.$ac_objext'
34110   { (case "(($ac_try" in
34111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34112   *) ac_try_echo=$ac_try;;
34113 esac
34114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34115   (eval "$ac_try") 2>&5
34116   ac_status=$?
34117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34118   (exit $ac_status); }; }; then
34119   ac_cv_func_isinf_in_cmath=yes
34120 else
34121   echo "$as_me: failed program was:" >&5
34122 sed 's/^/| /' conftest.$ac_ext >&5
34123
34124         ac_cv_func_isinf_in_cmath=no
34125 fi
34126
34127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34128   ac_ext=c
34129 ac_cpp='$CPP $CPPFLAGS'
34130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34133
34134 fi
34135 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34136 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
34137
34138 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
34139
34140 cat >>confdefs.h <<\_ACEOF
34141 #define HAVE_ISINF_IN_CMATH 1
34142 _ACEOF
34143
34144 fi
34145
34146 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34147 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
34148 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34149   echo $ECHO_N "(cached) $ECHO_C" >&6
34150 else
34151   ac_ext=cpp
34152 ac_cpp='$CXXCPP $CPPFLAGS'
34153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34156
34157    cat >conftest.$ac_ext <<_ACEOF
34158 /* confdefs.h.  */
34159 _ACEOF
34160 cat confdefs.h >>conftest.$ac_ext
34161 cat >>conftest.$ac_ext <<_ACEOF
34162 /* end confdefs.h.  */
34163 #include <cmath>
34164 int
34165 main ()
34166 {
34167 float f; std::isinf(f)}
34168   ;
34169   return 0;
34170 }
34171 _ACEOF
34172 rm -f conftest.$ac_objext
34173 if { (ac_try="$ac_compile"
34174 case "(($ac_try" in
34175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34176   *) ac_try_echo=$ac_try;;
34177 esac
34178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34179   (eval "$ac_compile") 2>conftest.er1
34180   ac_status=$?
34181   grep -v '^ *+' conftest.er1 >conftest.err
34182   rm -f conftest.er1
34183   cat conftest.err >&5
34184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34185   (exit $ac_status); } &&
34186          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34187   { (case "(($ac_try" in
34188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34189   *) ac_try_echo=$ac_try;;
34190 esac
34191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34192   (eval "$ac_try") 2>&5
34193   ac_status=$?
34194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34195   (exit $ac_status); }; } &&
34196          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
34203   ac_status=$?
34204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205   (exit $ac_status); }; }; then
34206   ac_cv_func_std_isinf_in_cmath=yes
34207 else
34208   echo "$as_me: failed program was:" >&5
34209 sed 's/^/| /' conftest.$ac_ext >&5
34210
34211         ac_cv_func_std_isinf_in_cmath=no
34212 fi
34213
34214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34215   ac_ext=c
34216 ac_cpp='$CPP $CPPFLAGS'
34217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34220
34221 fi
34222 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34223 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34224
34225 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34226
34227 cat >>confdefs.h <<\_ACEOF
34228 #define HAVE_STD_ISINF_IN_CMATH 1
34229 _ACEOF
34230
34231 fi
34232
34233 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34234 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34235 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34236   echo $ECHO_N "(cached) $ECHO_C" >&6
34237 else
34238   ac_ext=cpp
34239 ac_cpp='$CXXCPP $CPPFLAGS'
34240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34243
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 <ieeefp.h>
34251 int
34252 main ()
34253 {
34254 float f; finite(f);
34255   ;
34256   return 0;
34257 }
34258 _ACEOF
34259 rm -f conftest.$ac_objext
34260 if { (ac_try="$ac_compile"
34261 case "(($ac_try" in
34262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34263   *) ac_try_echo=$ac_try;;
34264 esac
34265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34266   (eval "$ac_compile") 2>conftest.er1
34267   ac_status=$?
34268   grep -v '^ *+' conftest.er1 >conftest.err
34269   rm -f conftest.er1
34270   cat conftest.err >&5
34271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34272   (exit $ac_status); } &&
34273          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34274   { (case "(($ac_try" in
34275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34276   *) ac_try_echo=$ac_try;;
34277 esac
34278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34279   (eval "$ac_try") 2>&5
34280   ac_status=$?
34281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34282   (exit $ac_status); }; } &&
34283          { ac_try='test -s conftest.$ac_objext'
34284   { (case "(($ac_try" in
34285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34286   *) ac_try_echo=$ac_try;;
34287 esac
34288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34289   (eval "$ac_try") 2>&5
34290   ac_status=$?
34291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34292   (exit $ac_status); }; }; then
34293   ac_cv_func_finite_in_ieeefp_h=yes
34294 else
34295   echo "$as_me: failed program was:" >&5
34296 sed 's/^/| /' conftest.$ac_ext >&5
34297
34298         ac_cv_func_finite_in_ieeefp_h=no
34299 fi
34300
34301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34302   ac_ext=c
34303 ac_cpp='$CPP $CPPFLAGS'
34304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34307
34308 fi
34309 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34310 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34311
34312 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34313
34314 cat >>confdefs.h <<\_ACEOF
34315 #define HAVE_FINITE_IN_IEEEFP_H 1
34316 _ACEOF
34317
34318 fi
34319
34320
34321
34322 if test "$llvm_cv_platform_type" = "Unix" ; then
34323
34324
34325 for ac_header in stdlib.h unistd.h
34326 do
34327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34329   { echo "$as_me:$LINENO: checking for $ac_header" >&5
34330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34332   echo $ECHO_N "(cached) $ECHO_C" >&6
34333 fi
34334 ac_res=`eval echo '${'$as_ac_Header'}'`
34335                { echo "$as_me:$LINENO: result: $ac_res" >&5
34336 echo "${ECHO_T}$ac_res" >&6; }
34337 else
34338   # Is the header compilable?
34339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34341 cat >conftest.$ac_ext <<_ACEOF
34342 /* confdefs.h.  */
34343 _ACEOF
34344 cat confdefs.h >>conftest.$ac_ext
34345 cat >>conftest.$ac_ext <<_ACEOF
34346 /* end confdefs.h.  */
34347 $ac_includes_default
34348 #include <$ac_header>
34349 _ACEOF
34350 rm -f conftest.$ac_objext
34351 if { (ac_try="$ac_compile"
34352 case "(($ac_try" in
34353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34354   *) ac_try_echo=$ac_try;;
34355 esac
34356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34357   (eval "$ac_compile") 2>conftest.er1
34358   ac_status=$?
34359   grep -v '^ *+' conftest.er1 >conftest.err
34360   rm -f conftest.er1
34361   cat conftest.err >&5
34362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34363   (exit $ac_status); } &&
34364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34365   { (case "(($ac_try" in
34366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34367   *) ac_try_echo=$ac_try;;
34368 esac
34369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34370   (eval "$ac_try") 2>&5
34371   ac_status=$?
34372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373   (exit $ac_status); }; } &&
34374          { ac_try='test -s conftest.$ac_objext'
34375   { (case "(($ac_try" in
34376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34377   *) ac_try_echo=$ac_try;;
34378 esac
34379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34380   (eval "$ac_try") 2>&5
34381   ac_status=$?
34382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383   (exit $ac_status); }; }; then
34384   ac_header_compiler=yes
34385 else
34386   echo "$as_me: failed program was:" >&5
34387 sed 's/^/| /' conftest.$ac_ext >&5
34388
34389         ac_header_compiler=no
34390 fi
34391
34392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34394 echo "${ECHO_T}$ac_header_compiler" >&6; }
34395
34396 # Is the header present?
34397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34399 cat >conftest.$ac_ext <<_ACEOF
34400 /* confdefs.h.  */
34401 _ACEOF
34402 cat confdefs.h >>conftest.$ac_ext
34403 cat >>conftest.$ac_ext <<_ACEOF
34404 /* end confdefs.h.  */
34405 #include <$ac_header>
34406 _ACEOF
34407 if { (ac_try="$ac_cpp conftest.$ac_ext"
34408 case "(($ac_try" in
34409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34410   *) ac_try_echo=$ac_try;;
34411 esac
34412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34413   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34414   ac_status=$?
34415   grep -v '^ *+' conftest.er1 >conftest.err
34416   rm -f conftest.er1
34417   cat conftest.err >&5
34418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34419   (exit $ac_status); } >/dev/null; then
34420   if test -s conftest.err; then
34421     ac_cpp_err=$ac_c_preproc_warn_flag
34422     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34423   else
34424     ac_cpp_err=
34425   fi
34426 else
34427   ac_cpp_err=yes
34428 fi
34429 if test -z "$ac_cpp_err"; then
34430   ac_header_preproc=yes
34431 else
34432   echo "$as_me: failed program was:" >&5
34433 sed 's/^/| /' conftest.$ac_ext >&5
34434
34435   ac_header_preproc=no
34436 fi
34437
34438 rm -f conftest.err conftest.$ac_ext
34439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34440 echo "${ECHO_T}$ac_header_preproc" >&6; }
34441
34442 # So?  What about this header?
34443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34444   yes:no: )
34445     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34449     ac_header_preproc=yes
34450     ;;
34451   no:yes:* )
34452     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34454     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34455 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34456     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34458     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34459 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34462     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34464     ( cat <<\_ASBOX
34465 ## ----------------------------------- ##
34466 ## Report this to llvmbugs@cs.uiuc.edu ##
34467 ## ----------------------------------- ##
34468 _ASBOX
34469      ) | sed "s/^/$as_me: WARNING:     /" >&2
34470     ;;
34471 esac
34472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34475   echo $ECHO_N "(cached) $ECHO_C" >&6
34476 else
34477   eval "$as_ac_Header=\$ac_header_preproc"
34478 fi
34479 ac_res=`eval echo '${'$as_ac_Header'}'`
34480                { echo "$as_me:$LINENO: result: $ac_res" >&5
34481 echo "${ECHO_T}$ac_res" >&6; }
34482
34483 fi
34484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34485   cat >>confdefs.h <<_ACEOF
34486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34487 _ACEOF
34488
34489 fi
34490
34491 done
34492
34493
34494 for ac_func in getpagesize
34495 do
34496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34497 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34500   echo $ECHO_N "(cached) $ECHO_C" >&6
34501 else
34502   cat >conftest.$ac_ext <<_ACEOF
34503 /* confdefs.h.  */
34504 _ACEOF
34505 cat confdefs.h >>conftest.$ac_ext
34506 cat >>conftest.$ac_ext <<_ACEOF
34507 /* end confdefs.h.  */
34508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34510 #define $ac_func innocuous_$ac_func
34511
34512 /* System header to define __stub macros and hopefully few prototypes,
34513     which can conflict with char $ac_func (); below.
34514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34515     <limits.h> exists even on freestanding compilers.  */
34516
34517 #ifdef __STDC__
34518 # include <limits.h>
34519 #else
34520 # include <assert.h>
34521 #endif
34522
34523 #undef $ac_func
34524
34525 /* Override any GCC internal prototype to avoid an error.
34526    Use char because int might match the return type of a GCC
34527    builtin and then its argument prototype would still apply.  */
34528 #ifdef __cplusplus
34529 extern "C"
34530 #endif
34531 char $ac_func ();
34532 /* The GNU C library defines this for functions which it implements
34533     to always fail with ENOSYS.  Some functions are actually named
34534     something starting with __ and the normal name is an alias.  */
34535 #if defined __stub_$ac_func || defined __stub___$ac_func
34536 choke me
34537 #endif
34538
34539 int
34540 main ()
34541 {
34542 return $ac_func ();
34543   ;
34544   return 0;
34545 }
34546 _ACEOF
34547 rm -f conftest.$ac_objext conftest$ac_exeext
34548 if { (ac_try="$ac_link"
34549 case "(($ac_try" in
34550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34551   *) ac_try_echo=$ac_try;;
34552 esac
34553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34554   (eval "$ac_link") 2>conftest.er1
34555   ac_status=$?
34556   grep -v '^ *+' conftest.er1 >conftest.err
34557   rm -f conftest.er1
34558   cat conftest.err >&5
34559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34560   (exit $ac_status); } &&
34561          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34562   { (case "(($ac_try" in
34563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34564   *) ac_try_echo=$ac_try;;
34565 esac
34566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34567   (eval "$ac_try") 2>&5
34568   ac_status=$?
34569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570   (exit $ac_status); }; } &&
34571          { ac_try='test -s conftest$ac_exeext'
34572   { (case "(($ac_try" in
34573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34574   *) ac_try_echo=$ac_try;;
34575 esac
34576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34577   (eval "$ac_try") 2>&5
34578   ac_status=$?
34579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34580   (exit $ac_status); }; }; then
34581   eval "$as_ac_var=yes"
34582 else
34583   echo "$as_me: failed program was:" >&5
34584 sed 's/^/| /' conftest.$ac_ext >&5
34585
34586         eval "$as_ac_var=no"
34587 fi
34588
34589 rm -f core conftest.err conftest.$ac_objext \
34590       conftest$ac_exeext conftest.$ac_ext
34591 fi
34592 ac_res=`eval echo '${'$as_ac_var'}'`
34593                { echo "$as_me:$LINENO: result: $ac_res" >&5
34594 echo "${ECHO_T}$ac_res" >&6; }
34595 if test `eval echo '${'$as_ac_var'}'` = yes; then
34596   cat >>confdefs.h <<_ACEOF
34597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34598 _ACEOF
34599
34600 fi
34601 done
34602
34603 { echo "$as_me:$LINENO: checking for working mmap" >&5
34604 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34605 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34606   echo $ECHO_N "(cached) $ECHO_C" >&6
34607 else
34608   if test "$cross_compiling" = yes; then
34609   ac_cv_func_mmap_fixed_mapped=no
34610 else
34611   cat >conftest.$ac_ext <<_ACEOF
34612 /* confdefs.h.  */
34613 _ACEOF
34614 cat confdefs.h >>conftest.$ac_ext
34615 cat >>conftest.$ac_ext <<_ACEOF
34616 /* end confdefs.h.  */
34617 $ac_includes_default
34618 /* malloc might have been renamed as rpl_malloc. */
34619 #undef malloc
34620
34621 /* Thanks to Mike Haertel and Jim Avera for this test.
34622    Here is a matrix of mmap possibilities:
34623         mmap private not fixed
34624         mmap private fixed at somewhere currently unmapped
34625         mmap private fixed at somewhere already mapped
34626         mmap shared not fixed
34627         mmap shared fixed at somewhere currently unmapped
34628         mmap shared fixed at somewhere already mapped
34629    For private mappings, we should verify that changes cannot be read()
34630    back from the file, nor mmap's back from the file at a different
34631    address.  (There have been systems where private was not correctly
34632    implemented like the infamous i386 svr4.0, and systems where the
34633    VM page cache was not coherent with the file system buffer cache
34634    like early versions of FreeBSD and possibly contemporary NetBSD.)
34635    For shared mappings, we should conversely verify that changes get
34636    propagated back to all the places they're supposed to be.
34637
34638    Grep wants private fixed already mapped.
34639    The main things grep needs to know about mmap are:
34640    * does it exist and is it safe to write into the mmap'd area
34641    * how to use it (BSD variants)  */
34642
34643 #include <fcntl.h>
34644 #include <sys/mman.h>
34645
34646 #if !STDC_HEADERS && !HAVE_STDLIB_H
34647 char *malloc ();
34648 #endif
34649
34650 /* This mess was copied from the GNU getpagesize.h.  */
34651 #if !HAVE_GETPAGESIZE
34652 /* Assume that all systems that can run configure have sys/param.h.  */
34653 # if !HAVE_SYS_PARAM_H
34654 #  define HAVE_SYS_PARAM_H 1
34655 # endif
34656
34657 # ifdef _SC_PAGESIZE
34658 #  define getpagesize() sysconf(_SC_PAGESIZE)
34659 # else /* no _SC_PAGESIZE */
34660 #  if HAVE_SYS_PARAM_H
34661 #   include <sys/param.h>
34662 #   ifdef EXEC_PAGESIZE
34663 #    define getpagesize() EXEC_PAGESIZE
34664 #   else /* no EXEC_PAGESIZE */
34665 #    ifdef NBPG
34666 #     define getpagesize() NBPG * CLSIZE
34667 #     ifndef CLSIZE
34668 #      define CLSIZE 1
34669 #     endif /* no CLSIZE */
34670 #    else /* no NBPG */
34671 #     ifdef NBPC
34672 #      define getpagesize() NBPC
34673 #     else /* no NBPC */
34674 #      ifdef PAGESIZE
34675 #       define getpagesize() PAGESIZE
34676 #      endif /* PAGESIZE */
34677 #     endif /* no NBPC */
34678 #    endif /* no NBPG */
34679 #   endif /* no EXEC_PAGESIZE */
34680 #  else /* no HAVE_SYS_PARAM_H */
34681 #   define getpagesize() 8192   /* punt totally */
34682 #  endif /* no HAVE_SYS_PARAM_H */
34683 # endif /* no _SC_PAGESIZE */
34684
34685 #endif /* no HAVE_GETPAGESIZE */
34686
34687 int
34688 main ()
34689 {
34690   char *data, *data2, *data3;
34691   int i, pagesize;
34692   int fd;
34693
34694   pagesize = getpagesize ();
34695
34696   /* First, make a file with some known garbage in it. */
34697   data = (char *) malloc (pagesize);
34698   if (!data)
34699     return 1;
34700   for (i = 0; i < pagesize; ++i)
34701     *(data + i) = rand ();
34702   umask (0);
34703   fd = creat ("conftest.mmap", 0600);
34704   if (fd < 0)
34705     return 1;
34706   if (write (fd, data, pagesize) != pagesize)
34707     return 1;
34708   close (fd);
34709
34710   /* Next, try to mmap the file at a fixed address which already has
34711      something else allocated at it.  If we can, also make sure that
34712      we see the same garbage.  */
34713   fd = open ("conftest.mmap", O_RDWR);
34714   if (fd < 0)
34715     return 1;
34716   data2 = (char *) malloc (2 * pagesize);
34717   if (!data2)
34718     return 1;
34719   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34720   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34721                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
34722     return 1;
34723   for (i = 0; i < pagesize; ++i)
34724     if (*(data + i) != *(data2 + i))
34725       return 1;
34726
34727   /* Finally, make sure that changes to the mapped area do not
34728      percolate back to the file as seen by read().  (This is a bug on
34729      some variants of i386 svr4.0.)  */
34730   for (i = 0; i < pagesize; ++i)
34731     *(data2 + i) = *(data2 + i) + 1;
34732   data3 = (char *) malloc (pagesize);
34733   if (!data3)
34734     return 1;
34735   if (read (fd, data3, pagesize) != pagesize)
34736     return 1;
34737   for (i = 0; i < pagesize; ++i)
34738     if (*(data + i) != *(data3 + i))
34739       return 1;
34740   close (fd);
34741   return 0;
34742 }
34743 _ACEOF
34744 rm -f conftest$ac_exeext
34745 if { (ac_try="$ac_link"
34746 case "(($ac_try" in
34747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34748   *) ac_try_echo=$ac_try;;
34749 esac
34750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34751   (eval "$ac_link") 2>&5
34752   ac_status=$?
34753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34755   { (case "(($ac_try" in
34756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34757   *) ac_try_echo=$ac_try;;
34758 esac
34759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34760   (eval "$ac_try") 2>&5
34761   ac_status=$?
34762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763   (exit $ac_status); }; }; then
34764   ac_cv_func_mmap_fixed_mapped=yes
34765 else
34766   echo "$as_me: program exited with status $ac_status" >&5
34767 echo "$as_me: failed program was:" >&5
34768 sed 's/^/| /' conftest.$ac_ext >&5
34769
34770 ( exit $ac_status )
34771 ac_cv_func_mmap_fixed_mapped=no
34772 fi
34773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34774 fi
34775
34776
34777 fi
34778 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34779 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34780 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34781
34782 cat >>confdefs.h <<\_ACEOF
34783 #define HAVE_MMAP 1
34784 _ACEOF
34785
34786 fi
34787 rm -f conftest.mmap
34788
34789   { echo "$as_me:$LINENO: checking for mmap of files" >&5
34790 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34791 if test "${ac_cv_func_mmap_file+set}" = set; then
34792   echo $ECHO_N "(cached) $ECHO_C" >&6
34793 else
34794    ac_ext=c
34795 ac_cpp='$CPP $CPPFLAGS'
34796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34799
34800   if test "$cross_compiling" = yes; then
34801   ac_cv_func_mmap_file=no
34802 else
34803   cat >conftest.$ac_ext <<_ACEOF
34804
34805     /* confdefs.h.  */
34806 _ACEOF
34807 cat confdefs.h >>conftest.$ac_ext
34808 cat >>conftest.$ac_ext <<_ACEOF
34809 /* end confdefs.h.  */
34810
34811 #include <sys/types.h>
34812 #include <sys/mman.h>
34813 #include <fcntl.h>
34814
34815 int
34816 main ()
34817 {
34818
34819   int fd;
34820   fd = creat ("foo",0777);
34821   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34822   unlink ("foo");
34823   return (fd != (int) MAP_FAILED);
34824   ;
34825   return 0;
34826 }
34827 _ACEOF
34828 rm -f conftest$ac_exeext
34829 if { (ac_try="$ac_link"
34830 case "(($ac_try" in
34831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34832   *) ac_try_echo=$ac_try;;
34833 esac
34834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34835   (eval "$ac_link") 2>&5
34836   ac_status=$?
34837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34838   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34839   { (case "(($ac_try" in
34840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34841   *) ac_try_echo=$ac_try;;
34842 esac
34843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34844   (eval "$ac_try") 2>&5
34845   ac_status=$?
34846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34847   (exit $ac_status); }; }; then
34848   ac_cv_func_mmap_file=yes
34849 else
34850   echo "$as_me: program exited with status $ac_status" >&5
34851 echo "$as_me: failed program was:" >&5
34852 sed 's/^/| /' conftest.$ac_ext >&5
34853
34854 ( exit $ac_status )
34855 ac_cv_func_mmap_file=no
34856 fi
34857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34858 fi
34859
34860
34861   ac_ext=c
34862 ac_cpp='$CPP $CPPFLAGS'
34863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34866
34867
34868 fi
34869 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34870 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34871 if test "$ac_cv_func_mmap_file" = yes; then
34872
34873 cat >>confdefs.h <<\_ACEOF
34874 #define HAVE_MMAP_FILE
34875 _ACEOF
34876
34877    MMAP_FILE=yes
34878
34879 fi
34880
34881   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34882 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34883 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34884   echo $ECHO_N "(cached) $ECHO_C" >&6
34885 else
34886   if test "$llvm_cv_os_type" = "Interix" ; then
34887    ac_cv_need_dev_zero_for_mmap=yes
34888  else
34889    ac_cv_need_dev_zero_for_mmap=no
34890  fi
34891
34892 fi
34893 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34894 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34895 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34896
34897 cat >>confdefs.h <<\_ACEOF
34898 #define NEED_DEV_ZERO_FOR_MMAP 1
34899 _ACEOF
34900
34901 fi
34902
34903   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34904   then
34905     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34906 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34907   fi
34908   if test "$ac_cv_func_mmap_file" = "no"
34909   then
34910     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34911 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34912   fi
34913 fi
34914
34915 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34916 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34917 cat >conftest.$ac_ext <<_ACEOF
34918 /* confdefs.h.  */
34919 _ACEOF
34920 cat confdefs.h >>conftest.$ac_ext
34921 cat >>conftest.$ac_ext <<_ACEOF
34922 /* end confdefs.h.  */
34923 int main() {
34924         volatile unsigned long val = 1;
34925         __sync_synchronize();
34926         __sync_val_compare_and_swap(&val, 1, 0);
34927         __sync_add_and_fetch(&val, 1);
34928         __sync_sub_and_fetch(&val, 1);
34929         return 0;
34930       }
34931
34932 _ACEOF
34933 rm -f conftest.$ac_objext conftest$ac_exeext
34934 if { (ac_try="$ac_link"
34935 case "(($ac_try" in
34936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34937   *) ac_try_echo=$ac_try;;
34938 esac
34939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34940   (eval "$ac_link") 2>conftest.er1
34941   ac_status=$?
34942   grep -v '^ *+' conftest.er1 >conftest.err
34943   rm -f conftest.er1
34944   cat conftest.err >&5
34945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946   (exit $ac_status); } &&
34947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34948   { (case "(($ac_try" in
34949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34950   *) ac_try_echo=$ac_try;;
34951 esac
34952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34953   (eval "$ac_try") 2>&5
34954   ac_status=$?
34955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34956   (exit $ac_status); }; } &&
34957          { ac_try='test -s conftest$ac_exeext'
34958   { (case "(($ac_try" in
34959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34960   *) ac_try_echo=$ac_try;;
34961 esac
34962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34963   (eval "$ac_try") 2>&5
34964   ac_status=$?
34965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34966   (exit $ac_status); }; }; then
34967   { echo "$as_me:$LINENO: result: yes" >&5
34968 echo "${ECHO_T}yes" >&6; }
34969
34970 cat >>confdefs.h <<\_ACEOF
34971 #define LLVM_MULTITHREADED 1
34972 _ACEOF
34973
34974 else
34975   echo "$as_me: failed program was:" >&5
34976 sed 's/^/| /' conftest.$ac_ext >&5
34977
34978         { echo "$as_me:$LINENO: result: no" >&5
34979 echo "${ECHO_T}no" >&6; }
34980
34981 cat >>confdefs.h <<\_ACEOF
34982 #define LLVM_MULTITHREADED 0
34983 _ACEOF
34984
34985   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34986 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34987 fi
34988
34989 rm -f core conftest.err conftest.$ac_objext \
34990       conftest$ac_exeext conftest.$ac_ext
34991
34992
34993
34994
34995 for ac_func in __dso_handle
34996 do
34997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34998 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35001   echo $ECHO_N "(cached) $ECHO_C" >&6
35002 else
35003   cat >conftest.$ac_ext <<_ACEOF
35004 /* confdefs.h.  */
35005 _ACEOF
35006 cat confdefs.h >>conftest.$ac_ext
35007 cat >>conftest.$ac_ext <<_ACEOF
35008 /* end confdefs.h.  */
35009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35011 #define $ac_func innocuous_$ac_func
35012
35013 /* System header to define __stub macros and hopefully few prototypes,
35014     which can conflict with char $ac_func (); below.
35015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35016     <limits.h> exists even on freestanding compilers.  */
35017
35018 #ifdef __STDC__
35019 # include <limits.h>
35020 #else
35021 # include <assert.h>
35022 #endif
35023
35024 #undef $ac_func
35025
35026 /* Override any GCC internal prototype to avoid an error.
35027    Use char because int might match the return type of a GCC
35028    builtin and then its argument prototype would still apply.  */
35029 #ifdef __cplusplus
35030 extern "C"
35031 #endif
35032 char $ac_func ();
35033 /* The GNU C library defines this for functions which it implements
35034     to always fail with ENOSYS.  Some functions are actually named
35035     something starting with __ and the normal name is an alias.  */
35036 #if defined __stub_$ac_func || defined __stub___$ac_func
35037 choke me
35038 #endif
35039
35040 int
35041 main ()
35042 {
35043 return $ac_func ();
35044   ;
35045   return 0;
35046 }
35047 _ACEOF
35048 rm -f conftest.$ac_objext conftest$ac_exeext
35049 if { (ac_try="$ac_link"
35050 case "(($ac_try" in
35051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35052   *) ac_try_echo=$ac_try;;
35053 esac
35054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35055   (eval "$ac_link") 2>conftest.er1
35056   ac_status=$?
35057   grep -v '^ *+' conftest.er1 >conftest.err
35058   rm -f conftest.er1
35059   cat conftest.err >&5
35060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35061   (exit $ac_status); } &&
35062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35063   { (case "(($ac_try" in
35064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35065   *) ac_try_echo=$ac_try;;
35066 esac
35067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35068   (eval "$ac_try") 2>&5
35069   ac_status=$?
35070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35071   (exit $ac_status); }; } &&
35072          { ac_try='test -s conftest$ac_exeext'
35073   { (case "(($ac_try" in
35074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35075   *) ac_try_echo=$ac_try;;
35076 esac
35077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35078   (eval "$ac_try") 2>&5
35079   ac_status=$?
35080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35081   (exit $ac_status); }; }; then
35082   eval "$as_ac_var=yes"
35083 else
35084   echo "$as_me: failed program was:" >&5
35085 sed 's/^/| /' conftest.$ac_ext >&5
35086
35087         eval "$as_ac_var=no"
35088 fi
35089
35090 rm -f core conftest.err conftest.$ac_objext \
35091       conftest$ac_exeext conftest.$ac_ext
35092 fi
35093 ac_res=`eval echo '${'$as_ac_var'}'`
35094                { echo "$as_me:$LINENO: result: $ac_res" >&5
35095 echo "${ECHO_T}$ac_res" >&6; }
35096 if test `eval echo '${'$as_ac_var'}'` = yes; then
35097   cat >>confdefs.h <<_ACEOF
35098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35099 _ACEOF
35100
35101 fi
35102 done
35103
35104
35105 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35106 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
35107 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35108   echo $ECHO_N "(cached) $ECHO_C" >&6
35109 else
35110   llvm_cv_llvmgcc_sanity="no"
35111 if test -x "$LLVMGCC" ; then
35112   cp /dev/null conftest.c
35113   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35114       grep 'target datalayout =' > /dev/null 2>&1
35115   if test $? -eq 0 ; then
35116     llvm_cv_llvmgcc_sanity="yes"
35117   fi
35118   rm conftest.c
35119 fi
35120 fi
35121 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35122 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35123
35124 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35125   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35126 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35127   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35128   LLVMCC1=$llvmcc1path
35129
35130   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35131   LLVMCC1PLUS=$llvmcc1pluspath
35132
35133   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35134   LLVMGCCDIR=$llvmgccdir
35135
35136   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35137   LLVMGCCLIBEXEC=$llvmgcclibexec
35138
35139   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35140   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35141   LLVMGCC_VERSION=$llvmgccversion
35142
35143   LLVMGCC_MAJVERS=$llvmgccmajvers
35144
35145   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35146   LLVMGCC_LANGS=$llvmgcclangs
35147
35148   { echo "$as_me:$LINENO: result: ok" >&5
35149 echo "${ECHO_T}ok" >&6; }
35150 fi
35151
35152 SHLIBEXT=$libltdl_cv_shlibext
35153
35154
35155 # Translate the various configuration directories and other basic
35156 # information into substitutions that will end up in Makefile.config.in
35157 # that these configured values can be used by the makefiles
35158 if test "${prefix}" = "NONE" ; then
35159   prefix="/usr/local"
35160 fi
35161 eval LLVM_PREFIX="${prefix}";
35162 eval LLVM_BINDIR="${prefix}/bin";
35163 eval LLVM_LIBDIR="${prefix}/lib";
35164 eval LLVM_DATADIR="${prefix}/share/llvm";
35165 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35166 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35167 eval LLVM_INCLUDEDIR="${prefix}/include";
35168 eval LLVM_INFODIR="${prefix}/info";
35169 eval LLVM_MANDIR="${prefix}/man";
35170 LLVM_CONFIGTIME=`date`
35171
35172
35173
35174
35175
35176
35177
35178
35179
35180
35181
35182 # Place the various directores into the config.h file as #defines so that we
35183 # can know about the installation paths within LLVM.
35184
35185 cat >>confdefs.h <<_ACEOF
35186 #define LLVM_PREFIX "$LLVM_PREFIX"
35187 _ACEOF
35188
35189
35190 cat >>confdefs.h <<_ACEOF
35191 #define LLVM_BINDIR "$LLVM_BINDIR"
35192 _ACEOF
35193
35194
35195 cat >>confdefs.h <<_ACEOF
35196 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35197 _ACEOF
35198
35199
35200 cat >>confdefs.h <<_ACEOF
35201 #define LLVM_DATADIR "$LLVM_DATADIR"
35202 _ACEOF
35203
35204
35205 cat >>confdefs.h <<_ACEOF
35206 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35207 _ACEOF
35208
35209
35210 cat >>confdefs.h <<_ACEOF
35211 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35212 _ACEOF
35213
35214
35215 cat >>confdefs.h <<_ACEOF
35216 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35217 _ACEOF
35218
35219
35220 cat >>confdefs.h <<_ACEOF
35221 #define LLVM_INFODIR "$LLVM_INFODIR"
35222 _ACEOF
35223
35224
35225 cat >>confdefs.h <<_ACEOF
35226 #define LLVM_MANDIR "$LLVM_MANDIR"
35227 _ACEOF
35228
35229
35230 cat >>confdefs.h <<_ACEOF
35231 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35232 _ACEOF
35233
35234
35235 cat >>confdefs.h <<_ACEOF
35236 #define LLVM_HOSTTRIPLE "$host"
35237 _ACEOF
35238
35239
35240 # Determine which bindings to build.
35241 if test "$BINDINGS_TO_BUILD" = auto ; then
35242   BINDINGS_TO_BUILD=""
35243   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35244     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35245   fi
35246 fi
35247 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35248
35249
35250 # This isn't really configurey, but it avoids having to repeat the list in
35251 # other files.
35252 ALL_BINDINGS=ocaml
35253
35254
35255 # Do any work necessary to ensure that bindings have what they need.
35256 binding_prereqs_failed=0
35257 for a_binding in $BINDINGS_TO_BUILD ; do
35258   case "$a_binding" in
35259   ocaml)
35260     if test "x$OCAMLC" = x ; then
35261       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35262 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35263       binding_prereqs_failed=1
35264     fi
35265     if test "x$OCAMLDEP" = x ; then
35266       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35267 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35268       binding_prereqs_failed=1
35269     fi
35270     if test "x$OCAMLOPT" = x ; then
35271       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35272 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35273           fi
35274     if test "x$with_ocaml_libdir" != xauto ; then
35275       OCAML_LIBDIR=$with_ocaml_libdir
35276
35277     else
35278       ocaml_stdlib="`"$OCAMLC" -where`"
35279       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35280       then
35281         # ocaml stdlib is beneath our prefix; use stdlib
35282         OCAML_LIBDIR=$ocaml_stdlib
35283
35284       else
35285         # ocaml stdlib is outside our prefix; use libdir/ocaml
35286         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35287
35288       fi
35289     fi
35290     ;;
35291   esac
35292 done
35293 if test "$binding_prereqs_failed" = 1 ; then
35294   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35295 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35296    { (exit 1); exit 1; }; }
35297 fi
35298
35299 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35300 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35301 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35302   echo $ECHO_N "(cached) $ECHO_C" >&6
35303 else
35304    ac_ext=cpp
35305 ac_cpp='$CXXCPP $CPPFLAGS'
35306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35309
35310   oldcxxflags="$CXXFLAGS"
35311   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35312   cat >conftest.$ac_ext <<_ACEOF
35313 /* confdefs.h.  */
35314 _ACEOF
35315 cat confdefs.h >>conftest.$ac_ext
35316 cat >>conftest.$ac_ext <<_ACEOF
35317 /* end confdefs.h.  */
35318
35319 int
35320 main ()
35321 {
35322
35323   ;
35324   return 0;
35325 }
35326 _ACEOF
35327 rm -f conftest.$ac_objext
35328 if { (ac_try="$ac_compile"
35329 case "(($ac_try" in
35330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35331   *) ac_try_echo=$ac_try;;
35332 esac
35333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35334   (eval "$ac_compile") 2>conftest.er1
35335   ac_status=$?
35336   grep -v '^ *+' conftest.er1 >conftest.err
35337   rm -f conftest.er1
35338   cat conftest.err >&5
35339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35340   (exit $ac_status); } &&
35341          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35342   { (case "(($ac_try" in
35343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35344   *) ac_try_echo=$ac_try;;
35345 esac
35346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35347   (eval "$ac_try") 2>&5
35348   ac_status=$?
35349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350   (exit $ac_status); }; } &&
35351          { ac_try='test -s conftest.$ac_objext'
35352   { (case "(($ac_try" in
35353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35354   *) ac_try_echo=$ac_try;;
35355 esac
35356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35357   (eval "$ac_try") 2>&5
35358   ac_status=$?
35359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35360   (exit $ac_status); }; }; then
35361   llvm_cv_cxx_visibility_inlines_hidden=yes
35362 else
35363   echo "$as_me: failed program was:" >&5
35364 sed 's/^/| /' conftest.$ac_ext >&5
35365
35366         llvm_cv_cxx_visibility_inlines_hidden=no
35367 fi
35368
35369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35370   CXXFLAGS="$oldcxxflags"
35371   ac_ext=c
35372 ac_cpp='$CPP $CPPFLAGS'
35373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35376
35377
35378 fi
35379 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35380 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35381 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35382   ENABLE_VISIBILITY_INLINES_HIDDEN=1
35383
35384 else
35385   ENABLE_VISIBILITY_INLINES_HIDDEN=0
35386
35387 fi
35388
35389
35390 if test "$llvm_cv_link_use_r" = "yes" ; then
35391   RPATH="-Wl,-R"
35392 else
35393   RPATH="-Wl,-rpath"
35394 fi
35395
35396
35397 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35398   RDYNAMIC="-Wl,-export-dynamic"
35399 else
35400   RDYNAMIC=""
35401 fi
35402
35403
35404
35405 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35406
35407 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35408
35409 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35410
35411 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35412
35413 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35414
35415
35416 ac_config_files="$ac_config_files Makefile.config"
35417
35418
35419 ac_config_files="$ac_config_files llvm.spec"
35420
35421
35422 ac_config_files="$ac_config_files docs/doxygen.cfg"
35423
35424
35425 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35426
35427
35428 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35429
35430
35431 ac_config_commands="$ac_config_commands setup"
35432
35433 ac_config_commands="$ac_config_commands Makefile"
35434
35435
35436 ac_config_commands="$ac_config_commands Makefile.common"
35437
35438
35439 ac_config_commands="$ac_config_commands examples/Makefile"
35440
35441
35442 ac_config_commands="$ac_config_commands lib/Makefile"
35443
35444
35445 ac_config_commands="$ac_config_commands runtime/Makefile"
35446
35447
35448 ac_config_commands="$ac_config_commands test/Makefile"
35449
35450
35451 ac_config_commands="$ac_config_commands test/Makefile.tests"
35452
35453
35454 ac_config_commands="$ac_config_commands unittests/Makefile"
35455
35456
35457 ac_config_commands="$ac_config_commands tools/Makefile"
35458
35459
35460 ac_config_commands="$ac_config_commands utils/Makefile"
35461
35462
35463 ac_config_commands="$ac_config_commands projects/Makefile"
35464
35465
35466 ac_config_commands="$ac_config_commands bindings/Makefile"
35467
35468
35469 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35470
35471
35472
35473 cat >confcache <<\_ACEOF
35474 # This file is a shell script that caches the results of configure
35475 # tests run on this system so they can be shared between configure
35476 # scripts and configure runs, see configure's option --config-cache.
35477 # It is not useful on other systems.  If it contains results you don't
35478 # want to keep, you may remove or edit it.
35479 #
35480 # config.status only pays attention to the cache file if you give it
35481 # the --recheck option to rerun configure.
35482 #
35483 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35484 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35485 # following values.
35486
35487 _ACEOF
35488
35489 # The following way of writing the cache mishandles newlines in values,
35490 # but we know of no workaround that is simple, portable, and efficient.
35491 # So, we kill variables containing newlines.
35492 # Ultrix sh set writes to stderr and can't be redirected directly,
35493 # and sets the high bit in the cache file unless we assign to the vars.
35494 (
35495   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35496     eval ac_val=\$$ac_var
35497     case $ac_val in #(
35498     *${as_nl}*)
35499       case $ac_var in #(
35500       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35501 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35502       esac
35503       case $ac_var in #(
35504       _ | IFS | as_nl) ;; #(
35505       *) $as_unset $ac_var ;;
35506       esac ;;
35507     esac
35508   done
35509
35510   (set) 2>&1 |
35511     case $as_nl`(ac_space=' '; set) 2>&1` in #(
35512     *${as_nl}ac_space=\ *)
35513       # `set' does not quote correctly, so add quotes (double-quote
35514       # substitution turns \\\\ into \\, and sed turns \\ into \).
35515       sed -n \
35516         "s/'/'\\\\''/g;
35517           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35518       ;; #(
35519     *)
35520       # `set' quotes correctly as required by POSIX, so do not add quotes.
35521       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35522       ;;
35523     esac |
35524     sort
35525 ) |
35526   sed '
35527      /^ac_cv_env_/b end
35528      t clear
35529      :clear
35530      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35531      t end
35532      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35533      :end' >>confcache
35534 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35535   if test -w "$cache_file"; then
35536     test "x$cache_file" != "x/dev/null" &&
35537       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35538 echo "$as_me: updating cache $cache_file" >&6;}
35539     cat confcache >$cache_file
35540   else
35541     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35542 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35543   fi
35544 fi
35545 rm -f confcache
35546
35547 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35548 # Let make expand exec_prefix.
35549 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35550
35551 DEFS=-DHAVE_CONFIG_H
35552
35553 ac_libobjs=
35554 ac_ltlibobjs=
35555 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35556   # 1. Remove the extension, and $U if already installed.
35557   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35558   ac_i=`echo "$ac_i" | sed "$ac_script"`
35559   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35560   #    will be set to the directory where LIBOBJS objects are built.
35561   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35562   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35563 done
35564 LIBOBJS=$ac_libobjs
35565
35566 LTLIBOBJS=$ac_ltlibobjs
35567
35568
35569 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35570   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35571 Usually this means the macro was only invoked conditionally." >&5
35572 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35573 Usually this means the macro was only invoked conditionally." >&2;}
35574    { (exit 1); exit 1; }; }
35575 fi
35576 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35577   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35578 Usually this means the macro was only invoked conditionally." >&5
35579 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35580 Usually this means the macro was only invoked conditionally." >&2;}
35581    { (exit 1); exit 1; }; }
35582 fi
35583
35584 : ${CONFIG_STATUS=./config.status}
35585 ac_clean_files_save=$ac_clean_files
35586 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35587 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35588 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35589 cat >$CONFIG_STATUS <<_ACEOF
35590 #! $SHELL
35591 # Generated by $as_me.
35592 # Run this file to recreate the current configuration.
35593 # Compiler output produced by configure, useful for debugging
35594 # configure, is in config.log if it exists.
35595
35596 debug=false
35597 ac_cs_recheck=false
35598 ac_cs_silent=false
35599 SHELL=\${CONFIG_SHELL-$SHELL}
35600 _ACEOF
35601
35602 cat >>$CONFIG_STATUS <<\_ACEOF
35603 ## --------------------- ##
35604 ## M4sh Initialization.  ##
35605 ## --------------------- ##
35606
35607 # Be Bourne compatible
35608 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35609   emulate sh
35610   NULLCMD=:
35611   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35612   # is contrary to our usage.  Disable this feature.
35613   alias -g '${1+"$@"}'='"$@"'
35614   setopt NO_GLOB_SUBST
35615 else
35616   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35617 fi
35618 BIN_SH=xpg4; export BIN_SH # for Tru64
35619 DUALCASE=1; export DUALCASE # for MKS sh
35620
35621
35622 # PATH needs CR
35623 # Avoid depending upon Character Ranges.
35624 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35625 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35626 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35627 as_cr_digits='0123456789'
35628 as_cr_alnum=$as_cr_Letters$as_cr_digits
35629
35630 # The user is always right.
35631 if test "${PATH_SEPARATOR+set}" != set; then
35632   echo "#! /bin/sh" >conf$$.sh
35633   echo  "exit 0"   >>conf$$.sh
35634   chmod +x conf$$.sh
35635   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35636     PATH_SEPARATOR=';'
35637   else
35638     PATH_SEPARATOR=:
35639   fi
35640   rm -f conf$$.sh
35641 fi
35642
35643 # Support unset when possible.
35644 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35645   as_unset=unset
35646 else
35647   as_unset=false
35648 fi
35649
35650
35651 # IFS
35652 # We need space, tab and new line, in precisely that order.  Quoting is
35653 # there to prevent editors from complaining about space-tab.
35654 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35655 # splitting by setting IFS to empty value.)
35656 as_nl='
35657 '
35658 IFS=" ""        $as_nl"
35659
35660 # Find who we are.  Look in the path if we contain no directory separator.
35661 case $0 in
35662   *[\\/]* ) as_myself=$0 ;;
35663   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35664 for as_dir in $PATH
35665 do
35666   IFS=$as_save_IFS
35667   test -z "$as_dir" && as_dir=.
35668   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35669 done
35670 IFS=$as_save_IFS
35671
35672      ;;
35673 esac
35674 # We did not find ourselves, most probably we were run as `sh COMMAND'
35675 # in which case we are not to be found in the path.
35676 if test "x$as_myself" = x; then
35677   as_myself=$0
35678 fi
35679 if test ! -f "$as_myself"; then
35680   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35681   { (exit 1); exit 1; }
35682 fi
35683
35684 # Work around bugs in pre-3.0 UWIN ksh.
35685 for as_var in ENV MAIL MAILPATH
35686 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35687 done
35688 PS1='$ '
35689 PS2='> '
35690 PS4='+ '
35691
35692 # NLS nuisances.
35693 for as_var in \
35694   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35695   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35696   LC_TELEPHONE LC_TIME
35697 do
35698   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35699     eval $as_var=C; export $as_var
35700   else
35701     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35702   fi
35703 done
35704
35705 # Required to use basename.
35706 if expr a : '\(a\)' >/dev/null 2>&1 &&
35707    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35708   as_expr=expr
35709 else
35710   as_expr=false
35711 fi
35712
35713 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35714   as_basename=basename
35715 else
35716   as_basename=false
35717 fi
35718
35719
35720 # Name of the executable.
35721 as_me=`$as_basename -- "$0" ||
35722 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35723          X"$0" : 'X\(//\)$' \| \
35724          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35725 echo X/"$0" |
35726     sed '/^.*\/\([^/][^/]*\)\/*$/{
35727             s//\1/
35728             q
35729           }
35730           /^X\/\(\/\/\)$/{
35731             s//\1/
35732             q
35733           }
35734           /^X\/\(\/\).*/{
35735             s//\1/
35736             q
35737           }
35738           s/.*/./; q'`
35739
35740 # CDPATH.
35741 $as_unset CDPATH
35742
35743
35744
35745   as_lineno_1=$LINENO
35746   as_lineno_2=$LINENO
35747   test "x$as_lineno_1" != "x$as_lineno_2" &&
35748   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35749
35750   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35751   # uniformly replaced by the line number.  The first 'sed' inserts a
35752   # line-number line after each line using $LINENO; the second 'sed'
35753   # does the real work.  The second script uses 'N' to pair each
35754   # line-number line with the line containing $LINENO, and appends
35755   # trailing '-' during substitution so that $LINENO is not a special
35756   # case at line end.
35757   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35758   # scripts with optimization help from Paolo Bonzini.  Blame Lee
35759   # E. McMahon (1931-1989) for sed's syntax.  :-)
35760   sed -n '
35761     p
35762     /[$]LINENO/=
35763   ' <$as_myself |
35764     sed '
35765       s/[$]LINENO.*/&-/
35766       t lineno
35767       b
35768       :lineno
35769       N
35770       :loop
35771       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35772       t loop
35773       s/-\n.*//
35774     ' >$as_me.lineno &&
35775   chmod +x "$as_me.lineno" ||
35776     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35777    { (exit 1); exit 1; }; }
35778
35779   # Don't try to exec as it changes $[0], causing all sort of problems
35780   # (the dirname of $[0] is not the place where we might find the
35781   # original and so on.  Autoconf is especially sensitive to this).
35782   . "./$as_me.lineno"
35783   # Exit status is that of the last command.
35784   exit
35785 }
35786
35787
35788 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35789   as_dirname=dirname
35790 else
35791   as_dirname=false
35792 fi
35793
35794 ECHO_C= ECHO_N= ECHO_T=
35795 case `echo -n x` in
35796 -n*)
35797   case `echo 'x\c'` in
35798   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35799   *)   ECHO_C='\c';;
35800   esac;;
35801 *)
35802   ECHO_N='-n';;
35803 esac
35804
35805 if expr a : '\(a\)' >/dev/null 2>&1 &&
35806    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35807   as_expr=expr
35808 else
35809   as_expr=false
35810 fi
35811
35812 rm -f conf$$ conf$$.exe conf$$.file
35813 if test -d conf$$.dir; then
35814   rm -f conf$$.dir/conf$$.file
35815 else
35816   rm -f conf$$.dir
35817   mkdir conf$$.dir
35818 fi
35819 echo >conf$$.file
35820 if ln -s conf$$.file conf$$ 2>/dev/null; then
35821   as_ln_s='ln -s'
35822   # ... but there are two gotchas:
35823   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35824   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35825   # In both cases, we have to default to `cp -p'.
35826   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35827     as_ln_s='cp -p'
35828 elif ln conf$$.file conf$$ 2>/dev/null; then
35829   as_ln_s=ln
35830 else
35831   as_ln_s='cp -p'
35832 fi
35833 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35834 rmdir conf$$.dir 2>/dev/null
35835
35836 if mkdir -p . 2>/dev/null; then
35837   as_mkdir_p=:
35838 else
35839   test -d ./-p && rmdir ./-p
35840   as_mkdir_p=false
35841 fi
35842
35843 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
35844 # systems may use methods other than mode bits to determine executability.
35845 cat >conf$$.file <<_ASEOF
35846 #! /bin/sh
35847 exit 0
35848 _ASEOF
35849 chmod +x conf$$.file
35850 if test -x conf$$.file >/dev/null 2>&1; then
35851   as_executable_p="test -x"
35852 else
35853   as_executable_p=:
35854 fi
35855 rm -f conf$$.file
35856
35857 # Sed expression to map a string onto a valid CPP name.
35858 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35859
35860 # Sed expression to map a string onto a valid variable name.
35861 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35862
35863
35864 exec 6>&1
35865
35866 # Save the log message, to keep $[0] and so on meaningful, and to
35867 # report actual input values of CONFIG_FILES etc. instead of their
35868 # values after options handling.
35869 ac_log="
35870 This file was extended by llvm $as_me 2.7svn, which was
35871 generated by GNU Autoconf 2.60.  Invocation command line was
35872
35873   CONFIG_FILES    = $CONFIG_FILES
35874   CONFIG_HEADERS  = $CONFIG_HEADERS
35875   CONFIG_LINKS    = $CONFIG_LINKS
35876   CONFIG_COMMANDS = $CONFIG_COMMANDS
35877   $ $0 $@
35878
35879 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35880 "
35881
35882 _ACEOF
35883
35884 cat >>$CONFIG_STATUS <<_ACEOF
35885 # Files that config.status was made for.
35886 config_files="$ac_config_files"
35887 config_headers="$ac_config_headers"
35888 config_commands="$ac_config_commands"
35889
35890 _ACEOF
35891
35892 cat >>$CONFIG_STATUS <<\_ACEOF
35893 ac_cs_usage="\
35894 \`$as_me' instantiates files from templates according to the
35895 current configuration.
35896
35897 Usage: $0 [OPTIONS] [FILE]...
35898
35899   -h, --help       print this help, then exit
35900   -V, --version    print version number, then exit
35901   -q, --quiet      do not print progress messages
35902   -d, --debug      don't remove temporary files
35903       --recheck    update $as_me by reconfiguring in the same conditions
35904   --file=FILE[:TEMPLATE]
35905                    instantiate the configuration file FILE
35906   --header=FILE[:TEMPLATE]
35907                    instantiate the configuration header FILE
35908
35909 Configuration files:
35910 $config_files
35911
35912 Configuration headers:
35913 $config_headers
35914
35915 Configuration commands:
35916 $config_commands
35917
35918 Report bugs to <bug-autoconf@gnu.org>."
35919
35920 _ACEOF
35921 cat >>$CONFIG_STATUS <<_ACEOF
35922 ac_cs_version="\\
35923 llvm config.status 2.7svn
35924 configured by $0, generated by GNU Autoconf 2.60,
35925   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35926
35927 Copyright (C) 2006 Free Software Foundation, Inc.
35928 This config.status script is free software; the Free Software Foundation
35929 gives unlimited permission to copy, distribute and modify it."
35930
35931 ac_pwd='$ac_pwd'
35932 srcdir='$srcdir'
35933 INSTALL='$INSTALL'
35934 _ACEOF
35935
35936 cat >>$CONFIG_STATUS <<\_ACEOF
35937 # If no file are specified by the user, then we need to provide default
35938 # value.  By we need to know if files were specified by the user.
35939 ac_need_defaults=:
35940 while test $# != 0
35941 do
35942   case $1 in
35943   --*=*)
35944     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35945     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35946     ac_shift=:
35947     ;;
35948   *)
35949     ac_option=$1
35950     ac_optarg=$2
35951     ac_shift=shift
35952     ;;
35953   esac
35954
35955   case $ac_option in
35956   # Handling of the options.
35957   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35958     ac_cs_recheck=: ;;
35959   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35960     echo "$ac_cs_version"; exit ;;
35961   --debug | --debu | --deb | --de | --d | -d )
35962     debug=: ;;
35963   --file | --fil | --fi | --f )
35964     $ac_shift
35965     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35966     ac_need_defaults=false;;
35967   --header | --heade | --head | --hea )
35968     $ac_shift
35969     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35970     ac_need_defaults=false;;
35971   --he | --h)
35972     # Conflict between --help and --header
35973     { echo "$as_me: error: ambiguous option: $1
35974 Try \`$0 --help' for more information." >&2
35975    { (exit 1); exit 1; }; };;
35976   --help | --hel | -h )
35977     echo "$ac_cs_usage"; exit ;;
35978   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35979   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35980     ac_cs_silent=: ;;
35981
35982   # This is an error.
35983   -*) { echo "$as_me: error: unrecognized option: $1
35984 Try \`$0 --help' for more information." >&2
35985    { (exit 1); exit 1; }; } ;;
35986
35987   *) ac_config_targets="$ac_config_targets $1"
35988      ac_need_defaults=false ;;
35989
35990   esac
35991   shift
35992 done
35993
35994 ac_configure_extra_args=
35995
35996 if $ac_cs_silent; then
35997   exec 6>/dev/null
35998   ac_configure_extra_args="$ac_configure_extra_args --silent"
35999 fi
36000
36001 _ACEOF
36002 cat >>$CONFIG_STATUS <<_ACEOF
36003 if \$ac_cs_recheck; then
36004   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36005   CONFIG_SHELL=$SHELL
36006   export CONFIG_SHELL
36007   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36008 fi
36009
36010 _ACEOF
36011 cat >>$CONFIG_STATUS <<\_ACEOF
36012 exec 5>>config.log
36013 {
36014   echo
36015   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36016 ## Running $as_me. ##
36017 _ASBOX
36018   echo "$ac_log"
36019 } >&5
36020
36021 _ACEOF
36022 cat >>$CONFIG_STATUS <<_ACEOF
36023 #
36024 # INIT-COMMANDS
36025 #
36026 llvm_src="${srcdir}"
36027
36028 _ACEOF
36029
36030 cat >>$CONFIG_STATUS <<\_ACEOF
36031
36032 # Handling of arguments.
36033 for ac_config_target in $ac_config_targets
36034 do
36035   case $ac_config_target in
36036     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
36037     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
36038     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
36039     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
36040     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
36041     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
36042     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
36043     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
36044     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
36045     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
36046     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
36047     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
36048     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
36049     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
36050     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
36051     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
36052     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
36053     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
36054     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
36055     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
36056     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
36057     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
36058     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
36059     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
36060
36061   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36062 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36063    { (exit 1); exit 1; }; };;
36064   esac
36065 done
36066
36067
36068 # If the user did not use the arguments to specify the items to instantiate,
36069 # then the envvar interface is used.  Set only those that are not.
36070 # We use the long form for the default assignment because of an extremely
36071 # bizarre bug on SunOS 4.1.3.
36072 if $ac_need_defaults; then
36073   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36074   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36075   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36076 fi
36077
36078 # Have a temporary directory for convenience.  Make it in the build tree
36079 # simply because there is no reason against having it here, and in addition,
36080 # creating and moving files from /tmp can sometimes cause problems.
36081 # Hook for its removal unless debugging.
36082 # Note that there is a small window in which the directory will not be cleaned:
36083 # after its creation but before its name has been assigned to `$tmp'.
36084 $debug ||
36085 {
36086   tmp=
36087   trap 'exit_status=$?
36088   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36089 ' 0
36090   trap '{ (exit 1); exit 1; }' 1 2 13 15
36091 }
36092 # Create a (secure) tmp directory for tmp files.
36093
36094 {
36095   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36096   test -n "$tmp" && test -d "$tmp"
36097 }  ||
36098 {
36099   tmp=./conf$$-$RANDOM
36100   (umask 077 && mkdir "$tmp")
36101 } ||
36102 {
36103    echo "$me: cannot create a temporary directory in ." >&2
36104    { (exit 1); exit 1; }
36105 }
36106
36107 #
36108 # Set up the sed scripts for CONFIG_FILES section.
36109 #
36110
36111 # No need to generate the scripts if there are no CONFIG_FILES.
36112 # This happens for instance when ./config.status config.h
36113 if test -n "$CONFIG_FILES"; then
36114
36115 _ACEOF
36116
36117
36118
36119 ac_delim='%!_!# '
36120 for ac_last_try in false false false false false :; do
36121   cat >conf$$subs.sed <<_ACEOF
36122 SHELL!$SHELL$ac_delim
36123 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36124 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36125 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36126 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36127 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36128 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36129 exec_prefix!$exec_prefix$ac_delim
36130 prefix!$prefix$ac_delim
36131 program_transform_name!$program_transform_name$ac_delim
36132 bindir!$bindir$ac_delim
36133 sbindir!$sbindir$ac_delim
36134 libexecdir!$libexecdir$ac_delim
36135 datarootdir!$datarootdir$ac_delim
36136 datadir!$datadir$ac_delim
36137 sysconfdir!$sysconfdir$ac_delim
36138 sharedstatedir!$sharedstatedir$ac_delim
36139 localstatedir!$localstatedir$ac_delim
36140 includedir!$includedir$ac_delim
36141 oldincludedir!$oldincludedir$ac_delim
36142 docdir!$docdir$ac_delim
36143 infodir!$infodir$ac_delim
36144 htmldir!$htmldir$ac_delim
36145 dvidir!$dvidir$ac_delim
36146 pdfdir!$pdfdir$ac_delim
36147 psdir!$psdir$ac_delim
36148 libdir!$libdir$ac_delim
36149 localedir!$localedir$ac_delim
36150 mandir!$mandir$ac_delim
36151 DEFS!$DEFS$ac_delim
36152 ECHO_C!$ECHO_C$ac_delim
36153 ECHO_N!$ECHO_N$ac_delim
36154 ECHO_T!$ECHO_T$ac_delim
36155 LIBS!$LIBS$ac_delim
36156 build_alias!$build_alias$ac_delim
36157 host_alias!$host_alias$ac_delim
36158 target_alias!$target_alias$ac_delim
36159 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36160 subdirs!$subdirs$ac_delim
36161 build!$build$ac_delim
36162 build_cpu!$build_cpu$ac_delim
36163 build_vendor!$build_vendor$ac_delim
36164 build_os!$build_os$ac_delim
36165 host!$host$ac_delim
36166 host_cpu!$host_cpu$ac_delim
36167 host_vendor!$host_vendor$ac_delim
36168 host_os!$host_os$ac_delim
36169 target!$target$ac_delim
36170 target_cpu!$target_cpu$ac_delim
36171 target_vendor!$target_vendor$ac_delim
36172 target_os!$target_os$ac_delim
36173 OS!$OS$ac_delim
36174 HOST_OS!$HOST_OS$ac_delim
36175 TARGET_OS!$TARGET_OS$ac_delim
36176 LINKALL!$LINKALL$ac_delim
36177 NOLINKALL!$NOLINKALL$ac_delim
36178 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36179 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36180 CC!$CC$ac_delim
36181 CFLAGS!$CFLAGS$ac_delim
36182 LDFLAGS!$LDFLAGS$ac_delim
36183 CPPFLAGS!$CPPFLAGS$ac_delim
36184 ac_ct_CC!$ac_ct_CC$ac_delim
36185 EXEEXT!$EXEEXT$ac_delim
36186 OBJEXT!$OBJEXT$ac_delim
36187 ARCH!$ARCH$ac_delim
36188 ENDIAN!$ENDIAN$ac_delim
36189 CPP!$CPP$ac_delim
36190 GREP!$GREP$ac_delim
36191 EGREP!$EGREP$ac_delim
36192 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36193 BUILD_CC!$BUILD_CC$ac_delim
36194 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36195 BUILD_CXX!$BUILD_CXX$ac_delim
36196 CVSBUILD!$CVSBUILD$ac_delim
36197 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36198 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36199 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36200 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36201 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36202 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36203 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
36204 JIT!$JIT$ac_delim
36205 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36206 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36207 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36208 ENABLE_PIC!$ENABLE_PIC$ac_delim
36209 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36210 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36211 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36212 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36213 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36214 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36215 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36216 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36217 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36218 CXX!$CXX$ac_delim
36219 _ACEOF
36220
36221   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36222     break
36223   elif $ac_last_try; then
36224     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36225 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36226    { (exit 1); exit 1; }; }
36227   else
36228     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36229   fi
36230 done
36231
36232 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36233 if test -n "$ac_eof"; then
36234   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36235   ac_eof=`expr $ac_eof + 1`
36236 fi
36237
36238 cat >>$CONFIG_STATUS <<_ACEOF
36239 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36240 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36241 _ACEOF
36242 sed '
36243 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36244 s/^/s,@/; s/!/@,|#_!!_#|/
36245 :n
36246 t n
36247 s/'"$ac_delim"'$/,g/; t
36248 s/$/\\/; p
36249 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36250 ' >>$CONFIG_STATUS <conf$$subs.sed
36251 rm -f conf$$subs.sed
36252 cat >>$CONFIG_STATUS <<_ACEOF
36253 CEOF$ac_eof
36254 _ACEOF
36255
36256
36257 ac_delim='%!_!# '
36258 for ac_last_try in false false false false false :; do
36259   cat >conf$$subs.sed <<_ACEOF
36260 CXXFLAGS!$CXXFLAGS$ac_delim
36261 ac_ct_CXX!$ac_ct_CXX$ac_delim
36262 NM!$NM$ac_delim
36263 ifGNUmake!$ifGNUmake$ac_delim
36264 LN_S!$LN_S$ac_delim
36265 CMP!$CMP$ac_delim
36266 CP!$CP$ac_delim
36267 DATE!$DATE$ac_delim
36268 FIND!$FIND$ac_delim
36269 MKDIR!$MKDIR$ac_delim
36270 MV!$MV$ac_delim
36271 RANLIB!$RANLIB$ac_delim
36272 RM!$RM$ac_delim
36273 SED!$SED$ac_delim
36274 TAR!$TAR$ac_delim
36275 BINPWD!$BINPWD$ac_delim
36276 GRAPHVIZ!$GRAPHVIZ$ac_delim
36277 DOT!$DOT$ac_delim
36278 FDP!$FDP$ac_delim
36279 NEATO!$NEATO$ac_delim
36280 TWOPI!$TWOPI$ac_delim
36281 CIRCO!$CIRCO$ac_delim
36282 GV!$GV$ac_delim
36283 DOTTY!$DOTTY$ac_delim
36284 PERL!$PERL$ac_delim
36285 HAVE_PERL!$HAVE_PERL$ac_delim
36286 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36287 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36288 INSTALL_DATA!$INSTALL_DATA$ac_delim
36289 BZIP2!$BZIP2$ac_delim
36290 DOXYGEN!$DOXYGEN$ac_delim
36291 GROFF!$GROFF$ac_delim
36292 GZIP!$GZIP$ac_delim
36293 POD2HTML!$POD2HTML$ac_delim
36294 POD2MAN!$POD2MAN$ac_delim
36295 RUNTEST!$RUNTEST$ac_delim
36296 TCLSH!$TCLSH$ac_delim
36297 ZIP!$ZIP$ac_delim
36298 OCAMLC!$OCAMLC$ac_delim
36299 OCAMLOPT!$OCAMLOPT$ac_delim
36300 OCAMLDEP!$OCAMLDEP$ac_delim
36301 OCAMLDOC!$OCAMLDOC$ac_delim
36302 GAS!$GAS$ac_delim
36303 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36304 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36305 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36306 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36307 LIBADD_DL!$LIBADD_DL$ac_delim
36308 ECHO!$ECHO$ac_delim
36309 AR!$AR$ac_delim
36310 STRIP!$STRIP$ac_delim
36311 CXXCPP!$CXXCPP$ac_delim
36312 F77!$F77$ac_delim
36313 FFLAGS!$FFLAGS$ac_delim
36314 ac_ct_F77!$ac_ct_F77$ac_delim
36315 LIBTOOL!$LIBTOOL$ac_delim
36316 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36317 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36318 LLVMGCC!$LLVMGCC$ac_delim
36319 LLVMGXX!$LLVMGXX$ac_delim
36320 USE_UDIS86!$USE_UDIS86$ac_delim
36321 USE_OPROFILE!$USE_OPROFILE$ac_delim
36322 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36323 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36324 ALLOCA!$ALLOCA$ac_delim
36325 MMAP_FILE!$MMAP_FILE$ac_delim
36326 LLVMCC1!$LLVMCC1$ac_delim
36327 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36328 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36329 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36330 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36331 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36332 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36333 SHLIBEXT!$SHLIBEXT$ac_delim
36334 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36335 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36336 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36337 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36338 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36339 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36340 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36341 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36342 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36343 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36344 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36345 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36346 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36347 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36348 RPATH!$RPATH$ac_delim
36349 RDYNAMIC!$RDYNAMIC$ac_delim
36350 LIBOBJS!$LIBOBJS$ac_delim
36351 LTLIBOBJS!$LTLIBOBJS$ac_delim
36352 _ACEOF
36353
36354   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
36355     break
36356   elif $ac_last_try; then
36357     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36358 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36359    { (exit 1); exit 1; }; }
36360   else
36361     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36362   fi
36363 done
36364
36365 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36366 if test -n "$ac_eof"; then
36367   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36368   ac_eof=`expr $ac_eof + 1`
36369 fi
36370
36371 cat >>$CONFIG_STATUS <<_ACEOF
36372 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36373 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36374 _ACEOF
36375 sed '
36376 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36377 s/^/s,@/; s/!/@,|#_!!_#|/
36378 :n
36379 t n
36380 s/'"$ac_delim"'$/,g/; t
36381 s/$/\\/; p
36382 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36383 ' >>$CONFIG_STATUS <conf$$subs.sed
36384 rm -f conf$$subs.sed
36385 cat >>$CONFIG_STATUS <<_ACEOF
36386 :end
36387 s/|#_!!_#|//g
36388 CEOF$ac_eof
36389 _ACEOF
36390
36391
36392 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36393 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36394 # trailing colons and then remove the whole line if VPATH becomes empty
36395 # (actually we leave an empty line to preserve line numbers).
36396 if test "x$srcdir" = x.; then
36397   ac_vpsub='/^[  ]*VPATH[        ]*=/{
36398 s/:*\$(srcdir):*/:/
36399 s/:*\${srcdir}:*/:/
36400 s/:*@srcdir@:*/:/
36401 s/^\([^=]*=[     ]*\):*/\1/
36402 s/:*$//
36403 s/^[^=]*=[       ]*$//
36404 }'
36405 fi
36406
36407 cat >>$CONFIG_STATUS <<\_ACEOF
36408 fi # test -n "$CONFIG_FILES"
36409
36410
36411 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
36412 do
36413   case $ac_tag in
36414   :[FHLC]) ac_mode=$ac_tag; continue;;
36415   esac
36416   case $ac_mode$ac_tag in
36417   :[FHL]*:*);;
36418   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36419 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36420    { (exit 1); exit 1; }; };;
36421   :[FH]-) ac_tag=-:-;;
36422   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36423   esac
36424   ac_save_IFS=$IFS
36425   IFS=:
36426   set x $ac_tag
36427   IFS=$ac_save_IFS
36428   shift
36429   ac_file=$1
36430   shift
36431
36432   case $ac_mode in
36433   :L) ac_source=$1;;
36434   :[FH])
36435     ac_file_inputs=
36436     for ac_f
36437     do
36438       case $ac_f in
36439       -) ac_f="$tmp/stdin";;
36440       *) # Look for the file first in the build tree, then in the source tree
36441          # (if the path is not absolute).  The absolute path cannot be DOS-style,
36442          # because $ac_f cannot contain `:'.
36443          test -f "$ac_f" ||
36444            case $ac_f in
36445            [\\/$]*) false;;
36446            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36447            esac ||
36448            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36449 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36450    { (exit 1); exit 1; }; };;
36451       esac
36452       ac_file_inputs="$ac_file_inputs $ac_f"
36453     done
36454
36455     # Let's still pretend it is `configure' which instantiates (i.e., don't
36456     # use $as_me), people would be surprised to read:
36457     #    /* config.h.  Generated by config.status.  */
36458     configure_input="Generated from "`IFS=:
36459           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36460     if test x"$ac_file" != x-; then
36461       configure_input="$ac_file.  $configure_input"
36462       { echo "$as_me:$LINENO: creating $ac_file" >&5
36463 echo "$as_me: creating $ac_file" >&6;}
36464     fi
36465
36466     case $ac_tag in
36467     *:-:* | *:-) cat >"$tmp/stdin";;
36468     esac
36469     ;;
36470   esac
36471
36472   ac_dir=`$as_dirname -- "$ac_file" ||
36473 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36474          X"$ac_file" : 'X\(//\)[^/]' \| \
36475          X"$ac_file" : 'X\(//\)$' \| \
36476          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36477 echo X"$ac_file" |
36478     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36479             s//\1/
36480             q
36481           }
36482           /^X\(\/\/\)[^/].*/{
36483             s//\1/
36484             q
36485           }
36486           /^X\(\/\/\)$/{
36487             s//\1/
36488             q
36489           }
36490           /^X\(\/\).*/{
36491             s//\1/
36492             q
36493           }
36494           s/.*/./; q'`
36495   { as_dir="$ac_dir"
36496   case $as_dir in #(
36497   -*) as_dir=./$as_dir;;
36498   esac
36499   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36500     as_dirs=
36501     while :; do
36502       case $as_dir in #(
36503       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36504       *) as_qdir=$as_dir;;
36505       esac
36506       as_dirs="'$as_qdir' $as_dirs"
36507       as_dir=`$as_dirname -- "$as_dir" ||
36508 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36509          X"$as_dir" : 'X\(//\)[^/]' \| \
36510          X"$as_dir" : 'X\(//\)$' \| \
36511          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36512 echo X"$as_dir" |
36513     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36514             s//\1/
36515             q
36516           }
36517           /^X\(\/\/\)[^/].*/{
36518             s//\1/
36519             q
36520           }
36521           /^X\(\/\/\)$/{
36522             s//\1/
36523             q
36524           }
36525           /^X\(\/\).*/{
36526             s//\1/
36527             q
36528           }
36529           s/.*/./; q'`
36530       test -d "$as_dir" && break
36531     done
36532     test -z "$as_dirs" || eval "mkdir $as_dirs"
36533   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36534 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36535    { (exit 1); exit 1; }; }; }
36536   ac_builddir=.
36537
36538 case "$ac_dir" in
36539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36540 *)
36541   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36542   # A ".." for each directory in $ac_dir_suffix.
36543   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36544   case $ac_top_builddir_sub in
36545   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36546   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36547   esac ;;
36548 esac
36549 ac_abs_top_builddir=$ac_pwd
36550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36551 # for backward compatibility:
36552 ac_top_builddir=$ac_top_build_prefix
36553
36554 case $srcdir in
36555   .)  # We are building in place.
36556     ac_srcdir=.
36557     ac_top_srcdir=$ac_top_builddir_sub
36558     ac_abs_top_srcdir=$ac_pwd ;;
36559   [\\/]* | ?:[\\/]* )  # Absolute name.
36560     ac_srcdir=$srcdir$ac_dir_suffix;
36561     ac_top_srcdir=$srcdir
36562     ac_abs_top_srcdir=$srcdir ;;
36563   *) # Relative name.
36564     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36565     ac_top_srcdir=$ac_top_build_prefix$srcdir
36566     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36567 esac
36568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36569
36570
36571   case $ac_mode in
36572   :F)
36573   #
36574   # CONFIG_FILE
36575   #
36576
36577   case $INSTALL in
36578   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36579   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36580   esac
36581 _ACEOF
36582
36583 cat >>$CONFIG_STATUS <<\_ACEOF
36584 # If the template does not know about datarootdir, expand it.
36585 # FIXME: This hack should be removed a few years after 2.60.
36586 ac_datarootdir_hack=; ac_datarootdir_seen=
36587
36588 case `sed -n '/datarootdir/ {
36589   p
36590   q
36591 }
36592 /@datadir@/p
36593 /@docdir@/p
36594 /@infodir@/p
36595 /@localedir@/p
36596 /@mandir@/p
36597 ' $ac_file_inputs` in
36598 *datarootdir*) ac_datarootdir_seen=yes;;
36599 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36600   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36601 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36602 _ACEOF
36603 cat >>$CONFIG_STATUS <<_ACEOF
36604   ac_datarootdir_hack='
36605   s&@datadir@&$datadir&g
36606   s&@docdir@&$docdir&g
36607   s&@infodir@&$infodir&g
36608   s&@localedir@&$localedir&g
36609   s&@mandir@&$mandir&g
36610     s&\\\${datarootdir}&$datarootdir&g' ;;
36611 esac
36612 _ACEOF
36613
36614 # Neutralize VPATH when `$srcdir' = `.'.
36615 # Shell code in configure.ac might set extrasub.
36616 # FIXME: do we really want to maintain this feature?
36617 cat >>$CONFIG_STATUS <<_ACEOF
36618   sed "$ac_vpsub
36619 $extrasub
36620 _ACEOF
36621 cat >>$CONFIG_STATUS <<\_ACEOF
36622 :t
36623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36624 s&@configure_input@&$configure_input&;t t
36625 s&@top_builddir@&$ac_top_builddir_sub&;t t
36626 s&@srcdir@&$ac_srcdir&;t t
36627 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36628 s&@top_srcdir@&$ac_top_srcdir&;t t
36629 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36630 s&@builddir@&$ac_builddir&;t t
36631 s&@abs_builddir@&$ac_abs_builddir&;t t
36632 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36633 s&@INSTALL@&$ac_INSTALL&;t t
36634 $ac_datarootdir_hack
36635 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36636
36637 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36638   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36639   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36640   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36641 which seems to be undefined.  Please make sure it is defined." >&5
36642 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36643 which seems to be undefined.  Please make sure it is defined." >&2;}
36644
36645   rm -f "$tmp/stdin"
36646   case $ac_file in
36647   -) cat "$tmp/out"; rm -f "$tmp/out";;
36648   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36649   esac
36650  ;;
36651   :H)
36652   #
36653   # CONFIG_HEADER
36654   #
36655 _ACEOF
36656
36657 # Transform confdefs.h into a sed script `conftest.defines', that
36658 # substitutes the proper values into config.h.in to produce config.h.
36659 rm -f conftest.defines conftest.tail
36660 # First, append a space to every undef/define line, to ease matching.
36661 echo 's/$/ /' >conftest.defines
36662 # Then, protect against being on the right side of a sed subst, or in
36663 # an unquoted here document, in config.status.  If some macros were
36664 # called several times there might be several #defines for the same
36665 # symbol, which is useless.  But do not sort them, since the last
36666 # AC_DEFINE must be honored.
36667 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36668 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36669 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36670 # PARAMS is the parameter list in the macro definition--in most cases, it's
36671 # just an empty string.
36672 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
36673 ac_dB='\\)[      (].*,\\1define\\2'
36674 ac_dC=' '
36675 ac_dD=' ,'
36676
36677 uniq confdefs.h |
36678   sed -n '
36679         t rset
36680         :rset
36681         s/^[     ]*#[    ]*define[       ][      ]*//
36682         t ok
36683         d
36684         :ok
36685         s/[\\&,]/\\&/g
36686         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36687         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36688   ' >>conftest.defines
36689
36690 # Remove the space that was appended to ease matching.
36691 # Then replace #undef with comments.  This is necessary, for
36692 # example, in the case of _POSIX_SOURCE, which is predefined and required
36693 # on some systems where configure will not decide to define it.
36694 # (The regexp can be short, since the line contains either #define or #undef.)
36695 echo 's/ $//
36696 s,^[     #]*u.*,/* & */,' >>conftest.defines
36697
36698 # Break up conftest.defines:
36699 ac_max_sed_lines=50
36700
36701 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36702 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36703 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36704 # et cetera.
36705 ac_in='$ac_file_inputs'
36706 ac_out='"$tmp/out1"'
36707 ac_nxt='"$tmp/out2"'
36708
36709 while :
36710 do
36711   # Write a here document:
36712     cat >>$CONFIG_STATUS <<_ACEOF
36713     # First, check the format of the line:
36714     cat >"\$tmp/defines.sed" <<\\CEOF
36715 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
36716 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
36717 b
36718 :def
36719 _ACEOF
36720   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36721   echo 'CEOF
36722     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36723   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36724   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36725   grep . conftest.tail >/dev/null || break
36726   rm -f conftest.defines
36727   mv conftest.tail conftest.defines
36728 done
36729 rm -f conftest.defines conftest.tail
36730
36731 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36732 cat >>$CONFIG_STATUS <<\_ACEOF
36733   if test x"$ac_file" != x-; then
36734     echo "/* $configure_input  */" >"$tmp/config.h"
36735     cat "$ac_result" >>"$tmp/config.h"
36736     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36737       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36738 echo "$as_me: $ac_file is unchanged" >&6;}
36739     else
36740       rm -f $ac_file
36741       mv "$tmp/config.h" $ac_file
36742     fi
36743   else
36744     echo "/* $configure_input  */"
36745     cat "$ac_result"
36746   fi
36747   rm -f "$tmp/out12"
36748  ;;
36749
36750   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36751 echo "$as_me: executing $ac_file commands" >&6;}
36752  ;;
36753   esac
36754
36755
36756   case $ac_file$ac_mode in
36757     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36758    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36759     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36760    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36761     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36762    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36763     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36764    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36765     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36766    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36767     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36768    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36769     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36770    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36771     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36772    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36773     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36774    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36775     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36776    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36777     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36778    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36779     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36780    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36781     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36782    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36783
36784   esac
36785 done # for ac_tag
36786
36787
36788 { (exit 0); exit 0; }
36789 _ACEOF
36790 chmod +x $CONFIG_STATUS
36791 ac_clean_files=$ac_clean_files_save
36792
36793
36794 # configure is writing to config.log, and then calls config.status.
36795 # config.status does its own redirection, appending to config.log.
36796 # Unfortunately, on DOS this fails, as config.log is still kept open
36797 # by configure, so config.status won't be able to write to it; its
36798 # output is simply discarded.  So we exec the FD to /dev/null,
36799 # effectively closing config.log, so it can be properly (re)opened and
36800 # appended to by config.status.  When coming back to configure, we
36801 # need to make the FD available again.
36802 if test "$no_create" != yes; then
36803   ac_cs_success=:
36804   ac_config_status_args=
36805   test "$silent" = yes &&
36806     ac_config_status_args="$ac_config_status_args --quiet"
36807   exec 5>/dev/null
36808   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36809   exec 5>>config.log
36810   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36811   # would make configure fail if this is the last instruction.
36812   $ac_cs_success || { (exit 1); exit 1; }
36813 fi
36814
36815 #
36816 # CONFIG_SUBDIRS section.
36817 #
36818 if test "$no_recursion" != yes; then
36819
36820   # Remove --cache-file and --srcdir arguments so they do not pile up.
36821   ac_sub_configure_args=
36822   ac_prev=
36823   eval "set x $ac_configure_args"
36824   shift
36825   for ac_arg
36826   do
36827     if test -n "$ac_prev"; then
36828       ac_prev=
36829       continue
36830     fi
36831     case $ac_arg in
36832     -cache-file | --cache-file | --cache-fil | --cache-fi \
36833     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36834       ac_prev=cache_file ;;
36835     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36836     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36837     | --c=*)
36838       ;;
36839     --config-cache | -C)
36840       ;;
36841     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36842       ac_prev=srcdir ;;
36843     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36844       ;;
36845     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36846       ac_prev=prefix ;;
36847     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36848       ;;
36849     *)
36850       case $ac_arg in
36851       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36852       esac
36853       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36854     esac
36855   done
36856
36857   # Always prepend --prefix to ensure using the same prefix
36858   # in subdir configurations.
36859   ac_arg="--prefix=$prefix"
36860   case $ac_arg in
36861   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36862   esac
36863   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36864
36865   ac_popdir=`pwd`
36866   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36867
36868     # Do not complain, so a configure script can configure whichever
36869     # parts of a large source tree are present.
36870     test -d "$srcdir/$ac_dir" || continue
36871
36872     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36873     echo "$as_me:$LINENO: $ac_msg" >&5
36874     echo "$ac_msg" >&6
36875     { as_dir="$ac_dir"
36876   case $as_dir in #(
36877   -*) as_dir=./$as_dir;;
36878   esac
36879   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36880     as_dirs=
36881     while :; do
36882       case $as_dir in #(
36883       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36884       *) as_qdir=$as_dir;;
36885       esac
36886       as_dirs="'$as_qdir' $as_dirs"
36887       as_dir=`$as_dirname -- "$as_dir" ||
36888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36889          X"$as_dir" : 'X\(//\)[^/]' \| \
36890          X"$as_dir" : 'X\(//\)$' \| \
36891          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36892 echo X"$as_dir" |
36893     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36894             s//\1/
36895             q
36896           }
36897           /^X\(\/\/\)[^/].*/{
36898             s//\1/
36899             q
36900           }
36901           /^X\(\/\/\)$/{
36902             s//\1/
36903             q
36904           }
36905           /^X\(\/\).*/{
36906             s//\1/
36907             q
36908           }
36909           s/.*/./; q'`
36910       test -d "$as_dir" && break
36911     done
36912     test -z "$as_dirs" || eval "mkdir $as_dirs"
36913   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36914 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36915    { (exit 1); exit 1; }; }; }
36916     ac_builddir=.
36917
36918 case "$ac_dir" in
36919 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36920 *)
36921   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36922   # A ".." for each directory in $ac_dir_suffix.
36923   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36924   case $ac_top_builddir_sub in
36925   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36926   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36927   esac ;;
36928 esac
36929 ac_abs_top_builddir=$ac_pwd
36930 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36931 # for backward compatibility:
36932 ac_top_builddir=$ac_top_build_prefix
36933
36934 case $srcdir in
36935   .)  # We are building in place.
36936     ac_srcdir=.
36937     ac_top_srcdir=$ac_top_builddir_sub
36938     ac_abs_top_srcdir=$ac_pwd ;;
36939   [\\/]* | ?:[\\/]* )  # Absolute name.
36940     ac_srcdir=$srcdir$ac_dir_suffix;
36941     ac_top_srcdir=$srcdir
36942     ac_abs_top_srcdir=$srcdir ;;
36943   *) # Relative name.
36944     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36945     ac_top_srcdir=$ac_top_build_prefix$srcdir
36946     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36947 esac
36948 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36949
36950
36951     cd "$ac_dir"
36952
36953     # Check for guested configure; otherwise get Cygnus style configure.
36954     if test -f "$ac_srcdir/configure.gnu"; then
36955       ac_sub_configure=$ac_srcdir/configure.gnu
36956     elif test -f "$ac_srcdir/configure"; then
36957       ac_sub_configure=$ac_srcdir/configure
36958     elif test -f "$ac_srcdir/configure.in"; then
36959       # This should be Cygnus configure.
36960       ac_sub_configure=$ac_aux_dir/configure
36961     else
36962       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36963 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36964       ac_sub_configure=
36965     fi
36966
36967     # The recursion is here.
36968     if test -n "$ac_sub_configure"; then
36969       # Make the cache file name correct relative to the subdirectory.
36970       case $cache_file in
36971       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36972       *) # Relative name.
36973         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36974       esac
36975
36976       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36977 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36978       # The eval makes quoting arguments work.
36979       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36980            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36981         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36982 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36983    { (exit 1); exit 1; }; }
36984     fi
36985
36986     cd "$ac_popdir"
36987   done
36988 fi
36989