Regenerate configure for rev. 83823 putback.
[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 ARCH
818 ENDIAN
819 CC
820 CFLAGS
821 LDFLAGS
822 CPPFLAGS
823 ac_ct_CC
824 EXEEXT
825 OBJEXT
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   *-*-haiku*)
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="Haiku"
2355     llvm_cv_platform_type="Unix" ;;
2356   *-unknown-eabi*)
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   *-unknown-elf*)
2362     llvm_cv_link_all_option="-Wl,--whole-archive"
2363     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2364     llvm_cv_os_type="Freestanding"
2365     llvm_cv_platform_type="Unix" ;;
2366   *)
2367     llvm_cv_link_all_option=""
2368     llvm_cv_no_link_all_option=""
2369     llvm_cv_os_type="Unknown"
2370     llvm_cv_platform_type="Unknown" ;;
2371 esac
2372 fi
2373 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2374 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2375
2376 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2377 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2378 if test "${llvm_cv_target_os_type+set}" = set; then
2379   echo $ECHO_N "(cached) $ECHO_C" >&6
2380 else
2381   case $target in
2382   *-*-aix*)
2383     llvm_cv_target_os_type="AIX" ;;
2384   *-*-irix*)
2385     llvm_cv_target_os_type="IRIX" ;;
2386   *-*-cygwin*)
2387     llvm_cv_target_os_type="Cygwin" ;;
2388   *-*-darwin*)
2389     llvm_cv_target_os_type="Darwin" ;;
2390   *-*-freebsd*)
2391     llvm_cv_target_os_type="FreeBSD" ;;
2392   *-*-openbsd*)
2393     llvm_cv_target_os_type="OpenBSD" ;;
2394   *-*-netbsd*)
2395     llvm_cv_target_os_type="NetBSD" ;;
2396   *-*-dragonfly*)
2397     llvm_cv_target_os_type="DragonFly" ;;
2398   *-*-hpux*)
2399     llvm_cv_target_os_type="HP-UX" ;;
2400   *-*-interix*)
2401     llvm_cv_target_os_type="Interix" ;;
2402   *-*-linux*)
2403     llvm_cv_target_os_type="Linux" ;;
2404   *-*-solaris*)
2405     llvm_cv_target_os_type="SunOS" ;;
2406   *-*-win32*)
2407     llvm_cv_target_os_type="Win32" ;;
2408   *-*-mingw*)
2409     llvm_cv_target_os_type="MingW" ;;
2410   *-*-haiku*)
2411     llvm_cv_target_os_type="Haiku" ;;
2412   *-unknown-eabi*)
2413     llvm_cv_target_os_type="Freestanding" ;;
2414   *)
2415     llvm_cv_target_os_type="Unknown" ;;
2416 esac
2417 fi
2418 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2419 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2420
2421 if test "$llvm_cv_os_type" = "Unknown" ; then
2422   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2423 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2424    { (exit 1); exit 1; }; }
2425 fi
2426
2427 OS=$llvm_cv_os_type
2428
2429 HOST_OS=$llvm_cv_os_type
2430
2431 TARGET_OS=$llvm_cv_target_os_type
2432
2433
2434 LINKALL=$llvm_cv_link_all_option
2435
2436 NOLINKALL=$llvm_cv_no_link_all_option
2437
2438
2439 case $llvm_cv_platform_type in
2440   Unix)
2441
2442 cat >>confdefs.h <<\_ACEOF
2443 #define LLVM_ON_UNIX 1
2444 _ACEOF
2445
2446     LLVM_ON_UNIX=1
2447
2448     LLVM_ON_WIN32=0
2449
2450     ;;
2451   Win32)
2452
2453 cat >>confdefs.h <<\_ACEOF
2454 #define LLVM_ON_WIN32 1
2455 _ACEOF
2456
2457     LLVM_ON_UNIX=0
2458
2459     LLVM_ON_WIN32=1
2460
2461     ;;
2462 esac
2463
2464 { echo "$as_me:$LINENO: checking target architecture" >&5
2465 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2466 if test "${llvm_cv_target_arch+set}" = set; then
2467   echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469   case $target in
2470   i?86-*)                 llvm_cv_target_arch="x86" ;;
2471   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2472   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2473   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2474   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2475   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2476   mips-*)                 llvm_cv_target_arch="Mips" ;;
2477   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2478   xcore-*)                llvm_cv_target_arch="XCore" ;;
2479   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2480   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2481   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2482   *)                      llvm_cv_target_arch="Unknown" ;;
2483 esac
2484 fi
2485 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2486 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2487
2488 if test "$llvm_cv_target_arch" = "Unknown" ; then
2489   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2490 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2491 fi
2492
2493 # Determine the LLVM native architecture for the target
2494 case "$llvm_cv_target_arch" in
2495     x86)     LLVM_NATIVE_ARCH="X86" ;;
2496     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2497     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2498 esac
2499
2500 ARCH=$llvm_cv_target_arch
2501
2502
2503 ac_ext=c
2504 ac_cpp='$CPP $CPPFLAGS'
2505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2508 if test -n "$ac_tool_prefix"; then
2509   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2510 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2513 if test "${ac_cv_prog_CC+set}" = set; then
2514   echo $ECHO_N "(cached) $ECHO_C" >&6
2515 else
2516   if test -n "$CC"; then
2517   ac_cv_prog_CC="$CC" # Let the user override the test.
2518 else
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 for as_dir in $PATH
2521 do
2522   IFS=$as_save_IFS
2523   test -z "$as_dir" && as_dir=.
2524   for ac_exec_ext in '' $ac_executable_extensions; do
2525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2526     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2528     break 2
2529   fi
2530 done
2531 done
2532 IFS=$as_save_IFS
2533
2534 fi
2535 fi
2536 CC=$ac_cv_prog_CC
2537 if test -n "$CC"; then
2538   { echo "$as_me:$LINENO: result: $CC" >&5
2539 echo "${ECHO_T}$CC" >&6; }
2540 else
2541   { echo "$as_me:$LINENO: result: no" >&5
2542 echo "${ECHO_T}no" >&6; }
2543 fi
2544
2545
2546 fi
2547 if test -z "$ac_cv_prog_CC"; then
2548   ac_ct_CC=$CC
2549   # Extract the first word of "gcc", so it can be a program name with args.
2550 set dummy gcc; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2554   echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556   if test -n "$ac_ct_CC"; then
2557   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562   IFS=$as_save_IFS
2563   test -z "$as_dir" && as_dir=.
2564   for ac_exec_ext in '' $ac_executable_extensions; do
2565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2566     ac_cv_prog_ac_ct_CC="gcc"
2567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568     break 2
2569   fi
2570 done
2571 done
2572 IFS=$as_save_IFS
2573
2574 fi
2575 fi
2576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2577 if test -n "$ac_ct_CC"; then
2578   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2579 echo "${ECHO_T}$ac_ct_CC" >&6; }
2580 else
2581   { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2583 fi
2584
2585   if test "x$ac_ct_CC" = x; then
2586     CC=""
2587   else
2588     case $cross_compiling:$ac_tool_warned in
2589 yes:)
2590 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2591 whose name does not start with the host triplet.  If you think this
2592 configuration is useful to you, please write to autoconf@gnu.org." >&5
2593 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2594 whose name does not start with the host triplet.  If you think this
2595 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2596 ac_tool_warned=yes ;;
2597 esac
2598     CC=$ac_ct_CC
2599   fi
2600 else
2601   CC="$ac_cv_prog_CC"
2602 fi
2603
2604 if test -z "$CC"; then
2605           if test -n "$ac_tool_prefix"; then
2606     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2607 set dummy ${ac_tool_prefix}cc; ac_word=$2
2608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2610 if test "${ac_cv_prog_CC+set}" = set; then
2611   echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613   if test -n "$CC"; then
2614   ac_cv_prog_CC="$CC" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619   IFS=$as_save_IFS
2620   test -z "$as_dir" && as_dir=.
2621   for ac_exec_ext in '' $ac_executable_extensions; do
2622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2623     ac_cv_prog_CC="${ac_tool_prefix}cc"
2624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625     break 2
2626   fi
2627 done
2628 done
2629 IFS=$as_save_IFS
2630
2631 fi
2632 fi
2633 CC=$ac_cv_prog_CC
2634 if test -n "$CC"; then
2635   { echo "$as_me:$LINENO: result: $CC" >&5
2636 echo "${ECHO_T}$CC" >&6; }
2637 else
2638   { echo "$as_me:$LINENO: result: no" >&5
2639 echo "${ECHO_T}no" >&6; }
2640 fi
2641
2642
2643   fi
2644 fi
2645 if test -z "$CC"; then
2646   # Extract the first word of "cc", so it can be a program name with args.
2647 set dummy cc; ac_word=$2
2648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2650 if test "${ac_cv_prog_CC+set}" = set; then
2651   echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653   if test -n "$CC"; then
2654   ac_cv_prog_CC="$CC" # Let the user override the test.
2655 else
2656   ac_prog_rejected=no
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660   IFS=$as_save_IFS
2661   test -z "$as_dir" && as_dir=.
2662   for ac_exec_ext in '' $ac_executable_extensions; do
2663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2664     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2665        ac_prog_rejected=yes
2666        continue
2667      fi
2668     ac_cv_prog_CC="cc"
2669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670     break 2
2671   fi
2672 done
2673 done
2674 IFS=$as_save_IFS
2675
2676 if test $ac_prog_rejected = yes; then
2677   # We found a bogon in the path, so make sure we never use it.
2678   set dummy $ac_cv_prog_CC
2679   shift
2680   if test $# != 0; then
2681     # We chose a different compiler from the bogus one.
2682     # However, it has the same basename, so the bogon will be chosen
2683     # first if we set CC to just the basename; use the full file name.
2684     shift
2685     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2686   fi
2687 fi
2688 fi
2689 fi
2690 CC=$ac_cv_prog_CC
2691 if test -n "$CC"; then
2692   { echo "$as_me:$LINENO: result: $CC" >&5
2693 echo "${ECHO_T}$CC" >&6; }
2694 else
2695   { echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6; }
2697 fi
2698
2699
2700 fi
2701 if test -z "$CC"; then
2702   if test -n "$ac_tool_prefix"; then
2703   for ac_prog in cl.exe
2704   do
2705     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2709 if test "${ac_cv_prog_CC+set}" = set; then
2710   echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712   if test -n "$CC"; then
2713   ac_cv_prog_CC="$CC" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718   IFS=$as_save_IFS
2719   test -z "$as_dir" && as_dir=.
2720   for ac_exec_ext in '' $ac_executable_extensions; do
2721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2722     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724     break 2
2725   fi
2726 done
2727 done
2728 IFS=$as_save_IFS
2729
2730 fi
2731 fi
2732 CC=$ac_cv_prog_CC
2733 if test -n "$CC"; then
2734   { echo "$as_me:$LINENO: result: $CC" >&5
2735 echo "${ECHO_T}$CC" >&6; }
2736 else
2737   { echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6; }
2739 fi
2740
2741
2742     test -n "$CC" && break
2743   done
2744 fi
2745 if test -z "$CC"; then
2746   ac_ct_CC=$CC
2747   for ac_prog in cl.exe
2748 do
2749   # Extract the first word of "$ac_prog", so it can be a program name with args.
2750 set dummy $ac_prog; ac_word=$2
2751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2754   echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756   if test -n "$ac_ct_CC"; then
2757   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762   IFS=$as_save_IFS
2763   test -z "$as_dir" && as_dir=.
2764   for ac_exec_ext in '' $ac_executable_extensions; do
2765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2766     ac_cv_prog_ac_ct_CC="$ac_prog"
2767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768     break 2
2769   fi
2770 done
2771 done
2772 IFS=$as_save_IFS
2773
2774 fi
2775 fi
2776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2777 if test -n "$ac_ct_CC"; then
2778   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2779 echo "${ECHO_T}$ac_ct_CC" >&6; }
2780 else
2781   { echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6; }
2783 fi
2784
2785
2786   test -n "$ac_ct_CC" && break
2787 done
2788
2789   if test "x$ac_ct_CC" = x; then
2790     CC=""
2791   else
2792     case $cross_compiling:$ac_tool_warned in
2793 yes:)
2794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2795 whose name does not start with the host triplet.  If you think this
2796 configuration is useful to you, please write to autoconf@gnu.org." >&5
2797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2798 whose name does not start with the host triplet.  If you think this
2799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2800 ac_tool_warned=yes ;;
2801 esac
2802     CC=$ac_ct_CC
2803   fi
2804 fi
2805
2806 fi
2807
2808
2809 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2810 See \`config.log' for more details." >&5
2811 echo "$as_me: error: no acceptable C compiler found in \$PATH
2812 See \`config.log' for more details." >&2;}
2813    { (exit 1); exit 1; }; }
2814
2815 # Provide some information about the compiler.
2816 echo "$as_me:$LINENO: checking for C compiler version" >&5
2817 ac_compiler=`set X $ac_compile; echo $2`
2818 { (ac_try="$ac_compiler --version >&5"
2819 case "(($ac_try" in
2820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821   *) ac_try_echo=$ac_try;;
2822 esac
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824   (eval "$ac_compiler --version >&5") 2>&5
2825   ac_status=$?
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); }
2828 { (ac_try="$ac_compiler -v >&5"
2829 case "(($ac_try" in
2830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831   *) ac_try_echo=$ac_try;;
2832 esac
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834   (eval "$ac_compiler -v >&5") 2>&5
2835   ac_status=$?
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); }
2838 { (ac_try="$ac_compiler -V >&5"
2839 case "(($ac_try" in
2840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841   *) ac_try_echo=$ac_try;;
2842 esac
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844   (eval "$ac_compiler -V >&5") 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); }
2848
2849 cat >conftest.$ac_ext <<_ACEOF
2850 /* confdefs.h.  */
2851 _ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h.  */
2855
2856 int
2857 main ()
2858 {
2859
2860   ;
2861   return 0;
2862 }
2863 _ACEOF
2864 ac_clean_files_save=$ac_clean_files
2865 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2866 # Try to create an executable without -o first, disregard a.out.
2867 # It will help us diagnose broken compilers, and finding out an intuition
2868 # of exeext.
2869 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2870 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2871 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2872 #
2873 # List of possible output files, starting from the most likely.
2874 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2875 # only as a last resort.  b.out is created by i960 compilers.
2876 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2877 #
2878 # The IRIX 6 linker writes into existing files which may not be
2879 # executable, retaining their permissions.  Remove them first so a
2880 # subsequent execution test works.
2881 ac_rmfiles=
2882 for ac_file in $ac_files
2883 do
2884   case $ac_file in
2885     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2886     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2887   esac
2888 done
2889 rm -f $ac_rmfiles
2890
2891 if { (ac_try="$ac_link_default"
2892 case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897   (eval "$ac_link_default") 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }; then
2901   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2902 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2903 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2904 # so that the user can short-circuit this test for compilers unknown to
2905 # Autoconf.
2906 for ac_file in $ac_files
2907 do
2908   test -f "$ac_file" || continue
2909   case $ac_file in
2910     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2911         ;;
2912     [ab].out )
2913         # We found the default executable, but exeext='' is most
2914         # certainly right.
2915         break;;
2916     *.* )
2917         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2918         then :; else
2919            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2920         fi
2921         # We set ac_cv_exeext here because the later test for it is not
2922         # safe: cross compilers may not add the suffix if given an `-o'
2923         # argument, so we may need to know it at that point already.
2924         # Even if this section looks crufty: it has the advantage of
2925         # actually working.
2926         break;;
2927     * )
2928         break;;
2929   esac
2930 done
2931 test "$ac_cv_exeext" = no && ac_cv_exeext=
2932
2933 else
2934   echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2936
2937 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2938 See \`config.log' for more details." >&5
2939 echo "$as_me: error: C compiler cannot create executables
2940 See \`config.log' for more details." >&2;}
2941    { (exit 77); exit 77; }; }
2942 fi
2943
2944 ac_exeext=$ac_cv_exeext
2945 { echo "$as_me:$LINENO: result: $ac_file" >&5
2946 echo "${ECHO_T}$ac_file" >&6; }
2947
2948 # Check that the compiler produces executables we can run.  If not, either
2949 # the compiler is broken, or we cross compile.
2950 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2951 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2952 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2953 # If not cross compiling, check that we can run a simple program.
2954 if test "$cross_compiling" != yes; then
2955   if { ac_try='./$ac_file'
2956   { (case "(($ac_try" in
2957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958   *) ac_try_echo=$ac_try;;
2959 esac
2960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961   (eval "$ac_try") 2>&5
2962   ac_status=$?
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); }; }; then
2965     cross_compiling=no
2966   else
2967     if test "$cross_compiling" = maybe; then
2968         cross_compiling=yes
2969     else
2970         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2971 If you meant to cross compile, use \`--host'.
2972 See \`config.log' for more details." >&5
2973 echo "$as_me: error: cannot run C compiled programs.
2974 If you meant to cross compile, use \`--host'.
2975 See \`config.log' for more details." >&2;}
2976    { (exit 1); exit 1; }; }
2977     fi
2978   fi
2979 fi
2980 { echo "$as_me:$LINENO: result: yes" >&5
2981 echo "${ECHO_T}yes" >&6; }
2982
2983 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2984 ac_clean_files=$ac_clean_files_save
2985 # Check that the compiler produces executables we can run.  If not, either
2986 # the compiler is broken, or we cross compile.
2987 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2988 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2989 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2990 echo "${ECHO_T}$cross_compiling" >&6; }
2991
2992 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2993 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2994 if { (ac_try="$ac_link"
2995 case "(($ac_try" in
2996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997   *) ac_try_echo=$ac_try;;
2998 esac
2999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000   (eval "$ac_link") 2>&5
3001   ac_status=$?
3002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003   (exit $ac_status); }; then
3004   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3005 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3006 # work properly (i.e., refer to `conftest.exe'), while it won't with
3007 # `rm'.
3008 for ac_file in conftest.exe conftest conftest.*; do
3009   test -f "$ac_file" || continue
3010   case $ac_file in
3011     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3012     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3013           break;;
3014     * ) break;;
3015   esac
3016 done
3017 else
3018   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3019 See \`config.log' for more details." >&5
3020 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3021 See \`config.log' for more details." >&2;}
3022    { (exit 1); exit 1; }; }
3023 fi
3024
3025 rm -f conftest$ac_cv_exeext
3026 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3027 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3028
3029 rm -f conftest.$ac_ext
3030 EXEEXT=$ac_cv_exeext
3031 ac_exeext=$EXEEXT
3032 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3033 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3034 if test "${ac_cv_objext+set}" = set; then
3035   echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037   cat >conftest.$ac_ext <<_ACEOF
3038 /* confdefs.h.  */
3039 _ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h.  */
3043
3044 int
3045 main ()
3046 {
3047
3048   ;
3049   return 0;
3050 }
3051 _ACEOF
3052 rm -f conftest.o conftest.obj
3053 if { (ac_try="$ac_compile"
3054 case "(($ac_try" in
3055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056   *) ac_try_echo=$ac_try;;
3057 esac
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059   (eval "$ac_compile") 2>&5
3060   ac_status=$?
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); }; then
3063   for ac_file in conftest.o conftest.obj conftest.*; do
3064   test -f "$ac_file" || continue;
3065   case $ac_file in
3066     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3067     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3068        break;;
3069   esac
3070 done
3071 else
3072   echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3074
3075 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3076 See \`config.log' for more details." >&5
3077 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3078 See \`config.log' for more details." >&2;}
3079    { (exit 1); exit 1; }; }
3080 fi
3081
3082 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3083 fi
3084 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3085 echo "${ECHO_T}$ac_cv_objext" >&6; }
3086 OBJEXT=$ac_cv_objext
3087 ac_objext=$OBJEXT
3088 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3089 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3090 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3091   echo $ECHO_N "(cached) $ECHO_C" >&6
3092 else
3093   cat >conftest.$ac_ext <<_ACEOF
3094 /* confdefs.h.  */
3095 _ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h.  */
3099
3100 int
3101 main ()
3102 {
3103 #ifndef __GNUC__
3104        choke me
3105 #endif
3106
3107   ;
3108   return 0;
3109 }
3110 _ACEOF
3111 rm -f conftest.$ac_objext
3112 if { (ac_try="$ac_compile"
3113 case "(($ac_try" in
3114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115   *) ac_try_echo=$ac_try;;
3116 esac
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118   (eval "$ac_compile") 2>conftest.er1
3119   ac_status=$?
3120   grep -v '^ *+' conftest.er1 >conftest.err
3121   rm -f conftest.er1
3122   cat conftest.err >&5
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); } &&
3125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3126   { (case "(($ac_try" in
3127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128   *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131   (eval "$ac_try") 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }; } &&
3135          { ac_try='test -s conftest.$ac_objext'
3136   { (case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141   (eval "$ac_try") 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }; }; then
3145   ac_compiler_gnu=yes
3146 else
3147   echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3149
3150         ac_compiler_gnu=no
3151 fi
3152
3153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3155
3156 fi
3157 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3158 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3159 GCC=`test $ac_compiler_gnu = yes && echo yes`
3160 ac_test_CFLAGS=${CFLAGS+set}
3161 ac_save_CFLAGS=$CFLAGS
3162 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3163 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3164 if test "${ac_cv_prog_cc_g+set}" = set; then
3165   echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167   ac_save_c_werror_flag=$ac_c_werror_flag
3168    ac_c_werror_flag=yes
3169    ac_cv_prog_cc_g=no
3170    CFLAGS="-g"
3171    cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h.  */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h.  */
3177
3178 int
3179 main ()
3180 {
3181
3182   ;
3183   return 0;
3184 }
3185 _ACEOF
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3188 case "(($ac_try" in
3189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190   *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193   (eval "$ac_compile") 2>conftest.er1
3194   ac_status=$?
3195   grep -v '^ *+' conftest.er1 >conftest.err
3196   rm -f conftest.er1
3197   cat conftest.err >&5
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); } &&
3200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3201   { (case "(($ac_try" in
3202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203   *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206   (eval "$ac_try") 2>&5
3207   ac_status=$?
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); }; } &&
3210          { ac_try='test -s conftest.$ac_objext'
3211   { (case "(($ac_try" in
3212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213   *) ac_try_echo=$ac_try;;
3214 esac
3215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216   (eval "$ac_try") 2>&5
3217   ac_status=$?
3218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); }; }; then
3220   ac_cv_prog_cc_g=yes
3221 else
3222   echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3224
3225         CFLAGS=""
3226       cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h.  */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h.  */
3232
3233 int
3234 main ()
3235 {
3236
3237   ;
3238   return 0;
3239 }
3240 _ACEOF
3241 rm -f conftest.$ac_objext
3242 if { (ac_try="$ac_compile"
3243 case "(($ac_try" in
3244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245   *) ac_try_echo=$ac_try;;
3246 esac
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248   (eval "$ac_compile") 2>conftest.er1
3249   ac_status=$?
3250   grep -v '^ *+' conftest.er1 >conftest.err
3251   rm -f conftest.er1
3252   cat conftest.err >&5
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); } &&
3255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3256   { (case "(($ac_try" in
3257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258   *) ac_try_echo=$ac_try;;
3259 esac
3260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261   (eval "$ac_try") 2>&5
3262   ac_status=$?
3263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); }; } &&
3265          { ac_try='test -s conftest.$ac_objext'
3266   { (case "(($ac_try" in
3267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268   *) ac_try_echo=$ac_try;;
3269 esac
3270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271   (eval "$ac_try") 2>&5
3272   ac_status=$?
3273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274   (exit $ac_status); }; }; then
3275   :
3276 else
3277   echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280         ac_c_werror_flag=$ac_save_c_werror_flag
3281          CFLAGS="-g"
3282          cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h.  */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h.  */
3288
3289 int
3290 main ()
3291 {
3292
3293   ;
3294   return 0;
3295 }
3296 _ACEOF
3297 rm -f conftest.$ac_objext
3298 if { (ac_try="$ac_compile"
3299 case "(($ac_try" in
3300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301   *) ac_try_echo=$ac_try;;
3302 esac
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304   (eval "$ac_compile") 2>conftest.er1
3305   ac_status=$?
3306   grep -v '^ *+' conftest.er1 >conftest.err
3307   rm -f conftest.er1
3308   cat conftest.err >&5
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); } &&
3311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3312   { (case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317   (eval "$ac_try") 2>&5
3318   ac_status=$?
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); }; } &&
3321          { ac_try='test -s conftest.$ac_objext'
3322   { (case "(($ac_try" in
3323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324   *) ac_try_echo=$ac_try;;
3325 esac
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327   (eval "$ac_try") 2>&5
3328   ac_status=$?
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); }; }; then
3331   ac_cv_prog_cc_g=yes
3332 else
3333   echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3335
3336
3337 fi
3338
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 fi
3341
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 fi
3344
3345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346    ac_c_werror_flag=$ac_save_c_werror_flag
3347 fi
3348 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3349 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3350 if test "$ac_test_CFLAGS" = set; then
3351   CFLAGS=$ac_save_CFLAGS
3352 elif test $ac_cv_prog_cc_g = yes; then
3353   if test "$GCC" = yes; then
3354     CFLAGS="-g -O2"
3355   else
3356     CFLAGS="-g"
3357   fi
3358 else
3359   if test "$GCC" = yes; then
3360     CFLAGS="-O2"
3361   else
3362     CFLAGS=
3363   fi
3364 fi
3365 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3366 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3367 if test "${ac_cv_prog_cc_c89+set}" = set; then
3368   echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370   ac_cv_prog_cc_c89=no
3371 ac_save_CC=$CC
3372 cat >conftest.$ac_ext <<_ACEOF
3373 /* confdefs.h.  */
3374 _ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h.  */
3378 #include <stdarg.h>
3379 #include <stdio.h>
3380 #include <sys/types.h>
3381 #include <sys/stat.h>
3382 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3383 struct buf { int x; };
3384 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3385 static char *e (p, i)
3386      char **p;
3387      int i;
3388 {
3389   return p[i];
3390 }
3391 static char *f (char * (*g) (char **, int), char **p, ...)
3392 {
3393   char *s;
3394   va_list v;
3395   va_start (v,p);
3396   s = g (p, va_arg (v,int));
3397   va_end (v);
3398   return s;
3399 }
3400
3401 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3402    function prototypes and stuff, but not '\xHH' hex character constants.
3403    These don't provoke an error unfortunately, instead are silently treated
3404    as 'x'.  The following induces an error, until -std is added to get
3405    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3406    array size at least.  It's necessary to write '\x00'==0 to get something
3407    that's true only with -std.  */
3408 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3409
3410 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3411    inside strings and character constants.  */
3412 #define FOO(x) 'x'
3413 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3414
3415 int test (int i, double x);
3416 struct s1 {int (*f) (int a);};
3417 struct s2 {int (*f) (double a);};
3418 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3419 int argc;
3420 char **argv;
3421 int
3422 main ()
3423 {
3424 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3425   ;
3426   return 0;
3427 }
3428 _ACEOF
3429 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3430         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3431 do
3432   CC="$ac_save_CC $ac_arg"
3433   rm -f conftest.$ac_objext
3434 if { (ac_try="$ac_compile"
3435 case "(($ac_try" in
3436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437   *) ac_try_echo=$ac_try;;
3438 esac
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440   (eval "$ac_compile") 2>conftest.er1
3441   ac_status=$?
3442   grep -v '^ *+' conftest.er1 >conftest.err
3443   rm -f conftest.er1
3444   cat conftest.err >&5
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); } &&
3447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3448   { (case "(($ac_try" in
3449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450   *) ac_try_echo=$ac_try;;
3451 esac
3452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453   (eval "$ac_try") 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); }; } &&
3457          { ac_try='test -s conftest.$ac_objext'
3458   { (case "(($ac_try" in
3459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460   *) ac_try_echo=$ac_try;;
3461 esac
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463   (eval "$ac_try") 2>&5
3464   ac_status=$?
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); }; }; then
3467   ac_cv_prog_cc_c89=$ac_arg
3468 else
3469   echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472
3473 fi
3474
3475 rm -f core conftest.err conftest.$ac_objext
3476   test "x$ac_cv_prog_cc_c89" != "xno" && break
3477 done
3478 rm -f conftest.$ac_ext
3479 CC=$ac_save_CC
3480
3481 fi
3482 # AC_CACHE_VAL
3483 case "x$ac_cv_prog_cc_c89" in
3484   x)
3485     { echo "$as_me:$LINENO: result: none needed" >&5
3486 echo "${ECHO_T}none needed" >&6; } ;;
3487   xno)
3488     { echo "$as_me:$LINENO: result: unsupported" >&5
3489 echo "${ECHO_T}unsupported" >&6; } ;;
3490   *)
3491     CC="$CC $ac_cv_prog_cc_c89"
3492     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3493 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3494 esac
3495
3496
3497 ac_ext=c
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502
3503
3504 ac_ext=c
3505 ac_cpp='$CPP $CPPFLAGS'
3506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3510 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3511 # On Suns, sometimes $CPP names a directory.
3512 if test -n "$CPP" && test -d "$CPP"; then
3513   CPP=
3514 fi
3515 if test -z "$CPP"; then
3516   if test "${ac_cv_prog_CPP+set}" = set; then
3517   echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519       # Double quotes because CPP needs to be expanded
3520     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3521     do
3522       ac_preproc_ok=false
3523 for ac_c_preproc_warn_flag in '' yes
3524 do
3525   # Use a header file that comes with gcc, so configuring glibc
3526   # with a fresh cross-compiler works.
3527   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3528   # <limits.h> exists even on freestanding compilers.
3529   # On the NeXT, cc -E runs the code through the compiler's parser,
3530   # not just through cpp. "Syntax error" is here to catch this case.
3531   cat >conftest.$ac_ext <<_ACEOF
3532 /* confdefs.h.  */
3533 _ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h.  */
3537 #ifdef __STDC__
3538 # include <limits.h>
3539 #else
3540 # include <assert.h>
3541 #endif
3542                      Syntax error
3543 _ACEOF
3544 if { (ac_try="$ac_cpp conftest.$ac_ext"
3545 case "(($ac_try" in
3546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547   *) ac_try_echo=$ac_try;;
3548 esac
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3551   ac_status=$?
3552   grep -v '^ *+' conftest.er1 >conftest.err
3553   rm -f conftest.er1
3554   cat conftest.err >&5
3555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556   (exit $ac_status); } >/dev/null; then
3557   if test -s conftest.err; then
3558     ac_cpp_err=$ac_c_preproc_warn_flag
3559     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3560   else
3561     ac_cpp_err=
3562   fi
3563 else
3564   ac_cpp_err=yes
3565 fi
3566 if test -z "$ac_cpp_err"; then
3567   :
3568 else
3569   echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3571
3572   # Broken: fails on valid input.
3573 continue
3574 fi
3575
3576 rm -f conftest.err conftest.$ac_ext
3577
3578   # OK, works on sane cases.  Now check whether nonexistent headers
3579   # can be detected and how.
3580   cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h.  */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h.  */
3586 #include <ac_nonexistent.h>
3587 _ACEOF
3588 if { (ac_try="$ac_cpp conftest.$ac_ext"
3589 case "(($ac_try" in
3590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591   *) ac_try_echo=$ac_try;;
3592 esac
3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3595   ac_status=$?
3596   grep -v '^ *+' conftest.er1 >conftest.err
3597   rm -f conftest.er1
3598   cat conftest.err >&5
3599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); } >/dev/null; then
3601   if test -s conftest.err; then
3602     ac_cpp_err=$ac_c_preproc_warn_flag
3603     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3604   else
3605     ac_cpp_err=
3606   fi
3607 else
3608   ac_cpp_err=yes
3609 fi
3610 if test -z "$ac_cpp_err"; then
3611   # Broken: success on invalid input.
3612 continue
3613 else
3614   echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617   # Passes both tests.
3618 ac_preproc_ok=:
3619 break
3620 fi
3621
3622 rm -f conftest.err conftest.$ac_ext
3623
3624 done
3625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3626 rm -f conftest.err conftest.$ac_ext
3627 if $ac_preproc_ok; then
3628   break
3629 fi
3630
3631     done
3632     ac_cv_prog_CPP=$CPP
3633
3634 fi
3635   CPP=$ac_cv_prog_CPP
3636 else
3637   ac_cv_prog_CPP=$CPP
3638 fi
3639 { echo "$as_me:$LINENO: result: $CPP" >&5
3640 echo "${ECHO_T}$CPP" >&6; }
3641 ac_preproc_ok=false
3642 for ac_c_preproc_warn_flag in '' yes
3643 do
3644   # Use a header file that comes with gcc, so configuring glibc
3645   # with a fresh cross-compiler works.
3646   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3647   # <limits.h> exists even on freestanding compilers.
3648   # On the NeXT, cc -E runs the code through the compiler's parser,
3649   # not just through cpp. "Syntax error" is here to catch this case.
3650   cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h.  */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h.  */
3656 #ifdef __STDC__
3657 # include <limits.h>
3658 #else
3659 # include <assert.h>
3660 #endif
3661                      Syntax error
3662 _ACEOF
3663 if { (ac_try="$ac_cpp conftest.$ac_ext"
3664 case "(($ac_try" in
3665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666   *) ac_try_echo=$ac_try;;
3667 esac
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3670   ac_status=$?
3671   grep -v '^ *+' conftest.er1 >conftest.err
3672   rm -f conftest.er1
3673   cat conftest.err >&5
3674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); } >/dev/null; then
3676   if test -s conftest.err; then
3677     ac_cpp_err=$ac_c_preproc_warn_flag
3678     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3679   else
3680     ac_cpp_err=
3681   fi
3682 else
3683   ac_cpp_err=yes
3684 fi
3685 if test -z "$ac_cpp_err"; then
3686   :
3687 else
3688   echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3690
3691   # Broken: fails on valid input.
3692 continue
3693 fi
3694
3695 rm -f conftest.err conftest.$ac_ext
3696
3697   # OK, works on sane cases.  Now check whether nonexistent headers
3698   # can be detected and how.
3699   cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h.  */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h.  */
3705 #include <ac_nonexistent.h>
3706 _ACEOF
3707 if { (ac_try="$ac_cpp conftest.$ac_ext"
3708 case "(($ac_try" in
3709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710   *) ac_try_echo=$ac_try;;
3711 esac
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3714   ac_status=$?
3715   grep -v '^ *+' conftest.er1 >conftest.err
3716   rm -f conftest.er1
3717   cat conftest.err >&5
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); } >/dev/null; then
3720   if test -s conftest.err; then
3721     ac_cpp_err=$ac_c_preproc_warn_flag
3722     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3723   else
3724     ac_cpp_err=
3725   fi
3726 else
3727   ac_cpp_err=yes
3728 fi
3729 if test -z "$ac_cpp_err"; then
3730   # Broken: success on invalid input.
3731 continue
3732 else
3733   echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3735
3736   # Passes both tests.
3737 ac_preproc_ok=:
3738 break
3739 fi
3740
3741 rm -f conftest.err conftest.$ac_ext
3742
3743 done
3744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3745 rm -f conftest.err conftest.$ac_ext
3746 if $ac_preproc_ok; then
3747   :
3748 else
3749   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3750 See \`config.log' for more details." >&5
3751 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3752 See \`config.log' for more details." >&2;}
3753    { (exit 1); exit 1; }; }
3754 fi
3755
3756 ac_ext=c
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761
3762
3763 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3764 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3765 if test "${ac_cv_path_GREP+set}" = set; then
3766   echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768   # Extract the first word of "grep ggrep" to use in msg output
3769 if test -z "$GREP"; then
3770 set dummy grep ggrep; ac_prog_name=$2
3771 if test "${ac_cv_path_GREP+set}" = set; then
3772   echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774   ac_path_GREP_found=false
3775 # Loop through the user's path and test for each of PROGNAME-LIST
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3778 do
3779   IFS=$as_save_IFS
3780   test -z "$as_dir" && as_dir=.
3781   for ac_prog in grep ggrep; do
3782   for ac_exec_ext in '' $ac_executable_extensions; do
3783     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3784     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3785     # Check for GNU ac_path_GREP and select it if it is found.
3786   # Check for GNU $ac_path_GREP
3787 case `"$ac_path_GREP" --version 2>&1` in
3788 *GNU*)
3789   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3790 *)
3791   ac_count=0
3792   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3793   while :
3794   do
3795     cat "conftest.in" "conftest.in" >"conftest.tmp"
3796     mv "conftest.tmp" "conftest.in"
3797     cp "conftest.in" "conftest.nl"
3798     echo 'GREP' >> "conftest.nl"
3799     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3800     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3801     ac_count=`expr $ac_count + 1`
3802     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3803       # Best one so far, save it but keep looking for a better one
3804       ac_cv_path_GREP="$ac_path_GREP"
3805       ac_path_GREP_max=$ac_count
3806     fi
3807     # 10*(2^10) chars as input seems more than enough
3808     test $ac_count -gt 10 && break
3809   done
3810   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3811 esac
3812
3813
3814     $ac_path_GREP_found && break 3
3815   done
3816 done
3817
3818 done
3819 IFS=$as_save_IFS
3820
3821
3822 fi
3823
3824 GREP="$ac_cv_path_GREP"
3825 if test -z "$GREP"; then
3826   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3827 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3828    { (exit 1); exit 1; }; }
3829 fi
3830
3831 else
3832   ac_cv_path_GREP=$GREP
3833 fi
3834
3835
3836 fi
3837 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3838 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3839  GREP="$ac_cv_path_GREP"
3840
3841
3842 { echo "$as_me:$LINENO: checking for egrep" >&5
3843 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3844 if test "${ac_cv_path_EGREP+set}" = set; then
3845   echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3848    then ac_cv_path_EGREP="$GREP -E"
3849    else
3850      # Extract the first word of "egrep" to use in msg output
3851 if test -z "$EGREP"; then
3852 set dummy egrep; ac_prog_name=$2
3853 if test "${ac_cv_path_EGREP+set}" = set; then
3854   echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856   ac_path_EGREP_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 egrep; do
3864   for ac_exec_ext in '' $ac_executable_extensions; do
3865     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3866     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3867     # Check for GNU ac_path_EGREP and select it if it is found.
3868   # Check for GNU $ac_path_EGREP
3869 case `"$ac_path_EGREP" --version 2>&1` in
3870 *GNU*)
3871   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_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 'EGREP' >> "conftest.nl"
3881     "$ac_path_EGREP" 'EGREP$' < "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_EGREP_max-0}; then
3885       # Best one so far, save it but keep looking for a better one
3886       ac_cv_path_EGREP="$ac_path_EGREP"
3887       ac_path_EGREP_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_EGREP_found && break 3
3897   done
3898 done
3899
3900 done
3901 IFS=$as_save_IFS
3902
3903
3904 fi
3905
3906 EGREP="$ac_cv_path_EGREP"
3907 if test -z "$EGREP"; 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_EGREP=$EGREP
3915 fi
3916
3917
3918    fi
3919 fi
3920 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3921 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3922  EGREP="$ac_cv_path_EGREP"
3923
3924
3925 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3926 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3927 if test "${ac_cv_header_stdc+set}" = set; then
3928   echo $ECHO_N "(cached) $ECHO_C" >&6
3929 else
3930   cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h.  */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h.  */
3936 #include <stdlib.h>
3937 #include <stdarg.h>
3938 #include <string.h>
3939 #include <float.h>
3940
3941 int
3942 main ()
3943 {
3944
3945   ;
3946   return 0;
3947 }
3948 _ACEOF
3949 rm -f conftest.$ac_objext
3950 if { (ac_try="$ac_compile"
3951 case "(($ac_try" in
3952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953   *) ac_try_echo=$ac_try;;
3954 esac
3955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956   (eval "$ac_compile") 2>conftest.er1
3957   ac_status=$?
3958   grep -v '^ *+' conftest.er1 >conftest.err
3959   rm -f conftest.er1
3960   cat conftest.err >&5
3961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962   (exit $ac_status); } &&
3963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3964   { (case "(($ac_try" in
3965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966   *) ac_try_echo=$ac_try;;
3967 esac
3968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969   (eval "$ac_try") 2>&5
3970   ac_status=$?
3971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972   (exit $ac_status); }; } &&
3973          { ac_try='test -s conftest.$ac_objext'
3974   { (case "(($ac_try" in
3975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976   *) ac_try_echo=$ac_try;;
3977 esac
3978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3979   (eval "$ac_try") 2>&5
3980   ac_status=$?
3981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982   (exit $ac_status); }; }; then
3983   ac_cv_header_stdc=yes
3984 else
3985   echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3987
3988         ac_cv_header_stdc=no
3989 fi
3990
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992
3993 if test $ac_cv_header_stdc = yes; then
3994   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3995   cat >conftest.$ac_ext <<_ACEOF
3996 /* confdefs.h.  */
3997 _ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h.  */
4001 #include <string.h>
4002
4003 _ACEOF
4004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4005   $EGREP "memchr" >/dev/null 2>&1; then
4006   :
4007 else
4008   ac_cv_header_stdc=no
4009 fi
4010 rm -f conftest*
4011
4012 fi
4013
4014 if test $ac_cv_header_stdc = yes; then
4015   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4016   cat >conftest.$ac_ext <<_ACEOF
4017 /* confdefs.h.  */
4018 _ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h.  */
4022 #include <stdlib.h>
4023
4024 _ACEOF
4025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4026   $EGREP "free" >/dev/null 2>&1; then
4027   :
4028 else
4029   ac_cv_header_stdc=no
4030 fi
4031 rm -f conftest*
4032
4033 fi
4034
4035 if test $ac_cv_header_stdc = yes; then
4036   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4037   if test "$cross_compiling" = yes; then
4038   :
4039 else
4040   cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h.  */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h.  */
4046 #include <ctype.h>
4047 #include <stdlib.h>
4048 #if ((' ' & 0x0FF) == 0x020)
4049 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4050 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4051 #else
4052 # define ISLOWER(c) \
4053                    (('a' <= (c) && (c) <= 'i') \
4054                      || ('j' <= (c) && (c) <= 'r') \
4055                      || ('s' <= (c) && (c) <= 'z'))
4056 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4057 #endif
4058
4059 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4060 int
4061 main ()
4062 {
4063   int i;
4064   for (i = 0; i < 256; i++)
4065     if (XOR (islower (i), ISLOWER (i))
4066         || toupper (i) != TOUPPER (i))
4067       return 2;
4068   return 0;
4069 }
4070 _ACEOF
4071 rm -f conftest$ac_exeext
4072 if { (ac_try="$ac_link"
4073 case "(($ac_try" in
4074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075   *) ac_try_echo=$ac_try;;
4076 esac
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078   (eval "$ac_link") 2>&5
4079   ac_status=$?
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4082   { (case "(($ac_try" in
4083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084   *) ac_try_echo=$ac_try;;
4085 esac
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087   (eval "$ac_try") 2>&5
4088   ac_status=$?
4089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); }; }; then
4091   :
4092 else
4093   echo "$as_me: program exited with status $ac_status" >&5
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4096
4097 ( exit $ac_status )
4098 ac_cv_header_stdc=no
4099 fi
4100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4101 fi
4102
4103
4104 fi
4105 fi
4106 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4107 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4108 if test $ac_cv_header_stdc = yes; then
4109
4110 cat >>confdefs.h <<\_ACEOF
4111 #define STDC_HEADERS 1
4112 _ACEOF
4113
4114 fi
4115
4116 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4127                   inttypes.h stdint.h unistd.h
4128 do
4129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4133   echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135   cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h.  */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h.  */
4141 $ac_includes_default
4142
4143 #include <$ac_header>
4144 _ACEOF
4145 rm -f conftest.$ac_objext
4146 if { (ac_try="$ac_compile"
4147 case "(($ac_try" in
4148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149   *) ac_try_echo=$ac_try;;
4150 esac
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152   (eval "$ac_compile") 2>conftest.er1
4153   ac_status=$?
4154   grep -v '^ *+' conftest.er1 >conftest.err
4155   rm -f conftest.er1
4156   cat conftest.err >&5
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); } &&
4159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4160   { (case "(($ac_try" in
4161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162   *) ac_try_echo=$ac_try;;
4163 esac
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165   (eval "$ac_try") 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); }; } &&
4169          { ac_try='test -s conftest.$ac_objext'
4170   { (case "(($ac_try" in
4171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172   *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175   (eval "$ac_try") 2>&5
4176   ac_status=$?
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); }; }; then
4179   eval "$as_ac_Header=yes"
4180 else
4181   echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4183
4184         eval "$as_ac_Header=no"
4185 fi
4186
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 fi
4189 ac_res=`eval echo '${'$as_ac_Header'}'`
4190                { echo "$as_me:$LINENO: result: $ac_res" >&5
4191 echo "${ECHO_T}$ac_res" >&6; }
4192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4193   cat >>confdefs.h <<_ACEOF
4194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4195 _ACEOF
4196
4197 fi
4198
4199 done
4200
4201
4202 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4203 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4204 if test "${ac_cv_c_bigendian+set}" = set; then
4205   echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207   # See if sys/param.h defines the BYTE_ORDER macro.
4208 cat >conftest.$ac_ext <<_ACEOF
4209 /* confdefs.h.  */
4210 _ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h.  */
4214 #include <sys/types.h>
4215 #include <sys/param.h>
4216
4217 int
4218 main ()
4219 {
4220 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4221  bogus endian macros
4222 #endif
4223
4224   ;
4225   return 0;
4226 }
4227 _ACEOF
4228 rm -f conftest.$ac_objext
4229 if { (ac_try="$ac_compile"
4230 case "(($ac_try" in
4231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232   *) ac_try_echo=$ac_try;;
4233 esac
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235   (eval "$ac_compile") 2>conftest.er1
4236   ac_status=$?
4237   grep -v '^ *+' conftest.er1 >conftest.err
4238   rm -f conftest.er1
4239   cat conftest.err >&5
4240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241   (exit $ac_status); } &&
4242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4243   { (case "(($ac_try" in
4244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245   *) ac_try_echo=$ac_try;;
4246 esac
4247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4248   (eval "$ac_try") 2>&5
4249   ac_status=$?
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); }; } &&
4252          { ac_try='test -s conftest.$ac_objext'
4253   { (case "(($ac_try" in
4254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255   *) ac_try_echo=$ac_try;;
4256 esac
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258   (eval "$ac_try") 2>&5
4259   ac_status=$?
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); }; }; then
4262   # It does; now see whether it defined to BIG_ENDIAN or not.
4263 cat >conftest.$ac_ext <<_ACEOF
4264 /* confdefs.h.  */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h.  */
4269 #include <sys/types.h>
4270 #include <sys/param.h>
4271
4272 int
4273 main ()
4274 {
4275 #if BYTE_ORDER != BIG_ENDIAN
4276  not big endian
4277 #endif
4278
4279   ;
4280   return 0;
4281 }
4282 _ACEOF
4283 rm -f conftest.$ac_objext
4284 if { (ac_try="$ac_compile"
4285 case "(($ac_try" in
4286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287   *) ac_try_echo=$ac_try;;
4288 esac
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290   (eval "$ac_compile") 2>conftest.er1
4291   ac_status=$?
4292   grep -v '^ *+' conftest.er1 >conftest.err
4293   rm -f conftest.er1
4294   cat conftest.err >&5
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); } &&
4297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4298   { (case "(($ac_try" in
4299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300   *) ac_try_echo=$ac_try;;
4301 esac
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303   (eval "$ac_try") 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); }; } &&
4307          { ac_try='test -s conftest.$ac_objext'
4308   { (case "(($ac_try" in
4309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310   *) ac_try_echo=$ac_try;;
4311 esac
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313   (eval "$ac_try") 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); }; }; then
4317   ac_cv_c_bigendian=yes
4318 else
4319   echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4321
4322         ac_cv_c_bigendian=no
4323 fi
4324
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 else
4327   echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4329
4330         # It does not; compile a test program.
4331 if test "$cross_compiling" = yes; then
4332   # try to guess the endianness by grepping values into an object file
4333   ac_cv_c_bigendian=unknown
4334   cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h.  */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h.  */
4340 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4341 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4342 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4343 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4344 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4345 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4346 int
4347 main ()
4348 {
4349  _ascii (); _ebcdic ();
4350   ;
4351   return 0;
4352 }
4353 _ACEOF
4354 rm -f conftest.$ac_objext
4355 if { (ac_try="$ac_compile"
4356 case "(($ac_try" in
4357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358   *) ac_try_echo=$ac_try;;
4359 esac
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361   (eval "$ac_compile") 2>conftest.er1
4362   ac_status=$?
4363   grep -v '^ *+' conftest.er1 >conftest.err
4364   rm -f conftest.er1
4365   cat conftest.err >&5
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); } &&
4368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4369   { (case "(($ac_try" in
4370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371   *) ac_try_echo=$ac_try;;
4372 esac
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374   (eval "$ac_try") 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); }; } &&
4378          { ac_try='test -s conftest.$ac_objext'
4379   { (case "(($ac_try" in
4380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381   *) ac_try_echo=$ac_try;;
4382 esac
4383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384   (eval "$ac_try") 2>&5
4385   ac_status=$?
4386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); }; }; then
4388   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4389   ac_cv_c_bigendian=yes
4390 fi
4391 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4392   if test "$ac_cv_c_bigendian" = unknown; then
4393     ac_cv_c_bigendian=no
4394   else
4395     # finding both strings is unlikely to happen, but who knows?
4396     ac_cv_c_bigendian=unknown
4397   fi
4398 fi
4399 else
4400   echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4402
4403
4404 fi
4405
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 else
4408   cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h.  */
4410 _ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h.  */
4414 $ac_includes_default
4415 int
4416 main ()
4417 {
4418
4419   /* Are we little or big endian?  From Harbison&Steele.  */
4420   union
4421   {
4422     long int l;
4423     char c[sizeof (long int)];
4424   } u;
4425   u.l = 1;
4426   return u.c[sizeof (long int) - 1] == 1;
4427
4428   ;
4429   return 0;
4430 }
4431 _ACEOF
4432 rm -f conftest$ac_exeext
4433 if { (ac_try="$ac_link"
4434 case "(($ac_try" in
4435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436   *) ac_try_echo=$ac_try;;
4437 esac
4438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439   (eval "$ac_link") 2>&5
4440   ac_status=$?
4441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4443   { (case "(($ac_try" in
4444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445   *) ac_try_echo=$ac_try;;
4446 esac
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448   (eval "$ac_try") 2>&5
4449   ac_status=$?
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); }; }; then
4452   ac_cv_c_bigendian=no
4453 else
4454   echo "$as_me: program exited with status $ac_status" >&5
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4457
4458 ( exit $ac_status )
4459 ac_cv_c_bigendian=yes
4460 fi
4461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4462 fi
4463
4464
4465 fi
4466
4467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468 fi
4469 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4470 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4471 case $ac_cv_c_bigendian in
4472   yes)
4473     ENDIAN=big
4474  ;;
4475   no)
4476     ENDIAN=little
4477  ;;
4478   *)
4479     { { echo "$as_me:$LINENO: error: unknown endianness
4480 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4481 echo "$as_me: error: unknown endianness
4482 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4483    { (exit 1); exit 1; }; } ;;
4484 esac
4485
4486
4487 if test "$cross_compiling" = yes; then
4488   LLVM_CROSS_COMPILING=1
4489
4490
4491 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4492 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4493 if test "${ac_cv_build_exeext+set}" = set; then
4494   echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4497   ac_cv_build_exeext=.exe
4498 else
4499   ac_build_prefix=${build_alias}-
4500
4501   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4502 set dummy ${ac_build_prefix}gcc; ac_word=$2
4503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4505 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4506   echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508   if test -n "$BUILD_CC"; then
4509   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4513 do
4514   IFS=$as_save_IFS
4515   test -z "$as_dir" && as_dir=.
4516   for ac_exec_ext in '' $ac_executable_extensions; do
4517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4518     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520     break 2
4521   fi
4522 done
4523 done
4524 IFS=$as_save_IFS
4525
4526 fi
4527 fi
4528 BUILD_CC=$ac_cv_prog_BUILD_CC
4529 if test -n "$BUILD_CC"; then
4530   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4531 echo "${ECHO_T}$BUILD_CC" >&6; }
4532 else
4533   { echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6; }
4535 fi
4536
4537
4538   if test -z "$BUILD_CC"; then
4539      # Extract the first word of "gcc", so it can be a program name with args.
4540 set dummy gcc; ac_word=$2
4541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4543 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4544   echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546   if test -n "$BUILD_CC"; then
4547   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4548 else
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552   IFS=$as_save_IFS
4553   test -z "$as_dir" && as_dir=.
4554   for ac_exec_ext in '' $ac_executable_extensions; do
4555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4556     ac_cv_prog_BUILD_CC="gcc"
4557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558     break 2
4559   fi
4560 done
4561 done
4562 IFS=$as_save_IFS
4563
4564 fi
4565 fi
4566 BUILD_CC=$ac_cv_prog_BUILD_CC
4567 if test -n "$BUILD_CC"; then
4568   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4569 echo "${ECHO_T}$BUILD_CC" >&6; }
4570 else
4571   { echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6; }
4573 fi
4574
4575
4576      if test -z "$BUILD_CC"; then
4577        # Extract the first word of "cc", so it can be a program name with args.
4578 set dummy cc; ac_word=$2
4579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584   if test -n "$BUILD_CC"; then
4585   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4586 else
4587   ac_prog_rejected=no
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4590 do
4591   IFS=$as_save_IFS
4592   test -z "$as_dir" && as_dir=.
4593   for ac_exec_ext in '' $ac_executable_extensions; do
4594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4595     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4596        ac_prog_rejected=yes
4597        continue
4598      fi
4599     ac_cv_prog_BUILD_CC="cc"
4600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601     break 2
4602   fi
4603 done
4604 done
4605 IFS=$as_save_IFS
4606
4607 if test $ac_prog_rejected = yes; then
4608   # We found a bogon in the path, so make sure we never use it.
4609   set dummy $ac_cv_prog_BUILD_CC
4610   shift
4611   if test $# != 0; then
4612     # We chose a different compiler from the bogus one.
4613     # However, it has the same basename, so the bogon will be chosen
4614     # first if we set BUILD_CC to just the basename; use the full file name.
4615     shift
4616     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4617   fi
4618 fi
4619 fi
4620 fi
4621 BUILD_CC=$ac_cv_prog_BUILD_CC
4622 if test -n "$BUILD_CC"; then
4623   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4624 echo "${ECHO_T}$BUILD_CC" >&6; }
4625 else
4626   { echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6; }
4628 fi
4629
4630
4631      fi
4632   fi
4633   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4634 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4635    { (exit 1); exit 1; }; }
4636   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4637   rm -f conftest*
4638   echo 'int main () { return 0; }' > conftest.$ac_ext
4639   ac_cv_build_exeext=
4640   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4641   (eval $ac_build_link) 2>&5
4642   ac_status=$?
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); }; then
4645     for file in conftest.*; do
4646       case $file in
4647       *.c | *.o | *.obj | *.dSYM) ;;
4648       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4649       esac
4650     done
4651   else
4652     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4653 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4654    { (exit 1); exit 1; }; }
4655   fi
4656   rm -f conftest*
4657   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4658 fi
4659 fi
4660
4661 BUILD_EXEEXT=""
4662 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4663 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4664 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4665 ac_build_exeext=$BUILD_EXEEXT
4666
4667   ac_build_prefix=${build_alias}-
4668   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4669 set dummy ${ac_build_prefix}g++; ac_word=$2
4670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4672 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4673   echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675   if test -n "$BUILD_CXX"; then
4676   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681   IFS=$as_save_IFS
4682   test -z "$as_dir" && as_dir=.
4683   for ac_exec_ext in '' $ac_executable_extensions; do
4684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4685     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687     break 2
4688   fi
4689 done
4690 done
4691 IFS=$as_save_IFS
4692
4693 fi
4694 fi
4695 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4696 if test -n "$BUILD_CXX"; then
4697   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4698 echo "${ECHO_T}$BUILD_CXX" >&6; }
4699 else
4700   { echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6; }
4702 fi
4703
4704
4705   if test -z "$BUILD_CXX"; then
4706      # Extract the first word of "g++", so it can be a program name with args.
4707 set dummy g++; ac_word=$2
4708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4710 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4711   echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713   if test -n "$BUILD_CXX"; then
4714   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4715 else
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719   IFS=$as_save_IFS
4720   test -z "$as_dir" && as_dir=.
4721   for ac_exec_ext in '' $ac_executable_extensions; do
4722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4723     ac_cv_prog_BUILD_CXX="g++"
4724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725     break 2
4726   fi
4727 done
4728 done
4729 IFS=$as_save_IFS
4730
4731 fi
4732 fi
4733 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4734 if test -n "$BUILD_CXX"; then
4735   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4736 echo "${ECHO_T}$BUILD_CXX" >&6; }
4737 else
4738   { echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6; }
4740 fi
4741
4742
4743      if test -z "$BUILD_CXX"; then
4744        # Extract the first word of "c++", so it can be a program name with args.
4745 set dummy c++; ac_word=$2
4746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4748 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4749   echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751   if test -n "$BUILD_CXX"; then
4752   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4753 else
4754   ac_prog_rejected=no
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4757 do
4758   IFS=$as_save_IFS
4759   test -z "$as_dir" && as_dir=.
4760   for ac_exec_ext in '' $ac_executable_extensions; do
4761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4762     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4763        ac_prog_rejected=yes
4764        continue
4765      fi
4766     ac_cv_prog_BUILD_CXX="c++"
4767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4768     break 2
4769   fi
4770 done
4771 done
4772 IFS=$as_save_IFS
4773
4774 if test $ac_prog_rejected = yes; then
4775   # We found a bogon in the path, so make sure we never use it.
4776   set dummy $ac_cv_prog_BUILD_CXX
4777   shift
4778   if test $# != 0; then
4779     # We chose a different compiler from the bogus one.
4780     # However, it has the same basename, so the bogon will be chosen
4781     # first if we set BUILD_CXX to just the basename; use the full file name.
4782     shift
4783     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4784   fi
4785 fi
4786 fi
4787 fi
4788 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4789 if test -n "$BUILD_CXX"; then
4790   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4791 echo "${ECHO_T}$BUILD_CXX" >&6; }
4792 else
4793   { echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6; }
4795 fi
4796
4797
4798      fi
4799   fi
4800 else
4801   LLVM_CROSS_COMPILING=0
4802
4803 fi
4804
4805 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4806   cvsbuild="yes"
4807   optimize="no"
4808   CVSBUILD=CVSBUILD=1
4809
4810 else
4811   cvsbuild="no"
4812   optimize="yes"
4813 fi
4814
4815
4816 # Check whether --enable-optimized was given.
4817 if test "${enable_optimized+set}" = set; then
4818   enableval=$enable_optimized;
4819 else
4820   enableval=$optimize
4821 fi
4822
4823 if test ${enableval} = "no" ; then
4824   ENABLE_OPTIMIZED=
4825
4826 else
4827   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4828
4829 fi
4830
4831 # Check whether --enable-profiling was given.
4832 if test "${enable_profiling+set}" = set; then
4833   enableval=$enable_profiling;
4834 else
4835   enableval="no"
4836 fi
4837
4838 if test ${enableval} = "no" ; then
4839   ENABLE_PROFILING=
4840
4841 else
4842   ENABLE_PROFILING=ENABLE_PROFILING=1
4843
4844 fi
4845
4846 # Check whether --enable-assertions was given.
4847 if test "${enable_assertions+set}" = set; then
4848   enableval=$enable_assertions;
4849 else
4850   enableval="yes"
4851 fi
4852
4853 if test ${enableval} = "yes" ; then
4854   DISABLE_ASSERTIONS=
4855
4856 else
4857   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4858
4859 fi
4860
4861 # Check whether --enable-expensive-checks was given.
4862 if test "${enable_expensive_checks+set}" = set; then
4863   enableval=$enable_expensive_checks;
4864 else
4865   enableval="no"
4866 fi
4867
4868 if test ${enableval} = "yes" ; then
4869   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4870
4871   EXPENSIVE_CHECKS=yes
4872
4873 else
4874   ENABLE_EXPENSIVE_CHECKS=
4875
4876   EXPENSIVE_CHECKS=no
4877
4878 fi
4879
4880 # Check whether --enable-debug-runtime was given.
4881 if test "${enable_debug_runtime+set}" = set; then
4882   enableval=$enable_debug_runtime;
4883 else
4884   enableval=no
4885 fi
4886
4887 if test ${enableval} = "no" ; then
4888   DEBUG_RUNTIME=
4889
4890 else
4891   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4892
4893 fi
4894
4895 # Check whether --enable-debug-symbols was given.
4896 if test "${enable_debug_symbols+set}" = set; then
4897   enableval=$enable_debug_symbols;
4898 else
4899   enableval=no
4900 fi
4901
4902 if test ${enableval} = "no" ; then
4903   DEBUG_SYMBOLS=
4904
4905 else
4906   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4907
4908 fi
4909
4910 # Check whether --enable-jit was given.
4911 if test "${enable_jit+set}" = set; then
4912   enableval=$enable_jit;
4913 else
4914   enableval=default
4915 fi
4916
4917 if test ${enableval} = "no"
4918 then
4919   JIT=
4920
4921 else
4922   case "$llvm_cv_target_arch" in
4923     x86)         TARGET_HAS_JIT=1
4924  ;;
4925     Sparc)       TARGET_HAS_JIT=0
4926  ;;
4927     PowerPC)     TARGET_HAS_JIT=1
4928  ;;
4929     x86_64)      TARGET_HAS_JIT=1
4930  ;;
4931     Alpha)       TARGET_HAS_JIT=1
4932  ;;
4933     ARM)         TARGET_HAS_JIT=1
4934  ;;
4935     Mips)        TARGET_HAS_JIT=0
4936  ;;
4937     PIC16)       TARGET_HAS_JIT=0
4938  ;;
4939     XCore)       TARGET_HAS_JIT=0
4940  ;;
4941     MSP430)      TARGET_HAS_JIT=0
4942  ;;
4943     SystemZ)     TARGET_HAS_JIT=0
4944  ;;
4945     Blackfin)    TARGET_HAS_JIT=0
4946  ;;
4947     *)           TARGET_HAS_JIT=0
4948  ;;
4949   esac
4950 fi
4951
4952 # Check whether --enable-doxygen was given.
4953 if test "${enable_doxygen+set}" = set; then
4954   enableval=$enable_doxygen;
4955 else
4956   enableval=default
4957 fi
4958
4959 case "$enableval" in
4960   yes) ENABLE_DOXYGEN=1
4961  ;;
4962   no)  ENABLE_DOXYGEN=0
4963  ;;
4964   default) ENABLE_DOXYGEN=0
4965  ;;
4966   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4967 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4968    { (exit 1); exit 1; }; } ;;
4969 esac
4970
4971 # Check whether --enable-threads was given.
4972 if test "${enable_threads+set}" = set; then
4973   enableval=$enable_threads;
4974 else
4975   enableval=default
4976 fi
4977
4978 case "$enableval" in
4979   yes) ENABLE_THREADS=1
4980  ;;
4981   no)  ENABLE_THREADS=0
4982  ;;
4983   default) ENABLE_THREADS=1
4984  ;;
4985   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4986 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4987    { (exit 1); exit 1; }; } ;;
4988 esac
4989
4990 cat >>confdefs.h <<_ACEOF
4991 #define ENABLE_THREADS $ENABLE_THREADS
4992 _ACEOF
4993
4994
4995 # Check whether --enable-pic was given.
4996 if test "${enable_pic+set}" = set; then
4997   enableval=$enable_pic;
4998 else
4999   enableval=default
5000 fi
5001
5002 case "$enableval" in
5003   yes) ENABLE_PIC=1
5004  ;;
5005   no)  ENABLE_PIC=0
5006  ;;
5007   default) ENABLE_PIC=1
5008  ;;
5009   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5010 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5011    { (exit 1); exit 1; }; } ;;
5012 esac
5013
5014 cat >>confdefs.h <<_ACEOF
5015 #define ENABLE_PIC $ENABLE_PIC
5016 _ACEOF
5017
5018
5019 TARGETS_TO_BUILD=""
5020 # Check whether --enable-targets was given.
5021 if test "${enable_targets+set}" = set; then
5022   enableval=$enable_targets;
5023 else
5024   enableval=all
5025 fi
5026
5027 if test "$enableval" = host-only ; then
5028   enableval=host
5029 fi
5030 case "$enableval" in
5031   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5032   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5033       case "$a_target" in
5034         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5035         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5036         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5037         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5038         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5039         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5040         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5041         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5042         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5043         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5044         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5045         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5046         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5047         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5048         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5049         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5050         host) case "$llvm_cv_target_arch" in
5051             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5052             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5053             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5054             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5055             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5056             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5057             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5058             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5059             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5060             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5061             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5062             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5063             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5064             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5065 echo "$as_me: error: Can not set target to build" >&2;}
5066    { (exit 1); exit 1; }; } ;;
5067           esac ;;
5068         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5069 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5070    { (exit 1); exit 1; }; } ;;
5071       esac
5072   done
5073   ;;
5074 esac
5075 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5076
5077
5078 # Determine whether we are building LLVM support for the native architecture.
5079 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5080 for a_target in $TARGETS_TO_BUILD; do
5081   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5082     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5083
5084 cat >>confdefs.h <<_ACEOF
5085 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5086 _ACEOF
5087
5088   fi
5089 done
5090
5091 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5092 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5093 LLVM_ENUM_TARGETS=""
5094 LLVM_ENUM_ASM_PRINTERS=""
5095 LLVM_ENUM_ASM_PARSERS=""
5096 for target_to_build in $TARGETS_TO_BUILD; do
5097   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5098   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5099     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5100   fi
5101   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5102     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5103   fi
5104 done
5105
5106
5107
5108
5109 # Check whether --enable-cbe-printf-a was given.
5110 if test "${enable_cbe_printf_a+set}" = set; then
5111   enableval=$enable_cbe_printf_a;
5112 else
5113   enableval=default
5114 fi
5115
5116 case "$enableval" in
5117   yes) ENABLE_CBE_PRINTF_A=1
5118  ;;
5119   no)  ENABLE_CBE_PRINTF_A=0
5120  ;;
5121   default)  ENABLE_CBE_PRINTF_A=1
5122  ;;
5123   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5124 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5125    { (exit 1); exit 1; }; } ;;
5126 esac
5127
5128 cat >>confdefs.h <<_ACEOF
5129 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5130 _ACEOF
5131
5132
5133
5134 # Check whether --with-llvmgccdir was given.
5135 if test "${with_llvmgccdir+set}" = set; then
5136   withval=$with_llvmgccdir;
5137 else
5138   withval=default
5139 fi
5140
5141 case "$withval" in
5142   default) WITH_LLVMGCCDIR=default ;;
5143   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5144   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5145 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5146    { (exit 1); exit 1; }; } ;;
5147 esac
5148
5149
5150 # Check whether --with-llvmgcc was given.
5151 if test "${with_llvmgcc+set}" = set; then
5152   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5153       WITH_LLVMGCCDIR=""
5154 fi
5155
5156
5157
5158 # Check whether --with-llvmgxx was given.
5159 if test "${with_llvmgxx+set}" = set; then
5160   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5161     WITH_LLVMGCCDIR=""
5162 fi
5163
5164
5165 if test -n "$LLVMGCC"; then
5166    LLVMGCCCOMMAND="$LLVMGCC"
5167 fi
5168
5169 if test -n "$LLVMGXX"; then
5170    LLVMGXXCOMMAND="$LLVMGXX"
5171 fi
5172
5173 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5174    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5175 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5176    { (exit 1); exit 1; }; };
5177 fi
5178
5179 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5180    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5181 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5182    { (exit 1); exit 1; }; };
5183 fi
5184
5185
5186 # Check whether --with-extra-options was given.
5187 if test "${with_extra_options+set}" = set; then
5188   withval=$with_extra_options;
5189 else
5190   withval=default
5191 fi
5192
5193 case "$withval" in
5194   default) EXTRA_OPTIONS= ;;
5195   *) EXTRA_OPTIONS=$withval ;;
5196 esac
5197 EXTRA_OPTIONS=$EXTRA_OPTIONS
5198
5199
5200 # Check whether --enable-bindings was given.
5201 if test "${enable_bindings+set}" = set; then
5202   enableval=$enable_bindings;
5203 else
5204   enableval=default
5205 fi
5206
5207 BINDINGS_TO_BUILD=""
5208 case "$enableval" in
5209   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5210   all ) BINDINGS_TO_BUILD="ocaml" ;;
5211   none | no) BINDINGS_TO_BUILD="" ;;
5212   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5213       case "$a_binding" in
5214         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5215         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5216 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5217    { (exit 1); exit 1; }; } ;;
5218       esac
5219   done
5220   ;;
5221 esac
5222
5223
5224 # Check whether --with-ocaml-libdir was given.
5225 if test "${with_ocaml_libdir+set}" = set; then
5226   withval=$with_ocaml_libdir;
5227 else
5228   withval=auto
5229 fi
5230
5231 case "$withval" in
5232   auto) with_ocaml_libdir="$withval" ;;
5233   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5234   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5235 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5236    { (exit 1); exit 1; }; } ;;
5237 esac
5238
5239
5240 # Check whether --with-binutils-include was given.
5241 if test "${with_binutils_include+set}" = set; then
5242   withval=$with_binutils_include;
5243 else
5244   withval=default
5245 fi
5246
5247 case "$withval" in
5248   default) WITH_BINUTILS_INCDIR=default ;;
5249   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5250   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5251 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5252    { (exit 1); exit 1; }; } ;;
5253 esac
5254 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5255   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5256
5257   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5258      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5259      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5260 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5261    { (exit 1); exit 1; }; };
5262   fi
5263 fi
5264
5265 # Check whether --enable-libffi was given.
5266 if test "${enable_libffi+set}" = set; then
5267   enableval=$enable_libffi;
5268 else
5269   enableval=yes
5270 fi
5271
5272 case "$enableval" in
5273   yes) llvm_cv_enable_libffi="yes" ;;
5274   no)  llvm_cv_enable_libffi="no"  ;;
5275   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5276 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5277    { (exit 1); exit 1; }; } ;;
5278 esac
5279
5280 if test "$llvm_cv_os_type" = "Win32" ; then
5281    llvmc_dynamic="yes"
5282 else
5283    llvmc_dynamic="no"
5284 fi
5285
5286 # Check whether --enable-llvmc-dynamic was given.
5287 if test "${enable_llvmc_dynamic+set}" = set; then
5288   enableval=$enable_llvmc_dynamic;
5289 else
5290   enableval=$llvmc_dynamic
5291 fi
5292
5293 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5294    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5295
5296 else
5297    ENABLE_LLVMC_DYNAMIC=
5298
5299 fi
5300
5301 # Check whether --enable-llvmc-dynamic-plugins was given.
5302 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5303   enableval=$enable_llvmc_dynamic_plugins;
5304 else
5305   enableval=yes
5306 fi
5307
5308 if test ${enableval} = "yes" ; then
5309    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5310
5311 else
5312    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5313
5314 fi
5315
5316
5317 ac_ext=c
5318 ac_cpp='$CPP $CPPFLAGS'
5319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5322 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5323 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5324 # On Suns, sometimes $CPP names a directory.
5325 if test -n "$CPP" && test -d "$CPP"; then
5326   CPP=
5327 fi
5328 if test -z "$CPP"; then
5329   if test "${ac_cv_prog_CPP+set}" = set; then
5330   echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332       # Double quotes because CPP needs to be expanded
5333     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5334     do
5335       ac_preproc_ok=false
5336 for ac_c_preproc_warn_flag in '' yes
5337 do
5338   # Use a header file that comes with gcc, so configuring glibc
5339   # with a fresh cross-compiler works.
5340   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5341   # <limits.h> exists even on freestanding compilers.
5342   # On the NeXT, cc -E runs the code through the compiler's parser,
5343   # not just through cpp. "Syntax error" is here to catch this case.
5344   cat >conftest.$ac_ext <<_ACEOF
5345 /* confdefs.h.  */
5346 _ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h.  */
5350 #ifdef __STDC__
5351 # include <limits.h>
5352 #else
5353 # include <assert.h>
5354 #endif
5355                      Syntax error
5356 _ACEOF
5357 if { (ac_try="$ac_cpp conftest.$ac_ext"
5358 case "(($ac_try" in
5359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360   *) ac_try_echo=$ac_try;;
5361 esac
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5364   ac_status=$?
5365   grep -v '^ *+' conftest.er1 >conftest.err
5366   rm -f conftest.er1
5367   cat conftest.err >&5
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); } >/dev/null; then
5370   if test -s conftest.err; then
5371     ac_cpp_err=$ac_c_preproc_warn_flag
5372     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5373   else
5374     ac_cpp_err=
5375   fi
5376 else
5377   ac_cpp_err=yes
5378 fi
5379 if test -z "$ac_cpp_err"; then
5380   :
5381 else
5382   echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5384
5385   # Broken: fails on valid input.
5386 continue
5387 fi
5388
5389 rm -f conftest.err conftest.$ac_ext
5390
5391   # OK, works on sane cases.  Now check whether nonexistent headers
5392   # can be detected and how.
5393   cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h.  */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h.  */
5399 #include <ac_nonexistent.h>
5400 _ACEOF
5401 if { (ac_try="$ac_cpp conftest.$ac_ext"
5402 case "(($ac_try" in
5403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404   *) ac_try_echo=$ac_try;;
5405 esac
5406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5408   ac_status=$?
5409   grep -v '^ *+' conftest.er1 >conftest.err
5410   rm -f conftest.er1
5411   cat conftest.err >&5
5412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413   (exit $ac_status); } >/dev/null; then
5414   if test -s conftest.err; then
5415     ac_cpp_err=$ac_c_preproc_warn_flag
5416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5417   else
5418     ac_cpp_err=
5419   fi
5420 else
5421   ac_cpp_err=yes
5422 fi
5423 if test -z "$ac_cpp_err"; then
5424   # Broken: success on invalid input.
5425 continue
5426 else
5427   echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5429
5430   # Passes both tests.
5431 ac_preproc_ok=:
5432 break
5433 fi
5434
5435 rm -f conftest.err conftest.$ac_ext
5436
5437 done
5438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5439 rm -f conftest.err conftest.$ac_ext
5440 if $ac_preproc_ok; then
5441   break
5442 fi
5443
5444     done
5445     ac_cv_prog_CPP=$CPP
5446
5447 fi
5448   CPP=$ac_cv_prog_CPP
5449 else
5450   ac_cv_prog_CPP=$CPP
5451 fi
5452 { echo "$as_me:$LINENO: result: $CPP" >&5
5453 echo "${ECHO_T}$CPP" >&6; }
5454 ac_preproc_ok=false
5455 for ac_c_preproc_warn_flag in '' yes
5456 do
5457   # Use a header file that comes with gcc, so configuring glibc
5458   # with a fresh cross-compiler works.
5459   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5460   # <limits.h> exists even on freestanding compilers.
5461   # On the NeXT, cc -E runs the code through the compiler's parser,
5462   # not just through cpp. "Syntax error" is here to catch this case.
5463   cat >conftest.$ac_ext <<_ACEOF
5464 /* confdefs.h.  */
5465 _ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h.  */
5469 #ifdef __STDC__
5470 # include <limits.h>
5471 #else
5472 # include <assert.h>
5473 #endif
5474                      Syntax error
5475 _ACEOF
5476 if { (ac_try="$ac_cpp conftest.$ac_ext"
5477 case "(($ac_try" in
5478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479   *) ac_try_echo=$ac_try;;
5480 esac
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5483   ac_status=$?
5484   grep -v '^ *+' conftest.er1 >conftest.err
5485   rm -f conftest.er1
5486   cat conftest.err >&5
5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488   (exit $ac_status); } >/dev/null; then
5489   if test -s conftest.err; then
5490     ac_cpp_err=$ac_c_preproc_warn_flag
5491     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5492   else
5493     ac_cpp_err=
5494   fi
5495 else
5496   ac_cpp_err=yes
5497 fi
5498 if test -z "$ac_cpp_err"; then
5499   :
5500 else
5501   echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5503
5504   # Broken: fails on valid input.
5505 continue
5506 fi
5507
5508 rm -f conftest.err conftest.$ac_ext
5509
5510   # OK, works on sane cases.  Now check whether nonexistent headers
5511   # can be detected and how.
5512   cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h.  */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h.  */
5518 #include <ac_nonexistent.h>
5519 _ACEOF
5520 if { (ac_try="$ac_cpp conftest.$ac_ext"
5521 case "(($ac_try" in
5522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523   *) ac_try_echo=$ac_try;;
5524 esac
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5527   ac_status=$?
5528   grep -v '^ *+' conftest.er1 >conftest.err
5529   rm -f conftest.er1
5530   cat conftest.err >&5
5531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532   (exit $ac_status); } >/dev/null; then
5533   if test -s conftest.err; then
5534     ac_cpp_err=$ac_c_preproc_warn_flag
5535     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5536   else
5537     ac_cpp_err=
5538   fi
5539 else
5540   ac_cpp_err=yes
5541 fi
5542 if test -z "$ac_cpp_err"; then
5543   # Broken: success on invalid input.
5544 continue
5545 else
5546   echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5548
5549   # Passes both tests.
5550 ac_preproc_ok=:
5551 break
5552 fi
5553
5554 rm -f conftest.err conftest.$ac_ext
5555
5556 done
5557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5558 rm -f conftest.err conftest.$ac_ext
5559 if $ac_preproc_ok; then
5560   :
5561 else
5562   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5563 See \`config.log' for more details." >&5
5564 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5565 See \`config.log' for more details." >&2;}
5566    { (exit 1); exit 1; }; }
5567 fi
5568
5569 ac_ext=c
5570 ac_cpp='$CPP $CPPFLAGS'
5571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5574
5575 ac_ext=c
5576 ac_cpp='$CPP $CPPFLAGS'
5577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5580 if test -n "$ac_tool_prefix"; then
5581   for ac_prog in gcc
5582   do
5583     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5587 if test "${ac_cv_prog_CC+set}" = set; then
5588   echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590   if test -n "$CC"; then
5591   ac_cv_prog_CC="$CC" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5595 do
5596   IFS=$as_save_IFS
5597   test -z "$as_dir" && as_dir=.
5598   for ac_exec_ext in '' $ac_executable_extensions; do
5599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5600     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602     break 2
5603   fi
5604 done
5605 done
5606 IFS=$as_save_IFS
5607
5608 fi
5609 fi
5610 CC=$ac_cv_prog_CC
5611 if test -n "$CC"; then
5612   { echo "$as_me:$LINENO: result: $CC" >&5
5613 echo "${ECHO_T}$CC" >&6; }
5614 else
5615   { echo "$as_me:$LINENO: result: no" >&5
5616 echo "${ECHO_T}no" >&6; }
5617 fi
5618
5619
5620     test -n "$CC" && break
5621   done
5622 fi
5623 if test -z "$CC"; then
5624   ac_ct_CC=$CC
5625   for ac_prog in gcc
5626 do
5627   # Extract the first word of "$ac_prog", so it can be a program name with args.
5628 set dummy $ac_prog; ac_word=$2
5629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5632   echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634   if test -n "$ac_ct_CC"; then
5635   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5636 else
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5639 do
5640   IFS=$as_save_IFS
5641   test -z "$as_dir" && as_dir=.
5642   for ac_exec_ext in '' $ac_executable_extensions; do
5643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5644     ac_cv_prog_ac_ct_CC="$ac_prog"
5645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5646     break 2
5647   fi
5648 done
5649 done
5650 IFS=$as_save_IFS
5651
5652 fi
5653 fi
5654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5655 if test -n "$ac_ct_CC"; then
5656   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5657 echo "${ECHO_T}$ac_ct_CC" >&6; }
5658 else
5659   { echo "$as_me:$LINENO: result: no" >&5
5660 echo "${ECHO_T}no" >&6; }
5661 fi
5662
5663
5664   test -n "$ac_ct_CC" && break
5665 done
5666
5667   if test "x$ac_ct_CC" = x; then
5668     CC=""
5669   else
5670     case $cross_compiling:$ac_tool_warned in
5671 yes:)
5672 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5673 whose name does not start with the host triplet.  If you think this
5674 configuration is useful to you, please write to autoconf@gnu.org." >&5
5675 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5676 whose name does not start with the host triplet.  If you think this
5677 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5678 ac_tool_warned=yes ;;
5679 esac
5680     CC=$ac_ct_CC
5681   fi
5682 fi
5683
5684
5685 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5686 See \`config.log' for more details." >&5
5687 echo "$as_me: error: no acceptable C compiler found in \$PATH
5688 See \`config.log' for more details." >&2;}
5689    { (exit 1); exit 1; }; }
5690
5691 # Provide some information about the compiler.
5692 echo "$as_me:$LINENO: checking for C compiler version" >&5
5693 ac_compiler=`set X $ac_compile; echo $2`
5694 { (ac_try="$ac_compiler --version >&5"
5695 case "(($ac_try" in
5696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697   *) ac_try_echo=$ac_try;;
5698 esac
5699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700   (eval "$ac_compiler --version >&5") 2>&5
5701   ac_status=$?
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); }
5704 { (ac_try="$ac_compiler -v >&5"
5705 case "(($ac_try" in
5706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707   *) ac_try_echo=$ac_try;;
5708 esac
5709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5710   (eval "$ac_compiler -v >&5") 2>&5
5711   ac_status=$?
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); }
5714 { (ac_try="$ac_compiler -V >&5"
5715 case "(($ac_try" in
5716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717   *) ac_try_echo=$ac_try;;
5718 esac
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720   (eval "$ac_compiler -V >&5") 2>&5
5721   ac_status=$?
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); }
5724
5725 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5726 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5727 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5728   echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730   cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h.  */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h.  */
5736
5737 int
5738 main ()
5739 {
5740 #ifndef __GNUC__
5741        choke me
5742 #endif
5743
5744   ;
5745   return 0;
5746 }
5747 _ACEOF
5748 rm -f conftest.$ac_objext
5749 if { (ac_try="$ac_compile"
5750 case "(($ac_try" in
5751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752   *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755   (eval "$ac_compile") 2>conftest.er1
5756   ac_status=$?
5757   grep -v '^ *+' conftest.er1 >conftest.err
5758   rm -f conftest.er1
5759   cat conftest.err >&5
5760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761   (exit $ac_status); } &&
5762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5763   { (case "(($ac_try" in
5764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765   *) ac_try_echo=$ac_try;;
5766 esac
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768   (eval "$ac_try") 2>&5
5769   ac_status=$?
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); }; } &&
5772          { ac_try='test -s conftest.$ac_objext'
5773   { (case "(($ac_try" in
5774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775   *) ac_try_echo=$ac_try;;
5776 esac
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778   (eval "$ac_try") 2>&5
5779   ac_status=$?
5780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781   (exit $ac_status); }; }; then
5782   ac_compiler_gnu=yes
5783 else
5784   echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5786
5787         ac_compiler_gnu=no
5788 fi
5789
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5792
5793 fi
5794 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5795 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5796 GCC=`test $ac_compiler_gnu = yes && echo yes`
5797 ac_test_CFLAGS=${CFLAGS+set}
5798 ac_save_CFLAGS=$CFLAGS
5799 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5800 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5801 if test "${ac_cv_prog_cc_g+set}" = set; then
5802   echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804   ac_save_c_werror_flag=$ac_c_werror_flag
5805    ac_c_werror_flag=yes
5806    ac_cv_prog_cc_g=no
5807    CFLAGS="-g"
5808    cat >conftest.$ac_ext <<_ACEOF
5809 /* confdefs.h.  */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h.  */
5814
5815 int
5816 main ()
5817 {
5818
5819   ;
5820   return 0;
5821 }
5822 _ACEOF
5823 rm -f conftest.$ac_objext
5824 if { (ac_try="$ac_compile"
5825 case "(($ac_try" in
5826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827   *) ac_try_echo=$ac_try;;
5828 esac
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830   (eval "$ac_compile") 2>conftest.er1
5831   ac_status=$?
5832   grep -v '^ *+' conftest.er1 >conftest.err
5833   rm -f conftest.er1
5834   cat conftest.err >&5
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); } &&
5837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5838   { (case "(($ac_try" in
5839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840   *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843   (eval "$ac_try") 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }; } &&
5847          { ac_try='test -s conftest.$ac_objext'
5848   { (case "(($ac_try" in
5849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850   *) ac_try_echo=$ac_try;;
5851 esac
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853   (eval "$ac_try") 2>&5
5854   ac_status=$?
5855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856   (exit $ac_status); }; }; then
5857   ac_cv_prog_cc_g=yes
5858 else
5859   echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5861
5862         CFLAGS=""
5863       cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h.  */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h.  */
5869
5870 int
5871 main ()
5872 {
5873
5874   ;
5875   return 0;
5876 }
5877 _ACEOF
5878 rm -f conftest.$ac_objext
5879 if { (ac_try="$ac_compile"
5880 case "(($ac_try" in
5881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882   *) ac_try_echo=$ac_try;;
5883 esac
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885   (eval "$ac_compile") 2>conftest.er1
5886   ac_status=$?
5887   grep -v '^ *+' conftest.er1 >conftest.err
5888   rm -f conftest.er1
5889   cat conftest.err >&5
5890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891   (exit $ac_status); } &&
5892          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5893   { (case "(($ac_try" in
5894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895   *) ac_try_echo=$ac_try;;
5896 esac
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898   (eval "$ac_try") 2>&5
5899   ac_status=$?
5900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901   (exit $ac_status); }; } &&
5902          { ac_try='test -s conftest.$ac_objext'
5903   { (case "(($ac_try" in
5904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905   *) ac_try_echo=$ac_try;;
5906 esac
5907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908   (eval "$ac_try") 2>&5
5909   ac_status=$?
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); }; }; then
5912   :
5913 else
5914   echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5916
5917         ac_c_werror_flag=$ac_save_c_werror_flag
5918          CFLAGS="-g"
5919          cat >conftest.$ac_ext <<_ACEOF
5920 /* confdefs.h.  */
5921 _ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h.  */
5925
5926 int
5927 main ()
5928 {
5929
5930   ;
5931   return 0;
5932 }
5933 _ACEOF
5934 rm -f conftest.$ac_objext
5935 if { (ac_try="$ac_compile"
5936 case "(($ac_try" in
5937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938   *) ac_try_echo=$ac_try;;
5939 esac
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941   (eval "$ac_compile") 2>conftest.er1
5942   ac_status=$?
5943   grep -v '^ *+' conftest.er1 >conftest.err
5944   rm -f conftest.er1
5945   cat conftest.err >&5
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); } &&
5948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5949   { (case "(($ac_try" in
5950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951   *) ac_try_echo=$ac_try;;
5952 esac
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954   (eval "$ac_try") 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); }; } &&
5958          { ac_try='test -s conftest.$ac_objext'
5959   { (case "(($ac_try" in
5960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961   *) ac_try_echo=$ac_try;;
5962 esac
5963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964   (eval "$ac_try") 2>&5
5965   ac_status=$?
5966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967   (exit $ac_status); }; }; then
5968   ac_cv_prog_cc_g=yes
5969 else
5970   echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5972
5973
5974 fi
5975
5976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977 fi
5978
5979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980 fi
5981
5982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983    ac_c_werror_flag=$ac_save_c_werror_flag
5984 fi
5985 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5986 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5987 if test "$ac_test_CFLAGS" = set; then
5988   CFLAGS=$ac_save_CFLAGS
5989 elif test $ac_cv_prog_cc_g = yes; then
5990   if test "$GCC" = yes; then
5991     CFLAGS="-g -O2"
5992   else
5993     CFLAGS="-g"
5994   fi
5995 else
5996   if test "$GCC" = yes; then
5997     CFLAGS="-O2"
5998   else
5999     CFLAGS=
6000   fi
6001 fi
6002 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6003 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6004 if test "${ac_cv_prog_cc_c89+set}" = set; then
6005   echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007   ac_cv_prog_cc_c89=no
6008 ac_save_CC=$CC
6009 cat >conftest.$ac_ext <<_ACEOF
6010 /* confdefs.h.  */
6011 _ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h.  */
6015 #include <stdarg.h>
6016 #include <stdio.h>
6017 #include <sys/types.h>
6018 #include <sys/stat.h>
6019 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6020 struct buf { int x; };
6021 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6022 static char *e (p, i)
6023      char **p;
6024      int i;
6025 {
6026   return p[i];
6027 }
6028 static char *f (char * (*g) (char **, int), char **p, ...)
6029 {
6030   char *s;
6031   va_list v;
6032   va_start (v,p);
6033   s = g (p, va_arg (v,int));
6034   va_end (v);
6035   return s;
6036 }
6037
6038 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6039    function prototypes and stuff, but not '\xHH' hex character constants.
6040    These don't provoke an error unfortunately, instead are silently treated
6041    as 'x'.  The following induces an error, until -std is added to get
6042    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6043    array size at least.  It's necessary to write '\x00'==0 to get something
6044    that's true only with -std.  */
6045 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6046
6047 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6048    inside strings and character constants.  */
6049 #define FOO(x) 'x'
6050 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6051
6052 int test (int i, double x);
6053 struct s1 {int (*f) (int a);};
6054 struct s2 {int (*f) (double a);};
6055 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6056 int argc;
6057 char **argv;
6058 int
6059 main ()
6060 {
6061 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6062   ;
6063   return 0;
6064 }
6065 _ACEOF
6066 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6067         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6068 do
6069   CC="$ac_save_CC $ac_arg"
6070   rm -f conftest.$ac_objext
6071 if { (ac_try="$ac_compile"
6072 case "(($ac_try" in
6073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074   *) ac_try_echo=$ac_try;;
6075 esac
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077   (eval "$ac_compile") 2>conftest.er1
6078   ac_status=$?
6079   grep -v '^ *+' conftest.er1 >conftest.err
6080   rm -f conftest.er1
6081   cat conftest.err >&5
6082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083   (exit $ac_status); } &&
6084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6085   { (case "(($ac_try" in
6086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087   *) ac_try_echo=$ac_try;;
6088 esac
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090   (eval "$ac_try") 2>&5
6091   ac_status=$?
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); }; } &&
6094          { ac_try='test -s conftest.$ac_objext'
6095   { (case "(($ac_try" in
6096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6097   *) ac_try_echo=$ac_try;;
6098 esac
6099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6100   (eval "$ac_try") 2>&5
6101   ac_status=$?
6102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103   (exit $ac_status); }; }; then
6104   ac_cv_prog_cc_c89=$ac_arg
6105 else
6106   echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6108
6109
6110 fi
6111
6112 rm -f core conftest.err conftest.$ac_objext
6113   test "x$ac_cv_prog_cc_c89" != "xno" && break
6114 done
6115 rm -f conftest.$ac_ext
6116 CC=$ac_save_CC
6117
6118 fi
6119 # AC_CACHE_VAL
6120 case "x$ac_cv_prog_cc_c89" in
6121   x)
6122     { echo "$as_me:$LINENO: result: none needed" >&5
6123 echo "${ECHO_T}none needed" >&6; } ;;
6124   xno)
6125     { echo "$as_me:$LINENO: result: unsupported" >&5
6126 echo "${ECHO_T}unsupported" >&6; } ;;
6127   *)
6128     CC="$CC $ac_cv_prog_cc_c89"
6129     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6130 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6131 esac
6132
6133
6134 ac_ext=c
6135 ac_cpp='$CPP $CPPFLAGS'
6136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6139
6140 ac_ext=cpp
6141 ac_cpp='$CXXCPP $CPPFLAGS'
6142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6145 if test -z "$CXX"; then
6146   if test -n "$CCC"; then
6147     CXX=$CCC
6148   else
6149     if test -n "$ac_tool_prefix"; then
6150   for ac_prog in g++
6151   do
6152     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6156 if test "${ac_cv_prog_CXX+set}" = set; then
6157   echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159   if test -n "$CXX"; then
6160   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6161 else
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH
6164 do
6165   IFS=$as_save_IFS
6166   test -z "$as_dir" && as_dir=.
6167   for ac_exec_ext in '' $ac_executable_extensions; do
6168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6169     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171     break 2
6172   fi
6173 done
6174 done
6175 IFS=$as_save_IFS
6176
6177 fi
6178 fi
6179 CXX=$ac_cv_prog_CXX
6180 if test -n "$CXX"; then
6181   { echo "$as_me:$LINENO: result: $CXX" >&5
6182 echo "${ECHO_T}$CXX" >&6; }
6183 else
6184   { echo "$as_me:$LINENO: result: no" >&5
6185 echo "${ECHO_T}no" >&6; }
6186 fi
6187
6188
6189     test -n "$CXX" && break
6190   done
6191 fi
6192 if test -z "$CXX"; then
6193   ac_ct_CXX=$CXX
6194   for ac_prog in g++
6195 do
6196   # Extract the first word of "$ac_prog", so it can be a program name with args.
6197 set dummy $ac_prog; ac_word=$2
6198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6200 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6201   echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203   if test -n "$ac_ct_CXX"; then
6204   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6208 do
6209   IFS=$as_save_IFS
6210   test -z "$as_dir" && as_dir=.
6211   for ac_exec_ext in '' $ac_executable_extensions; do
6212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6213     ac_cv_prog_ac_ct_CXX="$ac_prog"
6214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215     break 2
6216   fi
6217 done
6218 done
6219 IFS=$as_save_IFS
6220
6221 fi
6222 fi
6223 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6224 if test -n "$ac_ct_CXX"; then
6225   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6226 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6227 else
6228   { echo "$as_me:$LINENO: result: no" >&5
6229 echo "${ECHO_T}no" >&6; }
6230 fi
6231
6232
6233   test -n "$ac_ct_CXX" && break
6234 done
6235
6236   if test "x$ac_ct_CXX" = x; then
6237     CXX="g++"
6238   else
6239     case $cross_compiling:$ac_tool_warned in
6240 yes:)
6241 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6242 whose name does not start with the host triplet.  If you think this
6243 configuration is useful to you, please write to autoconf@gnu.org." >&5
6244 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6245 whose name does not start with the host triplet.  If you think this
6246 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6247 ac_tool_warned=yes ;;
6248 esac
6249     CXX=$ac_ct_CXX
6250   fi
6251 fi
6252
6253   fi
6254 fi
6255 # Provide some information about the compiler.
6256 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6257 ac_compiler=`set X $ac_compile; echo $2`
6258 { (ac_try="$ac_compiler --version >&5"
6259 case "(($ac_try" in
6260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261   *) ac_try_echo=$ac_try;;
6262 esac
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264   (eval "$ac_compiler --version >&5") 2>&5
6265   ac_status=$?
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); }
6268 { (ac_try="$ac_compiler -v >&5"
6269 case "(($ac_try" in
6270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271   *) ac_try_echo=$ac_try;;
6272 esac
6273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274   (eval "$ac_compiler -v >&5") 2>&5
6275   ac_status=$?
6276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277   (exit $ac_status); }
6278 { (ac_try="$ac_compiler -V >&5"
6279 case "(($ac_try" in
6280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281   *) ac_try_echo=$ac_try;;
6282 esac
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284   (eval "$ac_compiler -V >&5") 2>&5
6285   ac_status=$?
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); }
6288
6289 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6290 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6291 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6292   echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294   cat >conftest.$ac_ext <<_ACEOF
6295 /* confdefs.h.  */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h.  */
6300
6301 int
6302 main ()
6303 {
6304 #ifndef __GNUC__
6305        choke me
6306 #endif
6307
6308   ;
6309   return 0;
6310 }
6311 _ACEOF
6312 rm -f conftest.$ac_objext
6313 if { (ac_try="$ac_compile"
6314 case "(($ac_try" in
6315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316   *) ac_try_echo=$ac_try;;
6317 esac
6318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319   (eval "$ac_compile") 2>conftest.er1
6320   ac_status=$?
6321   grep -v '^ *+' conftest.er1 >conftest.err
6322   rm -f conftest.er1
6323   cat conftest.err >&5
6324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325   (exit $ac_status); } &&
6326          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6327   { (case "(($ac_try" in
6328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329   *) ac_try_echo=$ac_try;;
6330 esac
6331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332   (eval "$ac_try") 2>&5
6333   ac_status=$?
6334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); }; } &&
6336          { ac_try='test -s conftest.$ac_objext'
6337   { (case "(($ac_try" in
6338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339   *) ac_try_echo=$ac_try;;
6340 esac
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342   (eval "$ac_try") 2>&5
6343   ac_status=$?
6344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345   (exit $ac_status); }; }; then
6346   ac_compiler_gnu=yes
6347 else
6348   echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6350
6351         ac_compiler_gnu=no
6352 fi
6353
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6356
6357 fi
6358 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6359 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6360 GXX=`test $ac_compiler_gnu = yes && echo yes`
6361 ac_test_CXXFLAGS=${CXXFLAGS+set}
6362 ac_save_CXXFLAGS=$CXXFLAGS
6363 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6364 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6365 if test "${ac_cv_prog_cxx_g+set}" = set; then
6366   echo $ECHO_N "(cached) $ECHO_C" >&6
6367 else
6368   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6369    ac_cxx_werror_flag=yes
6370    ac_cv_prog_cxx_g=no
6371    CXXFLAGS="-g"
6372    cat >conftest.$ac_ext <<_ACEOF
6373 /* confdefs.h.  */
6374 _ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h.  */
6378
6379 int
6380 main ()
6381 {
6382
6383   ;
6384   return 0;
6385 }
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (ac_try="$ac_compile"
6389 case "(($ac_try" in
6390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391   *) ac_try_echo=$ac_try;;
6392 esac
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394   (eval "$ac_compile") 2>conftest.er1
6395   ac_status=$?
6396   grep -v '^ *+' conftest.er1 >conftest.err
6397   rm -f conftest.er1
6398   cat conftest.err >&5
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); } &&
6401          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6402   { (case "(($ac_try" in
6403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404   *) ac_try_echo=$ac_try;;
6405 esac
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407   (eval "$ac_try") 2>&5
6408   ac_status=$?
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); }; } &&
6411          { ac_try='test -s conftest.$ac_objext'
6412   { (case "(($ac_try" in
6413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414   *) ac_try_echo=$ac_try;;
6415 esac
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417   (eval "$ac_try") 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); }; }; then
6421   ac_cv_prog_cxx_g=yes
6422 else
6423   echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6425
6426         CXXFLAGS=""
6427       cat >conftest.$ac_ext <<_ACEOF
6428 /* confdefs.h.  */
6429 _ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h.  */
6433
6434 int
6435 main ()
6436 {
6437
6438   ;
6439   return 0;
6440 }
6441 _ACEOF
6442 rm -f conftest.$ac_objext
6443 if { (ac_try="$ac_compile"
6444 case "(($ac_try" in
6445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446   *) ac_try_echo=$ac_try;;
6447 esac
6448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449   (eval "$ac_compile") 2>conftest.er1
6450   ac_status=$?
6451   grep -v '^ *+' conftest.er1 >conftest.err
6452   rm -f conftest.er1
6453   cat conftest.err >&5
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); } &&
6456          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6457   { (case "(($ac_try" in
6458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459   *) ac_try_echo=$ac_try;;
6460 esac
6461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462   (eval "$ac_try") 2>&5
6463   ac_status=$?
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); }; } &&
6466          { ac_try='test -s conftest.$ac_objext'
6467   { (case "(($ac_try" in
6468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469   *) ac_try_echo=$ac_try;;
6470 esac
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472   (eval "$ac_try") 2>&5
6473   ac_status=$?
6474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475   (exit $ac_status); }; }; then
6476   :
6477 else
6478   echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.$ac_ext >&5
6480
6481         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6482          CXXFLAGS="-g"
6483          cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h.  */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h.  */
6489
6490 int
6491 main ()
6492 {
6493
6494   ;
6495   return 0;
6496 }
6497 _ACEOF
6498 rm -f conftest.$ac_objext
6499 if { (ac_try="$ac_compile"
6500 case "(($ac_try" in
6501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502   *) ac_try_echo=$ac_try;;
6503 esac
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505   (eval "$ac_compile") 2>conftest.er1
6506   ac_status=$?
6507   grep -v '^ *+' conftest.er1 >conftest.err
6508   rm -f conftest.er1
6509   cat conftest.err >&5
6510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); } &&
6512          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6513   { (case "(($ac_try" in
6514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515   *) ac_try_echo=$ac_try;;
6516 esac
6517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518   (eval "$ac_try") 2>&5
6519   ac_status=$?
6520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521   (exit $ac_status); }; } &&
6522          { ac_try='test -s conftest.$ac_objext'
6523   { (case "(($ac_try" in
6524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525   *) ac_try_echo=$ac_try;;
6526 esac
6527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528   (eval "$ac_try") 2>&5
6529   ac_status=$?
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); }; }; then
6532   ac_cv_prog_cxx_g=yes
6533 else
6534   echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6536
6537
6538 fi
6539
6540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541 fi
6542
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 fi
6545
6546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6548 fi
6549 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6550 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6551 if test "$ac_test_CXXFLAGS" = set; then
6552   CXXFLAGS=$ac_save_CXXFLAGS
6553 elif test $ac_cv_prog_cxx_g = yes; then
6554   if test "$GXX" = yes; then
6555     CXXFLAGS="-g -O2"
6556   else
6557     CXXFLAGS="-g"
6558   fi
6559 else
6560   if test "$GXX" = yes; then
6561     CXXFLAGS="-O2"
6562   else
6563     CXXFLAGS=
6564   fi
6565 fi
6566 ac_ext=c
6567 ac_cpp='$CPP $CPPFLAGS'
6568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6571
6572
6573 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6574 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6575 if test "${lt_cv_path_NM+set}" = set; then
6576   echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578   if test -n "$NM"; then
6579   # Let the user override the test.
6580   lt_cv_path_NM="$NM"
6581 else
6582   lt_nm_to_check="${ac_tool_prefix}nm"
6583   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6584     lt_nm_to_check="$lt_nm_to_check nm"
6585   fi
6586   for lt_tmp_nm in $lt_nm_to_check; do
6587     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6588     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6589       IFS="$lt_save_ifs"
6590       test -z "$ac_dir" && ac_dir=.
6591       tmp_nm="$ac_dir/$lt_tmp_nm"
6592       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6593         # Check to see if the nm accepts a BSD-compat flag.
6594         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6595         #   nm: unknown option "B" ignored
6596         # Tru64's nm complains that /dev/null is an invalid object file
6597         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6598         */dev/null* | *'Invalid file or object type'*)
6599           lt_cv_path_NM="$tmp_nm -B"
6600           break
6601           ;;
6602         *)
6603           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6604           */dev/null*)
6605             lt_cv_path_NM="$tmp_nm -p"
6606             break
6607             ;;
6608           *)
6609             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6610             continue # so that we can try to find one that supports BSD flags
6611             ;;
6612           esac
6613           ;;
6614         esac
6615       fi
6616     done
6617     IFS="$lt_save_ifs"
6618   done
6619   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6620 fi
6621 fi
6622 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6623 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6624 NM="$lt_cv_path_NM"
6625
6626
6627
6628 { echo "$as_me:$LINENO: checking for GNU make" >&5
6629 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6630 if test "${llvm_cv_gnu_make_command+set}" = set; then
6631   echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633   llvm_cv_gnu_make_command=''
6634  for a in "$MAKE" make gmake gnumake ; do
6635   if test -z "$a" ; then continue ; fi ;
6636   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6637   then
6638    llvm_cv_gnu_make_command=$a ;
6639    break;
6640   fi
6641  done
6642 fi
6643 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6644 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6645  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6646    ifGNUmake='' ;
6647  else
6648    ifGNUmake='#' ;
6649    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6650 echo "${ECHO_T}\"Not found\"" >&6; };
6651  fi
6652
6653
6654 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6655 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6656 LN_S=$as_ln_s
6657 if test "$LN_S" = "ln -s"; then
6658   { echo "$as_me:$LINENO: result: yes" >&5
6659 echo "${ECHO_T}yes" >&6; }
6660 else
6661   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6662 echo "${ECHO_T}no, using $LN_S" >&6; }
6663 fi
6664
6665 # Extract the first word of "cmp", so it can be a program name with args.
6666 set dummy cmp; ac_word=$2
6667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669 if test "${ac_cv_path_CMP+set}" = set; then
6670   echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672   case $CMP in
6673   [\\/]* | ?:[\\/]*)
6674   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6675   ;;
6676   *)
6677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680   IFS=$as_save_IFS
6681   test -z "$as_dir" && as_dir=.
6682   for ac_exec_ext in '' $ac_executable_extensions; do
6683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6684     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686     break 2
6687   fi
6688 done
6689 done
6690 IFS=$as_save_IFS
6691
6692   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6693   ;;
6694 esac
6695 fi
6696 CMP=$ac_cv_path_CMP
6697 if test -n "$CMP"; then
6698   { echo "$as_me:$LINENO: result: $CMP" >&5
6699 echo "${ECHO_T}$CMP" >&6; }
6700 else
6701   { echo "$as_me:$LINENO: result: no" >&5
6702 echo "${ECHO_T}no" >&6; }
6703 fi
6704
6705
6706 # Extract the first word of "cp", so it can be a program name with args.
6707 set dummy cp; ac_word=$2
6708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710 if test "${ac_cv_path_CP+set}" = set; then
6711   echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713   case $CP in
6714   [\\/]* | ?:[\\/]*)
6715   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6716   ;;
6717   *)
6718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721   IFS=$as_save_IFS
6722   test -z "$as_dir" && as_dir=.
6723   for ac_exec_ext in '' $ac_executable_extensions; do
6724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6725     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727     break 2
6728   fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6734   ;;
6735 esac
6736 fi
6737 CP=$ac_cv_path_CP
6738 if test -n "$CP"; then
6739   { echo "$as_me:$LINENO: result: $CP" >&5
6740 echo "${ECHO_T}$CP" >&6; }
6741 else
6742   { echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6; }
6744 fi
6745
6746
6747 # Extract the first word of "date", so it can be a program name with args.
6748 set dummy date; 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_DATE+set}" = set; then
6752   echo $ECHO_N "(cached) $ECHO_C" >&6
6753 else
6754   case $DATE in
6755   [\\/]* | ?:[\\/]*)
6756   ac_cv_path_DATE="$DATE" # 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_DATE="$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_DATE" && ac_cv_path_DATE="date"
6775   ;;
6776 esac
6777 fi
6778 DATE=$ac_cv_path_DATE
6779 if test -n "$DATE"; then
6780   { echo "$as_me:$LINENO: result: $DATE" >&5
6781 echo "${ECHO_T}$DATE" >&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 "find", so it can be a program name with args.
6789 set dummy find; 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_FIND+set}" = set; then
6793   echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795   case $FIND in
6796   [\\/]* | ?:[\\/]*)
6797   ac_cv_path_FIND="$FIND" # 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_FIND="$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_FIND" && ac_cv_path_FIND="find"
6816   ;;
6817 esac
6818 fi
6819 FIND=$ac_cv_path_FIND
6820 if test -n "$FIND"; then
6821   { echo "$as_me:$LINENO: result: $FIND" >&5
6822 echo "${ECHO_T}$FIND" >&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 "grep", so it can be a program name with args.
6830 set dummy grep; 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_GREP+set}" = set; then
6834   echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836   case $GREP in
6837   [\\/]* | ?:[\\/]*)
6838   ac_cv_path_GREP="$GREP" # 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_GREP="$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_GREP" && ac_cv_path_GREP="grep"
6857   ;;
6858 esac
6859 fi
6860 GREP=$ac_cv_path_GREP
6861 if test -n "$GREP"; then
6862   { echo "$as_me:$LINENO: result: $GREP" >&5
6863 echo "${ECHO_T}$GREP" >&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 "mkdir", so it can be a program name with args.
6871 set dummy mkdir; 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_MKDIR+set}" = set; then
6875   echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877   case $MKDIR in
6878   [\\/]* | ?:[\\/]*)
6879   ac_cv_path_MKDIR="$MKDIR" # 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_MKDIR="$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_MKDIR" && ac_cv_path_MKDIR="mkdir"
6898   ;;
6899 esac
6900 fi
6901 MKDIR=$ac_cv_path_MKDIR
6902 if test -n "$MKDIR"; then
6903   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6904 echo "${ECHO_T}$MKDIR" >&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 "mv", so it can be a program name with args.
6912 set dummy mv; 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_MV+set}" = set; then
6916   echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918   case $MV in
6919   [\\/]* | ?:[\\/]*)
6920   ac_cv_path_MV="$MV" # 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_MV="$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_MV" && ac_cv_path_MV="mv"
6939   ;;
6940 esac
6941 fi
6942 MV=$ac_cv_path_MV
6943 if test -n "$MV"; then
6944   { echo "$as_me:$LINENO: result: $MV" >&5
6945 echo "${ECHO_T}$MV" >&6; }
6946 else
6947   { echo "$as_me:$LINENO: result: no" >&5
6948 echo "${ECHO_T}no" >&6; }
6949 fi
6950
6951
6952 if test -n "$ac_tool_prefix"; then
6953   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6954 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6957 if test "${ac_cv_prog_RANLIB+set}" = set; then
6958   echo $ECHO_N "(cached) $ECHO_C" >&6
6959 else
6960   if test -n "$RANLIB"; then
6961   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6965 do
6966   IFS=$as_save_IFS
6967   test -z "$as_dir" && as_dir=.
6968   for ac_exec_ext in '' $ac_executable_extensions; do
6969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6970     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972     break 2
6973   fi
6974 done
6975 done
6976 IFS=$as_save_IFS
6977
6978 fi
6979 fi
6980 RANLIB=$ac_cv_prog_RANLIB
6981 if test -n "$RANLIB"; then
6982   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6983 echo "${ECHO_T}$RANLIB" >&6; }
6984 else
6985   { echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6; }
6987 fi
6988
6989
6990 fi
6991 if test -z "$ac_cv_prog_RANLIB"; then
6992   ac_ct_RANLIB=$RANLIB
6993   # Extract the first word of "ranlib", so it can be a program name with args.
6994 set dummy ranlib; 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_prog_ac_ct_RANLIB+set}" = set; then
6998   echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000   if test -n "$ac_ct_RANLIB"; then
7001   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7002 else
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7005 do
7006   IFS=$as_save_IFS
7007   test -z "$as_dir" && as_dir=.
7008   for ac_exec_ext in '' $ac_executable_extensions; do
7009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7010     ac_cv_prog_ac_ct_RANLIB="ranlib"
7011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7012     break 2
7013   fi
7014 done
7015 done
7016 IFS=$as_save_IFS
7017
7018 fi
7019 fi
7020 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7021 if test -n "$ac_ct_RANLIB"; then
7022   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7023 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7024 else
7025   { echo "$as_me:$LINENO: result: no" >&5
7026 echo "${ECHO_T}no" >&6; }
7027 fi
7028
7029   if test "x$ac_ct_RANLIB" = x; then
7030     RANLIB=":"
7031   else
7032     case $cross_compiling:$ac_tool_warned in
7033 yes:)
7034 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7035 whose name does not start with the host triplet.  If you think this
7036 configuration is useful to you, please write to autoconf@gnu.org." >&5
7037 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7038 whose name does not start with the host triplet.  If you think this
7039 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7040 ac_tool_warned=yes ;;
7041 esac
7042     RANLIB=$ac_ct_RANLIB
7043   fi
7044 else
7045   RANLIB="$ac_cv_prog_RANLIB"
7046 fi
7047
7048 # Extract the first word of "rm", so it can be a program name with args.
7049 set dummy rm; ac_word=$2
7050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7052 if test "${ac_cv_path_RM+set}" = set; then
7053   echo $ECHO_N "(cached) $ECHO_C" >&6
7054 else
7055   case $RM in
7056   [\\/]* | ?:[\\/]*)
7057   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7058   ;;
7059   *)
7060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in $PATH
7062 do
7063   IFS=$as_save_IFS
7064   test -z "$as_dir" && as_dir=.
7065   for ac_exec_ext in '' $ac_executable_extensions; do
7066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7067     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7069     break 2
7070   fi
7071 done
7072 done
7073 IFS=$as_save_IFS
7074
7075   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7076   ;;
7077 esac
7078 fi
7079 RM=$ac_cv_path_RM
7080 if test -n "$RM"; then
7081   { echo "$as_me:$LINENO: result: $RM" >&5
7082 echo "${ECHO_T}$RM" >&6; }
7083 else
7084   { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7086 fi
7087
7088
7089 # Extract the first word of "sed", so it can be a program name with args.
7090 set dummy sed; ac_word=$2
7091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7093 if test "${ac_cv_path_SED+set}" = set; then
7094   echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096   case $SED in
7097   [\\/]* | ?:[\\/]*)
7098   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7099   ;;
7100   *)
7101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7103 do
7104   IFS=$as_save_IFS
7105   test -z "$as_dir" && as_dir=.
7106   for ac_exec_ext in '' $ac_executable_extensions; do
7107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7108     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110     break 2
7111   fi
7112 done
7113 done
7114 IFS=$as_save_IFS
7115
7116   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7117   ;;
7118 esac
7119 fi
7120 SED=$ac_cv_path_SED
7121 if test -n "$SED"; then
7122   { echo "$as_me:$LINENO: result: $SED" >&5
7123 echo "${ECHO_T}$SED" >&6; }
7124 else
7125   { echo "$as_me:$LINENO: result: no" >&5
7126 echo "${ECHO_T}no" >&6; }
7127 fi
7128
7129
7130 # Extract the first word of "tar", so it can be a program name with args.
7131 set dummy tar; 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_TAR+set}" = set; then
7135   echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137   case $TAR in
7138   [\\/]* | ?:[\\/]*)
7139   ac_cv_path_TAR="$TAR" # 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_TAR="$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_TAR" && ac_cv_path_TAR="gtar"
7158   ;;
7159 esac
7160 fi
7161 TAR=$ac_cv_path_TAR
7162 if test -n "$TAR"; then
7163   { echo "$as_me:$LINENO: result: $TAR" >&5
7164 echo "${ECHO_T}$TAR" >&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 "pwd", so it can be a program name with args.
7172 set dummy pwd; 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_BINPWD+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   case $BINPWD in
7179   [\\/]* | ?:[\\/]*)
7180   ac_cv_path_BINPWD="$BINPWD" # 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_BINPWD="$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_BINPWD" && ac_cv_path_BINPWD="pwd"
7199   ;;
7200 esac
7201 fi
7202 BINPWD=$ac_cv_path_BINPWD
7203 if test -n "$BINPWD"; then
7204   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7205 echo "${ECHO_T}$BINPWD" >&6; }
7206 else
7207   { echo "$as_me:$LINENO: result: no" >&5
7208 echo "${ECHO_T}no" >&6; }
7209 fi
7210
7211
7212
7213 # Extract the first word of "Graphviz", so it can be a program name with args.
7214 set dummy Graphviz; ac_word=$2
7215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7218   echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220   case $GRAPHVIZ in
7221   [\\/]* | ?:[\\/]*)
7222   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7223   ;;
7224   *)
7225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 for as_dir in $PATH
7227 do
7228   IFS=$as_save_IFS
7229   test -z "$as_dir" && as_dir=.
7230   for ac_exec_ext in '' $ac_executable_extensions; do
7231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7232     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234     break 2
7235   fi
7236 done
7237 done
7238 IFS=$as_save_IFS
7239
7240   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7241   ;;
7242 esac
7243 fi
7244 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7245 if test -n "$GRAPHVIZ"; then
7246   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7247 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7248 else
7249   { echo "$as_me:$LINENO: result: no" >&5
7250 echo "${ECHO_T}no" >&6; }
7251 fi
7252
7253
7254 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7255
7256 cat >>confdefs.h <<\_ACEOF
7257 #define HAVE_GRAPHVIZ 1
7258 _ACEOF
7259
7260     if test "$llvm_cv_os_type" = "MingW" ; then
7261     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7262   fi
7263
7264 cat >>confdefs.h <<_ACEOF
7265 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7266 _ACEOF
7267
7268 fi
7269 # Extract the first word of "dot", so it can be a program name with args.
7270 set dummy dot; ac_word=$2
7271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7273 if test "${ac_cv_path_DOT+set}" = set; then
7274   echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276   case $DOT in
7277   [\\/]* | ?:[\\/]*)
7278   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7279   ;;
7280   *)
7281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284   IFS=$as_save_IFS
7285   test -z "$as_dir" && as_dir=.
7286   for ac_exec_ext in '' $ac_executable_extensions; do
7287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7288     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290     break 2
7291   fi
7292 done
7293 done
7294 IFS=$as_save_IFS
7295
7296   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7297   ;;
7298 esac
7299 fi
7300 DOT=$ac_cv_path_DOT
7301 if test -n "$DOT"; then
7302   { echo "$as_me:$LINENO: result: $DOT" >&5
7303 echo "${ECHO_T}$DOT" >&6; }
7304 else
7305   { echo "$as_me:$LINENO: result: no" >&5
7306 echo "${ECHO_T}no" >&6; }
7307 fi
7308
7309
7310 if test "$DOT" != "echo dot" ; then
7311
7312 cat >>confdefs.h <<\_ACEOF
7313 #define HAVE_DOT 1
7314 _ACEOF
7315
7316     if test "$llvm_cv_os_type" = "MingW" ; then
7317     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7318   fi
7319
7320 cat >>confdefs.h <<_ACEOF
7321 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7322 _ACEOF
7323
7324 fi
7325 # Extract the first word of "fdp", so it can be a program name with args.
7326 set dummy fdp; ac_word=$2
7327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329 if test "${ac_cv_path_FDP+set}" = set; then
7330   echo $ECHO_N "(cached) $ECHO_C" >&6
7331 else
7332   case $FDP in
7333   [\\/]* | ?:[\\/]*)
7334   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7335   ;;
7336   *)
7337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340   IFS=$as_save_IFS
7341   test -z "$as_dir" && as_dir=.
7342   for ac_exec_ext in '' $ac_executable_extensions; do
7343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7344     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346     break 2
7347   fi
7348 done
7349 done
7350 IFS=$as_save_IFS
7351
7352   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7353   ;;
7354 esac
7355 fi
7356 FDP=$ac_cv_path_FDP
7357 if test -n "$FDP"; then
7358   { echo "$as_me:$LINENO: result: $FDP" >&5
7359 echo "${ECHO_T}$FDP" >&6; }
7360 else
7361   { echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6; }
7363 fi
7364
7365
7366 if test "$FDP" != "echo fdp" ; then
7367
7368 cat >>confdefs.h <<\_ACEOF
7369 #define HAVE_FDP 1
7370 _ACEOF
7371
7372     if test "$llvm_cv_os_type" = "MingW" ; then
7373     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7374   fi
7375
7376 cat >>confdefs.h <<_ACEOF
7377 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7378 _ACEOF
7379
7380 fi
7381 # Extract the first word of "neato", so it can be a program name with args.
7382 set dummy neato; ac_word=$2
7383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7385 if test "${ac_cv_path_NEATO+set}" = set; then
7386   echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388   case $NEATO in
7389   [\\/]* | ?:[\\/]*)
7390   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7391   ;;
7392   *)
7393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7395 do
7396   IFS=$as_save_IFS
7397   test -z "$as_dir" && as_dir=.
7398   for ac_exec_ext in '' $ac_executable_extensions; do
7399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7400     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402     break 2
7403   fi
7404 done
7405 done
7406 IFS=$as_save_IFS
7407
7408   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7409   ;;
7410 esac
7411 fi
7412 NEATO=$ac_cv_path_NEATO
7413 if test -n "$NEATO"; then
7414   { echo "$as_me:$LINENO: result: $NEATO" >&5
7415 echo "${ECHO_T}$NEATO" >&6; }
7416 else
7417   { echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6; }
7419 fi
7420
7421
7422 if test "$NEATO" != "echo neato" ; then
7423
7424 cat >>confdefs.h <<\_ACEOF
7425 #define HAVE_NEATO 1
7426 _ACEOF
7427
7428     if test "$llvm_cv_os_type" = "MingW" ; then
7429     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7430   fi
7431
7432 cat >>confdefs.h <<_ACEOF
7433 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7434 _ACEOF
7435
7436 fi
7437 # Extract the first word of "twopi", so it can be a program name with args.
7438 set dummy twopi; ac_word=$2
7439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441 if test "${ac_cv_path_TWOPI+set}" = set; then
7442   echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444   case $TWOPI in
7445   [\\/]* | ?:[\\/]*)
7446   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7447   ;;
7448   *)
7449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7451 do
7452   IFS=$as_save_IFS
7453   test -z "$as_dir" && as_dir=.
7454   for ac_exec_ext in '' $ac_executable_extensions; do
7455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7456     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7458     break 2
7459   fi
7460 done
7461 done
7462 IFS=$as_save_IFS
7463
7464   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7465   ;;
7466 esac
7467 fi
7468 TWOPI=$ac_cv_path_TWOPI
7469 if test -n "$TWOPI"; then
7470   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7471 echo "${ECHO_T}$TWOPI" >&6; }
7472 else
7473   { echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6; }
7475 fi
7476
7477
7478 if test "$TWOPI" != "echo twopi" ; then
7479
7480 cat >>confdefs.h <<\_ACEOF
7481 #define HAVE_TWOPI 1
7482 _ACEOF
7483
7484     if test "$llvm_cv_os_type" = "MingW" ; then
7485     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7486   fi
7487
7488 cat >>confdefs.h <<_ACEOF
7489 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7490 _ACEOF
7491
7492 fi
7493 # Extract the first word of "circo", so it can be a program name with args.
7494 set dummy circo; ac_word=$2
7495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497 if test "${ac_cv_path_CIRCO+set}" = set; then
7498   echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500   case $CIRCO in
7501   [\\/]* | ?:[\\/]*)
7502   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7503   ;;
7504   *)
7505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7507 do
7508   IFS=$as_save_IFS
7509   test -z "$as_dir" && as_dir=.
7510   for ac_exec_ext in '' $ac_executable_extensions; do
7511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7512     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7514     break 2
7515   fi
7516 done
7517 done
7518 IFS=$as_save_IFS
7519
7520   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7521   ;;
7522 esac
7523 fi
7524 CIRCO=$ac_cv_path_CIRCO
7525 if test -n "$CIRCO"; then
7526   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7527 echo "${ECHO_T}$CIRCO" >&6; }
7528 else
7529   { echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6; }
7531 fi
7532
7533
7534 if test "$CIRCO" != "echo circo" ; then
7535
7536 cat >>confdefs.h <<\_ACEOF
7537 #define HAVE_CIRCO 1
7538 _ACEOF
7539
7540     if test "$llvm_cv_os_type" = "MingW" ; then
7541     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7542   fi
7543
7544 cat >>confdefs.h <<_ACEOF
7545 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7546 _ACEOF
7547
7548 fi
7549 for ac_prog in gv gsview32
7550 do
7551   # Extract the first word of "$ac_prog", so it can be a program name with args.
7552 set dummy $ac_prog; ac_word=$2
7553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555 if test "${ac_cv_path_GV+set}" = set; then
7556   echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558   case $GV in
7559   [\\/]* | ?:[\\/]*)
7560   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7561   ;;
7562   *)
7563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7565 do
7566   IFS=$as_save_IFS
7567   test -z "$as_dir" && as_dir=.
7568   for ac_exec_ext in '' $ac_executable_extensions; do
7569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7570     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572     break 2
7573   fi
7574 done
7575 done
7576 IFS=$as_save_IFS
7577
7578   ;;
7579 esac
7580 fi
7581 GV=$ac_cv_path_GV
7582 if test -n "$GV"; then
7583   { echo "$as_me:$LINENO: result: $GV" >&5
7584 echo "${ECHO_T}$GV" >&6; }
7585 else
7586   { echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6; }
7588 fi
7589
7590
7591   test -n "$GV" && break
7592 done
7593 test -n "$GV" || GV="echo gv"
7594
7595 if test "$GV" != "echo gv" ; then
7596
7597 cat >>confdefs.h <<\_ACEOF
7598 #define HAVE_GV 1
7599 _ACEOF
7600
7601     if test "$llvm_cv_os_type" = "MingW" ; then
7602     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7603   fi
7604
7605 cat >>confdefs.h <<_ACEOF
7606 #define LLVM_PATH_GV "$GV${EXEEXT}"
7607 _ACEOF
7608
7609 fi
7610 # Extract the first word of "dotty", so it can be a program name with args.
7611 set dummy dotty; ac_word=$2
7612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7614 if test "${ac_cv_path_DOTTY+set}" = set; then
7615   echo $ECHO_N "(cached) $ECHO_C" >&6
7616 else
7617   case $DOTTY in
7618   [\\/]* | ?:[\\/]*)
7619   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7620   ;;
7621   *)
7622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7624 do
7625   IFS=$as_save_IFS
7626   test -z "$as_dir" && as_dir=.
7627   for ac_exec_ext in '' $ac_executable_extensions; do
7628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7629     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7631     break 2
7632   fi
7633 done
7634 done
7635 IFS=$as_save_IFS
7636
7637   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7638   ;;
7639 esac
7640 fi
7641 DOTTY=$ac_cv_path_DOTTY
7642 if test -n "$DOTTY"; then
7643   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7644 echo "${ECHO_T}$DOTTY" >&6; }
7645 else
7646   { echo "$as_me:$LINENO: result: no" >&5
7647 echo "${ECHO_T}no" >&6; }
7648 fi
7649
7650
7651 if test "$DOTTY" != "echo dotty" ; then
7652
7653 cat >>confdefs.h <<\_ACEOF
7654 #define HAVE_DOTTY 1
7655 _ACEOF
7656
7657     if test "$llvm_cv_os_type" = "MingW" ; then
7658     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7659   fi
7660
7661 cat >>confdefs.h <<_ACEOF
7662 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7663 _ACEOF
7664
7665 fi
7666
7667
7668 # Extract the first word of "perl", so it can be a program name with args.
7669 set dummy perl; ac_word=$2
7670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672 if test "${ac_cv_path_PERL+set}" = set; then
7673   echo $ECHO_N "(cached) $ECHO_C" >&6
7674 else
7675   case $PERL in
7676   [\\/]* | ?:[\\/]*)
7677   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7678   ;;
7679   *)
7680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7682 do
7683   IFS=$as_save_IFS
7684   test -z "$as_dir" && as_dir=.
7685   for ac_exec_ext in '' $ac_executable_extensions; do
7686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7687     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689     break 2
7690   fi
7691 done
7692 done
7693 IFS=$as_save_IFS
7694
7695   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7696   ;;
7697 esac
7698 fi
7699 PERL=$ac_cv_path_PERL
7700 if test -n "$PERL"; then
7701   { echo "$as_me:$LINENO: result: $PERL" >&5
7702 echo "${ECHO_T}$PERL" >&6; }
7703 else
7704   { echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6; }
7706 fi
7707
7708
7709 if test "$PERL" != "none"; then
7710   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7711 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7712   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7713     { echo "$as_me:$LINENO: result: yes" >&5
7714 echo "${ECHO_T}yes" >&6; }
7715   else
7716     PERL=none
7717     { echo "$as_me:$LINENO: result: not found" >&5
7718 echo "${ECHO_T}not found" >&6; }
7719   fi
7720 fi
7721
7722
7723 if test x"$PERL" = xnone; then
7724    HAVE_PERL=0
7725
7726    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7727 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7728    { (exit 1); exit 1; }; }
7729 else
7730    HAVE_PERL=1
7731
7732 fi
7733
7734 # Find a good install program.  We prefer a C program (faster),
7735 # so one script is as good as another.  But avoid the broken or
7736 # incompatible versions:
7737 # SysV /etc/install, /usr/sbin/install
7738 # SunOS /usr/etc/install
7739 # IRIX /sbin/install
7740 # AIX /bin/install
7741 # AmigaOS /C/install, which installs bootblocks on floppy discs
7742 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7743 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7744 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7745 # OS/2's system install, which has a completely different semantic
7746 # ./install, which can be erroneously created by make from ./install.sh.
7747 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7748 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7749 if test -z "$INSTALL"; then
7750 if test "${ac_cv_path_install+set}" = set; then
7751   echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7755 do
7756   IFS=$as_save_IFS
7757   test -z "$as_dir" && as_dir=.
7758   # Account for people who put trailing slashes in PATH elements.
7759 case $as_dir/ in
7760   ./ | .// | /cC/* | \
7761   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7762   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7763   /usr/ucb/* ) ;;
7764   *)
7765     # OSF1 and SCO ODT 3.0 have their own names for install.
7766     # Don't use installbsd from OSF since it installs stuff as root
7767     # by default.
7768     for ac_prog in ginstall scoinst install; do
7769       for ac_exec_ext in '' $ac_executable_extensions; do
7770         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7771           if test $ac_prog = install &&
7772             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7773             # AIX install.  It has an incompatible calling convention.
7774             :
7775           elif test $ac_prog = install &&
7776             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7777             # program-specific install script used by HP pwplus--don't use.
7778             :
7779           else
7780             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7781             break 3
7782           fi
7783         fi
7784       done
7785     done
7786     ;;
7787 esac
7788 done
7789 IFS=$as_save_IFS
7790
7791
7792 fi
7793   if test "${ac_cv_path_install+set}" = set; then
7794     INSTALL=$ac_cv_path_install
7795   else
7796     # As a last resort, use the slow shell script.  Don't cache a
7797     # value for INSTALL within a source directory, because that will
7798     # break other packages using the cache if that directory is
7799     # removed, or if the value is a relative name.
7800     INSTALL=$ac_install_sh
7801   fi
7802 fi
7803 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7804 echo "${ECHO_T}$INSTALL" >&6; }
7805
7806 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7807 # It thinks the first close brace ends the variable substitution.
7808 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7809
7810 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7811
7812 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7813
7814
7815 # Extract the first word of "bzip2", so it can be a program name with args.
7816 set dummy bzip2; ac_word=$2
7817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7819 if test "${ac_cv_path_BZIP2+set}" = set; then
7820   echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822   case $BZIP2 in
7823   [\\/]* | ?:[\\/]*)
7824   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7825   ;;
7826   *)
7827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7829 do
7830   IFS=$as_save_IFS
7831   test -z "$as_dir" && as_dir=.
7832   for ac_exec_ext in '' $ac_executable_extensions; do
7833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7834     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7836     break 2
7837   fi
7838 done
7839 done
7840 IFS=$as_save_IFS
7841
7842   ;;
7843 esac
7844 fi
7845 BZIP2=$ac_cv_path_BZIP2
7846 if test -n "$BZIP2"; then
7847   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7848 echo "${ECHO_T}$BZIP2" >&6; }
7849 else
7850   { echo "$as_me:$LINENO: result: no" >&5
7851 echo "${ECHO_T}no" >&6; }
7852 fi
7853
7854
7855 # Extract the first word of "doxygen", so it can be a program name with args.
7856 set dummy doxygen; ac_word=$2
7857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7859 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7860   echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862   case $DOXYGEN in
7863   [\\/]* | ?:[\\/]*)
7864   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7865   ;;
7866   *)
7867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870   IFS=$as_save_IFS
7871   test -z "$as_dir" && as_dir=.
7872   for ac_exec_ext in '' $ac_executable_extensions; do
7873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7874     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7876     break 2
7877   fi
7878 done
7879 done
7880 IFS=$as_save_IFS
7881
7882   ;;
7883 esac
7884 fi
7885 DOXYGEN=$ac_cv_path_DOXYGEN
7886 if test -n "$DOXYGEN"; then
7887   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7888 echo "${ECHO_T}$DOXYGEN" >&6; }
7889 else
7890   { echo "$as_me:$LINENO: result: no" >&5
7891 echo "${ECHO_T}no" >&6; }
7892 fi
7893
7894
7895 # Extract the first word of "groff", so it can be a program name with args.
7896 set dummy groff; ac_word=$2
7897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7899 if test "${ac_cv_path_GROFF+set}" = set; then
7900   echo $ECHO_N "(cached) $ECHO_C" >&6
7901 else
7902   case $GROFF in
7903   [\\/]* | ?:[\\/]*)
7904   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7905   ;;
7906   *)
7907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910   IFS=$as_save_IFS
7911   test -z "$as_dir" && as_dir=.
7912   for ac_exec_ext in '' $ac_executable_extensions; do
7913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7914     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7916     break 2
7917   fi
7918 done
7919 done
7920 IFS=$as_save_IFS
7921
7922   ;;
7923 esac
7924 fi
7925 GROFF=$ac_cv_path_GROFF
7926 if test -n "$GROFF"; then
7927   { echo "$as_me:$LINENO: result: $GROFF" >&5
7928 echo "${ECHO_T}$GROFF" >&6; }
7929 else
7930   { echo "$as_me:$LINENO: result: no" >&5
7931 echo "${ECHO_T}no" >&6; }
7932 fi
7933
7934
7935 # Extract the first word of "gzip", so it can be a program name with args.
7936 set dummy gzip; ac_word=$2
7937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7939 if test "${ac_cv_path_GZIP+set}" = set; then
7940   echo $ECHO_N "(cached) $ECHO_C" >&6
7941 else
7942   case $GZIP in
7943   [\\/]* | ?:[\\/]*)
7944   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7945   ;;
7946   *)
7947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7949 do
7950   IFS=$as_save_IFS
7951   test -z "$as_dir" && as_dir=.
7952   for ac_exec_ext in '' $ac_executable_extensions; do
7953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7954     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7956     break 2
7957   fi
7958 done
7959 done
7960 IFS=$as_save_IFS
7961
7962   ;;
7963 esac
7964 fi
7965 GZIP=$ac_cv_path_GZIP
7966 if test -n "$GZIP"; then
7967   { echo "$as_me:$LINENO: result: $GZIP" >&5
7968 echo "${ECHO_T}$GZIP" >&6; }
7969 else
7970   { echo "$as_me:$LINENO: result: no" >&5
7971 echo "${ECHO_T}no" >&6; }
7972 fi
7973
7974
7975 # Extract the first word of "pod2html", so it can be a program name with args.
7976 set dummy pod2html; ac_word=$2
7977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7979 if test "${ac_cv_path_POD2HTML+set}" = set; then
7980   echo $ECHO_N "(cached) $ECHO_C" >&6
7981 else
7982   case $POD2HTML in
7983   [\\/]* | ?:[\\/]*)
7984   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7985   ;;
7986   *)
7987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7989 do
7990   IFS=$as_save_IFS
7991   test -z "$as_dir" && as_dir=.
7992   for ac_exec_ext in '' $ac_executable_extensions; do
7993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7994     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7996     break 2
7997   fi
7998 done
7999 done
8000 IFS=$as_save_IFS
8001
8002   ;;
8003 esac
8004 fi
8005 POD2HTML=$ac_cv_path_POD2HTML
8006 if test -n "$POD2HTML"; then
8007   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8008 echo "${ECHO_T}$POD2HTML" >&6; }
8009 else
8010   { echo "$as_me:$LINENO: result: no" >&5
8011 echo "${ECHO_T}no" >&6; }
8012 fi
8013
8014
8015 # Extract the first word of "pod2man", so it can be a program name with args.
8016 set dummy pod2man; ac_word=$2
8017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8019 if test "${ac_cv_path_POD2MAN+set}" = set; then
8020   echo $ECHO_N "(cached) $ECHO_C" >&6
8021 else
8022   case $POD2MAN in
8023   [\\/]* | ?:[\\/]*)
8024   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8025   ;;
8026   *)
8027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 for as_dir in $PATH
8029 do
8030   IFS=$as_save_IFS
8031   test -z "$as_dir" && as_dir=.
8032   for ac_exec_ext in '' $ac_executable_extensions; do
8033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8034     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8036     break 2
8037   fi
8038 done
8039 done
8040 IFS=$as_save_IFS
8041
8042   ;;
8043 esac
8044 fi
8045 POD2MAN=$ac_cv_path_POD2MAN
8046 if test -n "$POD2MAN"; then
8047   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8048 echo "${ECHO_T}$POD2MAN" >&6; }
8049 else
8050   { echo "$as_me:$LINENO: result: no" >&5
8051 echo "${ECHO_T}no" >&6; }
8052 fi
8053
8054
8055 # Extract the first word of "runtest", so it can be a program name with args.
8056 set dummy runtest; ac_word=$2
8057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8059 if test "${ac_cv_path_RUNTEST+set}" = set; then
8060   echo $ECHO_N "(cached) $ECHO_C" >&6
8061 else
8062   case $RUNTEST in
8063   [\\/]* | ?:[\\/]*)
8064   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8065   ;;
8066   *)
8067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 for as_dir in $PATH
8069 do
8070   IFS=$as_save_IFS
8071   test -z "$as_dir" && as_dir=.
8072   for ac_exec_ext in '' $ac_executable_extensions; do
8073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8074     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8076     break 2
8077   fi
8078 done
8079 done
8080 IFS=$as_save_IFS
8081
8082   ;;
8083 esac
8084 fi
8085 RUNTEST=$ac_cv_path_RUNTEST
8086 if test -n "$RUNTEST"; then
8087   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8088 echo "${ECHO_T}$RUNTEST" >&6; }
8089 else
8090   { echo "$as_me:$LINENO: result: no" >&5
8091 echo "${ECHO_T}no" >&6; }
8092 fi
8093
8094
8095
8096 no_itcl=true
8097 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8098 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8099
8100 # Check whether --with-tclinclude was given.
8101 if test "${with_tclinclude+set}" = set; then
8102   withval=$with_tclinclude; with_tclinclude=${withval}
8103 else
8104   with_tclinclude=''
8105 fi
8106
8107 if test "${ac_cv_path_tclsh+set}" = set; then
8108   echo $ECHO_N "(cached) $ECHO_C" >&6
8109 else
8110
8111 if test x"${with_tclinclude}" != x ; then
8112   if test -f ${with_tclinclude}/tclsh ; then
8113     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8114   elif test -f ${with_tclinclude}/src/tclsh ; then
8115     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8116   else
8117     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8118 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8119    { (exit 1); exit 1; }; }
8120   fi
8121 fi
8122
8123 if test x"${ac_cv_path_tclsh}" = x ; then
8124   { echo "$as_me:$LINENO: result: none" >&5
8125 echo "${ECHO_T}none" >&6; }
8126   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
8127 do
8128   # Extract the first word of "$ac_prog", so it can be a program name with args.
8129 set dummy $ac_prog; ac_word=$2
8130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8132 if test "${ac_cv_path_TCLSH+set}" = set; then
8133   echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135   case $TCLSH in
8136   [\\/]* | ?:[\\/]*)
8137   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8138   ;;
8139   *)
8140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8142 do
8143   IFS=$as_save_IFS
8144   test -z "$as_dir" && as_dir=.
8145   for ac_exec_ext in '' $ac_executable_extensions; do
8146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8147     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8149     break 2
8150   fi
8151 done
8152 done
8153 IFS=$as_save_IFS
8154
8155   ;;
8156 esac
8157 fi
8158 TCLSH=$ac_cv_path_TCLSH
8159 if test -n "$TCLSH"; then
8160   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8161 echo "${ECHO_T}$TCLSH" >&6; }
8162 else
8163   { echo "$as_me:$LINENO: result: no" >&5
8164 echo "${ECHO_T}no" >&6; }
8165 fi
8166
8167
8168   test -n "$TCLSH" && break
8169 done
8170
8171   if test x"${TCLSH}" = x ; then
8172     ac_cv_path_tclsh='';
8173   else
8174     ac_cv_path_tclsh="${TCLSH}";
8175   fi
8176 else
8177   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8178 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8179   TCLSH="${ac_cv_path_tclsh}"
8180
8181 fi
8182
8183 fi
8184
8185 # Extract the first word of "zip", so it can be a program name with args.
8186 set dummy zip; ac_word=$2
8187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8189 if test "${ac_cv_path_ZIP+set}" = set; then
8190   echo $ECHO_N "(cached) $ECHO_C" >&6
8191 else
8192   case $ZIP in
8193   [\\/]* | ?:[\\/]*)
8194   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8195   ;;
8196   *)
8197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198 for as_dir in $PATH
8199 do
8200   IFS=$as_save_IFS
8201   test -z "$as_dir" && as_dir=.
8202   for ac_exec_ext in '' $ac_executable_extensions; do
8203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8204     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8206     break 2
8207   fi
8208 done
8209 done
8210 IFS=$as_save_IFS
8211
8212   ;;
8213 esac
8214 fi
8215 ZIP=$ac_cv_path_ZIP
8216 if test -n "$ZIP"; then
8217   { echo "$as_me:$LINENO: result: $ZIP" >&5
8218 echo "${ECHO_T}$ZIP" >&6; }
8219 else
8220   { echo "$as_me:$LINENO: result: no" >&5
8221 echo "${ECHO_T}no" >&6; }
8222 fi
8223
8224
8225 for ac_prog in ocamlc
8226 do
8227   # Extract the first word of "$ac_prog", so it can be a program name with args.
8228 set dummy $ac_prog; ac_word=$2
8229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8231 if test "${ac_cv_path_OCAMLC+set}" = set; then
8232   echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234   case $OCAMLC in
8235   [\\/]* | ?:[\\/]*)
8236   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8237   ;;
8238   *)
8239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240 for as_dir in $PATH
8241 do
8242   IFS=$as_save_IFS
8243   test -z "$as_dir" && as_dir=.
8244   for ac_exec_ext in '' $ac_executable_extensions; do
8245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8246     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8248     break 2
8249   fi
8250 done
8251 done
8252 IFS=$as_save_IFS
8253
8254   ;;
8255 esac
8256 fi
8257 OCAMLC=$ac_cv_path_OCAMLC
8258 if test -n "$OCAMLC"; then
8259   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8260 echo "${ECHO_T}$OCAMLC" >&6; }
8261 else
8262   { echo "$as_me:$LINENO: result: no" >&5
8263 echo "${ECHO_T}no" >&6; }
8264 fi
8265
8266
8267   test -n "$OCAMLC" && break
8268 done
8269
8270 for ac_prog in ocamlopt
8271 do
8272   # Extract the first word of "$ac_prog", so it can be a program name with args.
8273 set dummy $ac_prog; ac_word=$2
8274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8276 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8277   echo $ECHO_N "(cached) $ECHO_C" >&6
8278 else
8279   case $OCAMLOPT in
8280   [\\/]* | ?:[\\/]*)
8281   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8282   ;;
8283   *)
8284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 for as_dir in $PATH
8286 do
8287   IFS=$as_save_IFS
8288   test -z "$as_dir" && as_dir=.
8289   for ac_exec_ext in '' $ac_executable_extensions; do
8290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8291     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8293     break 2
8294   fi
8295 done
8296 done
8297 IFS=$as_save_IFS
8298
8299   ;;
8300 esac
8301 fi
8302 OCAMLOPT=$ac_cv_path_OCAMLOPT
8303 if test -n "$OCAMLOPT"; then
8304   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8305 echo "${ECHO_T}$OCAMLOPT" >&6; }
8306 else
8307   { echo "$as_me:$LINENO: result: no" >&5
8308 echo "${ECHO_T}no" >&6; }
8309 fi
8310
8311
8312   test -n "$OCAMLOPT" && break
8313 done
8314
8315 for ac_prog in ocamldep
8316 do
8317   # Extract the first word of "$ac_prog", so it can be a program name with args.
8318 set dummy $ac_prog; ac_word=$2
8319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8321 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8322   echo $ECHO_N "(cached) $ECHO_C" >&6
8323 else
8324   case $OCAMLDEP in
8325   [\\/]* | ?:[\\/]*)
8326   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8327   ;;
8328   *)
8329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 for as_dir in $PATH
8331 do
8332   IFS=$as_save_IFS
8333   test -z "$as_dir" && as_dir=.
8334   for ac_exec_ext in '' $ac_executable_extensions; do
8335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8336     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8338     break 2
8339   fi
8340 done
8341 done
8342 IFS=$as_save_IFS
8343
8344   ;;
8345 esac
8346 fi
8347 OCAMLDEP=$ac_cv_path_OCAMLDEP
8348 if test -n "$OCAMLDEP"; then
8349   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8350 echo "${ECHO_T}$OCAMLDEP" >&6; }
8351 else
8352   { echo "$as_me:$LINENO: result: no" >&5
8353 echo "${ECHO_T}no" >&6; }
8354 fi
8355
8356
8357   test -n "$OCAMLDEP" && break
8358 done
8359
8360 for ac_prog in ocamldoc
8361 do
8362   # Extract the first word of "$ac_prog", so it can be a program name with args.
8363 set dummy $ac_prog; ac_word=$2
8364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8366 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8367   echo $ECHO_N "(cached) $ECHO_C" >&6
8368 else
8369   case $OCAMLDOC in
8370   [\\/]* | ?:[\\/]*)
8371   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8372   ;;
8373   *)
8374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 for as_dir in $PATH
8376 do
8377   IFS=$as_save_IFS
8378   test -z "$as_dir" && as_dir=.
8379   for ac_exec_ext in '' $ac_executable_extensions; do
8380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8381     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8383     break 2
8384   fi
8385 done
8386 done
8387 IFS=$as_save_IFS
8388
8389   ;;
8390 esac
8391 fi
8392 OCAMLDOC=$ac_cv_path_OCAMLDOC
8393 if test -n "$OCAMLDOC"; then
8394   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8395 echo "${ECHO_T}$OCAMLDOC" >&6; }
8396 else
8397   { echo "$as_me:$LINENO: result: no" >&5
8398 echo "${ECHO_T}no" >&6; }
8399 fi
8400
8401
8402   test -n "$OCAMLDOC" && break
8403 done
8404
8405 for ac_prog in gas as
8406 do
8407   # Extract the first word of "$ac_prog", so it can be a program name with args.
8408 set dummy $ac_prog; ac_word=$2
8409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8411 if test "${ac_cv_path_GAS+set}" = set; then
8412   echo $ECHO_N "(cached) $ECHO_C" >&6
8413 else
8414   case $GAS in
8415   [\\/]* | ?:[\\/]*)
8416   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8417   ;;
8418   *)
8419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8421 do
8422   IFS=$as_save_IFS
8423   test -z "$as_dir" && as_dir=.
8424   for ac_exec_ext in '' $ac_executable_extensions; do
8425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8426     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8428     break 2
8429   fi
8430 done
8431 done
8432 IFS=$as_save_IFS
8433
8434   ;;
8435 esac
8436 fi
8437 GAS=$ac_cv_path_GAS
8438 if test -n "$GAS"; then
8439   { echo "$as_me:$LINENO: result: $GAS" >&5
8440 echo "${ECHO_T}$GAS" >&6; }
8441 else
8442   { echo "$as_me:$LINENO: result: no" >&5
8443 echo "${ECHO_T}no" >&6; }
8444 fi
8445
8446
8447   test -n "$GAS" && break
8448 done
8449
8450
8451 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8452 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8453 if test "${llvm_cv_link_use_r+set}" = set; then
8454   echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456    ac_ext=c
8457 ac_cpp='$CPP $CPPFLAGS'
8458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8461
8462   oldcflags="$CFLAGS"
8463   CFLAGS="$CFLAGS -Wl,-R."
8464   cat >conftest.$ac_ext <<_ACEOF
8465 /* confdefs.h.  */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h.  */
8470
8471 int
8472 main ()
8473 {
8474 int main() { return 0; }
8475   ;
8476   return 0;
8477 }
8478 _ACEOF
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (ac_try="$ac_link"
8481 case "(($ac_try" in
8482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483   *) ac_try_echo=$ac_try;;
8484 esac
8485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486   (eval "$ac_link") 2>conftest.er1
8487   ac_status=$?
8488   grep -v '^ *+' conftest.er1 >conftest.err
8489   rm -f conftest.er1
8490   cat conftest.err >&5
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); } &&
8493          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8494   { (case "(($ac_try" in
8495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496   *) ac_try_echo=$ac_try;;
8497 esac
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499   (eval "$ac_try") 2>&5
8500   ac_status=$?
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); }; } &&
8503          { ac_try='test -s conftest$ac_exeext'
8504   { (case "(($ac_try" in
8505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506   *) ac_try_echo=$ac_try;;
8507 esac
8508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8509   (eval "$ac_try") 2>&5
8510   ac_status=$?
8511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512   (exit $ac_status); }; }; then
8513   llvm_cv_link_use_r=yes
8514 else
8515   echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8517
8518         llvm_cv_link_use_r=no
8519 fi
8520
8521 rm -f core conftest.err conftest.$ac_objext \
8522       conftest$ac_exeext conftest.$ac_ext
8523   CFLAGS="$oldcflags"
8524   ac_ext=c
8525 ac_cpp='$CPP $CPPFLAGS'
8526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8529
8530
8531 fi
8532 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8533 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8534 if test "$llvm_cv_link_use_r" = yes ; then
8535
8536 cat >>confdefs.h <<\_ACEOF
8537 #define HAVE_LINK_R 1
8538 _ACEOF
8539
8540   fi
8541
8542
8543 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8544 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8545 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8546   echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548    ac_ext=c
8549 ac_cpp='$CPP $CPPFLAGS'
8550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8553
8554   oldcflags="$CFLAGS"
8555   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8556   cat >conftest.$ac_ext <<_ACEOF
8557 /* confdefs.h.  */
8558 _ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h.  */
8562
8563 int
8564 main ()
8565 {
8566 int main() { return 0; }
8567   ;
8568   return 0;
8569 }
8570 _ACEOF
8571 rm -f conftest.$ac_objext conftest$ac_exeext
8572 if { (ac_try="$ac_link"
8573 case "(($ac_try" in
8574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575   *) ac_try_echo=$ac_try;;
8576 esac
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578   (eval "$ac_link") 2>conftest.er1
8579   ac_status=$?
8580   grep -v '^ *+' conftest.er1 >conftest.err
8581   rm -f conftest.er1
8582   cat conftest.err >&5
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); } &&
8585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8595          { ac_try='test -s conftest$ac_exeext'
8596   { (case "(($ac_try" in
8597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598   *) ac_try_echo=$ac_try;;
8599 esac
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601   (eval "$ac_try") 2>&5
8602   ac_status=$?
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); }; }; then
8605   llvm_cv_link_use_export_dynamic=yes
8606 else
8607   echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610         llvm_cv_link_use_export_dynamic=no
8611 fi
8612
8613 rm -f core conftest.err conftest.$ac_objext \
8614       conftest$ac_exeext conftest.$ac_ext
8615   CFLAGS="$oldcflags"
8616   ac_ext=c
8617 ac_cpp='$CPP $CPPFLAGS'
8618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8621
8622
8623 fi
8624 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8625 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8626 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8627
8628 cat >>confdefs.h <<\_ACEOF
8629 #define HAVE_LINK_EXPORT_DYNAMIC 1
8630 _ACEOF
8631
8632   fi
8633
8634
8635
8636
8637 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8638 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8639 if test "${ac_cv_c_const+set}" = set; then
8640   echo $ECHO_N "(cached) $ECHO_C" >&6
8641 else
8642   cat >conftest.$ac_ext <<_ACEOF
8643 /* confdefs.h.  */
8644 _ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h.  */
8648
8649 int
8650 main ()
8651 {
8652 /* FIXME: Include the comments suggested by Paul. */
8653 #ifndef __cplusplus
8654   /* Ultrix mips cc rejects this.  */
8655   typedef int charset[2];
8656   const charset x;
8657   /* SunOS 4.1.1 cc rejects this.  */
8658   char const *const *ccp;
8659   char **p;
8660   /* NEC SVR4.0.2 mips cc rejects this.  */
8661   struct point {int x, y;};
8662   static struct point const zero = {0,0};
8663   /* AIX XL C 1.02.0.0 rejects this.
8664      It does not let you subtract one const X* pointer from another in
8665      an arm of an if-expression whose if-part is not a constant
8666      expression */
8667   const char *g = "string";
8668   ccp = &g + (g ? g-g : 0);
8669   /* HPUX 7.0 cc rejects these. */
8670   ++ccp;
8671   p = (char**) ccp;
8672   ccp = (char const *const *) p;
8673   { /* SCO 3.2v4 cc rejects this.  */
8674     char *t;
8675     char const *s = 0 ? (char *) 0 : (char const *) 0;
8676
8677     *t++ = 0;
8678     if (s) return 0;
8679   }
8680   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8681     int x[] = {25, 17};
8682     const int *foo = &x[0];
8683     ++foo;
8684   }
8685   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8686     typedef const int *iptr;
8687     iptr p = 0;
8688     ++p;
8689   }
8690   { /* AIX XL C 1.02.0.0 rejects this saying
8691        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8692     struct s { int j; const int *ap[3]; };
8693     struct s *b; b->j = 5;
8694   }
8695   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8696     const int foo = 10;
8697     if (!foo) return 0;
8698   }
8699   return !x[0] && !zero.x;
8700 #endif
8701
8702   ;
8703   return 0;
8704 }
8705 _ACEOF
8706 rm -f conftest.$ac_objext
8707 if { (ac_try="$ac_compile"
8708 case "(($ac_try" in
8709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710   *) ac_try_echo=$ac_try;;
8711 esac
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713   (eval "$ac_compile") 2>conftest.er1
8714   ac_status=$?
8715   grep -v '^ *+' conftest.er1 >conftest.err
8716   rm -f conftest.er1
8717   cat conftest.err >&5
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); } &&
8720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8721   { (case "(($ac_try" in
8722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723   *) ac_try_echo=$ac_try;;
8724 esac
8725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726   (eval "$ac_try") 2>&5
8727   ac_status=$?
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); }; } &&
8730          { ac_try='test -s conftest.$ac_objext'
8731   { (case "(($ac_try" in
8732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733   *) ac_try_echo=$ac_try;;
8734 esac
8735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736   (eval "$ac_try") 2>&5
8737   ac_status=$?
8738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739   (exit $ac_status); }; }; then
8740   ac_cv_c_const=yes
8741 else
8742   echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8744
8745         ac_cv_c_const=no
8746 fi
8747
8748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8749 fi
8750 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8751 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8752 if test $ac_cv_c_const = no; then
8753
8754 cat >>confdefs.h <<\_ACEOF
8755 #define const
8756 _ACEOF
8757
8758 fi
8759
8760
8761
8762
8763
8764
8765 ac_header_dirent=no
8766 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8767   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8768 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8769 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8771   echo $ECHO_N "(cached) $ECHO_C" >&6
8772 else
8773   cat >conftest.$ac_ext <<_ACEOF
8774 /* confdefs.h.  */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h.  */
8779 #include <sys/types.h>
8780 #include <$ac_hdr>
8781
8782 int
8783 main ()
8784 {
8785 if ((DIR *) 0)
8786 return 0;
8787   ;
8788   return 0;
8789 }
8790 _ACEOF
8791 rm -f conftest.$ac_objext
8792 if { (ac_try="$ac_compile"
8793 case "(($ac_try" in
8794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8795   *) ac_try_echo=$ac_try;;
8796 esac
8797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8798   (eval "$ac_compile") 2>conftest.er1
8799   ac_status=$?
8800   grep -v '^ *+' conftest.er1 >conftest.err
8801   rm -f conftest.er1
8802   cat conftest.err >&5
8803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804   (exit $ac_status); } &&
8805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8806   { (case "(($ac_try" in
8807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8808   *) ac_try_echo=$ac_try;;
8809 esac
8810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8811   (eval "$ac_try") 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); }; } &&
8815          { ac_try='test -s conftest.$ac_objext'
8816   { (case "(($ac_try" in
8817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818   *) ac_try_echo=$ac_try;;
8819 esac
8820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8821   (eval "$ac_try") 2>&5
8822   ac_status=$?
8823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824   (exit $ac_status); }; }; then
8825   eval "$as_ac_Header=yes"
8826 else
8827   echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8829
8830         eval "$as_ac_Header=no"
8831 fi
8832
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834 fi
8835 ac_res=`eval echo '${'$as_ac_Header'}'`
8836                { echo "$as_me:$LINENO: result: $ac_res" >&5
8837 echo "${ECHO_T}$ac_res" >&6; }
8838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8839   cat >>confdefs.h <<_ACEOF
8840 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8841 _ACEOF
8842
8843 ac_header_dirent=$ac_hdr; break
8844 fi
8845
8846 done
8847 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8848 if test $ac_header_dirent = dirent.h; then
8849   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8850 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8851 if test "${ac_cv_search_opendir+set}" = set; then
8852   echo $ECHO_N "(cached) $ECHO_C" >&6
8853 else
8854   ac_func_search_save_LIBS=$LIBS
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
8862 /* Override any GCC internal prototype to avoid an error.
8863    Use char because int might match the return type of a GCC
8864    builtin and then its argument prototype would still apply.  */
8865 #ifdef __cplusplus
8866 extern "C"
8867 #endif
8868 char opendir ();
8869 int
8870 main ()
8871 {
8872 return opendir ();
8873   ;
8874   return 0;
8875 }
8876 _ACEOF
8877 for ac_lib in '' dir; do
8878   if test -z "$ac_lib"; then
8879     ac_res="none required"
8880   else
8881     ac_res=-l$ac_lib
8882     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8883   fi
8884   rm -f conftest.$ac_objext conftest$ac_exeext
8885 if { (ac_try="$ac_link"
8886 case "(($ac_try" in
8887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888   *) ac_try_echo=$ac_try;;
8889 esac
8890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891   (eval "$ac_link") 2>conftest.er1
8892   ac_status=$?
8893   grep -v '^ *+' conftest.er1 >conftest.err
8894   rm -f conftest.er1
8895   cat conftest.err >&5
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); } &&
8898          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8899   { (case "(($ac_try" in
8900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901   *) ac_try_echo=$ac_try;;
8902 esac
8903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8904   (eval "$ac_try") 2>&5
8905   ac_status=$?
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); }; } &&
8908          { ac_try='test -s conftest$ac_exeext'
8909   { (case "(($ac_try" in
8910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911   *) ac_try_echo=$ac_try;;
8912 esac
8913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914   (eval "$ac_try") 2>&5
8915   ac_status=$?
8916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   (exit $ac_status); }; }; then
8918   ac_cv_search_opendir=$ac_res
8919 else
8920   echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8922
8923
8924 fi
8925
8926 rm -f core conftest.err conftest.$ac_objext \
8927       conftest$ac_exeext
8928   if test "${ac_cv_search_opendir+set}" = set; then
8929   break
8930 fi
8931 done
8932 if test "${ac_cv_search_opendir+set}" = set; then
8933   :
8934 else
8935   ac_cv_search_opendir=no
8936 fi
8937 rm conftest.$ac_ext
8938 LIBS=$ac_func_search_save_LIBS
8939 fi
8940 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8941 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8942 ac_res=$ac_cv_search_opendir
8943 if test "$ac_res" != no; then
8944   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8945
8946 fi
8947
8948 else
8949   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8950 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8951 if test "${ac_cv_search_opendir+set}" = set; then
8952   echo $ECHO_N "(cached) $ECHO_C" >&6
8953 else
8954   ac_func_search_save_LIBS=$LIBS
8955 cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h.  */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h.  */
8961
8962 /* Override any GCC internal prototype to avoid an error.
8963    Use char because int might match the return type of a GCC
8964    builtin and then its argument prototype would still apply.  */
8965 #ifdef __cplusplus
8966 extern "C"
8967 #endif
8968 char opendir ();
8969 int
8970 main ()
8971 {
8972 return opendir ();
8973   ;
8974   return 0;
8975 }
8976 _ACEOF
8977 for ac_lib in '' x; do
8978   if test -z "$ac_lib"; then
8979     ac_res="none required"
8980   else
8981     ac_res=-l$ac_lib
8982     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8983   fi
8984   rm -f conftest.$ac_objext conftest$ac_exeext
8985 if { (ac_try="$ac_link"
8986 case "(($ac_try" in
8987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988   *) ac_try_echo=$ac_try;;
8989 esac
8990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991   (eval "$ac_link") 2>conftest.er1
8992   ac_status=$?
8993   grep -v '^ *+' conftest.er1 >conftest.err
8994   rm -f conftest.er1
8995   cat conftest.err >&5
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); } &&
8998          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8999   { (case "(($ac_try" in
9000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001   *) ac_try_echo=$ac_try;;
9002 esac
9003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004   (eval "$ac_try") 2>&5
9005   ac_status=$?
9006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007   (exit $ac_status); }; } &&
9008          { ac_try='test -s conftest$ac_exeext'
9009   { (case "(($ac_try" in
9010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9011   *) ac_try_echo=$ac_try;;
9012 esac
9013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9014   (eval "$ac_try") 2>&5
9015   ac_status=$?
9016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017   (exit $ac_status); }; }; then
9018   ac_cv_search_opendir=$ac_res
9019 else
9020   echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9022
9023
9024 fi
9025
9026 rm -f core conftest.err conftest.$ac_objext \
9027       conftest$ac_exeext
9028   if test "${ac_cv_search_opendir+set}" = set; then
9029   break
9030 fi
9031 done
9032 if test "${ac_cv_search_opendir+set}" = set; then
9033   :
9034 else
9035   ac_cv_search_opendir=no
9036 fi
9037 rm conftest.$ac_ext
9038 LIBS=$ac_func_search_save_LIBS
9039 fi
9040 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9041 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9042 ac_res=$ac_cv_search_opendir
9043 if test "$ac_res" != no; then
9044   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9045
9046 fi
9047
9048 fi
9049
9050
9051 for ac_header in dlfcn.h
9052 do
9053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9055   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9058   echo $ECHO_N "(cached) $ECHO_C" >&6
9059 fi
9060 ac_res=`eval echo '${'$as_ac_Header'}'`
9061                { echo "$as_me:$LINENO: result: $ac_res" >&5
9062 echo "${ECHO_T}$ac_res" >&6; }
9063 else
9064   # Is the header compilable?
9065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9067 cat >conftest.$ac_ext <<_ACEOF
9068 /* confdefs.h.  */
9069 _ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h.  */
9073 $ac_includes_default
9074 #include <$ac_header>
9075 _ACEOF
9076 rm -f conftest.$ac_objext
9077 if { (ac_try="$ac_compile"
9078 case "(($ac_try" in
9079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080   *) ac_try_echo=$ac_try;;
9081 esac
9082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9083   (eval "$ac_compile") 2>conftest.er1
9084   ac_status=$?
9085   grep -v '^ *+' conftest.er1 >conftest.err
9086   rm -f conftest.er1
9087   cat conftest.err >&5
9088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089   (exit $ac_status); } &&
9090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9100          { ac_try='test -s conftest.$ac_objext'
9101   { (case "(($ac_try" in
9102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9103   *) ac_try_echo=$ac_try;;
9104 esac
9105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9106   (eval "$ac_try") 2>&5
9107   ac_status=$?
9108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109   (exit $ac_status); }; }; then
9110   ac_header_compiler=yes
9111 else
9112   echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9114
9115         ac_header_compiler=no
9116 fi
9117
9118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9120 echo "${ECHO_T}$ac_header_compiler" >&6; }
9121
9122 # Is the header present?
9123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9125 cat >conftest.$ac_ext <<_ACEOF
9126 /* confdefs.h.  */
9127 _ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h.  */
9131 #include <$ac_header>
9132 _ACEOF
9133 if { (ac_try="$ac_cpp conftest.$ac_ext"
9134 case "(($ac_try" in
9135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136   *) ac_try_echo=$ac_try;;
9137 esac
9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9140   ac_status=$?
9141   grep -v '^ *+' conftest.er1 >conftest.err
9142   rm -f conftest.er1
9143   cat conftest.err >&5
9144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145   (exit $ac_status); } >/dev/null; then
9146   if test -s conftest.err; then
9147     ac_cpp_err=$ac_c_preproc_warn_flag
9148     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9149   else
9150     ac_cpp_err=
9151   fi
9152 else
9153   ac_cpp_err=yes
9154 fi
9155 if test -z "$ac_cpp_err"; then
9156   ac_header_preproc=yes
9157 else
9158   echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.$ac_ext >&5
9160
9161   ac_header_preproc=no
9162 fi
9163
9164 rm -f conftest.err conftest.$ac_ext
9165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9166 echo "${ECHO_T}$ac_header_preproc" >&6; }
9167
9168 # So?  What about this header?
9169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9170   yes:no: )
9171     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9175     ac_header_preproc=yes
9176     ;;
9177   no:yes:* )
9178     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9180     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9181 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9182     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9184     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9185 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9188     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9190     ( cat <<\_ASBOX
9191 ## ----------------------------------- ##
9192 ## Report this to llvmbugs@cs.uiuc.edu ##
9193 ## ----------------------------------- ##
9194 _ASBOX
9195      ) | sed "s/^/$as_me: WARNING:     /" >&2
9196     ;;
9197 esac
9198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9201   echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203   eval "$as_ac_Header=\$ac_header_preproc"
9204 fi
9205 ac_res=`eval echo '${'$as_ac_Header'}'`
9206                { echo "$as_me:$LINENO: result: $ac_res" >&5
9207 echo "${ECHO_T}$ac_res" >&6; }
9208
9209 fi
9210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9211   cat >>confdefs.h <<_ACEOF
9212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9213 _ACEOF
9214
9215 fi
9216
9217 done
9218
9219 # Check whether --enable-ltdl-install was given.
9220 if test "${enable_ltdl_install+set}" = set; then
9221   enableval=$enable_ltdl_install;
9222 fi
9223
9224
9225
9226
9227 if test x"${enable_ltdl_install-no}" != xno; then
9228   INSTALL_LTDL_TRUE=
9229   INSTALL_LTDL_FALSE='#'
9230 else
9231   INSTALL_LTDL_TRUE='#'
9232   INSTALL_LTDL_FALSE=
9233 fi
9234
9235
9236
9237 if test x"${enable_ltdl_convenience-no}" != xno; then
9238   CONVENIENCE_LTDL_TRUE=
9239   CONVENIENCE_LTDL_FALSE='#'
9240 else
9241   CONVENIENCE_LTDL_TRUE='#'
9242   CONVENIENCE_LTDL_FALSE=
9243 fi
9244
9245
9246 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9247 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9248 library_names_spec=
9249 libname_spec='lib$name'
9250 soname_spec=
9251 shrext_cmds=".so"
9252 postinstall_cmds=
9253 postuninstall_cmds=
9254 finish_cmds=
9255 finish_eval=
9256 shlibpath_var=
9257 shlibpath_overrides_runpath=unknown
9258 version_type=none
9259 dynamic_linker="$host_os ld.so"
9260 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9261 if test "$GCC" = yes; then
9262   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9263   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9264     # if the path contains ";" then we assume it to be the separator
9265     # otherwise default to the standard path separator (i.e. ":") - it is
9266     # assumed that no part of a normal pathname contains ";" but that should
9267     # okay in the real world where ";" in dirpaths is itself problematic.
9268     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9269   else
9270     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9271   fi
9272 else
9273   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9274 fi
9275 need_lib_prefix=unknown
9276 hardcode_into_libs=no
9277
9278 # when you set need_version to no, make sure it does not cause -set_version
9279 # flags to be left without arguments
9280 need_version=unknown
9281
9282 case $host_os in
9283 aix3*)
9284   version_type=linux
9285   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9286   shlibpath_var=LIBPATH
9287
9288   # AIX 3 has no versioning support, so we append a major version to the name.
9289   soname_spec='${libname}${release}${shared_ext}$major'
9290   ;;
9291
9292 aix4* | aix5*)
9293   version_type=linux
9294   need_lib_prefix=no
9295   need_version=no
9296   hardcode_into_libs=yes
9297   if test "$host_cpu" = ia64; then
9298     # AIX 5 supports IA64
9299     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9300     shlibpath_var=LD_LIBRARY_PATH
9301   else
9302     # With GCC up to 2.95.x, collect2 would create an import file
9303     # for dependence libraries.  The import file would start with
9304     # the line `#! .'.  This would cause the generated library to
9305     # depend on `.', always an invalid library.  This was fixed in
9306     # development snapshots of GCC prior to 3.0.
9307     case $host_os in
9308       aix4 | aix4.[01] | aix4.[01].*)
9309       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9310            echo ' yes '
9311            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9312         :
9313       else
9314         can_build_shared=no
9315       fi
9316       ;;
9317     esac
9318     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9319     # soname into executable. Probably we can add versioning support to
9320     # collect2, so additional links can be useful in future.
9321     if test "$aix_use_runtimelinking" = yes; then
9322       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9323       # instead of lib<name>.a to let people know that these are not
9324       # typical AIX shared libraries.
9325       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326     else
9327       # We preserve .a as extension for shared libraries through AIX4.2
9328       # and later when we are not doing run time linking.
9329       library_names_spec='${libname}${release}.a $libname.a'
9330       soname_spec='${libname}${release}${shared_ext}$major'
9331     fi
9332     shlibpath_var=LIBPATH
9333   fi
9334   ;;
9335
9336 amigaos*)
9337   library_names_spec='$libname.ixlibrary $libname.a'
9338   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9339   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'
9340   ;;
9341
9342 beos*)
9343   library_names_spec='${libname}${shared_ext}'
9344   dynamic_linker="$host_os ld.so"
9345   shlibpath_var=LIBRARY_PATH
9346   ;;
9347
9348 bsdi[45]*)
9349   version_type=linux
9350   need_version=no
9351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352   soname_spec='${libname}${release}${shared_ext}$major'
9353   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9354   shlibpath_var=LD_LIBRARY_PATH
9355   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9356   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9357   # the default ld.so.conf also contains /usr/contrib/lib and
9358   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9359   # libtool to hard-code these into programs
9360   ;;
9361
9362 cygwin* | mingw* | pw32*)
9363   version_type=windows
9364   shrext_cmds=".dll"
9365   need_version=no
9366   need_lib_prefix=no
9367
9368   case $GCC,$host_os in
9369   yes,cygwin* | yes,mingw* | yes,pw32*)
9370     library_names_spec='$libname.dll.a'
9371     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9372     postinstall_cmds='base_file=`basename \${file}`~
9373       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9374       dldir=$destdir/`dirname \$dlpath`~
9375       test -d \$dldir || mkdir -p \$dldir~
9376       $install_prog $dir/$dlname \$dldir/$dlname~
9377       chmod a+x \$dldir/$dlname'
9378     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9379       dlpath=$dir/\$dldll~
9380        $rm \$dlpath'
9381     shlibpath_overrides_runpath=yes
9382
9383     case $host_os in
9384     cygwin*)
9385       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9386       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9387       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9388       ;;
9389     mingw*)
9390       # MinGW DLLs use traditional 'lib' prefix
9391       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9392       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9393       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9394         # It is most probably a Windows format PATH printed by
9395         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9396         # path with ; separators, and with drive letters. We can handle the
9397         # drive letters (cygwin fileutils understands them), so leave them,
9398         # especially as we might pass files found there to a mingw objdump,
9399         # which wouldn't understand a cygwinified path. Ahh.
9400         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9401       else
9402         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9403       fi
9404       ;;
9405     pw32*)
9406       # pw32 DLLs use 'pw' prefix rather than 'lib'
9407       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9408       ;;
9409     esac
9410     ;;
9411
9412   *)
9413     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9414     ;;
9415   esac
9416   dynamic_linker='Win32 ld.exe'
9417   # FIXME: first we should search . and the directory the executable is in
9418   shlibpath_var=PATH
9419   ;;
9420
9421 darwin* | rhapsody*)
9422   dynamic_linker="$host_os dyld"
9423   version_type=darwin
9424   need_lib_prefix=no
9425   need_version=no
9426   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9427   soname_spec='${libname}${release}${major}$shared_ext'
9428   shlibpath_overrides_runpath=yes
9429   shlibpath_var=DYLD_LIBRARY_PATH
9430   shrext_cmds='.dylib'
9431   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9432   if test "$GCC" = yes; then
9433     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"`
9434   else
9435     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9436   fi
9437   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9438   ;;
9439
9440 dgux*)
9441   version_type=linux
9442   need_lib_prefix=no
9443   need_version=no
9444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9445   soname_spec='${libname}${release}${shared_ext}$major'
9446   shlibpath_var=LD_LIBRARY_PATH
9447   ;;
9448
9449 freebsd1*)
9450   dynamic_linker=no
9451   ;;
9452
9453 kfreebsd*-gnu)
9454   version_type=linux
9455   need_lib_prefix=no
9456   need_version=no
9457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9458   soname_spec='${libname}${release}${shared_ext}$major'
9459   shlibpath_var=LD_LIBRARY_PATH
9460   shlibpath_overrides_runpath=no
9461   hardcode_into_libs=yes
9462   dynamic_linker='GNU ld.so'
9463   ;;
9464
9465 freebsd* | dragonfly*)
9466   # DragonFly does not have aout.  When/if they implement a new
9467   # versioning mechanism, adjust this.
9468   if test -x /usr/bin/objformat; then
9469     objformat=`/usr/bin/objformat`
9470   else
9471     case $host_os in
9472     freebsd[123]*) objformat=aout ;;
9473     *) objformat=elf ;;
9474     esac
9475   fi
9476   version_type=freebsd-$objformat
9477   case $version_type in
9478     freebsd-elf*)
9479       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9480       need_version=no
9481       need_lib_prefix=no
9482       ;;
9483     freebsd-*)
9484       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9485       need_version=yes
9486       ;;
9487   esac
9488   shlibpath_var=LD_LIBRARY_PATH
9489   case $host_os in
9490   freebsd2*)
9491     shlibpath_overrides_runpath=yes
9492     ;;
9493   freebsd3.[01]* | freebsdelf3.[01]*)
9494     shlibpath_overrides_runpath=yes
9495     hardcode_into_libs=yes
9496     ;;
9497   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9498   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9499     shlibpath_overrides_runpath=no
9500     hardcode_into_libs=yes
9501     ;;
9502   freebsd*) # from 4.6 on
9503     shlibpath_overrides_runpath=yes
9504     hardcode_into_libs=yes
9505     ;;
9506   esac
9507   ;;
9508
9509 gnu*)
9510   version_type=linux
9511   need_lib_prefix=no
9512   need_version=no
9513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9514   soname_spec='${libname}${release}${shared_ext}$major'
9515   shlibpath_var=LD_LIBRARY_PATH
9516   hardcode_into_libs=yes
9517   ;;
9518
9519 hpux9* | hpux10* | hpux11*)
9520   # Give a soname corresponding to the major version so that dld.sl refuses to
9521   # link against other versions.
9522   version_type=sunos
9523   need_lib_prefix=no
9524   need_version=no
9525   case $host_cpu in
9526   ia64*)
9527     shrext_cmds='.so'
9528     hardcode_into_libs=yes
9529     dynamic_linker="$host_os dld.so"
9530     shlibpath_var=LD_LIBRARY_PATH
9531     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9532     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9533     soname_spec='${libname}${release}${shared_ext}$major'
9534     if test "X$HPUX_IA64_MODE" = X32; then
9535       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9536     else
9537       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9538     fi
9539     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9540     ;;
9541    hppa*64*)
9542      shrext_cmds='.sl'
9543      hardcode_into_libs=yes
9544      dynamic_linker="$host_os dld.sl"
9545      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9546      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9547      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548      soname_spec='${libname}${release}${shared_ext}$major'
9549      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9550      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9551      ;;
9552    *)
9553     shrext_cmds='.sl'
9554     dynamic_linker="$host_os dld.sl"
9555     shlibpath_var=SHLIB_PATH
9556     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9558     soname_spec='${libname}${release}${shared_ext}$major'
9559     ;;
9560   esac
9561   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9562   postinstall_cmds='chmod 555 $lib'
9563   ;;
9564
9565 interix3*)
9566   version_type=linux
9567   need_lib_prefix=no
9568   need_version=no
9569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9570   soname_spec='${libname}${release}${shared_ext}$major'
9571   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9572   shlibpath_var=LD_LIBRARY_PATH
9573   shlibpath_overrides_runpath=no
9574   hardcode_into_libs=yes
9575   ;;
9576
9577 irix5* | irix6* | nonstopux*)
9578   case $host_os in
9579     nonstopux*) version_type=nonstopux ;;
9580     *)
9581         if test "$lt_cv_prog_gnu_ld" = yes; then
9582                 version_type=linux
9583         else
9584                 version_type=irix
9585         fi ;;
9586   esac
9587   need_lib_prefix=no
9588   need_version=no
9589   soname_spec='${libname}${release}${shared_ext}$major'
9590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9591   case $host_os in
9592   irix5* | nonstopux*)
9593     libsuff= shlibsuff=
9594     ;;
9595   *)
9596     case $LD in # libtool.m4 will add one of these switches to LD
9597     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9598       libsuff= shlibsuff= libmagic=32-bit;;
9599     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9600       libsuff=32 shlibsuff=N32 libmagic=N32;;
9601     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9602       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9603     *) libsuff= shlibsuff= libmagic=never-match;;
9604     esac
9605     ;;
9606   esac
9607   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9608   shlibpath_overrides_runpath=no
9609   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9610   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9611   hardcode_into_libs=yes
9612   ;;
9613
9614 # No shared lib support for Linux oldld, aout, or coff.
9615 linux*oldld* | linux*aout* | linux*coff*)
9616   dynamic_linker=no
9617   ;;
9618
9619 # This must be Linux ELF.
9620 linux*)
9621   version_type=linux
9622   need_lib_prefix=no
9623   need_version=no
9624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9625   soname_spec='${libname}${release}${shared_ext}$major'
9626   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9627   shlibpath_var=LD_LIBRARY_PATH
9628   shlibpath_overrides_runpath=no
9629   # This implies no fast_install, which is unacceptable.
9630   # Some rework will be needed to allow for fast_install
9631   # before this can be enabled.
9632   hardcode_into_libs=yes
9633
9634   # Append ld.so.conf contents to the search path
9635   if test -f /etc/ld.so.conf; then
9636     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' ' '`
9637     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9638   fi
9639
9640   # We used to test for /lib/ld.so.1 and disable shared libraries on
9641   # powerpc, because MkLinux only supported shared libraries with the
9642   # GNU dynamic linker.  Since this was broken with cross compilers,
9643   # most powerpc-linux boxes support dynamic linking these days and
9644   # people can always --disable-shared, the test was removed, and we
9645   # assume the GNU/Linux dynamic linker is in use.
9646   dynamic_linker='GNU/Linux ld.so'
9647   ;;
9648
9649 knetbsd*-gnu)
9650   version_type=linux
9651   need_lib_prefix=no
9652   need_version=no
9653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9654   soname_spec='${libname}${release}${shared_ext}$major'
9655   shlibpath_var=LD_LIBRARY_PATH
9656   shlibpath_overrides_runpath=no
9657   hardcode_into_libs=yes
9658   dynamic_linker='GNU ld.so'
9659   ;;
9660
9661 netbsd*)
9662   version_type=sunos
9663   need_lib_prefix=no
9664   need_version=no
9665   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9666     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9667     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9668     dynamic_linker='NetBSD (a.out) ld.so'
9669   else
9670     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9671     soname_spec='${libname}${release}${shared_ext}$major'
9672     dynamic_linker='NetBSD ld.elf_so'
9673   fi
9674   shlibpath_var=LD_LIBRARY_PATH
9675   shlibpath_overrides_runpath=yes
9676   hardcode_into_libs=yes
9677   ;;
9678
9679 newsos6)
9680   version_type=linux
9681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9682   shlibpath_var=LD_LIBRARY_PATH
9683   shlibpath_overrides_runpath=yes
9684   ;;
9685
9686 nto-qnx*)
9687   version_type=linux
9688   need_lib_prefix=no
9689   need_version=no
9690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9691   soname_spec='${libname}${release}${shared_ext}$major'
9692   shlibpath_var=LD_LIBRARY_PATH
9693   shlibpath_overrides_runpath=yes
9694   ;;
9695
9696 openbsd*)
9697   version_type=sunos
9698   sys_lib_dlsearch_path_spec="/usr/lib"
9699   need_lib_prefix=no
9700   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9701   case $host_os in
9702     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9703     *)                         need_version=no  ;;
9704   esac
9705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9706   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9707   shlibpath_var=LD_LIBRARY_PATH
9708   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9709     case $host_os in
9710       openbsd2.[89] | openbsd2.[89].*)
9711         shlibpath_overrides_runpath=no
9712         ;;
9713       *)
9714         shlibpath_overrides_runpath=yes
9715         ;;
9716       esac
9717   else
9718     shlibpath_overrides_runpath=yes
9719   fi
9720   ;;
9721
9722 os2*)
9723   libname_spec='$name'
9724   shrext_cmds=".dll"
9725   need_lib_prefix=no
9726   library_names_spec='$libname${shared_ext} $libname.a'
9727   dynamic_linker='OS/2 ld.exe'
9728   shlibpath_var=LIBPATH
9729   ;;
9730
9731 osf3* | osf4* | osf5*)
9732   version_type=osf
9733   need_lib_prefix=no
9734   need_version=no
9735   soname_spec='${libname}${release}${shared_ext}$major'
9736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9737   shlibpath_var=LD_LIBRARY_PATH
9738   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9739   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9740   ;;
9741
9742 solaris*)
9743   version_type=linux
9744   need_lib_prefix=no
9745   need_version=no
9746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9747   soname_spec='${libname}${release}${shared_ext}$major'
9748   shlibpath_var=LD_LIBRARY_PATH
9749   shlibpath_overrides_runpath=yes
9750   hardcode_into_libs=yes
9751   # ldd complains unless libraries are executable
9752   postinstall_cmds='chmod +x $lib'
9753   ;;
9754
9755 sunos4*)
9756   version_type=sunos
9757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9758   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9759   shlibpath_var=LD_LIBRARY_PATH
9760   shlibpath_overrides_runpath=yes
9761   if test "$with_gnu_ld" = yes; then
9762     need_lib_prefix=no
9763   fi
9764   need_version=yes
9765   ;;
9766
9767 sysv4 | sysv4.3*)
9768   version_type=linux
9769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9770   soname_spec='${libname}${release}${shared_ext}$major'
9771   shlibpath_var=LD_LIBRARY_PATH
9772   case $host_vendor in
9773     sni)
9774       shlibpath_overrides_runpath=no
9775       need_lib_prefix=no
9776       export_dynamic_flag_spec='${wl}-Blargedynsym'
9777       runpath_var=LD_RUN_PATH
9778       ;;
9779     siemens)
9780       need_lib_prefix=no
9781       ;;
9782     motorola)
9783       need_lib_prefix=no
9784       need_version=no
9785       shlibpath_overrides_runpath=no
9786       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9787       ;;
9788   esac
9789   ;;
9790
9791 sysv4*MP*)
9792   if test -d /usr/nec ;then
9793     version_type=linux
9794     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9795     soname_spec='$libname${shared_ext}.$major'
9796     shlibpath_var=LD_LIBRARY_PATH
9797   fi
9798   ;;
9799
9800 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9801   version_type=freebsd-elf
9802   need_lib_prefix=no
9803   need_version=no
9804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9805   soname_spec='${libname}${release}${shared_ext}$major'
9806   shlibpath_var=LD_LIBRARY_PATH
9807   hardcode_into_libs=yes
9808   if test "$with_gnu_ld" = yes; then
9809     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9810     shlibpath_overrides_runpath=no
9811   else
9812     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9813     shlibpath_overrides_runpath=yes
9814     case $host_os in
9815       sco3.2v5*)
9816         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9817         ;;
9818     esac
9819   fi
9820   sys_lib_dlsearch_path_spec='/usr/lib'
9821   ;;
9822
9823 uts4*)
9824   version_type=linux
9825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826   soname_spec='${libname}${release}${shared_ext}$major'
9827   shlibpath_var=LD_LIBRARY_PATH
9828   ;;
9829
9830 *)
9831   dynamic_linker=no
9832   ;;
9833 esac
9834 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9835 echo "${ECHO_T}$dynamic_linker" >&6; }
9836 test "$dynamic_linker" = no && can_build_shared=no
9837
9838 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9839 if test "$GCC" = yes; then
9840   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9841 fi
9842
9843
9844 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9845 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9846 if test "${libltdl_cv_shlibext+set}" = set; then
9847   echo $ECHO_N "(cached) $ECHO_C" >&6
9848 else
9849
9850 module=yes
9851 eval libltdl_cv_shlibext=$shrext_cmds
9852
9853 fi
9854 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9855 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9856 if test -n "$libltdl_cv_shlibext"; then
9857
9858 cat >>confdefs.h <<_ACEOF
9859 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9860 _ACEOF
9861
9862 fi
9863
9864
9865 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9866 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9867 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9868   echo $ECHO_N "(cached) $ECHO_C" >&6
9869 else
9870   libltdl_cv_shlibpath_var="$shlibpath_var"
9871 fi
9872 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9873 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9874 if test -n "$libltdl_cv_shlibpath_var"; then
9875
9876 cat >>confdefs.h <<_ACEOF
9877 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9878 _ACEOF
9879
9880 fi
9881
9882
9883 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9884 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9885 if test "${libltdl_cv_sys_search_path+set}" = set; then
9886   echo $ECHO_N "(cached) $ECHO_C" >&6
9887 else
9888   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9889 fi
9890 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9891 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9892 if test -n "$libltdl_cv_sys_search_path"; then
9893   sys_search_path=
9894   for dir in $libltdl_cv_sys_search_path; do
9895     if test -z "$sys_search_path"; then
9896       sys_search_path="$dir"
9897     else
9898       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9899     fi
9900   done
9901
9902 cat >>confdefs.h <<_ACEOF
9903 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9904 _ACEOF
9905
9906 fi
9907
9908 { echo "$as_me:$LINENO: checking for objdir" >&5
9909 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9910 if test "${libltdl_cv_objdir+set}" = set; then
9911   echo $ECHO_N "(cached) $ECHO_C" >&6
9912 else
9913   libltdl_cv_objdir="$objdir"
9914   if test -n "$objdir"; then
9915     :
9916   else
9917     rm -f .libs 2>/dev/null
9918     mkdir .libs 2>/dev/null
9919     if test -d .libs; then
9920       libltdl_cv_objdir=.libs
9921     else
9922       # MS-DOS does not allow filenames that begin with a dot.
9923       libltdl_cv_objdir=_libs
9924     fi
9925   rmdir .libs 2>/dev/null
9926   fi
9927
9928 fi
9929 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9930 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9931
9932 cat >>confdefs.h <<_ACEOF
9933 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9934 _ACEOF
9935
9936
9937
9938
9939
9940
9941 # Check for command to grab the raw symbol name followed by C symbol from nm.
9942 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9943 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9944 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9945   echo $ECHO_N "(cached) $ECHO_C" >&6
9946 else
9947
9948 # These are sane defaults that work on at least a few old systems.
9949 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9950
9951 # Character class describing NM global symbol codes.
9952 symcode='[BCDEGRST]'
9953
9954 # Regexp to match symbols that can be accessed directly from C.
9955 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9956
9957 # Transform an extracted symbol line into a proper C declaration
9958 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9959
9960 # Transform an extracted symbol line into symbol name and symbol address
9961 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'"
9962
9963 # Define system-specific variables.
9964 case $host_os in
9965 aix*)
9966   symcode='[BCDT]'
9967   ;;
9968 cygwin* | mingw* | pw32*)
9969   symcode='[ABCDGISTW]'
9970   ;;
9971 hpux*) # Its linker distinguishes data from code symbols
9972   if test "$host_cpu" = ia64; then
9973     symcode='[ABCDEGRST]'
9974   fi
9975   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9976   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'"
9977   ;;
9978 linux*)
9979   if test "$host_cpu" = ia64; then
9980     symcode='[ABCDGIRSTW]'
9981     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9982     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'"
9983   fi
9984   ;;
9985 irix* | nonstopux*)
9986   symcode='[BCDEGRST]'
9987   ;;
9988 osf*)
9989   symcode='[BCDEGQRST]'
9990   ;;
9991 solaris*)
9992   symcode='[BDRT]'
9993   ;;
9994 sco3.2v5*)
9995   symcode='[DT]'
9996   ;;
9997 sysv4.2uw2*)
9998   symcode='[DT]'
9999   ;;
10000 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10001   symcode='[ABDT]'
10002   ;;
10003 sysv4)
10004   symcode='[DFNSTU]'
10005   ;;
10006 esac
10007
10008 # Handle CRLF in mingw tool chain
10009 opt_cr=
10010 case $build_os in
10011 mingw*)
10012   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10013   ;;
10014 esac
10015
10016 # If we're using GNU nm, then use its standard symbol codes.
10017 case `$NM -V 2>&1` in
10018 *GNU* | *'with BFD'*)
10019   symcode='[ABCDGIRSTW]' ;;
10020 esac
10021
10022 # Try without a prefix undercore, then with it.
10023 for ac_symprfx in "" "_"; do
10024
10025   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10026   symxfrm="\\1 $ac_symprfx\\2 \\2"
10027
10028   # Write the raw and C identifiers.
10029   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10030
10031   # Check to see that the pipe works correctly.
10032   pipe_works=no
10033
10034   rm -f conftest*
10035   cat > conftest.$ac_ext <<EOF
10036 #ifdef __cplusplus
10037 extern "C" {
10038 #endif
10039 char nm_test_var;
10040 void nm_test_func(){}
10041 #ifdef __cplusplus
10042 }
10043 #endif
10044 int main(){nm_test_var='a';nm_test_func();return(0);}
10045 EOF
10046
10047   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10048   (eval $ac_compile) 2>&5
10049   ac_status=$?
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); }; then
10052     # Now try to grab the symbols.
10053     nlist=conftest.nm
10054     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10055   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10056   ac_status=$?
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); } && test -s "$nlist"; then
10059       # Try sorting and uniquifying the output.
10060       if sort "$nlist" | uniq > "$nlist"T; then
10061         mv -f "$nlist"T "$nlist"
10062       else
10063         rm -f "$nlist"T
10064       fi
10065
10066       # Make sure that we snagged all the symbols we need.
10067       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10068         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10069           cat <<EOF > conftest.$ac_ext
10070 #ifdef __cplusplus
10071 extern "C" {
10072 #endif
10073
10074 EOF
10075           # Now generate the symbol file.
10076           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10077
10078           cat <<EOF >> conftest.$ac_ext
10079 #if defined (__STDC__) && __STDC__
10080 # define lt_ptr_t void *
10081 #else
10082 # define lt_ptr_t char *
10083 # define const
10084 #endif
10085
10086 /* The mapping between symbol names and symbols. */
10087 const struct {
10088   const char *name;
10089   lt_ptr_t address;
10090 }
10091 lt_preloaded_symbols[] =
10092 {
10093 EOF
10094           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10095           cat <<\EOF >> conftest.$ac_ext
10096   {0, (lt_ptr_t) 0}
10097 };
10098
10099 #ifdef __cplusplus
10100 }
10101 #endif
10102 EOF
10103           # Now try linking the two files.
10104           mv conftest.$ac_objext conftstm.$ac_objext
10105           lt_save_LIBS="$LIBS"
10106           lt_save_CFLAGS="$CFLAGS"
10107           LIBS="conftstm.$ac_objext"
10108           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10109           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10110   (eval $ac_link) 2>&5
10111   ac_status=$?
10112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10114             pipe_works=yes
10115           fi
10116           LIBS="$lt_save_LIBS"
10117           CFLAGS="$lt_save_CFLAGS"
10118         else
10119           echo "cannot find nm_test_func in $nlist" >&5
10120         fi
10121       else
10122         echo "cannot find nm_test_var in $nlist" >&5
10123       fi
10124     else
10125       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10126     fi
10127   else
10128     echo "$progname: failed program was:" >&5
10129     cat conftest.$ac_ext >&5
10130   fi
10131   rm -f conftest* conftst*
10132
10133   # Do not use the global_symbol_pipe unless it works.
10134   if test "$pipe_works" = yes; then
10135     break
10136   else
10137     lt_cv_sys_global_symbol_pipe=
10138   fi
10139 done
10140
10141 fi
10142
10143 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10144   lt_cv_sys_global_symbol_to_cdecl=
10145 fi
10146 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10147   { echo "$as_me:$LINENO: result: failed" >&5
10148 echo "${ECHO_T}failed" >&6; }
10149 else
10150   { echo "$as_me:$LINENO: result: ok" >&5
10151 echo "${ECHO_T}ok" >&6; }
10152 fi
10153
10154
10155 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10156 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10157 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10158   echo $ECHO_N "(cached) $ECHO_C" >&6
10159 else
10160   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10161     libltdl_cv_preloaded_symbols=yes
10162   else
10163     libltdl_cv_preloaded_symbols=no
10164   fi
10165
10166 fi
10167 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10168 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10169 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10170
10171 cat >>confdefs.h <<\_ACEOF
10172 #define HAVE_PRELOADED_SYMBOLS 1
10173 _ACEOF
10174
10175 fi
10176
10177 LIBADD_DL=
10178
10179 ac_ext=c
10180 ac_cpp='$CPP $CPPFLAGS'
10181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10184
10185
10186 { echo "$as_me:$LINENO: checking for shl_load" >&5
10187 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10188 if test "${ac_cv_func_shl_load+set}" = set; then
10189   echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191   cat >conftest.$ac_ext <<_ACEOF
10192 /* confdefs.h.  */
10193 _ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h.  */
10197 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10199 #define shl_load innocuous_shl_load
10200
10201 /* System header to define __stub macros and hopefully few prototypes,
10202     which can conflict with char shl_load (); below.
10203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10204     <limits.h> exists even on freestanding compilers.  */
10205
10206 #ifdef __STDC__
10207 # include <limits.h>
10208 #else
10209 # include <assert.h>
10210 #endif
10211
10212 #undef shl_load
10213
10214 /* Override any GCC internal prototype to avoid an error.
10215    Use char because int might match the return type of a GCC
10216    builtin and then its argument prototype would still apply.  */
10217 #ifdef __cplusplus
10218 extern "C"
10219 #endif
10220 char shl_load ();
10221 /* The GNU C library defines this for functions which it implements
10222     to always fail with ENOSYS.  Some functions are actually named
10223     something starting with __ and the normal name is an alias.  */
10224 #if defined __stub_shl_load || defined __stub___shl_load
10225 choke me
10226 #endif
10227
10228 int
10229 main ()
10230 {
10231 return shl_load ();
10232   ;
10233   return 0;
10234 }
10235 _ACEOF
10236 rm -f conftest.$ac_objext conftest$ac_exeext
10237 if { (ac_try="$ac_link"
10238 case "(($ac_try" in
10239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240   *) ac_try_echo=$ac_try;;
10241 esac
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243   (eval "$ac_link") 2>conftest.er1
10244   ac_status=$?
10245   grep -v '^ *+' conftest.er1 >conftest.err
10246   rm -f conftest.er1
10247   cat conftest.err >&5
10248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249   (exit $ac_status); } &&
10250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10251   { (case "(($ac_try" in
10252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10253   *) ac_try_echo=$ac_try;;
10254 esac
10255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10256   (eval "$ac_try") 2>&5
10257   ac_status=$?
10258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259   (exit $ac_status); }; } &&
10260          { ac_try='test -s conftest$ac_exeext'
10261   { (case "(($ac_try" in
10262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263   *) ac_try_echo=$ac_try;;
10264 esac
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266   (eval "$ac_try") 2>&5
10267   ac_status=$?
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); }; }; then
10270   ac_cv_func_shl_load=yes
10271 else
10272   echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10274
10275         ac_cv_func_shl_load=no
10276 fi
10277
10278 rm -f core conftest.err conftest.$ac_objext \
10279       conftest$ac_exeext conftest.$ac_ext
10280 fi
10281 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10282 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10283 if test $ac_cv_func_shl_load = yes; then
10284
10285 cat >>confdefs.h <<\_ACEOF
10286 #define HAVE_SHL_LOAD 1
10287 _ACEOF
10288
10289 else
10290   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10291 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10292 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10293   echo $ECHO_N "(cached) $ECHO_C" >&6
10294 else
10295   ac_check_lib_save_LIBS=$LIBS
10296 LIBS="-ldld  $LIBS"
10297 cat >conftest.$ac_ext <<_ACEOF
10298 /* confdefs.h.  */
10299 _ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h.  */
10303
10304 /* Override any GCC internal prototype to avoid an error.
10305    Use char because int might match the return type of a GCC
10306    builtin and then its argument prototype would still apply.  */
10307 #ifdef __cplusplus
10308 extern "C"
10309 #endif
10310 char shl_load ();
10311 int
10312 main ()
10313 {
10314 return shl_load ();
10315   ;
10316   return 0;
10317 }
10318 _ACEOF
10319 rm -f conftest.$ac_objext conftest$ac_exeext
10320 if { (ac_try="$ac_link"
10321 case "(($ac_try" in
10322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323   *) ac_try_echo=$ac_try;;
10324 esac
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326   (eval "$ac_link") 2>conftest.er1
10327   ac_status=$?
10328   grep -v '^ *+' conftest.er1 >conftest.err
10329   rm -f conftest.er1
10330   cat conftest.err >&5
10331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332   (exit $ac_status); } &&
10333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10334   { (case "(($ac_try" in
10335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336   *) ac_try_echo=$ac_try;;
10337 esac
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339   (eval "$ac_try") 2>&5
10340   ac_status=$?
10341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342   (exit $ac_status); }; } &&
10343          { ac_try='test -s conftest$ac_exeext'
10344   { (case "(($ac_try" in
10345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10346   *) ac_try_echo=$ac_try;;
10347 esac
10348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10349   (eval "$ac_try") 2>&5
10350   ac_status=$?
10351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352   (exit $ac_status); }; }; then
10353   ac_cv_lib_dld_shl_load=yes
10354 else
10355   echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10357
10358         ac_cv_lib_dld_shl_load=no
10359 fi
10360
10361 rm -f core conftest.err conftest.$ac_objext \
10362       conftest$ac_exeext conftest.$ac_ext
10363 LIBS=$ac_check_lib_save_LIBS
10364 fi
10365 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10366 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10367 if test $ac_cv_lib_dld_shl_load = yes; then
10368
10369 cat >>confdefs.h <<\_ACEOF
10370 #define HAVE_SHL_LOAD 1
10371 _ACEOF
10372
10373         LIBADD_DL="$LIBADD_DL -ldld"
10374 else
10375   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10376 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10377 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10378   echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380   ac_check_lib_save_LIBS=$LIBS
10381 LIBS="-ldl  $LIBS"
10382 cat >conftest.$ac_ext <<_ACEOF
10383 /* confdefs.h.  */
10384 _ACEOF
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h.  */
10388
10389 /* Override any GCC internal prototype to avoid an error.
10390    Use char because int might match the return type of a GCC
10391    builtin and then its argument prototype would still apply.  */
10392 #ifdef __cplusplus
10393 extern "C"
10394 #endif
10395 char dlopen ();
10396 int
10397 main ()
10398 {
10399 return dlopen ();
10400   ;
10401   return 0;
10402 }
10403 _ACEOF
10404 rm -f conftest.$ac_objext conftest$ac_exeext
10405 if { (ac_try="$ac_link"
10406 case "(($ac_try" in
10407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408   *) ac_try_echo=$ac_try;;
10409 esac
10410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411   (eval "$ac_link") 2>conftest.er1
10412   ac_status=$?
10413   grep -v '^ *+' conftest.er1 >conftest.err
10414   rm -f conftest.er1
10415   cat conftest.err >&5
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); } &&
10418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10419   { (case "(($ac_try" in
10420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421   *) ac_try_echo=$ac_try;;
10422 esac
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424   (eval "$ac_try") 2>&5
10425   ac_status=$?
10426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427   (exit $ac_status); }; } &&
10428          { ac_try='test -s conftest$ac_exeext'
10429   { (case "(($ac_try" in
10430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10431   *) ac_try_echo=$ac_try;;
10432 esac
10433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10434   (eval "$ac_try") 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); }; }; then
10438   ac_cv_lib_dl_dlopen=yes
10439 else
10440   echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443         ac_cv_lib_dl_dlopen=no
10444 fi
10445
10446 rm -f core conftest.err conftest.$ac_objext \
10447       conftest$ac_exeext conftest.$ac_ext
10448 LIBS=$ac_check_lib_save_LIBS
10449 fi
10450 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10451 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10452 if test $ac_cv_lib_dl_dlopen = yes; then
10453
10454 cat >>confdefs.h <<\_ACEOF
10455 #define HAVE_LIBDL 1
10456 _ACEOF
10457
10458                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10459 else
10460   cat >conftest.$ac_ext <<_ACEOF
10461 /* confdefs.h.  */
10462 _ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h.  */
10466 #if HAVE_DLFCN_H
10467 #  include <dlfcn.h>
10468 #endif
10469
10470 int
10471 main ()
10472 {
10473 dlopen(0, 0);
10474   ;
10475   return 0;
10476 }
10477 _ACEOF
10478 rm -f conftest.$ac_objext conftest$ac_exeext
10479 if { (ac_try="$ac_link"
10480 case "(($ac_try" in
10481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482   *) ac_try_echo=$ac_try;;
10483 esac
10484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485   (eval "$ac_link") 2>conftest.er1
10486   ac_status=$?
10487   grep -v '^ *+' conftest.er1 >conftest.err
10488   rm -f conftest.er1
10489   cat conftest.err >&5
10490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491   (exit $ac_status); } &&
10492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10493   { (case "(($ac_try" in
10494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495   *) ac_try_echo=$ac_try;;
10496 esac
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498   (eval "$ac_try") 2>&5
10499   ac_status=$?
10500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501   (exit $ac_status); }; } &&
10502          { ac_try='test -s conftest$ac_exeext'
10503   { (case "(($ac_try" in
10504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10505   *) ac_try_echo=$ac_try;;
10506 esac
10507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10508   (eval "$ac_try") 2>&5
10509   ac_status=$?
10510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511   (exit $ac_status); }; }; then
10512
10513 cat >>confdefs.h <<\_ACEOF
10514 #define HAVE_LIBDL 1
10515 _ACEOF
10516  libltdl_cv_func_dlopen="yes"
10517 else
10518   echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10520
10521         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10522 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10523 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10524   echo $ECHO_N "(cached) $ECHO_C" >&6
10525 else
10526   ac_check_lib_save_LIBS=$LIBS
10527 LIBS="-lsvld  $LIBS"
10528 cat >conftest.$ac_ext <<_ACEOF
10529 /* confdefs.h.  */
10530 _ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h.  */
10534
10535 /* Override any GCC internal prototype to avoid an error.
10536    Use char because int might match the return type of a GCC
10537    builtin and then its argument prototype would still apply.  */
10538 #ifdef __cplusplus
10539 extern "C"
10540 #endif
10541 char dlopen ();
10542 int
10543 main ()
10544 {
10545 return dlopen ();
10546   ;
10547   return 0;
10548 }
10549 _ACEOF
10550 rm -f conftest.$ac_objext conftest$ac_exeext
10551 if { (ac_try="$ac_link"
10552 case "(($ac_try" in
10553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554   *) ac_try_echo=$ac_try;;
10555 esac
10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557   (eval "$ac_link") 2>conftest.er1
10558   ac_status=$?
10559   grep -v '^ *+' conftest.er1 >conftest.err
10560   rm -f conftest.er1
10561   cat conftest.err >&5
10562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563   (exit $ac_status); } &&
10564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10565   { (case "(($ac_try" in
10566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567   *) ac_try_echo=$ac_try;;
10568 esac
10569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10570   (eval "$ac_try") 2>&5
10571   ac_status=$?
10572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573   (exit $ac_status); }; } &&
10574          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10584   ac_cv_lib_svld_dlopen=yes
10585 else
10586   echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.$ac_ext >&5
10588
10589         ac_cv_lib_svld_dlopen=no
10590 fi
10591
10592 rm -f core conftest.err conftest.$ac_objext \
10593       conftest$ac_exeext conftest.$ac_ext
10594 LIBS=$ac_check_lib_save_LIBS
10595 fi
10596 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10597 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10598 if test $ac_cv_lib_svld_dlopen = yes; then
10599
10600 cat >>confdefs.h <<\_ACEOF
10601 #define HAVE_LIBDL 1
10602 _ACEOF
10603
10604                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10605 else
10606   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10607 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10608 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10609   echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611   ac_check_lib_save_LIBS=$LIBS
10612 LIBS="-ldld  $LIBS"
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h.  */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h.  */
10619
10620 /* Override any GCC internal prototype to avoid an error.
10621    Use char because int might match the return type of a GCC
10622    builtin and then its argument prototype would still apply.  */
10623 #ifdef __cplusplus
10624 extern "C"
10625 #endif
10626 char dld_link ();
10627 int
10628 main ()
10629 {
10630 return dld_link ();
10631   ;
10632   return 0;
10633 }
10634 _ACEOF
10635 rm -f conftest.$ac_objext conftest$ac_exeext
10636 if { (ac_try="$ac_link"
10637 case "(($ac_try" in
10638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639   *) ac_try_echo=$ac_try;;
10640 esac
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642   (eval "$ac_link") 2>conftest.er1
10643   ac_status=$?
10644   grep -v '^ *+' conftest.er1 >conftest.err
10645   rm -f conftest.er1
10646   cat conftest.err >&5
10647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648   (exit $ac_status); } &&
10649          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10650   { (case "(($ac_try" in
10651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652   *) ac_try_echo=$ac_try;;
10653 esac
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655   (eval "$ac_try") 2>&5
10656   ac_status=$?
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); }; } &&
10659          { ac_try='test -s conftest$ac_exeext'
10660   { (case "(($ac_try" in
10661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662   *) ac_try_echo=$ac_try;;
10663 esac
10664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665   (eval "$ac_try") 2>&5
10666   ac_status=$?
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); }; }; then
10669   ac_cv_lib_dld_dld_link=yes
10670 else
10671   echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10673
10674         ac_cv_lib_dld_dld_link=no
10675 fi
10676
10677 rm -f core conftest.err conftest.$ac_objext \
10678       conftest$ac_exeext conftest.$ac_ext
10679 LIBS=$ac_check_lib_save_LIBS
10680 fi
10681 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10682 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10683 if test $ac_cv_lib_dld_dld_link = yes; then
10684
10685 cat >>confdefs.h <<\_ACEOF
10686 #define HAVE_DLD 1
10687 _ACEOF
10688
10689                 LIBADD_DL="$LIBADD_DL -ldld"
10690 else
10691   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10692 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10693 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10694   echo $ECHO_N "(cached) $ECHO_C" >&6
10695 else
10696   cat >conftest.$ac_ext <<_ACEOF
10697 /* confdefs.h.  */
10698 _ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h.  */
10702 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10704 #define _dyld_func_lookup innocuous__dyld_func_lookup
10705
10706 /* System header to define __stub macros and hopefully few prototypes,
10707     which can conflict with char _dyld_func_lookup (); below.
10708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10709     <limits.h> exists even on freestanding compilers.  */
10710
10711 #ifdef __STDC__
10712 # include <limits.h>
10713 #else
10714 # include <assert.h>
10715 #endif
10716
10717 #undef _dyld_func_lookup
10718
10719 /* Override any GCC internal prototype to avoid an error.
10720    Use char because int might match the return type of a GCC
10721    builtin and then its argument prototype would still apply.  */
10722 #ifdef __cplusplus
10723 extern "C"
10724 #endif
10725 char _dyld_func_lookup ();
10726 /* The GNU C library defines this for functions which it implements
10727     to always fail with ENOSYS.  Some functions are actually named
10728     something starting with __ and the normal name is an alias.  */
10729 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10730 choke me
10731 #endif
10732
10733 int
10734 main ()
10735 {
10736 return _dyld_func_lookup ();
10737   ;
10738   return 0;
10739 }
10740 _ACEOF
10741 rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (ac_try="$ac_link"
10743 case "(($ac_try" in
10744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745   *) ac_try_echo=$ac_try;;
10746 esac
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748   (eval "$ac_link") 2>conftest.er1
10749   ac_status=$?
10750   grep -v '^ *+' conftest.er1 >conftest.err
10751   rm -f conftest.er1
10752   cat conftest.err >&5
10753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754   (exit $ac_status); } &&
10755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10756   { (case "(($ac_try" in
10757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758   *) ac_try_echo=$ac_try;;
10759 esac
10760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761   (eval "$ac_try") 2>&5
10762   ac_status=$?
10763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); }; } &&
10765          { ac_try='test -s conftest$ac_exeext'
10766   { (case "(($ac_try" in
10767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768   *) ac_try_echo=$ac_try;;
10769 esac
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771   (eval "$ac_try") 2>&5
10772   ac_status=$?
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); }; }; then
10775   ac_cv_func__dyld_func_lookup=yes
10776 else
10777   echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10779
10780         ac_cv_func__dyld_func_lookup=no
10781 fi
10782
10783 rm -f core conftest.err conftest.$ac_objext \
10784       conftest$ac_exeext conftest.$ac_ext
10785 fi
10786 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10787 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10788 if test $ac_cv_func__dyld_func_lookup = yes; then
10789
10790 cat >>confdefs.h <<\_ACEOF
10791 #define HAVE_DYLD 1
10792 _ACEOF
10793
10794 fi
10795
10796
10797 fi
10798
10799
10800 fi
10801
10802
10803 fi
10804
10805 rm -f core conftest.err conftest.$ac_objext \
10806       conftest$ac_exeext conftest.$ac_ext
10807
10808 fi
10809
10810
10811 fi
10812
10813
10814 fi
10815
10816
10817 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10818 then
10819   lt_save_LIBS="$LIBS"
10820   LIBS="$LIBS $LIBADD_DL"
10821
10822 for ac_func in dlerror
10823 do
10824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10828   echo $ECHO_N "(cached) $ECHO_C" >&6
10829 else
10830   cat >conftest.$ac_ext <<_ACEOF
10831 /* confdefs.h.  */
10832 _ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h.  */
10836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10838 #define $ac_func innocuous_$ac_func
10839
10840 /* System header to define __stub macros and hopefully few prototypes,
10841     which can conflict with char $ac_func (); below.
10842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10843     <limits.h> exists even on freestanding compilers.  */
10844
10845 #ifdef __STDC__
10846 # include <limits.h>
10847 #else
10848 # include <assert.h>
10849 #endif
10850
10851 #undef $ac_func
10852
10853 /* Override any GCC internal prototype to avoid an error.
10854    Use char because int might match the return type of a GCC
10855    builtin and then its argument prototype would still apply.  */
10856 #ifdef __cplusplus
10857 extern "C"
10858 #endif
10859 char $ac_func ();
10860 /* The GNU C library defines this for functions which it implements
10861     to always fail with ENOSYS.  Some functions are actually named
10862     something starting with __ and the normal name is an alias.  */
10863 #if defined __stub_$ac_func || defined __stub___$ac_func
10864 choke me
10865 #endif
10866
10867 int
10868 main ()
10869 {
10870 return $ac_func ();
10871   ;
10872   return 0;
10873 }
10874 _ACEOF
10875 rm -f conftest.$ac_objext conftest$ac_exeext
10876 if { (ac_try="$ac_link"
10877 case "(($ac_try" in
10878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879   *) ac_try_echo=$ac_try;;
10880 esac
10881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882   (eval "$ac_link") 2>conftest.er1
10883   ac_status=$?
10884   grep -v '^ *+' conftest.er1 >conftest.err
10885   rm -f conftest.er1
10886   cat conftest.err >&5
10887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); } &&
10889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10890   { (case "(($ac_try" in
10891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892   *) ac_try_echo=$ac_try;;
10893 esac
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895   (eval "$ac_try") 2>&5
10896   ac_status=$?
10897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898   (exit $ac_status); }; } &&
10899          { ac_try='test -s conftest$ac_exeext'
10900   { (case "(($ac_try" in
10901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902   *) ac_try_echo=$ac_try;;
10903 esac
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905   (eval "$ac_try") 2>&5
10906   ac_status=$?
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); }; }; then
10909   eval "$as_ac_var=yes"
10910 else
10911   echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10913
10914         eval "$as_ac_var=no"
10915 fi
10916
10917 rm -f core conftest.err conftest.$ac_objext \
10918       conftest$ac_exeext conftest.$ac_ext
10919 fi
10920 ac_res=`eval echo '${'$as_ac_var'}'`
10921                { echo "$as_me:$LINENO: result: $ac_res" >&5
10922 echo "${ECHO_T}$ac_res" >&6; }
10923 if test `eval echo '${'$as_ac_var'}'` = yes; then
10924   cat >>confdefs.h <<_ACEOF
10925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10926 _ACEOF
10927
10928 fi
10929 done
10930
10931   LIBS="$lt_save_LIBS"
10932 fi
10933 ac_ext=c
10934 ac_cpp='$CPP $CPPFLAGS'
10935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10938
10939
10940
10941 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10942 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10943 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10944   echo $ECHO_N "(cached) $ECHO_C" >&6
10945 else
10946   ac_cv_sys_symbol_underscore=no
10947   cat > conftest.$ac_ext <<EOF
10948 void nm_test_func(){}
10949 int main(){nm_test_func;return 0;}
10950 EOF
10951   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10952   (eval $ac_compile) 2>&5
10953   ac_status=$?
10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); }; then
10956     # Now try to grab the symbols.
10957     ac_nlist=conftest.nm
10958     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10959   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10960   ac_status=$?
10961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962   (exit $ac_status); } && test -s "$ac_nlist"; then
10963       # See whether the symbols have a leading underscore.
10964       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10965         ac_cv_sys_symbol_underscore=yes
10966       else
10967         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10968           :
10969         else
10970           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10971         fi
10972       fi
10973     else
10974       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10975     fi
10976   else
10977     echo "configure: failed program was:" >&5
10978     cat conftest.c >&5
10979   fi
10980   rm -rf conftest*
10981
10982 fi
10983 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10984 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10985
10986
10987 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10988   if test x"$libltdl_cv_func_dlopen" = xyes ||
10989      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10990         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10991 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10992 if test "${libltdl_cv_need_uscore+set}" = set; then
10993   echo $ECHO_N "(cached) $ECHO_C" >&6
10994 else
10995   libltdl_cv_need_uscore=unknown
10996           save_LIBS="$LIBS"
10997           LIBS="$LIBS $LIBADD_DL"
10998           if test "$cross_compiling" = yes; then :
10999   libltdl_cv_need_uscore=cross
11000 else
11001   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11002   lt_status=$lt_dlunknown
11003   cat > conftest.$ac_ext <<EOF
11004 #line 11004 "configure"
11005 #include "confdefs.h"
11006
11007 #if HAVE_DLFCN_H
11008 #include <dlfcn.h>
11009 #endif
11010
11011 #include <stdio.h>
11012
11013 #ifdef RTLD_GLOBAL
11014 #  define LT_DLGLOBAL           RTLD_GLOBAL
11015 #else
11016 #  ifdef DL_GLOBAL
11017 #    define LT_DLGLOBAL         DL_GLOBAL
11018 #  else
11019 #    define LT_DLGLOBAL         0
11020 #  endif
11021 #endif
11022
11023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11024    find out it does not work in some platform. */
11025 #ifndef LT_DLLAZY_OR_NOW
11026 #  ifdef RTLD_LAZY
11027 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11028 #  else
11029 #    ifdef DL_LAZY
11030 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11031 #    else
11032 #      ifdef RTLD_NOW
11033 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11034 #      else
11035 #        ifdef DL_NOW
11036 #          define LT_DLLAZY_OR_NOW      DL_NOW
11037 #        else
11038 #          define LT_DLLAZY_OR_NOW      0
11039 #        endif
11040 #      endif
11041 #    endif
11042 #  endif
11043 #endif
11044
11045 #ifdef __cplusplus
11046 extern "C" void exit (int);
11047 #endif
11048
11049 void fnord() { int i=42;}
11050 int main ()
11051 {
11052   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11053   int status = $lt_dlunknown;
11054
11055   if (self)
11056     {
11057       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11058       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11059       /* dlclose (self); */
11060     }
11061   else
11062     puts (dlerror ());
11063
11064     exit (status);
11065 }
11066 EOF
11067   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11068   (eval $ac_link) 2>&5
11069   ac_status=$?
11070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11072     (./conftest; exit; ) >&5 2>/dev/null
11073     lt_status=$?
11074     case x$lt_status in
11075       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11076       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11077       x$lt_dlunknown|x*)  ;;
11078     esac
11079   else :
11080     # compilation failed
11081
11082   fi
11083 fi
11084 rm -fr conftest*
11085
11086           LIBS="$save_LIBS"
11087
11088 fi
11089 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11090 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11091   fi
11092 fi
11093
11094 if test x"$libltdl_cv_need_uscore" = xyes; then
11095
11096 cat >>confdefs.h <<\_ACEOF
11097 #define NEED_USCORE 1
11098 _ACEOF
11099
11100 fi
11101
11102
11103 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11104 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11105 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11106   echo $ECHO_N "(cached) $ECHO_C" >&6
11107 else
11108   # PORTME does your system automatically load deplibs for dlopen?
11109   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11110   # For now, we just catch OSes we know something about -- in the
11111   # future, we'll try test this programmatically.
11112   libltdl_cv_sys_dlopen_deplibs=unknown
11113   case "$host_os" in
11114   aix3*|aix4.1.*|aix4.2.*)
11115     # Unknown whether this is true for these versions of AIX, but
11116     # we want this `case' here to explicitly catch those versions.
11117     libltdl_cv_sys_dlopen_deplibs=unknown
11118     ;;
11119   aix[45]*)
11120     libltdl_cv_sys_dlopen_deplibs=yes
11121     ;;
11122   darwin*)
11123     # Assuming the user has installed a libdl from somewhere, this is true
11124     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11125     libltdl_cv_sys_dlopen_deplibs=yes
11126     ;;
11127   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11128     # GNU and its variants, using gnu ld.so (Glibc)
11129     libltdl_cv_sys_dlopen_deplibs=yes
11130     ;;
11131   hpux10*|hpux11*)
11132     libltdl_cv_sys_dlopen_deplibs=yes
11133     ;;
11134   interix*)
11135     libltdl_cv_sys_dlopen_deplibs=yes
11136     ;;
11137   irix[12345]*|irix6.[01]*)
11138     # Catch all versions of IRIX before 6.2, and indicate that we don't
11139     # know how it worked for any of those versions.
11140     libltdl_cv_sys_dlopen_deplibs=unknown
11141     ;;
11142   irix*)
11143     # The case above catches anything before 6.2, and it's known that
11144     # at 6.2 and later dlopen does load deplibs.
11145     libltdl_cv_sys_dlopen_deplibs=yes
11146     ;;
11147   netbsd*)
11148     libltdl_cv_sys_dlopen_deplibs=yes
11149     ;;
11150   openbsd*)
11151     libltdl_cv_sys_dlopen_deplibs=yes
11152     ;;
11153   osf[1234]*)
11154     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11155     # it did *not* use an RPATH in a shared library to find objects the
11156     # library depends on, so we explictly say `no'.
11157     libltdl_cv_sys_dlopen_deplibs=no
11158     ;;
11159   osf5.0|osf5.0a|osf5.1)
11160     # dlopen *does* load deplibs and with the right loader patch applied
11161     # it even uses RPATH in a shared library to search for shared objects
11162     # that the library depends on, but there's no easy way to know if that
11163     # patch is installed.  Since this is the case, all we can really
11164     # say is unknown -- it depends on the patch being installed.  If
11165     # it is, this changes to `yes'.  Without it, it would be `no'.
11166     libltdl_cv_sys_dlopen_deplibs=unknown
11167     ;;
11168   osf*)
11169     # the two cases above should catch all versions of osf <= 5.1.  Read
11170     # the comments above for what we know about them.
11171     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11172     # is used to find them so we can finally say `yes'.
11173     libltdl_cv_sys_dlopen_deplibs=yes
11174     ;;
11175   solaris*)
11176     libltdl_cv_sys_dlopen_deplibs=yes
11177     ;;
11178   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11179     libltdl_cv_sys_dlopen_deplibs=yes
11180     ;;
11181   esac
11182
11183 fi
11184 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11185 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11186 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11187
11188 cat >>confdefs.h <<\_ACEOF
11189 #define LTDL_DLOPEN_DEPLIBS 1
11190 _ACEOF
11191
11192 fi
11193
11194
11195 for ac_header in argz.h
11196 do
11197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11199   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11202   echo $ECHO_N "(cached) $ECHO_C" >&6
11203 fi
11204 ac_res=`eval echo '${'$as_ac_Header'}'`
11205                { echo "$as_me:$LINENO: result: $ac_res" >&5
11206 echo "${ECHO_T}$ac_res" >&6; }
11207 else
11208   # Is the header compilable?
11209 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11211 cat >conftest.$ac_ext <<_ACEOF
11212 /* confdefs.h.  */
11213 _ACEOF
11214 cat confdefs.h >>conftest.$ac_ext
11215 cat >>conftest.$ac_ext <<_ACEOF
11216 /* end confdefs.h.  */
11217 $ac_includes_default
11218 #include <$ac_header>
11219 _ACEOF
11220 rm -f conftest.$ac_objext
11221 if { (ac_try="$ac_compile"
11222 case "(($ac_try" in
11223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224   *) ac_try_echo=$ac_try;;
11225 esac
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227   (eval "$ac_compile") 2>conftest.er1
11228   ac_status=$?
11229   grep -v '^ *+' conftest.er1 >conftest.err
11230   rm -f conftest.er1
11231   cat conftest.err >&5
11232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233   (exit $ac_status); } &&
11234          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11235   { (case "(($ac_try" in
11236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11237   *) ac_try_echo=$ac_try;;
11238 esac
11239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11240   (eval "$ac_try") 2>&5
11241   ac_status=$?
11242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243   (exit $ac_status); }; } &&
11244          { ac_try='test -s conftest.$ac_objext'
11245   { (case "(($ac_try" in
11246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247   *) ac_try_echo=$ac_try;;
11248 esac
11249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250   (eval "$ac_try") 2>&5
11251   ac_status=$?
11252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); }; }; then
11254   ac_header_compiler=yes
11255 else
11256   echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11258
11259         ac_header_compiler=no
11260 fi
11261
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11263 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11264 echo "${ECHO_T}$ac_header_compiler" >&6; }
11265
11266 # Is the header present?
11267 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11269 cat >conftest.$ac_ext <<_ACEOF
11270 /* confdefs.h.  */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h.  */
11275 #include <$ac_header>
11276 _ACEOF
11277 if { (ac_try="$ac_cpp conftest.$ac_ext"
11278 case "(($ac_try" in
11279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280   *) ac_try_echo=$ac_try;;
11281 esac
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11284   ac_status=$?
11285   grep -v '^ *+' conftest.er1 >conftest.err
11286   rm -f conftest.er1
11287   cat conftest.err >&5
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); } >/dev/null; then
11290   if test -s conftest.err; then
11291     ac_cpp_err=$ac_c_preproc_warn_flag
11292     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11293   else
11294     ac_cpp_err=
11295   fi
11296 else
11297   ac_cpp_err=yes
11298 fi
11299 if test -z "$ac_cpp_err"; then
11300   ac_header_preproc=yes
11301 else
11302   echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11304
11305   ac_header_preproc=no
11306 fi
11307
11308 rm -f conftest.err conftest.$ac_ext
11309 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11310 echo "${ECHO_T}$ac_header_preproc" >&6; }
11311
11312 # So?  What about this header?
11313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11314   yes:no: )
11315     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11319     ac_header_preproc=yes
11320     ;;
11321   no:yes:* )
11322     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11324     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11325 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11326     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11328     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11329 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11332     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11334     ( cat <<\_ASBOX
11335 ## ----------------------------------- ##
11336 ## Report this to llvmbugs@cs.uiuc.edu ##
11337 ## ----------------------------------- ##
11338 _ASBOX
11339      ) | sed "s/^/$as_me: WARNING:     /" >&2
11340     ;;
11341 esac
11342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11345   echo $ECHO_N "(cached) $ECHO_C" >&6
11346 else
11347   eval "$as_ac_Header=\$ac_header_preproc"
11348 fi
11349 ac_res=`eval echo '${'$as_ac_Header'}'`
11350                { echo "$as_me:$LINENO: result: $ac_res" >&5
11351 echo "${ECHO_T}$ac_res" >&6; }
11352
11353 fi
11354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11355   cat >>confdefs.h <<_ACEOF
11356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11357 _ACEOF
11358
11359 fi
11360
11361 done
11362
11363
11364 { echo "$as_me:$LINENO: checking for error_t" >&5
11365 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11366 if test "${ac_cv_type_error_t+set}" = set; then
11367   echo $ECHO_N "(cached) $ECHO_C" >&6
11368 else
11369   cat >conftest.$ac_ext <<_ACEOF
11370 /* confdefs.h.  */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h.  */
11375 #if HAVE_ARGZ_H
11376 #  include <argz.h>
11377 #endif
11378
11379 typedef error_t ac__type_new_;
11380 int
11381 main ()
11382 {
11383 if ((ac__type_new_ *) 0)
11384   return 0;
11385 if (sizeof (ac__type_new_))
11386   return 0;
11387   ;
11388   return 0;
11389 }
11390 _ACEOF
11391 rm -f conftest.$ac_objext
11392 if { (ac_try="$ac_compile"
11393 case "(($ac_try" in
11394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395   *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398   (eval "$ac_compile") 2>conftest.er1
11399   ac_status=$?
11400   grep -v '^ *+' conftest.er1 >conftest.err
11401   rm -f conftest.er1
11402   cat conftest.err >&5
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); } &&
11405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11406   { (case "(($ac_try" in
11407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408   *) ac_try_echo=$ac_try;;
11409 esac
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411   (eval "$ac_try") 2>&5
11412   ac_status=$?
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); }; } &&
11415          { ac_try='test -s conftest.$ac_objext'
11416   { (case "(($ac_try" in
11417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418   *) ac_try_echo=$ac_try;;
11419 esac
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421   (eval "$ac_try") 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); }; }; then
11425   ac_cv_type_error_t=yes
11426 else
11427   echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11429
11430         ac_cv_type_error_t=no
11431 fi
11432
11433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11434 fi
11435 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11436 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11437 if test $ac_cv_type_error_t = yes; then
11438
11439 cat >>confdefs.h <<_ACEOF
11440 #define HAVE_ERROR_T 1
11441 _ACEOF
11442
11443
11444 else
11445
11446 cat >>confdefs.h <<\_ACEOF
11447 #define error_t int
11448 _ACEOF
11449
11450 fi
11451
11452
11453
11454
11455
11456
11457
11458 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11459 do
11460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11464   echo $ECHO_N "(cached) $ECHO_C" >&6
11465 else
11466   cat >conftest.$ac_ext <<_ACEOF
11467 /* confdefs.h.  */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h.  */
11472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11474 #define $ac_func innocuous_$ac_func
11475
11476 /* System header to define __stub macros and hopefully few prototypes,
11477     which can conflict with char $ac_func (); below.
11478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11479     <limits.h> exists even on freestanding compilers.  */
11480
11481 #ifdef __STDC__
11482 # include <limits.h>
11483 #else
11484 # include <assert.h>
11485 #endif
11486
11487 #undef $ac_func
11488
11489 /* Override any GCC internal prototype to avoid an error.
11490    Use char because int might match the return type of a GCC
11491    builtin and then its argument prototype would still apply.  */
11492 #ifdef __cplusplus
11493 extern "C"
11494 #endif
11495 char $ac_func ();
11496 /* The GNU C library defines this for functions which it implements
11497     to always fail with ENOSYS.  Some functions are actually named
11498     something starting with __ and the normal name is an alias.  */
11499 #if defined __stub_$ac_func || defined __stub___$ac_func
11500 choke me
11501 #endif
11502
11503 int
11504 main ()
11505 {
11506 return $ac_func ();
11507   ;
11508   return 0;
11509 }
11510 _ACEOF
11511 rm -f conftest.$ac_objext conftest$ac_exeext
11512 if { (ac_try="$ac_link"
11513 case "(($ac_try" in
11514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515   *) ac_try_echo=$ac_try;;
11516 esac
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518   (eval "$ac_link") 2>conftest.er1
11519   ac_status=$?
11520   grep -v '^ *+' conftest.er1 >conftest.err
11521   rm -f conftest.er1
11522   cat conftest.err >&5
11523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524   (exit $ac_status); } &&
11525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11526   { (case "(($ac_try" in
11527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528   *) ac_try_echo=$ac_try;;
11529 esac
11530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11531   (eval "$ac_try") 2>&5
11532   ac_status=$?
11533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); }; } &&
11535          { ac_try='test -s conftest$ac_exeext'
11536   { (case "(($ac_try" in
11537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538   *) ac_try_echo=$ac_try;;
11539 esac
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541   (eval "$ac_try") 2>&5
11542   ac_status=$?
11543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544   (exit $ac_status); }; }; then
11545   eval "$as_ac_var=yes"
11546 else
11547   echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11549
11550         eval "$as_ac_var=no"
11551 fi
11552
11553 rm -f core conftest.err conftest.$ac_objext \
11554       conftest$ac_exeext conftest.$ac_ext
11555 fi
11556 ac_res=`eval echo '${'$as_ac_var'}'`
11557                { echo "$as_me:$LINENO: result: $ac_res" >&5
11558 echo "${ECHO_T}$ac_res" >&6; }
11559 if test `eval echo '${'$as_ac_var'}'` = yes; then
11560   cat >>confdefs.h <<_ACEOF
11561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11562 _ACEOF
11563
11564 fi
11565 done
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11595                   stdio.h unistd.h
11596 do
11597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11599   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11602   echo $ECHO_N "(cached) $ECHO_C" >&6
11603 fi
11604 ac_res=`eval echo '${'$as_ac_Header'}'`
11605                { echo "$as_me:$LINENO: result: $ac_res" >&5
11606 echo "${ECHO_T}$ac_res" >&6; }
11607 else
11608   # Is the header compilable?
11609 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11611 cat >conftest.$ac_ext <<_ACEOF
11612 /* confdefs.h.  */
11613 _ACEOF
11614 cat confdefs.h >>conftest.$ac_ext
11615 cat >>conftest.$ac_ext <<_ACEOF
11616 /* end confdefs.h.  */
11617 $ac_includes_default
11618 #include <$ac_header>
11619 _ACEOF
11620 rm -f conftest.$ac_objext
11621 if { (ac_try="$ac_compile"
11622 case "(($ac_try" in
11623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624   *) ac_try_echo=$ac_try;;
11625 esac
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627   (eval "$ac_compile") 2>conftest.er1
11628   ac_status=$?
11629   grep -v '^ *+' conftest.er1 >conftest.err
11630   rm -f conftest.er1
11631   cat conftest.err >&5
11632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633   (exit $ac_status); } &&
11634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11635   { (case "(($ac_try" in
11636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637   *) ac_try_echo=$ac_try;;
11638 esac
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640   (eval "$ac_try") 2>&5
11641   ac_status=$?
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); }; } &&
11644          { ac_try='test -s conftest.$ac_objext'
11645   { (case "(($ac_try" in
11646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647   *) ac_try_echo=$ac_try;;
11648 esac
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650   (eval "$ac_try") 2>&5
11651   ac_status=$?
11652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653   (exit $ac_status); }; }; then
11654   ac_header_compiler=yes
11655 else
11656   echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.$ac_ext >&5
11658
11659         ac_header_compiler=no
11660 fi
11661
11662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11664 echo "${ECHO_T}$ac_header_compiler" >&6; }
11665
11666 # Is the header present?
11667 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11669 cat >conftest.$ac_ext <<_ACEOF
11670 /* confdefs.h.  */
11671 _ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h.  */
11675 #include <$ac_header>
11676 _ACEOF
11677 if { (ac_try="$ac_cpp conftest.$ac_ext"
11678 case "(($ac_try" in
11679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680   *) ac_try_echo=$ac_try;;
11681 esac
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11684   ac_status=$?
11685   grep -v '^ *+' conftest.er1 >conftest.err
11686   rm -f conftest.er1
11687   cat conftest.err >&5
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); } >/dev/null; then
11690   if test -s conftest.err; then
11691     ac_cpp_err=$ac_c_preproc_warn_flag
11692     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11693   else
11694     ac_cpp_err=
11695   fi
11696 else
11697   ac_cpp_err=yes
11698 fi
11699 if test -z "$ac_cpp_err"; then
11700   ac_header_preproc=yes
11701 else
11702   echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11704
11705   ac_header_preproc=no
11706 fi
11707
11708 rm -f conftest.err conftest.$ac_ext
11709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11710 echo "${ECHO_T}$ac_header_preproc" >&6; }
11711
11712 # So?  What about this header?
11713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11714   yes:no: )
11715     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11716 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11717     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11718 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11719     ac_header_preproc=yes
11720     ;;
11721   no:yes:* )
11722     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11724     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11725 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11726     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11727 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11728     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11729 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11732     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11733 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11734     ( cat <<\_ASBOX
11735 ## ----------------------------------- ##
11736 ## Report this to llvmbugs@cs.uiuc.edu ##
11737 ## ----------------------------------- ##
11738 _ASBOX
11739      ) | sed "s/^/$as_me: WARNING:     /" >&2
11740     ;;
11741 esac
11742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11745   echo $ECHO_N "(cached) $ECHO_C" >&6
11746 else
11747   eval "$as_ac_Header=\$ac_header_preproc"
11748 fi
11749 ac_res=`eval echo '${'$as_ac_Header'}'`
11750                { echo "$as_me:$LINENO: result: $ac_res" >&5
11751 echo "${ECHO_T}$ac_res" >&6; }
11752
11753 fi
11754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11755   cat >>confdefs.h <<_ACEOF
11756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11757 _ACEOF
11758
11759 fi
11760
11761 done
11762
11763
11764
11765
11766
11767 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11768 do
11769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11771   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11774   echo $ECHO_N "(cached) $ECHO_C" >&6
11775 fi
11776 ac_res=`eval echo '${'$as_ac_Header'}'`
11777                { echo "$as_me:$LINENO: result: $ac_res" >&5
11778 echo "${ECHO_T}$ac_res" >&6; }
11779 else
11780   # Is the header compilable?
11781 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11783 cat >conftest.$ac_ext <<_ACEOF
11784 /* confdefs.h.  */
11785 _ACEOF
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h.  */
11789 $ac_includes_default
11790 #include <$ac_header>
11791 _ACEOF
11792 rm -f conftest.$ac_objext
11793 if { (ac_try="$ac_compile"
11794 case "(($ac_try" in
11795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796   *) ac_try_echo=$ac_try;;
11797 esac
11798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799   (eval "$ac_compile") 2>conftest.er1
11800   ac_status=$?
11801   grep -v '^ *+' conftest.er1 >conftest.err
11802   rm -f conftest.er1
11803   cat conftest.err >&5
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   (exit $ac_status); } &&
11806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11807   { (case "(($ac_try" in
11808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809   *) ac_try_echo=$ac_try;;
11810 esac
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812   (eval "$ac_try") 2>&5
11813   ac_status=$?
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); }; } &&
11816          { ac_try='test -s conftest.$ac_objext'
11817   { (case "(($ac_try" in
11818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819   *) ac_try_echo=$ac_try;;
11820 esac
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822   (eval "$ac_try") 2>&5
11823   ac_status=$?
11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); }; }; then
11826   ac_header_compiler=yes
11827 else
11828   echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11830
11831         ac_header_compiler=no
11832 fi
11833
11834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11835 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11836 echo "${ECHO_T}$ac_header_compiler" >&6; }
11837
11838 # Is the header present?
11839 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11841 cat >conftest.$ac_ext <<_ACEOF
11842 /* confdefs.h.  */
11843 _ACEOF
11844 cat confdefs.h >>conftest.$ac_ext
11845 cat >>conftest.$ac_ext <<_ACEOF
11846 /* end confdefs.h.  */
11847 #include <$ac_header>
11848 _ACEOF
11849 if { (ac_try="$ac_cpp conftest.$ac_ext"
11850 case "(($ac_try" in
11851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852   *) ac_try_echo=$ac_try;;
11853 esac
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11856   ac_status=$?
11857   grep -v '^ *+' conftest.er1 >conftest.err
11858   rm -f conftest.er1
11859   cat conftest.err >&5
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); } >/dev/null; then
11862   if test -s conftest.err; then
11863     ac_cpp_err=$ac_c_preproc_warn_flag
11864     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11865   else
11866     ac_cpp_err=
11867   fi
11868 else
11869   ac_cpp_err=yes
11870 fi
11871 if test -z "$ac_cpp_err"; then
11872   ac_header_preproc=yes
11873 else
11874   echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11876
11877   ac_header_preproc=no
11878 fi
11879
11880 rm -f conftest.err conftest.$ac_ext
11881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11882 echo "${ECHO_T}$ac_header_preproc" >&6; }
11883
11884 # So?  What about this header?
11885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11886   yes:no: )
11887     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11889     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11891     ac_header_preproc=yes
11892     ;;
11893   no:yes:* )
11894     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11896     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11897 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11898     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11900     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11901 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11904     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11906     ( cat <<\_ASBOX
11907 ## ----------------------------------- ##
11908 ## Report this to llvmbugs@cs.uiuc.edu ##
11909 ## ----------------------------------- ##
11910 _ASBOX
11911      ) | sed "s/^/$as_me: WARNING:     /" >&2
11912     ;;
11913 esac
11914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11917   echo $ECHO_N "(cached) $ECHO_C" >&6
11918 else
11919   eval "$as_ac_Header=\$ac_header_preproc"
11920 fi
11921 ac_res=`eval echo '${'$as_ac_Header'}'`
11922                { echo "$as_me:$LINENO: result: $ac_res" >&5
11923 echo "${ECHO_T}$ac_res" >&6; }
11924
11925 fi
11926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11927   cat >>confdefs.h <<_ACEOF
11928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11929 _ACEOF
11930
11931 fi
11932
11933 done
11934
11935
11936
11937 for ac_header in string.h strings.h
11938 do
11939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11941   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11944   echo $ECHO_N "(cached) $ECHO_C" >&6
11945 fi
11946 ac_res=`eval echo '${'$as_ac_Header'}'`
11947                { echo "$as_me:$LINENO: result: $ac_res" >&5
11948 echo "${ECHO_T}$ac_res" >&6; }
11949 else
11950   # Is the header compilable?
11951 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11953 cat >conftest.$ac_ext <<_ACEOF
11954 /* confdefs.h.  */
11955 _ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h.  */
11959 $ac_includes_default
11960 #include <$ac_header>
11961 _ACEOF
11962 rm -f conftest.$ac_objext
11963 if { (ac_try="$ac_compile"
11964 case "(($ac_try" in
11965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966   *) ac_try_echo=$ac_try;;
11967 esac
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969   (eval "$ac_compile") 2>conftest.er1
11970   ac_status=$?
11971   grep -v '^ *+' conftest.er1 >conftest.err
11972   rm -f conftest.er1
11973   cat conftest.err >&5
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); } &&
11976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11977   { (case "(($ac_try" in
11978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979   *) ac_try_echo=$ac_try;;
11980 esac
11981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982   (eval "$ac_try") 2>&5
11983   ac_status=$?
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); }; } &&
11986          { ac_try='test -s conftest.$ac_objext'
11987   { (case "(($ac_try" in
11988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989   *) ac_try_echo=$ac_try;;
11990 esac
11991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992   (eval "$ac_try") 2>&5
11993   ac_status=$?
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); }; }; then
11996   ac_header_compiler=yes
11997 else
11998   echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12000
12001         ac_header_compiler=no
12002 fi
12003
12004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12006 echo "${ECHO_T}$ac_header_compiler" >&6; }
12007
12008 # Is the header present?
12009 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12011 cat >conftest.$ac_ext <<_ACEOF
12012 /* confdefs.h.  */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h.  */
12017 #include <$ac_header>
12018 _ACEOF
12019 if { (ac_try="$ac_cpp conftest.$ac_ext"
12020 case "(($ac_try" in
12021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022   *) ac_try_echo=$ac_try;;
12023 esac
12024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12026   ac_status=$?
12027   grep -v '^ *+' conftest.er1 >conftest.err
12028   rm -f conftest.er1
12029   cat conftest.err >&5
12030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031   (exit $ac_status); } >/dev/null; then
12032   if test -s conftest.err; then
12033     ac_cpp_err=$ac_c_preproc_warn_flag
12034     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12035   else
12036     ac_cpp_err=
12037   fi
12038 else
12039   ac_cpp_err=yes
12040 fi
12041 if test -z "$ac_cpp_err"; then
12042   ac_header_preproc=yes
12043 else
12044   echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12046
12047   ac_header_preproc=no
12048 fi
12049
12050 rm -f conftest.err conftest.$ac_ext
12051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12052 echo "${ECHO_T}$ac_header_preproc" >&6; }
12053
12054 # So?  What about this header?
12055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12056   yes:no: )
12057     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12061     ac_header_preproc=yes
12062     ;;
12063   no:yes:* )
12064     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12066     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12067 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12068     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12070     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12071 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12074     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12076     ( cat <<\_ASBOX
12077 ## ----------------------------------- ##
12078 ## Report this to llvmbugs@cs.uiuc.edu ##
12079 ## ----------------------------------- ##
12080 _ASBOX
12081      ) | sed "s/^/$as_me: WARNING:     /" >&2
12082     ;;
12083 esac
12084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12087   echo $ECHO_N "(cached) $ECHO_C" >&6
12088 else
12089   eval "$as_ac_Header=\$ac_header_preproc"
12090 fi
12091 ac_res=`eval echo '${'$as_ac_Header'}'`
12092                { echo "$as_me:$LINENO: result: $ac_res" >&5
12093 echo "${ECHO_T}$ac_res" >&6; }
12094
12095 fi
12096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12097   cat >>confdefs.h <<_ACEOF
12098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12099 _ACEOF
12100  break
12101 fi
12102
12103 done
12104
12105
12106
12107
12108 for ac_func in strchr index
12109 do
12110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12111 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12114   echo $ECHO_N "(cached) $ECHO_C" >&6
12115 else
12116   cat >conftest.$ac_ext <<_ACEOF
12117 /* confdefs.h.  */
12118 _ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h.  */
12122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12123    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12124 #define $ac_func innocuous_$ac_func
12125
12126 /* System header to define __stub macros and hopefully few prototypes,
12127     which can conflict with char $ac_func (); below.
12128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12129     <limits.h> exists even on freestanding compilers.  */
12130
12131 #ifdef __STDC__
12132 # include <limits.h>
12133 #else
12134 # include <assert.h>
12135 #endif
12136
12137 #undef $ac_func
12138
12139 /* Override any GCC internal prototype to avoid an error.
12140    Use char because int might match the return type of a GCC
12141    builtin and then its argument prototype would still apply.  */
12142 #ifdef __cplusplus
12143 extern "C"
12144 #endif
12145 char $ac_func ();
12146 /* The GNU C library defines this for functions which it implements
12147     to always fail with ENOSYS.  Some functions are actually named
12148     something starting with __ and the normal name is an alias.  */
12149 #if defined __stub_$ac_func || defined __stub___$ac_func
12150 choke me
12151 #endif
12152
12153 int
12154 main ()
12155 {
12156 return $ac_func ();
12157   ;
12158   return 0;
12159 }
12160 _ACEOF
12161 rm -f conftest.$ac_objext conftest$ac_exeext
12162 if { (ac_try="$ac_link"
12163 case "(($ac_try" in
12164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165   *) ac_try_echo=$ac_try;;
12166 esac
12167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168   (eval "$ac_link") 2>conftest.er1
12169   ac_status=$?
12170   grep -v '^ *+' conftest.er1 >conftest.err
12171   rm -f conftest.er1
12172   cat conftest.err >&5
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); } &&
12175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12176   { (case "(($ac_try" in
12177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178   *) ac_try_echo=$ac_try;;
12179 esac
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181   (eval "$ac_try") 2>&5
12182   ac_status=$?
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); }; } &&
12185          { ac_try='test -s conftest$ac_exeext'
12186   { (case "(($ac_try" in
12187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188   *) ac_try_echo=$ac_try;;
12189 esac
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191   (eval "$ac_try") 2>&5
12192   ac_status=$?
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); }; }; then
12195   eval "$as_ac_var=yes"
12196 else
12197   echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12199
12200         eval "$as_ac_var=no"
12201 fi
12202
12203 rm -f core conftest.err conftest.$ac_objext \
12204       conftest$ac_exeext conftest.$ac_ext
12205 fi
12206 ac_res=`eval echo '${'$as_ac_var'}'`
12207                { echo "$as_me:$LINENO: result: $ac_res" >&5
12208 echo "${ECHO_T}$ac_res" >&6; }
12209 if test `eval echo '${'$as_ac_var'}'` = yes; then
12210   cat >>confdefs.h <<_ACEOF
12211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12212 _ACEOF
12213  break
12214 fi
12215 done
12216
12217
12218
12219 for ac_func in strrchr rindex
12220 do
12221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12222 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12225   echo $ECHO_N "(cached) $ECHO_C" >&6
12226 else
12227   cat >conftest.$ac_ext <<_ACEOF
12228 /* confdefs.h.  */
12229 _ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h.  */
12233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12234    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12235 #define $ac_func innocuous_$ac_func
12236
12237 /* System header to define __stub macros and hopefully few prototypes,
12238     which can conflict with char $ac_func (); below.
12239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12240     <limits.h> exists even on freestanding compilers.  */
12241
12242 #ifdef __STDC__
12243 # include <limits.h>
12244 #else
12245 # include <assert.h>
12246 #endif
12247
12248 #undef $ac_func
12249
12250 /* Override any GCC internal prototype to avoid an error.
12251    Use char because int might match the return type of a GCC
12252    builtin and then its argument prototype would still apply.  */
12253 #ifdef __cplusplus
12254 extern "C"
12255 #endif
12256 char $ac_func ();
12257 /* The GNU C library defines this for functions which it implements
12258     to always fail with ENOSYS.  Some functions are actually named
12259     something starting with __ and the normal name is an alias.  */
12260 #if defined __stub_$ac_func || defined __stub___$ac_func
12261 choke me
12262 #endif
12263
12264 int
12265 main ()
12266 {
12267 return $ac_func ();
12268   ;
12269   return 0;
12270 }
12271 _ACEOF
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (ac_try="$ac_link"
12274 case "(($ac_try" in
12275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276   *) ac_try_echo=$ac_try;;
12277 esac
12278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279   (eval "$ac_link") 2>conftest.er1
12280   ac_status=$?
12281   grep -v '^ *+' conftest.er1 >conftest.err
12282   rm -f conftest.er1
12283   cat conftest.err >&5
12284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); } &&
12286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12287   { (case "(($ac_try" in
12288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289   *) ac_try_echo=$ac_try;;
12290 esac
12291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292   (eval "$ac_try") 2>&5
12293   ac_status=$?
12294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); }; } &&
12296          { ac_try='test -s conftest$ac_exeext'
12297   { (case "(($ac_try" in
12298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299   *) ac_try_echo=$ac_try;;
12300 esac
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302   (eval "$ac_try") 2>&5
12303   ac_status=$?
12304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); }; }; then
12306   eval "$as_ac_var=yes"
12307 else
12308   echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12310
12311         eval "$as_ac_var=no"
12312 fi
12313
12314 rm -f core conftest.err conftest.$ac_objext \
12315       conftest$ac_exeext conftest.$ac_ext
12316 fi
12317 ac_res=`eval echo '${'$as_ac_var'}'`
12318                { echo "$as_me:$LINENO: result: $ac_res" >&5
12319 echo "${ECHO_T}$ac_res" >&6; }
12320 if test `eval echo '${'$as_ac_var'}'` = yes; then
12321   cat >>confdefs.h <<_ACEOF
12322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12323 _ACEOF
12324  break
12325 fi
12326 done
12327
12328
12329
12330 for ac_func in memcpy bcopy
12331 do
12332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12336   echo $ECHO_N "(cached) $ECHO_C" >&6
12337 else
12338   cat >conftest.$ac_ext <<_ACEOF
12339 /* confdefs.h.  */
12340 _ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h.  */
12344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12346 #define $ac_func innocuous_$ac_func
12347
12348 /* System header to define __stub macros and hopefully few prototypes,
12349     which can conflict with char $ac_func (); below.
12350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12351     <limits.h> exists even on freestanding compilers.  */
12352
12353 #ifdef __STDC__
12354 # include <limits.h>
12355 #else
12356 # include <assert.h>
12357 #endif
12358
12359 #undef $ac_func
12360
12361 /* Override any GCC internal prototype to avoid an error.
12362    Use char because int might match the return type of a GCC
12363    builtin and then its argument prototype would still apply.  */
12364 #ifdef __cplusplus
12365 extern "C"
12366 #endif
12367 char $ac_func ();
12368 /* The GNU C library defines this for functions which it implements
12369     to always fail with ENOSYS.  Some functions are actually named
12370     something starting with __ and the normal name is an alias.  */
12371 #if defined __stub_$ac_func || defined __stub___$ac_func
12372 choke me
12373 #endif
12374
12375 int
12376 main ()
12377 {
12378 return $ac_func ();
12379   ;
12380   return 0;
12381 }
12382 _ACEOF
12383 rm -f conftest.$ac_objext conftest$ac_exeext
12384 if { (ac_try="$ac_link"
12385 case "(($ac_try" in
12386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387   *) ac_try_echo=$ac_try;;
12388 esac
12389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390   (eval "$ac_link") 2>conftest.er1
12391   ac_status=$?
12392   grep -v '^ *+' conftest.er1 >conftest.err
12393   rm -f conftest.er1
12394   cat conftest.err >&5
12395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396   (exit $ac_status); } &&
12397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12398   { (case "(($ac_try" in
12399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400   *) ac_try_echo=$ac_try;;
12401 esac
12402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403   (eval "$ac_try") 2>&5
12404   ac_status=$?
12405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); }; } &&
12407          { ac_try='test -s conftest$ac_exeext'
12408   { (case "(($ac_try" in
12409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12410   *) ac_try_echo=$ac_try;;
12411 esac
12412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12413   (eval "$ac_try") 2>&5
12414   ac_status=$?
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); }; }; then
12417   eval "$as_ac_var=yes"
12418 else
12419   echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12421
12422         eval "$as_ac_var=no"
12423 fi
12424
12425 rm -f core conftest.err conftest.$ac_objext \
12426       conftest$ac_exeext conftest.$ac_ext
12427 fi
12428 ac_res=`eval echo '${'$as_ac_var'}'`
12429                { echo "$as_me:$LINENO: result: $ac_res" >&5
12430 echo "${ECHO_T}$ac_res" >&6; }
12431 if test `eval echo '${'$as_ac_var'}'` = yes; then
12432   cat >>confdefs.h <<_ACEOF
12433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12434 _ACEOF
12435  break
12436 fi
12437 done
12438
12439
12440
12441 for ac_func in memmove strcmp
12442 do
12443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12444 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12446 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12447   echo $ECHO_N "(cached) $ECHO_C" >&6
12448 else
12449   cat >conftest.$ac_ext <<_ACEOF
12450 /* confdefs.h.  */
12451 _ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h.  */
12455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12457 #define $ac_func innocuous_$ac_func
12458
12459 /* System header to define __stub macros and hopefully few prototypes,
12460     which can conflict with char $ac_func (); below.
12461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12462     <limits.h> exists even on freestanding compilers.  */
12463
12464 #ifdef __STDC__
12465 # include <limits.h>
12466 #else
12467 # include <assert.h>
12468 #endif
12469
12470 #undef $ac_func
12471
12472 /* Override any GCC internal prototype to avoid an error.
12473    Use char because int might match the return type of a GCC
12474    builtin and then its argument prototype would still apply.  */
12475 #ifdef __cplusplus
12476 extern "C"
12477 #endif
12478 char $ac_func ();
12479 /* The GNU C library defines this for functions which it implements
12480     to always fail with ENOSYS.  Some functions are actually named
12481     something starting with __ and the normal name is an alias.  */
12482 #if defined __stub_$ac_func || defined __stub___$ac_func
12483 choke me
12484 #endif
12485
12486 int
12487 main ()
12488 {
12489 return $ac_func ();
12490   ;
12491   return 0;
12492 }
12493 _ACEOF
12494 rm -f conftest.$ac_objext conftest$ac_exeext
12495 if { (ac_try="$ac_link"
12496 case "(($ac_try" in
12497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498   *) ac_try_echo=$ac_try;;
12499 esac
12500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12501   (eval "$ac_link") 2>conftest.er1
12502   ac_status=$?
12503   grep -v '^ *+' conftest.er1 >conftest.err
12504   rm -f conftest.er1
12505   cat conftest.err >&5
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); } &&
12508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12509   { (case "(($ac_try" in
12510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511   *) ac_try_echo=$ac_try;;
12512 esac
12513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514   (eval "$ac_try") 2>&5
12515   ac_status=$?
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); }; } &&
12518          { ac_try='test -s conftest$ac_exeext'
12519   { (case "(($ac_try" in
12520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521   *) ac_try_echo=$ac_try;;
12522 esac
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524   (eval "$ac_try") 2>&5
12525   ac_status=$?
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); }; }; then
12528   eval "$as_ac_var=yes"
12529 else
12530   echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12532
12533         eval "$as_ac_var=no"
12534 fi
12535
12536 rm -f core conftest.err conftest.$ac_objext \
12537       conftest$ac_exeext conftest.$ac_ext
12538 fi
12539 ac_res=`eval echo '${'$as_ac_var'}'`
12540                { echo "$as_me:$LINENO: result: $ac_res" >&5
12541 echo "${ECHO_T}$ac_res" >&6; }
12542 if test `eval echo '${'$as_ac_var'}'` = yes; then
12543   cat >>confdefs.h <<_ACEOF
12544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12545 _ACEOF
12546
12547 fi
12548 done
12549
12550
12551
12552
12553 for ac_func in closedir opendir readdir
12554 do
12555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12559   echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561   cat >conftest.$ac_ext <<_ACEOF
12562 /* confdefs.h.  */
12563 _ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h.  */
12567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12569 #define $ac_func innocuous_$ac_func
12570
12571 /* System header to define __stub macros and hopefully few prototypes,
12572     which can conflict with char $ac_func (); below.
12573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12574     <limits.h> exists even on freestanding compilers.  */
12575
12576 #ifdef __STDC__
12577 # include <limits.h>
12578 #else
12579 # include <assert.h>
12580 #endif
12581
12582 #undef $ac_func
12583
12584 /* Override any GCC internal prototype to avoid an error.
12585    Use char because int might match the return type of a GCC
12586    builtin and then its argument prototype would still apply.  */
12587 #ifdef __cplusplus
12588 extern "C"
12589 #endif
12590 char $ac_func ();
12591 /* The GNU C library defines this for functions which it implements
12592     to always fail with ENOSYS.  Some functions are actually named
12593     something starting with __ and the normal name is an alias.  */
12594 #if defined __stub_$ac_func || defined __stub___$ac_func
12595 choke me
12596 #endif
12597
12598 int
12599 main ()
12600 {
12601 return $ac_func ();
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 rm -f conftest.$ac_objext conftest$ac_exeext
12607 if { (ac_try="$ac_link"
12608 case "(($ac_try" in
12609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610   *) ac_try_echo=$ac_try;;
12611 esac
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613   (eval "$ac_link") 2>conftest.er1
12614   ac_status=$?
12615   grep -v '^ *+' conftest.er1 >conftest.err
12616   rm -f conftest.er1
12617   cat conftest.err >&5
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); } &&
12620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12621   { (case "(($ac_try" in
12622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623   *) ac_try_echo=$ac_try;;
12624 esac
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626   (eval "$ac_try") 2>&5
12627   ac_status=$?
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); }; } &&
12630          { ac_try='test -s conftest$ac_exeext'
12631   { (case "(($ac_try" in
12632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633   *) ac_try_echo=$ac_try;;
12634 esac
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636   (eval "$ac_try") 2>&5
12637   ac_status=$?
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); }; }; then
12640   eval "$as_ac_var=yes"
12641 else
12642   echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12644
12645         eval "$as_ac_var=no"
12646 fi
12647
12648 rm -f core conftest.err conftest.$ac_objext \
12649       conftest$ac_exeext conftest.$ac_ext
12650 fi
12651 ac_res=`eval echo '${'$as_ac_var'}'`
12652                { echo "$as_me:$LINENO: result: $ac_res" >&5
12653 echo "${ECHO_T}$ac_res" >&6; }
12654 if test `eval echo '${'$as_ac_var'}'` = yes; then
12655   cat >>confdefs.h <<_ACEOF
12656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12657 _ACEOF
12658
12659 fi
12660 done
12661
12662
12663 # Check whether --enable-shared was given.
12664 if test "${enable_shared+set}" = set; then
12665   enableval=$enable_shared; p=${PACKAGE-default}
12666     case $enableval in
12667     yes) enable_shared=yes ;;
12668     no) enable_shared=no ;;
12669     *)
12670       enable_shared=no
12671       # Look at the argument we got.  We use all the common list separators.
12672       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12673       for pkg in $enableval; do
12674         IFS="$lt_save_ifs"
12675         if test "X$pkg" = "X$p"; then
12676           enable_shared=yes
12677         fi
12678       done
12679       IFS="$lt_save_ifs"
12680       ;;
12681     esac
12682 else
12683   enable_shared=yes
12684 fi
12685
12686
12687 # Check whether --enable-static was given.
12688 if test "${enable_static+set}" = set; then
12689   enableval=$enable_static; p=${PACKAGE-default}
12690     case $enableval in
12691     yes) enable_static=yes ;;
12692     no) enable_static=no ;;
12693     *)
12694      enable_static=no
12695       # Look at the argument we got.  We use all the common list separators.
12696       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12697       for pkg in $enableval; do
12698         IFS="$lt_save_ifs"
12699         if test "X$pkg" = "X$p"; then
12700           enable_static=yes
12701         fi
12702       done
12703       IFS="$lt_save_ifs"
12704       ;;
12705     esac
12706 else
12707   enable_static=yes
12708 fi
12709
12710
12711 # Check whether --enable-fast-install was given.
12712 if test "${enable_fast_install+set}" = set; then
12713   enableval=$enable_fast_install; p=${PACKAGE-default}
12714     case $enableval in
12715     yes) enable_fast_install=yes ;;
12716     no) enable_fast_install=no ;;
12717     *)
12718       enable_fast_install=no
12719       # Look at the argument we got.  We use all the common list separators.
12720       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12721       for pkg in $enableval; do
12722         IFS="$lt_save_ifs"
12723         if test "X$pkg" = "X$p"; then
12724           enable_fast_install=yes
12725         fi
12726       done
12727       IFS="$lt_save_ifs"
12728       ;;
12729     esac
12730 else
12731   enable_fast_install=yes
12732 fi
12733
12734
12735 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12736 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12737 if test "${lt_cv_path_SED+set}" = set; then
12738   echo $ECHO_N "(cached) $ECHO_C" >&6
12739 else
12740   # Loop through the user's path and test for sed and gsed.
12741 # Then use that list of sed's as ones to test for truncation.
12742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12743 for as_dir in $PATH
12744 do
12745   IFS=$as_save_IFS
12746   test -z "$as_dir" && as_dir=.
12747   for lt_ac_prog in sed gsed; do
12748     for ac_exec_ext in '' $ac_executable_extensions; do
12749       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12750         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12751       fi
12752     done
12753   done
12754 done
12755 lt_ac_max=0
12756 lt_ac_count=0
12757 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12758 # along with /bin/sed that truncates output.
12759 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12760   test ! -f $lt_ac_sed && continue
12761   cat /dev/null > conftest.in
12762   lt_ac_count=0
12763   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12764   # Check for GNU sed and select it if it is found.
12765   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12766     lt_cv_path_SED=$lt_ac_sed
12767     break
12768   fi
12769   while true; do
12770     cat conftest.in conftest.in >conftest.tmp
12771     mv conftest.tmp conftest.in
12772     cp conftest.in conftest.nl
12773     echo >>conftest.nl
12774     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12775     cmp -s conftest.out conftest.nl || break
12776     # 10000 chars as input seems more than enough
12777     test $lt_ac_count -gt 10 && break
12778     lt_ac_count=`expr $lt_ac_count + 1`
12779     if test $lt_ac_count -gt $lt_ac_max; then
12780       lt_ac_max=$lt_ac_count
12781       lt_cv_path_SED=$lt_ac_sed
12782     fi
12783   done
12784 done
12785
12786 fi
12787
12788 SED=$lt_cv_path_SED
12789 { echo "$as_me:$LINENO: result: $SED" >&5
12790 echo "${ECHO_T}$SED" >&6; }
12791
12792
12793 # Check whether --with-gnu-ld was given.
12794 if test "${with_gnu_ld+set}" = set; then
12795   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12796 else
12797   with_gnu_ld=no
12798 fi
12799
12800 ac_prog=ld
12801 if test "$GCC" = yes; then
12802   # Check if gcc -print-prog-name=ld gives a path.
12803   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12804 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12805   case $host in
12806   *-*-mingw*)
12807     # gcc leaves a trailing carriage return which upsets mingw
12808     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12809   *)
12810     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12811   esac
12812   case $ac_prog in
12813     # Accept absolute paths.
12814     [\\/]* | ?:[\\/]*)
12815       re_direlt='/[^/][^/]*/\.\./'
12816       # Canonicalize the pathname of ld
12817       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12818       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12819         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12820       done
12821       test -z "$LD" && LD="$ac_prog"
12822       ;;
12823   "")
12824     # If it fails, then pretend we aren't using GCC.
12825     ac_prog=ld
12826     ;;
12827   *)
12828     # If it is relative, then search for the first ld in PATH.
12829     with_gnu_ld=unknown
12830     ;;
12831   esac
12832 elif test "$with_gnu_ld" = yes; then
12833   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12834 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12835 else
12836   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12837 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12838 fi
12839 if test "${lt_cv_path_LD+set}" = set; then
12840   echo $ECHO_N "(cached) $ECHO_C" >&6
12841 else
12842   if test -z "$LD"; then
12843   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12844   for ac_dir in $PATH; do
12845     IFS="$lt_save_ifs"
12846     test -z "$ac_dir" && ac_dir=.
12847     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12848       lt_cv_path_LD="$ac_dir/$ac_prog"
12849       # Check to see if the program is GNU ld.  I'd rather use --version,
12850       # but apparently some variants of GNU ld only accept -v.
12851       # Break only if it was the GNU/non-GNU ld that we prefer.
12852       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12853       *GNU* | *'with BFD'*)
12854         test "$with_gnu_ld" != no && break
12855         ;;
12856       *)
12857         test "$with_gnu_ld" != yes && break
12858         ;;
12859       esac
12860     fi
12861   done
12862   IFS="$lt_save_ifs"
12863 else
12864   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12865 fi
12866 fi
12867
12868 LD="$lt_cv_path_LD"
12869 if test -n "$LD"; then
12870   { echo "$as_me:$LINENO: result: $LD" >&5
12871 echo "${ECHO_T}$LD" >&6; }
12872 else
12873   { echo "$as_me:$LINENO: result: no" >&5
12874 echo "${ECHO_T}no" >&6; }
12875 fi
12876 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12877 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12878    { (exit 1); exit 1; }; }
12879 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12880 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12881 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12882   echo $ECHO_N "(cached) $ECHO_C" >&6
12883 else
12884   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12885 case `$LD -v 2>&1 </dev/null` in
12886 *GNU* | *'with BFD'*)
12887   lt_cv_prog_gnu_ld=yes
12888   ;;
12889 *)
12890   lt_cv_prog_gnu_ld=no
12891   ;;
12892 esac
12893 fi
12894 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12895 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12896 with_gnu_ld=$lt_cv_prog_gnu_ld
12897
12898
12899 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12900 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12901 if test "${lt_cv_ld_reload_flag+set}" = set; then
12902   echo $ECHO_N "(cached) $ECHO_C" >&6
12903 else
12904   lt_cv_ld_reload_flag='-r'
12905 fi
12906 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12907 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12908 reload_flag=$lt_cv_ld_reload_flag
12909 case $reload_flag in
12910 "" | " "*) ;;
12911 *) reload_flag=" $reload_flag" ;;
12912 esac
12913 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12914 case $host_os in
12915   darwin*)
12916     if test "$GCC" = yes; then
12917       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12918     else
12919       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12920     fi
12921     ;;
12922 esac
12923
12924 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12925 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12926 if test "${lt_cv_deplibs_check_method+set}" = set; then
12927   echo $ECHO_N "(cached) $ECHO_C" >&6
12928 else
12929   lt_cv_file_magic_cmd='$MAGIC_CMD'
12930 lt_cv_file_magic_test_file=
12931 lt_cv_deplibs_check_method='unknown'
12932 # Need to set the preceding variable on all platforms that support
12933 # interlibrary dependencies.
12934 # 'none' -- dependencies not supported.
12935 # `unknown' -- same as none, but documents that we really don't know.
12936 # 'pass_all' -- all dependencies passed with no checks.
12937 # 'test_compile' -- check by making test program.
12938 # 'file_magic [[regex]]' -- check by looking for files in library path
12939 # which responds to the $file_magic_cmd with a given extended regex.
12940 # If you have `file' or equivalent on your system and you're not sure
12941 # whether `pass_all' will *always* work, you probably want this one.
12942
12943 case $host_os in
12944 aix4* | aix5*)
12945   lt_cv_deplibs_check_method=pass_all
12946   ;;
12947
12948 beos*)
12949   lt_cv_deplibs_check_method=pass_all
12950   ;;
12951
12952 bsdi[45]*)
12953   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12954   lt_cv_file_magic_cmd='/usr/bin/file -L'
12955   lt_cv_file_magic_test_file=/shlib/libc.so
12956   ;;
12957
12958 cygwin*)
12959   # func_win32_libid is a shell function defined in ltmain.sh
12960   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12961   lt_cv_file_magic_cmd='func_win32_libid'
12962   ;;
12963
12964 mingw* | pw32*)
12965   # Base MSYS/MinGW do not provide the 'file' command needed by
12966   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12967   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12968   lt_cv_file_magic_cmd='$OBJDUMP -f'
12969   ;;
12970
12971 darwin* | rhapsody*)
12972   lt_cv_deplibs_check_method=pass_all
12973   ;;
12974
12975 freebsd* | kfreebsd*-gnu | dragonfly*)
12976   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12977     case $host_cpu in
12978     i*86 )
12979       # Not sure whether the presence of OpenBSD here was a mistake.
12980       # Let's accept both of them until this is cleared up.
12981       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12982       lt_cv_file_magic_cmd=/usr/bin/file
12983       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12984       ;;
12985     esac
12986   else
12987     lt_cv_deplibs_check_method=pass_all
12988   fi
12989   ;;
12990
12991 gnu*)
12992   lt_cv_deplibs_check_method=pass_all
12993   ;;
12994
12995 hpux10.20* | hpux11*)
12996   lt_cv_file_magic_cmd=/usr/bin/file
12997   case $host_cpu in
12998   ia64*)
12999     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13000     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13001     ;;
13002   hppa*64*)
13003     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]'
13004     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13005     ;;
13006   *)
13007     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13008     lt_cv_file_magic_test_file=/usr/lib/libc.sl
13009     ;;
13010   esac
13011   ;;
13012
13013 interix3*)
13014   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13015   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13016   ;;
13017
13018 irix5* | irix6* | nonstopux*)
13019   case $LD in
13020   *-32|*"-32 ") libmagic=32-bit;;
13021   *-n32|*"-n32 ") libmagic=N32;;
13022   *-64|*"-64 ") libmagic=64-bit;;
13023   *) libmagic=never-match;;
13024   esac
13025   lt_cv_deplibs_check_method=pass_all
13026   ;;
13027
13028 # This must be Linux ELF.
13029 linux*)
13030   lt_cv_deplibs_check_method=pass_all
13031   ;;
13032
13033 netbsd*)
13034   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13035     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13036   else
13037     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13038   fi
13039   ;;
13040
13041 newos6*)
13042   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13043   lt_cv_file_magic_cmd=/usr/bin/file
13044   lt_cv_file_magic_test_file=/usr/lib/libnls.so
13045   ;;
13046
13047 nto-qnx*)
13048   lt_cv_deplibs_check_method=unknown
13049   ;;
13050
13051 openbsd*)
13052   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13053     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13054   else
13055     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13056   fi
13057   ;;
13058
13059 osf3* | osf4* | osf5*)
13060   lt_cv_deplibs_check_method=pass_all
13061   ;;
13062
13063 solaris*)
13064   lt_cv_deplibs_check_method=pass_all
13065   ;;
13066
13067 sysv4 | sysv4.3*)
13068   case $host_vendor in
13069   motorola)
13070     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]'
13071     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13072     ;;
13073   ncr)
13074     lt_cv_deplibs_check_method=pass_all
13075     ;;
13076   sequent)
13077     lt_cv_file_magic_cmd='/bin/file'
13078     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13079     ;;
13080   sni)
13081     lt_cv_file_magic_cmd='/bin/file'
13082     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13083     lt_cv_file_magic_test_file=/lib/libc.so
13084     ;;
13085   siemens)
13086     lt_cv_deplibs_check_method=pass_all
13087     ;;
13088   pc)
13089     lt_cv_deplibs_check_method=pass_all
13090     ;;
13091   esac
13092   ;;
13093
13094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13095   lt_cv_deplibs_check_method=pass_all
13096   ;;
13097 esac
13098
13099 fi
13100 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13101 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13102 file_magic_cmd=$lt_cv_file_magic_cmd
13103 deplibs_check_method=$lt_cv_deplibs_check_method
13104 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13105
13106
13107
13108 # If no C compiler was specified, use CC.
13109 LTCC=${LTCC-"$CC"}
13110
13111 # If no C compiler flags were specified, use CFLAGS.
13112 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13113
13114 # Allow CC to be a program name with arguments.
13115 compiler=$CC
13116
13117 # Check whether --enable-libtool-lock was given.
13118 if test "${enable_libtool_lock+set}" = set; then
13119   enableval=$enable_libtool_lock;
13120 fi
13121
13122 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13123
13124 # Some flags need to be propagated to the compiler or linker for good
13125 # libtool support.
13126 case $host in
13127 ia64-*-hpux*)
13128   # Find out which ABI we are using.
13129   echo 'int i;' > conftest.$ac_ext
13130   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13131   (eval $ac_compile) 2>&5
13132   ac_status=$?
13133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134   (exit $ac_status); }; then
13135     case `/usr/bin/file conftest.$ac_objext` in
13136     *ELF-32*)
13137       HPUX_IA64_MODE="32"
13138       ;;
13139     *ELF-64*)
13140       HPUX_IA64_MODE="64"
13141       ;;
13142     esac
13143   fi
13144   rm -rf conftest*
13145   ;;
13146 *-*-irix6*)
13147   # Find out which ABI we are using.
13148   echo '#line 13148 "configure"' > conftest.$ac_ext
13149   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13150   (eval $ac_compile) 2>&5
13151   ac_status=$?
13152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); }; then
13154    if test "$lt_cv_prog_gnu_ld" = yes; then
13155     case `/usr/bin/file conftest.$ac_objext` in
13156     *32-bit*)
13157       LD="${LD-ld} -melf32bsmip"
13158       ;;
13159     *N32*)
13160       LD="${LD-ld} -melf32bmipn32"
13161       ;;
13162     *64-bit*)
13163       LD="${LD-ld} -melf64bmip"
13164       ;;
13165     esac
13166    else
13167     case `/usr/bin/file conftest.$ac_objext` in
13168     *32-bit*)
13169       LD="${LD-ld} -32"
13170       ;;
13171     *N32*)
13172       LD="${LD-ld} -n32"
13173       ;;
13174     *64-bit*)
13175       LD="${LD-ld} -64"
13176       ;;
13177     esac
13178    fi
13179   fi
13180   rm -rf conftest*
13181   ;;
13182
13183 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13184   # Find out which ABI we are using.
13185   echo 'int i;' > conftest.$ac_ext
13186   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13187   (eval $ac_compile) 2>&5
13188   ac_status=$?
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); }; then
13191     case `/usr/bin/file conftest.o` in
13192     *32-bit*)
13193       case $host in
13194         x86_64-*linux*)
13195           LD="${LD-ld} -m elf_i386"
13196           ;;
13197         ppc64-*linux*|powerpc64-*linux*)
13198           LD="${LD-ld} -m elf32ppclinux"
13199           ;;
13200         s390x-*linux*)
13201           LD="${LD-ld} -m elf_s390"
13202           ;;
13203         sparc64-*linux*)
13204           LD="${LD-ld} -m elf32_sparc"
13205           ;;
13206       esac
13207       ;;
13208     *64-bit*)
13209       case $host in
13210         x86_64-*linux*)
13211           LD="${LD-ld} -m elf_x86_64"
13212           ;;
13213         ppc*-*linux*|powerpc*-*linux*)
13214           LD="${LD-ld} -m elf64ppc"
13215           ;;
13216         s390*-*linux*)
13217           LD="${LD-ld} -m elf64_s390"
13218           ;;
13219         sparc*-*linux*)
13220           LD="${LD-ld} -m elf64_sparc"
13221           ;;
13222       esac
13223       ;;
13224     esac
13225   fi
13226   rm -rf conftest*
13227   ;;
13228
13229 *-*-sco3.2v5*)
13230   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13231   SAVE_CFLAGS="$CFLAGS"
13232   CFLAGS="$CFLAGS -belf"
13233   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13234 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13235 if test "${lt_cv_cc_needs_belf+set}" = set; then
13236   echo $ECHO_N "(cached) $ECHO_C" >&6
13237 else
13238   ac_ext=c
13239 ac_cpp='$CPP $CPPFLAGS'
13240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13243
13244      cat >conftest.$ac_ext <<_ACEOF
13245 /* confdefs.h.  */
13246 _ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h.  */
13250
13251 int
13252 main ()
13253 {
13254
13255   ;
13256   return 0;
13257 }
13258 _ACEOF
13259 rm -f conftest.$ac_objext conftest$ac_exeext
13260 if { (ac_try="$ac_link"
13261 case "(($ac_try" in
13262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263   *) ac_try_echo=$ac_try;;
13264 esac
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266   (eval "$ac_link") 2>conftest.er1
13267   ac_status=$?
13268   grep -v '^ *+' conftest.er1 >conftest.err
13269   rm -f conftest.er1
13270   cat conftest.err >&5
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); } &&
13273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13274   { (case "(($ac_try" in
13275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13276   *) ac_try_echo=$ac_try;;
13277 esac
13278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13279   (eval "$ac_try") 2>&5
13280   ac_status=$?
13281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282   (exit $ac_status); }; } &&
13283          { ac_try='test -s conftest$ac_exeext'
13284   { (case "(($ac_try" in
13285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286   *) ac_try_echo=$ac_try;;
13287 esac
13288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289   (eval "$ac_try") 2>&5
13290   ac_status=$?
13291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292   (exit $ac_status); }; }; then
13293   lt_cv_cc_needs_belf=yes
13294 else
13295   echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13297
13298         lt_cv_cc_needs_belf=no
13299 fi
13300
13301 rm -f core conftest.err conftest.$ac_objext \
13302       conftest$ac_exeext conftest.$ac_ext
13303      ac_ext=c
13304 ac_cpp='$CPP $CPPFLAGS'
13305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13308
13309 fi
13310 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13311 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13312   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13313     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13314     CFLAGS="$SAVE_CFLAGS"
13315   fi
13316   ;;
13317 sparc*-*solaris*)
13318   # Find out which ABI we are using.
13319   echo 'int i;' > conftest.$ac_ext
13320   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13321   (eval $ac_compile) 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); }; then
13325     case `/usr/bin/file conftest.o` in
13326     *64-bit*)
13327       case $lt_cv_prog_gnu_ld in
13328       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13329       *)    LD="${LD-ld} -64" ;;
13330       esac
13331       ;;
13332     esac
13333   fi
13334   rm -rf conftest*
13335   ;;
13336
13337
13338 esac
13339
13340 need_locks="$enable_libtool_lock"
13341
13342
13343
13344
13345 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13346     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13347     (test "X$CXX" != "Xg++"))) ; then
13348   ac_ext=cpp
13349 ac_cpp='$CXXCPP $CPPFLAGS'
13350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13353 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13354 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13355 if test -z "$CXXCPP"; then
13356   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13357   echo $ECHO_N "(cached) $ECHO_C" >&6
13358 else
13359       # Double quotes because CXXCPP needs to be expanded
13360     for CXXCPP in "$CXX -E" "/lib/cpp"
13361     do
13362       ac_preproc_ok=false
13363 for ac_cxx_preproc_warn_flag in '' yes
13364 do
13365   # Use a header file that comes with gcc, so configuring glibc
13366   # with a fresh cross-compiler works.
13367   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13368   # <limits.h> exists even on freestanding compilers.
13369   # On the NeXT, cc -E runs the code through the compiler's parser,
13370   # not just through cpp. "Syntax error" is here to catch this case.
13371   cat >conftest.$ac_ext <<_ACEOF
13372 /* confdefs.h.  */
13373 _ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h.  */
13377 #ifdef __STDC__
13378 # include <limits.h>
13379 #else
13380 # include <assert.h>
13381 #endif
13382                      Syntax error
13383 _ACEOF
13384 if { (ac_try="$ac_cpp conftest.$ac_ext"
13385 case "(($ac_try" in
13386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387   *) ac_try_echo=$ac_try;;
13388 esac
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13391   ac_status=$?
13392   grep -v '^ *+' conftest.er1 >conftest.err
13393   rm -f conftest.er1
13394   cat conftest.err >&5
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); } >/dev/null; then
13397   if test -s conftest.err; then
13398     ac_cpp_err=$ac_cxx_preproc_warn_flag
13399     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13400   else
13401     ac_cpp_err=
13402   fi
13403 else
13404   ac_cpp_err=yes
13405 fi
13406 if test -z "$ac_cpp_err"; then
13407   :
13408 else
13409   echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13411
13412   # Broken: fails on valid input.
13413 continue
13414 fi
13415
13416 rm -f conftest.err conftest.$ac_ext
13417
13418   # OK, works on sane cases.  Now check whether nonexistent headers
13419   # can be detected and how.
13420   cat >conftest.$ac_ext <<_ACEOF
13421 /* confdefs.h.  */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h.  */
13426 #include <ac_nonexistent.h>
13427 _ACEOF
13428 if { (ac_try="$ac_cpp conftest.$ac_ext"
13429 case "(($ac_try" in
13430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431   *) ac_try_echo=$ac_try;;
13432 esac
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13435   ac_status=$?
13436   grep -v '^ *+' conftest.er1 >conftest.err
13437   rm -f conftest.er1
13438   cat conftest.err >&5
13439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440   (exit $ac_status); } >/dev/null; then
13441   if test -s conftest.err; then
13442     ac_cpp_err=$ac_cxx_preproc_warn_flag
13443     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13444   else
13445     ac_cpp_err=
13446   fi
13447 else
13448   ac_cpp_err=yes
13449 fi
13450 if test -z "$ac_cpp_err"; then
13451   # Broken: success on invalid input.
13452 continue
13453 else
13454   echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13456
13457   # Passes both tests.
13458 ac_preproc_ok=:
13459 break
13460 fi
13461
13462 rm -f conftest.err conftest.$ac_ext
13463
13464 done
13465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13466 rm -f conftest.err conftest.$ac_ext
13467 if $ac_preproc_ok; then
13468   break
13469 fi
13470
13471     done
13472     ac_cv_prog_CXXCPP=$CXXCPP
13473
13474 fi
13475   CXXCPP=$ac_cv_prog_CXXCPP
13476 else
13477   ac_cv_prog_CXXCPP=$CXXCPP
13478 fi
13479 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13480 echo "${ECHO_T}$CXXCPP" >&6; }
13481 ac_preproc_ok=false
13482 for ac_cxx_preproc_warn_flag in '' yes
13483 do
13484   # Use a header file that comes with gcc, so configuring glibc
13485   # with a fresh cross-compiler works.
13486   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13487   # <limits.h> exists even on freestanding compilers.
13488   # On the NeXT, cc -E runs the code through the compiler's parser,
13489   # not just through cpp. "Syntax error" is here to catch this case.
13490   cat >conftest.$ac_ext <<_ACEOF
13491 /* confdefs.h.  */
13492 _ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h.  */
13496 #ifdef __STDC__
13497 # include <limits.h>
13498 #else
13499 # include <assert.h>
13500 #endif
13501                      Syntax error
13502 _ACEOF
13503 if { (ac_try="$ac_cpp conftest.$ac_ext"
13504 case "(($ac_try" in
13505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506   *) ac_try_echo=$ac_try;;
13507 esac
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13510   ac_status=$?
13511   grep -v '^ *+' conftest.er1 >conftest.err
13512   rm -f conftest.er1
13513   cat conftest.err >&5
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); } >/dev/null; then
13516   if test -s conftest.err; then
13517     ac_cpp_err=$ac_cxx_preproc_warn_flag
13518     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13519   else
13520     ac_cpp_err=
13521   fi
13522 else
13523   ac_cpp_err=yes
13524 fi
13525 if test -z "$ac_cpp_err"; then
13526   :
13527 else
13528   echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13530
13531   # Broken: fails on valid input.
13532 continue
13533 fi
13534
13535 rm -f conftest.err conftest.$ac_ext
13536
13537   # OK, works on sane cases.  Now check whether nonexistent headers
13538   # can be detected and how.
13539   cat >conftest.$ac_ext <<_ACEOF
13540 /* confdefs.h.  */
13541 _ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h.  */
13545 #include <ac_nonexistent.h>
13546 _ACEOF
13547 if { (ac_try="$ac_cpp conftest.$ac_ext"
13548 case "(($ac_try" in
13549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13550   *) ac_try_echo=$ac_try;;
13551 esac
13552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13553   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13554   ac_status=$?
13555   grep -v '^ *+' conftest.er1 >conftest.err
13556   rm -f conftest.er1
13557   cat conftest.err >&5
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); } >/dev/null; then
13560   if test -s conftest.err; then
13561     ac_cpp_err=$ac_cxx_preproc_warn_flag
13562     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13563   else
13564     ac_cpp_err=
13565   fi
13566 else
13567   ac_cpp_err=yes
13568 fi
13569 if test -z "$ac_cpp_err"; then
13570   # Broken: success on invalid input.
13571 continue
13572 else
13573   echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13575
13576   # Passes both tests.
13577 ac_preproc_ok=:
13578 break
13579 fi
13580
13581 rm -f conftest.err conftest.$ac_ext
13582
13583 done
13584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13585 rm -f conftest.err conftest.$ac_ext
13586 if $ac_preproc_ok; then
13587   :
13588 else
13589   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13590 See \`config.log' for more details." >&5
13591 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13592 See \`config.log' for more details." >&2;}
13593    { (exit 1); exit 1; }; }
13594 fi
13595
13596 ac_ext=cpp
13597 ac_cpp='$CXXCPP $CPPFLAGS'
13598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13601
13602 fi
13603
13604
13605 ac_ext=f
13606 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13607 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13608 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13609 if test -n "$ac_tool_prefix"; then
13610   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
13611   do
13612     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13613 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13616 if test "${ac_cv_prog_F77+set}" = set; then
13617   echo $ECHO_N "(cached) $ECHO_C" >&6
13618 else
13619   if test -n "$F77"; then
13620   ac_cv_prog_F77="$F77" # Let the user override the test.
13621 else
13622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13623 for as_dir in $PATH
13624 do
13625   IFS=$as_save_IFS
13626   test -z "$as_dir" && as_dir=.
13627   for ac_exec_ext in '' $ac_executable_extensions; do
13628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13629     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13631     break 2
13632   fi
13633 done
13634 done
13635 IFS=$as_save_IFS
13636
13637 fi
13638 fi
13639 F77=$ac_cv_prog_F77
13640 if test -n "$F77"; then
13641   { echo "$as_me:$LINENO: result: $F77" >&5
13642 echo "${ECHO_T}$F77" >&6; }
13643 else
13644   { echo "$as_me:$LINENO: result: no" >&5
13645 echo "${ECHO_T}no" >&6; }
13646 fi
13647
13648
13649     test -n "$F77" && break
13650   done
13651 fi
13652 if test -z "$F77"; then
13653   ac_ct_F77=$F77
13654   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
13655 do
13656   # Extract the first word of "$ac_prog", so it can be a program name with args.
13657 set dummy $ac_prog; ac_word=$2
13658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13660 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13661   echo $ECHO_N "(cached) $ECHO_C" >&6
13662 else
13663   if test -n "$ac_ct_F77"; then
13664   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13665 else
13666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13667 for as_dir in $PATH
13668 do
13669   IFS=$as_save_IFS
13670   test -z "$as_dir" && as_dir=.
13671   for ac_exec_ext in '' $ac_executable_extensions; do
13672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13673     ac_cv_prog_ac_ct_F77="$ac_prog"
13674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13675     break 2
13676   fi
13677 done
13678 done
13679 IFS=$as_save_IFS
13680
13681 fi
13682 fi
13683 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13684 if test -n "$ac_ct_F77"; then
13685   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13686 echo "${ECHO_T}$ac_ct_F77" >&6; }
13687 else
13688   { echo "$as_me:$LINENO: result: no" >&5
13689 echo "${ECHO_T}no" >&6; }
13690 fi
13691
13692
13693   test -n "$ac_ct_F77" && break
13694 done
13695
13696   if test "x$ac_ct_F77" = x; then
13697     F77=""
13698   else
13699     case $cross_compiling:$ac_tool_warned in
13700 yes:)
13701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13702 whose name does not start with the host triplet.  If you think this
13703 configuration is useful to you, please write to autoconf@gnu.org." >&5
13704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13705 whose name does not start with the host triplet.  If you think this
13706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13707 ac_tool_warned=yes ;;
13708 esac
13709     F77=$ac_ct_F77
13710   fi
13711 fi
13712
13713
13714 # Provide some information about the compiler.
13715 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13716 ac_compiler=`set X $ac_compile; echo $2`
13717 { (ac_try="$ac_compiler --version >&5"
13718 case "(($ac_try" in
13719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720   *) ac_try_echo=$ac_try;;
13721 esac
13722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13723   (eval "$ac_compiler --version >&5") 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); }
13727 { (ac_try="$ac_compiler -v >&5"
13728 case "(($ac_try" in
13729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730   *) ac_try_echo=$ac_try;;
13731 esac
13732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13733   (eval "$ac_compiler -v >&5") 2>&5
13734   ac_status=$?
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); }
13737 { (ac_try="$ac_compiler -V >&5"
13738 case "(($ac_try" in
13739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740   *) ac_try_echo=$ac_try;;
13741 esac
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743   (eval "$ac_compiler -V >&5") 2>&5
13744   ac_status=$?
13745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746   (exit $ac_status); }
13747 rm -f a.out
13748
13749 # If we don't use `.F' as extension, the preprocessor is not run on the
13750 # input file.  (Note that this only needs to work for GNU compilers.)
13751 ac_save_ext=$ac_ext
13752 ac_ext=F
13753 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13754 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13755 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13756   echo $ECHO_N "(cached) $ECHO_C" >&6
13757 else
13758   cat >conftest.$ac_ext <<_ACEOF
13759       program main
13760 #ifndef __GNUC__
13761        choke me
13762 #endif
13763
13764       end
13765 _ACEOF
13766 rm -f conftest.$ac_objext
13767 if { (ac_try="$ac_compile"
13768 case "(($ac_try" in
13769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770   *) ac_try_echo=$ac_try;;
13771 esac
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773   (eval "$ac_compile") 2>conftest.er1
13774   ac_status=$?
13775   grep -v '^ *+' conftest.er1 >conftest.err
13776   rm -f conftest.er1
13777   cat conftest.err >&5
13778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779   (exit $ac_status); } &&
13780          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13781   { (case "(($ac_try" in
13782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783   *) ac_try_echo=$ac_try;;
13784 esac
13785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786   (eval "$ac_try") 2>&5
13787   ac_status=$?
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); }; } &&
13790          { ac_try='test -s conftest.$ac_objext'
13791   { (case "(($ac_try" in
13792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793   *) ac_try_echo=$ac_try;;
13794 esac
13795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796   (eval "$ac_try") 2>&5
13797   ac_status=$?
13798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799   (exit $ac_status); }; }; then
13800   ac_compiler_gnu=yes
13801 else
13802   echo "$as_me: failed program was:" >&5
13803 sed 's/^/| /' conftest.$ac_ext >&5
13804
13805         ac_compiler_gnu=no
13806 fi
13807
13808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13809 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13810
13811 fi
13812 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13813 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13814 ac_ext=$ac_save_ext
13815 ac_test_FFLAGS=${FFLAGS+set}
13816 ac_save_FFLAGS=$FFLAGS
13817 FFLAGS=
13818 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13819 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13820 if test "${ac_cv_prog_f77_g+set}" = set; then
13821   echo $ECHO_N "(cached) $ECHO_C" >&6
13822 else
13823   FFLAGS=-g
13824 cat >conftest.$ac_ext <<_ACEOF
13825       program main
13826
13827       end
13828 _ACEOF
13829 rm -f conftest.$ac_objext
13830 if { (ac_try="$ac_compile"
13831 case "(($ac_try" in
13832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833   *) ac_try_echo=$ac_try;;
13834 esac
13835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836   (eval "$ac_compile") 2>conftest.er1
13837   ac_status=$?
13838   grep -v '^ *+' conftest.er1 >conftest.err
13839   rm -f conftest.er1
13840   cat conftest.err >&5
13841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842   (exit $ac_status); } &&
13843          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13844   { (case "(($ac_try" in
13845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13846   *) ac_try_echo=$ac_try;;
13847 esac
13848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13849   (eval "$ac_try") 2>&5
13850   ac_status=$?
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); }; } &&
13853          { ac_try='test -s conftest.$ac_objext'
13854   { (case "(($ac_try" in
13855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856   *) ac_try_echo=$ac_try;;
13857 esac
13858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859   (eval "$ac_try") 2>&5
13860   ac_status=$?
13861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862   (exit $ac_status); }; }; then
13863   ac_cv_prog_f77_g=yes
13864 else
13865   echo "$as_me: failed program was:" >&5
13866 sed 's/^/| /' conftest.$ac_ext >&5
13867
13868         ac_cv_prog_f77_g=no
13869 fi
13870
13871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13872
13873 fi
13874 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13875 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13876 if test "$ac_test_FFLAGS" = set; then
13877   FFLAGS=$ac_save_FFLAGS
13878 elif test $ac_cv_prog_f77_g = yes; then
13879   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13880     FFLAGS="-g -O2"
13881   else
13882     FFLAGS="-g"
13883   fi
13884 else
13885   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13886     FFLAGS="-O2"
13887   else
13888     FFLAGS=
13889   fi
13890 fi
13891
13892 G77=`test $ac_compiler_gnu = yes && echo yes`
13893 ac_ext=c
13894 ac_cpp='$CPP $CPPFLAGS'
13895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13898
13899
13900
13901 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13902
13903 # find the maximum length of command line arguments
13904 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13905 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13906 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13907   echo $ECHO_N "(cached) $ECHO_C" >&6
13908 else
13909     i=0
13910   teststring="ABCD"
13911
13912   case $build_os in
13913   msdosdjgpp*)
13914     # On DJGPP, this test can blow up pretty badly due to problems in libc
13915     # (any single argument exceeding 2000 bytes causes a buffer overrun
13916     # during glob expansion).  Even if it were fixed, the result of this
13917     # check would be larger than it should be.
13918     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13919     ;;
13920
13921   gnu*)
13922     # Under GNU Hurd, this test is not required because there is
13923     # no limit to the length of command line arguments.
13924     # Libtool will interpret -1 as no limit whatsoever
13925     lt_cv_sys_max_cmd_len=-1;
13926     ;;
13927
13928   cygwin* | mingw*)
13929     # On Win9x/ME, this test blows up -- it succeeds, but takes
13930     # about 5 minutes as the teststring grows exponentially.
13931     # Worse, since 9x/ME are not pre-emptively multitasking,
13932     # you end up with a "frozen" computer, even though with patience
13933     # the test eventually succeeds (with a max line length of 256k).
13934     # Instead, let's just punt: use the minimum linelength reported by
13935     # all of the supported platforms: 8192 (on NT/2K/XP).
13936     lt_cv_sys_max_cmd_len=8192;
13937     ;;
13938
13939   amigaos*)
13940     # On AmigaOS with pdksh, this test takes hours, literally.
13941     # So we just punt and use a minimum line length of 8192.
13942     lt_cv_sys_max_cmd_len=8192;
13943     ;;
13944
13945   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13946     # This has been around since 386BSD, at least.  Likely further.
13947     if test -x /sbin/sysctl; then
13948       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13949     elif test -x /usr/sbin/sysctl; then
13950       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13951     else
13952       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13953     fi
13954     # And add a safety zone
13955     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13956     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13957     ;;
13958
13959   interix*)
13960     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13961     lt_cv_sys_max_cmd_len=196608
13962     ;;
13963
13964   osf*)
13965     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13966     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13967     # nice to cause kernel panics so lets avoid the loop below.
13968     # First set a reasonable default.
13969     lt_cv_sys_max_cmd_len=16384
13970     #
13971     if test -x /sbin/sysconfig; then
13972       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13973         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13974       esac
13975     fi
13976     ;;
13977   sco3.2v5*)
13978     lt_cv_sys_max_cmd_len=102400
13979     ;;
13980   sysv5* | sco5v6* | sysv4.2uw2*)
13981     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13982     if test -n "$kargmax"; then
13983       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13984     else
13985       lt_cv_sys_max_cmd_len=32768
13986     fi
13987     ;;
13988   *)
13989     # If test is not a shell built-in, we'll probably end up computing a
13990     # maximum length that is only half of the actual maximum length, but
13991     # we can't tell.
13992     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13993     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13994                = "XX$teststring") >/dev/null 2>&1 &&
13995             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13996             lt_cv_sys_max_cmd_len=$new_result &&
13997             test $i != 17 # 1/2 MB should be enough
13998     do
13999       i=`expr $i + 1`
14000       teststring=$teststring$teststring
14001     done
14002     teststring=
14003     # Add a significant safety factor because C++ compilers can tack on massive
14004     # amounts of additional arguments before passing them to the linker.
14005     # It appears as though 1/2 is a usable value.
14006     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14007     ;;
14008   esac
14009
14010 fi
14011
14012 if test -n $lt_cv_sys_max_cmd_len ; then
14013   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14014 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14015 else
14016   { echo "$as_me:$LINENO: result: none" >&5
14017 echo "${ECHO_T}none" >&6; }
14018 fi
14019
14020
14021
14022
14023 # Check for command to grab the raw symbol name followed by C symbol from nm.
14024 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14025 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14026 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14027   echo $ECHO_N "(cached) $ECHO_C" >&6
14028 else
14029
14030 # These are sane defaults that work on at least a few old systems.
14031 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
14032
14033 # Character class describing NM global symbol codes.
14034 symcode='[BCDEGRST]'
14035
14036 # Regexp to match symbols that can be accessed directly from C.
14037 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14038
14039 # Transform an extracted symbol line into a proper C declaration
14040 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14041
14042 # Transform an extracted symbol line into symbol name and symbol address
14043 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'"
14044
14045 # Define system-specific variables.
14046 case $host_os in
14047 aix*)
14048   symcode='[BCDT]'
14049   ;;
14050 cygwin* | mingw* | pw32*)
14051   symcode='[ABCDGISTW]'
14052   ;;
14053 hpux*) # Its linker distinguishes data from code symbols
14054   if test "$host_cpu" = ia64; then
14055     symcode='[ABCDEGRST]'
14056   fi
14057   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14058   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'"
14059   ;;
14060 linux*)
14061   if test "$host_cpu" = ia64; then
14062     symcode='[ABCDGIRSTW]'
14063     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14064     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'"
14065   fi
14066   ;;
14067 irix* | nonstopux*)
14068   symcode='[BCDEGRST]'
14069   ;;
14070 osf*)
14071   symcode='[BCDEGQRST]'
14072   ;;
14073 solaris*)
14074   symcode='[BDRT]'
14075   ;;
14076 sco3.2v5*)
14077   symcode='[DT]'
14078   ;;
14079 sysv4.2uw2*)
14080   symcode='[DT]'
14081   ;;
14082 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14083   symcode='[ABDT]'
14084   ;;
14085 sysv4)
14086   symcode='[DFNSTU]'
14087   ;;
14088 esac
14089
14090 # Handle CRLF in mingw tool chain
14091 opt_cr=
14092 case $build_os in
14093 mingw*)
14094   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14095   ;;
14096 esac
14097
14098 # If we're using GNU nm, then use its standard symbol codes.
14099 case `$NM -V 2>&1` in
14100 *GNU* | *'with BFD'*)
14101   symcode='[ABCDGIRSTW]' ;;
14102 esac
14103
14104 # Try without a prefix undercore, then with it.
14105 for ac_symprfx in "" "_"; do
14106
14107   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14108   symxfrm="\\1 $ac_symprfx\\2 \\2"
14109
14110   # Write the raw and C identifiers.
14111   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14112
14113   # Check to see that the pipe works correctly.
14114   pipe_works=no
14115
14116   rm -f conftest*
14117   cat > conftest.$ac_ext <<EOF
14118 #ifdef __cplusplus
14119 extern "C" {
14120 #endif
14121 char nm_test_var;
14122 void nm_test_func(){}
14123 #ifdef __cplusplus
14124 }
14125 #endif
14126 int main(){nm_test_var='a';nm_test_func();return(0);}
14127 EOF
14128
14129   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14130   (eval $ac_compile) 2>&5
14131   ac_status=$?
14132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133   (exit $ac_status); }; then
14134     # Now try to grab the symbols.
14135     nlist=conftest.nm
14136     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14137   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14138   ac_status=$?
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); } && test -s "$nlist"; then
14141       # Try sorting and uniquifying the output.
14142       if sort "$nlist" | uniq > "$nlist"T; then
14143         mv -f "$nlist"T "$nlist"
14144       else
14145         rm -f "$nlist"T
14146       fi
14147
14148       # Make sure that we snagged all the symbols we need.
14149       if grep ' nm_test_var$' "$nlist" >/dev/null; then
14150         if grep ' nm_test_func$' "$nlist" >/dev/null; then
14151           cat <<EOF > conftest.$ac_ext
14152 #ifdef __cplusplus
14153 extern "C" {
14154 #endif
14155
14156 EOF
14157           # Now generate the symbol file.
14158           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14159
14160           cat <<EOF >> conftest.$ac_ext
14161 #if defined (__STDC__) && __STDC__
14162 # define lt_ptr_t void *
14163 #else
14164 # define lt_ptr_t char *
14165 # define const
14166 #endif
14167
14168 /* The mapping between symbol names and symbols. */
14169 const struct {
14170   const char *name;
14171   lt_ptr_t address;
14172 }
14173 lt_preloaded_symbols[] =
14174 {
14175 EOF
14176           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14177           cat <<\EOF >> conftest.$ac_ext
14178   {0, (lt_ptr_t) 0}
14179 };
14180
14181 #ifdef __cplusplus
14182 }
14183 #endif
14184 EOF
14185           # Now try linking the two files.
14186           mv conftest.$ac_objext conftstm.$ac_objext
14187           lt_save_LIBS="$LIBS"
14188           lt_save_CFLAGS="$CFLAGS"
14189           LIBS="conftstm.$ac_objext"
14190           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14191           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14192   (eval $ac_link) 2>&5
14193   ac_status=$?
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); } && test -s conftest${ac_exeext}; then
14196             pipe_works=yes
14197           fi
14198           LIBS="$lt_save_LIBS"
14199           CFLAGS="$lt_save_CFLAGS"
14200         else
14201           echo "cannot find nm_test_func in $nlist" >&5
14202         fi
14203       else
14204         echo "cannot find nm_test_var in $nlist" >&5
14205       fi
14206     else
14207       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14208     fi
14209   else
14210     echo "$progname: failed program was:" >&5
14211     cat conftest.$ac_ext >&5
14212   fi
14213   rm -f conftest* conftst*
14214
14215   # Do not use the global_symbol_pipe unless it works.
14216   if test "$pipe_works" = yes; then
14217     break
14218   else
14219     lt_cv_sys_global_symbol_pipe=
14220   fi
14221 done
14222
14223 fi
14224
14225 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14226   lt_cv_sys_global_symbol_to_cdecl=
14227 fi
14228 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14229   { echo "$as_me:$LINENO: result: failed" >&5
14230 echo "${ECHO_T}failed" >&6; }
14231 else
14232   { echo "$as_me:$LINENO: result: ok" >&5
14233 echo "${ECHO_T}ok" >&6; }
14234 fi
14235
14236 { echo "$as_me:$LINENO: checking for objdir" >&5
14237 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14238 if test "${lt_cv_objdir+set}" = set; then
14239   echo $ECHO_N "(cached) $ECHO_C" >&6
14240 else
14241   rm -f .libs 2>/dev/null
14242 mkdir .libs 2>/dev/null
14243 if test -d .libs; then
14244   lt_cv_objdir=.libs
14245 else
14246   # MS-DOS does not allow filenames that begin with a dot.
14247   lt_cv_objdir=_libs
14248 fi
14249 rmdir .libs 2>/dev/null
14250 fi
14251 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14252 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14253 objdir=$lt_cv_objdir
14254
14255
14256
14257
14258
14259 case $host_os in
14260 aix3*)
14261   # AIX sometimes has problems with the GCC collect2 program.  For some
14262   # reason, if we set the COLLECT_NAMES environment variable, the problems
14263   # vanish in a puff of smoke.
14264   if test "X${COLLECT_NAMES+set}" != Xset; then
14265     COLLECT_NAMES=
14266     export COLLECT_NAMES
14267   fi
14268   ;;
14269 esac
14270
14271 # Sed substitution that helps us do robust quoting.  It backslashifies
14272 # metacharacters that are still active within double-quoted strings.
14273 Xsed='sed -e 1s/^X//'
14274 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14275
14276 # Same as above, but do not quote variable references.
14277 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14278
14279 # Sed substitution to delay expansion of an escaped shell variable in a
14280 # double_quote_subst'ed string.
14281 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14282
14283 # Sed substitution to avoid accidental globbing in evaled expressions
14284 no_glob_subst='s/\*/\\\*/g'
14285
14286 # Constants:
14287 rm="rm -f"
14288
14289 # Global variables:
14290 default_ofile=mklib
14291 can_build_shared=yes
14292
14293 # All known linkers require a `.a' archive for static linking (except MSVC,
14294 # which needs '.lib').
14295 libext=a
14296 ltmain="$ac_aux_dir/ltmain.sh"
14297 ofile="$default_ofile"
14298 with_gnu_ld="$lt_cv_prog_gnu_ld"
14299
14300 if test -n "$ac_tool_prefix"; then
14301   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14302 set dummy ${ac_tool_prefix}ar; ac_word=$2
14303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14305 if test "${ac_cv_prog_AR+set}" = set; then
14306   echo $ECHO_N "(cached) $ECHO_C" >&6
14307 else
14308   if test -n "$AR"; then
14309   ac_cv_prog_AR="$AR" # Let the user override the test.
14310 else
14311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14312 for as_dir in $PATH
14313 do
14314   IFS=$as_save_IFS
14315   test -z "$as_dir" && as_dir=.
14316   for ac_exec_ext in '' $ac_executable_extensions; do
14317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14318     ac_cv_prog_AR="${ac_tool_prefix}ar"
14319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14320     break 2
14321   fi
14322 done
14323 done
14324 IFS=$as_save_IFS
14325
14326 fi
14327 fi
14328 AR=$ac_cv_prog_AR
14329 if test -n "$AR"; then
14330   { echo "$as_me:$LINENO: result: $AR" >&5
14331 echo "${ECHO_T}$AR" >&6; }
14332 else
14333   { echo "$as_me:$LINENO: result: no" >&5
14334 echo "${ECHO_T}no" >&6; }
14335 fi
14336
14337
14338 fi
14339 if test -z "$ac_cv_prog_AR"; then
14340   ac_ct_AR=$AR
14341   # Extract the first word of "ar", so it can be a program name with args.
14342 set dummy ar; ac_word=$2
14343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14345 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14346   echo $ECHO_N "(cached) $ECHO_C" >&6
14347 else
14348   if test -n "$ac_ct_AR"; then
14349   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14350 else
14351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352 for as_dir in $PATH
14353 do
14354   IFS=$as_save_IFS
14355   test -z "$as_dir" && as_dir=.
14356   for ac_exec_ext in '' $ac_executable_extensions; do
14357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14358     ac_cv_prog_ac_ct_AR="ar"
14359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14360     break 2
14361   fi
14362 done
14363 done
14364 IFS=$as_save_IFS
14365
14366 fi
14367 fi
14368 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14369 if test -n "$ac_ct_AR"; then
14370   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14371 echo "${ECHO_T}$ac_ct_AR" >&6; }
14372 else
14373   { echo "$as_me:$LINENO: result: no" >&5
14374 echo "${ECHO_T}no" >&6; }
14375 fi
14376
14377   if test "x$ac_ct_AR" = x; then
14378     AR="false"
14379   else
14380     case $cross_compiling:$ac_tool_warned in
14381 yes:)
14382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14383 whose name does not start with the host triplet.  If you think this
14384 configuration is useful to you, please write to autoconf@gnu.org." >&5
14385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14386 whose name does not start with the host triplet.  If you think this
14387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14388 ac_tool_warned=yes ;;
14389 esac
14390     AR=$ac_ct_AR
14391   fi
14392 else
14393   AR="$ac_cv_prog_AR"
14394 fi
14395
14396 if test -n "$ac_tool_prefix"; then
14397   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14398 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14401 if test "${ac_cv_prog_RANLIB+set}" = set; then
14402   echo $ECHO_N "(cached) $ECHO_C" >&6
14403 else
14404   if test -n "$RANLIB"; then
14405   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14406 else
14407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14408 for as_dir in $PATH
14409 do
14410   IFS=$as_save_IFS
14411   test -z "$as_dir" && as_dir=.
14412   for ac_exec_ext in '' $ac_executable_extensions; do
14413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14414     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14416     break 2
14417   fi
14418 done
14419 done
14420 IFS=$as_save_IFS
14421
14422 fi
14423 fi
14424 RANLIB=$ac_cv_prog_RANLIB
14425 if test -n "$RANLIB"; then
14426   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14427 echo "${ECHO_T}$RANLIB" >&6; }
14428 else
14429   { echo "$as_me:$LINENO: result: no" >&5
14430 echo "${ECHO_T}no" >&6; }
14431 fi
14432
14433
14434 fi
14435 if test -z "$ac_cv_prog_RANLIB"; then
14436   ac_ct_RANLIB=$RANLIB
14437   # Extract the first word of "ranlib", so it can be a program name with args.
14438 set dummy ranlib; ac_word=$2
14439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14441 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14442   echo $ECHO_N "(cached) $ECHO_C" >&6
14443 else
14444   if test -n "$ac_ct_RANLIB"; then
14445   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14446 else
14447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14448 for as_dir in $PATH
14449 do
14450   IFS=$as_save_IFS
14451   test -z "$as_dir" && as_dir=.
14452   for ac_exec_ext in '' $ac_executable_extensions; do
14453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14454     ac_cv_prog_ac_ct_RANLIB="ranlib"
14455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14456     break 2
14457   fi
14458 done
14459 done
14460 IFS=$as_save_IFS
14461
14462 fi
14463 fi
14464 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14465 if test -n "$ac_ct_RANLIB"; then
14466   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14467 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14468 else
14469   { echo "$as_me:$LINENO: result: no" >&5
14470 echo "${ECHO_T}no" >&6; }
14471 fi
14472
14473   if test "x$ac_ct_RANLIB" = x; then
14474     RANLIB=":"
14475   else
14476     case $cross_compiling:$ac_tool_warned in
14477 yes:)
14478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14479 whose name does not start with the host triplet.  If you think this
14480 configuration is useful to you, please write to autoconf@gnu.org." >&5
14481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14482 whose name does not start with the host triplet.  If you think this
14483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14484 ac_tool_warned=yes ;;
14485 esac
14486     RANLIB=$ac_ct_RANLIB
14487   fi
14488 else
14489   RANLIB="$ac_cv_prog_RANLIB"
14490 fi
14491
14492 if test -n "$ac_tool_prefix"; then
14493   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14494 set dummy ${ac_tool_prefix}strip; ac_word=$2
14495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14497 if test "${ac_cv_prog_STRIP+set}" = set; then
14498   echo $ECHO_N "(cached) $ECHO_C" >&6
14499 else
14500   if test -n "$STRIP"; then
14501   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14502 else
14503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14504 for as_dir in $PATH
14505 do
14506   IFS=$as_save_IFS
14507   test -z "$as_dir" && as_dir=.
14508   for ac_exec_ext in '' $ac_executable_extensions; do
14509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14510     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14512     break 2
14513   fi
14514 done
14515 done
14516 IFS=$as_save_IFS
14517
14518 fi
14519 fi
14520 STRIP=$ac_cv_prog_STRIP
14521 if test -n "$STRIP"; then
14522   { echo "$as_me:$LINENO: result: $STRIP" >&5
14523 echo "${ECHO_T}$STRIP" >&6; }
14524 else
14525   { echo "$as_me:$LINENO: result: no" >&5
14526 echo "${ECHO_T}no" >&6; }
14527 fi
14528
14529
14530 fi
14531 if test -z "$ac_cv_prog_STRIP"; then
14532   ac_ct_STRIP=$STRIP
14533   # Extract the first word of "strip", so it can be a program name with args.
14534 set dummy strip; ac_word=$2
14535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14537 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14538   echo $ECHO_N "(cached) $ECHO_C" >&6
14539 else
14540   if test -n "$ac_ct_STRIP"; then
14541   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14542 else
14543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14544 for as_dir in $PATH
14545 do
14546   IFS=$as_save_IFS
14547   test -z "$as_dir" && as_dir=.
14548   for ac_exec_ext in '' $ac_executable_extensions; do
14549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14550     ac_cv_prog_ac_ct_STRIP="strip"
14551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14552     break 2
14553   fi
14554 done
14555 done
14556 IFS=$as_save_IFS
14557
14558 fi
14559 fi
14560 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14561 if test -n "$ac_ct_STRIP"; then
14562   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14563 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14564 else
14565   { echo "$as_me:$LINENO: result: no" >&5
14566 echo "${ECHO_T}no" >&6; }
14567 fi
14568
14569   if test "x$ac_ct_STRIP" = x; then
14570     STRIP=":"
14571   else
14572     case $cross_compiling:$ac_tool_warned in
14573 yes:)
14574 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14575 whose name does not start with the host triplet.  If you think this
14576 configuration is useful to you, please write to autoconf@gnu.org." >&5
14577 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14578 whose name does not start with the host triplet.  If you think this
14579 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14580 ac_tool_warned=yes ;;
14581 esac
14582     STRIP=$ac_ct_STRIP
14583   fi
14584 else
14585   STRIP="$ac_cv_prog_STRIP"
14586 fi
14587
14588
14589 old_CC="$CC"
14590 old_CFLAGS="$CFLAGS"
14591
14592 # Set sane defaults for various variables
14593 test -z "$AR" && AR=ar
14594 test -z "$AR_FLAGS" && AR_FLAGS=cru
14595 test -z "$AS" && AS=as
14596 test -z "$CC" && CC=cc
14597 test -z "$LTCC" && LTCC=$CC
14598 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14599 test -z "$DLLTOOL" && DLLTOOL=dlltool
14600 test -z "$LD" && LD=ld
14601 test -z "$LN_S" && LN_S="ln -s"
14602 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14603 test -z "$NM" && NM=nm
14604 test -z "$SED" && SED=sed
14605 test -z "$OBJDUMP" && OBJDUMP=objdump
14606 test -z "$RANLIB" && RANLIB=:
14607 test -z "$STRIP" && STRIP=:
14608 test -z "$ac_objext" && ac_objext=o
14609
14610 # Determine commands to create old-style static archives.
14611 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14612 old_postinstall_cmds='chmod 644 $oldlib'
14613 old_postuninstall_cmds=
14614
14615 if test -n "$RANLIB"; then
14616   case $host_os in
14617   openbsd*)
14618     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14619     ;;
14620   *)
14621     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14622     ;;
14623   esac
14624   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14625 fi
14626
14627 for cc_temp in $compiler""; do
14628   case $cc_temp in
14629     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14630     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14631     \-*) ;;
14632     *) break;;
14633   esac
14634 done
14635 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14636
14637
14638 # Only perform the check for file, if the check method requires it
14639 case $deplibs_check_method in
14640 file_magic*)
14641   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14642     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14643 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14644 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14645   echo $ECHO_N "(cached) $ECHO_C" >&6
14646 else
14647   case $MAGIC_CMD in
14648 [\\/*] |  ?:[\\/]*)
14649   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14650   ;;
14651 *)
14652   lt_save_MAGIC_CMD="$MAGIC_CMD"
14653   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14654   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14655   for ac_dir in $ac_dummy; do
14656     IFS="$lt_save_ifs"
14657     test -z "$ac_dir" && ac_dir=.
14658     if test -f $ac_dir/${ac_tool_prefix}file; then
14659       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14660       if test -n "$file_magic_test_file"; then
14661         case $deplibs_check_method in
14662         "file_magic "*)
14663           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14664           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14665           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14666             $EGREP "$file_magic_regex" > /dev/null; then
14667             :
14668           else
14669             cat <<EOF 1>&2
14670
14671 *** Warning: the command libtool uses to detect shared libraries,
14672 *** $file_magic_cmd, produces output that libtool cannot recognize.
14673 *** The result is that libtool may fail to recognize shared libraries
14674 *** as such.  This will affect the creation of libtool libraries that
14675 *** depend on shared libraries, but programs linked with such libtool
14676 *** libraries will work regardless of this problem.  Nevertheless, you
14677 *** may want to report the problem to your system manager and/or to
14678 *** bug-libtool@gnu.org
14679
14680 EOF
14681           fi ;;
14682         esac
14683       fi
14684       break
14685     fi
14686   done
14687   IFS="$lt_save_ifs"
14688   MAGIC_CMD="$lt_save_MAGIC_CMD"
14689   ;;
14690 esac
14691 fi
14692
14693 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14694 if test -n "$MAGIC_CMD"; then
14695   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14696 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14697 else
14698   { echo "$as_me:$LINENO: result: no" >&5
14699 echo "${ECHO_T}no" >&6; }
14700 fi
14701
14702 if test -z "$lt_cv_path_MAGIC_CMD"; then
14703   if test -n "$ac_tool_prefix"; then
14704     { echo "$as_me:$LINENO: checking for file" >&5
14705 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14706 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14707   echo $ECHO_N "(cached) $ECHO_C" >&6
14708 else
14709   case $MAGIC_CMD in
14710 [\\/*] |  ?:[\\/]*)
14711   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14712   ;;
14713 *)
14714   lt_save_MAGIC_CMD="$MAGIC_CMD"
14715   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14716   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14717   for ac_dir in $ac_dummy; do
14718     IFS="$lt_save_ifs"
14719     test -z "$ac_dir" && ac_dir=.
14720     if test -f $ac_dir/file; then
14721       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14722       if test -n "$file_magic_test_file"; then
14723         case $deplibs_check_method in
14724         "file_magic "*)
14725           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14726           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14727           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14728             $EGREP "$file_magic_regex" > /dev/null; then
14729             :
14730           else
14731             cat <<EOF 1>&2
14732
14733 *** Warning: the command libtool uses to detect shared libraries,
14734 *** $file_magic_cmd, produces output that libtool cannot recognize.
14735 *** The result is that libtool may fail to recognize shared libraries
14736 *** as such.  This will affect the creation of libtool libraries that
14737 *** depend on shared libraries, but programs linked with such libtool
14738 *** libraries will work regardless of this problem.  Nevertheless, you
14739 *** may want to report the problem to your system manager and/or to
14740 *** bug-libtool@gnu.org
14741
14742 EOF
14743           fi ;;
14744         esac
14745       fi
14746       break
14747     fi
14748   done
14749   IFS="$lt_save_ifs"
14750   MAGIC_CMD="$lt_save_MAGIC_CMD"
14751   ;;
14752 esac
14753 fi
14754
14755 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14756 if test -n "$MAGIC_CMD"; then
14757   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14758 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14759 else
14760   { echo "$as_me:$LINENO: result: no" >&5
14761 echo "${ECHO_T}no" >&6; }
14762 fi
14763
14764   else
14765     MAGIC_CMD=:
14766   fi
14767 fi
14768
14769   fi
14770   ;;
14771 esac
14772
14773 enable_dlopen=yes
14774 enable_win32_dll=no
14775
14776 # Check whether --enable-libtool-lock was given.
14777 if test "${enable_libtool_lock+set}" = set; then
14778   enableval=$enable_libtool_lock;
14779 fi
14780
14781 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14782
14783
14784 # Check whether --with-pic was given.
14785 if test "${with_pic+set}" = set; then
14786   withval=$with_pic; pic_mode="$withval"
14787 else
14788   pic_mode=default
14789 fi
14790
14791 test -z "$pic_mode" && pic_mode=default
14792
14793 # Use C for the default configuration in the libtool script
14794 tagname=
14795 lt_save_CC="$CC"
14796 ac_ext=c
14797 ac_cpp='$CPP $CPPFLAGS'
14798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14801
14802
14803 # Source file extension for C test sources.
14804 ac_ext=c
14805
14806 # Object file extension for compiled C test sources.
14807 objext=o
14808 objext=$objext
14809
14810 # Code to be used in simple compile tests
14811 lt_simple_compile_test_code="int some_variable = 0;\n"
14812
14813 # Code to be used in simple link tests
14814 lt_simple_link_test_code='int main(){return(0);}\n'
14815
14816
14817 # If no C compiler was specified, use CC.
14818 LTCC=${LTCC-"$CC"}
14819
14820 # If no C compiler flags were specified, use CFLAGS.
14821 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14822
14823 # Allow CC to be a program name with arguments.
14824 compiler=$CC
14825
14826
14827 # save warnings/boilerplate of simple test code
14828 ac_outfile=conftest.$ac_objext
14829 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14830 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14831 _lt_compiler_boilerplate=`cat conftest.err`
14832 $rm conftest*
14833
14834 ac_outfile=conftest.$ac_objext
14835 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14836 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14837 _lt_linker_boilerplate=`cat conftest.err`
14838 $rm conftest*
14839
14840
14841
14842 lt_prog_compiler_no_builtin_flag=
14843
14844 if test "$GCC" = yes; then
14845   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14846
14847
14848 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14849 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14850 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14851   echo $ECHO_N "(cached) $ECHO_C" >&6
14852 else
14853   lt_cv_prog_compiler_rtti_exceptions=no
14854   ac_outfile=conftest.$ac_objext
14855    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14856    lt_compiler_flag="-fno-rtti -fno-exceptions"
14857    # Insert the option either (1) after the last *FLAGS variable, or
14858    # (2) before a word containing "conftest.", or (3) at the end.
14859    # Note that $ac_compile itself does not contain backslashes and begins
14860    # with a dollar sign (not a hyphen), so the echo should work correctly.
14861    # The option is referenced via a variable to avoid confusing sed.
14862    lt_compile=`echo "$ac_compile" | $SED \
14863    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14864    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14865    -e 's:$: $lt_compiler_flag:'`
14866    (eval echo "\"\$as_me:14866: $lt_compile\"" >&5)
14867    (eval "$lt_compile" 2>conftest.err)
14868    ac_status=$?
14869    cat conftest.err >&5
14870    echo "$as_me:14870: \$? = $ac_status" >&5
14871    if (exit $ac_status) && test -s "$ac_outfile"; then
14872      # The compiler can only warn and ignore the option if not recognized
14873      # So say no if there are warnings other than the usual output.
14874      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14875      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14876      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14877        lt_cv_prog_compiler_rtti_exceptions=yes
14878      fi
14879    fi
14880    $rm conftest*
14881
14882 fi
14883 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14884 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14885
14886 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14887     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14888 else
14889     :
14890 fi
14891
14892 fi
14893
14894 lt_prog_compiler_wl=
14895 lt_prog_compiler_pic=
14896 lt_prog_compiler_static=
14897
14898 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14899 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14900
14901   if test "$GCC" = yes; then
14902     lt_prog_compiler_wl='-Wl,'
14903     lt_prog_compiler_static='-static'
14904
14905     case $host_os in
14906       aix*)
14907       # All AIX code is PIC.
14908       if test "$host_cpu" = ia64; then
14909         # AIX 5 now supports IA64 processor
14910         lt_prog_compiler_static='-Bstatic'
14911       fi
14912       ;;
14913
14914     amigaos*)
14915       # FIXME: we need at least 68020 code to build shared libraries, but
14916       # adding the `-m68020' flag to GCC prevents building anything better,
14917       # like `-m68040'.
14918       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14919       ;;
14920
14921     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14922       # PIC is the default for these OSes.
14923       ;;
14924
14925     mingw* | pw32* | os2*)
14926       # This hack is so that the source file can tell whether it is being
14927       # built for inclusion in a dll (and should export symbols for example).
14928       lt_prog_compiler_pic='-DDLL_EXPORT'
14929       ;;
14930
14931     darwin* | rhapsody*)
14932       # PIC is the default on this platform
14933       # Common symbols not allowed in MH_DYLIB files
14934       lt_prog_compiler_pic='-fno-common'
14935       ;;
14936
14937     interix3*)
14938       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14939       # Instead, we relocate shared libraries at runtime.
14940       ;;
14941
14942     msdosdjgpp*)
14943       # Just because we use GCC doesn't mean we suddenly get shared libraries
14944       # on systems that don't support them.
14945       lt_prog_compiler_can_build_shared=no
14946       enable_shared=no
14947       ;;
14948
14949     sysv4*MP*)
14950       if test -d /usr/nec; then
14951         lt_prog_compiler_pic=-Kconform_pic
14952       fi
14953       ;;
14954
14955     hpux*)
14956       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14957       # not for PA HP-UX.
14958       case $host_cpu in
14959       hppa*64*|ia64*)
14960         # +Z the default
14961         ;;
14962       *)
14963         lt_prog_compiler_pic='-fPIC'
14964         ;;
14965       esac
14966       ;;
14967
14968     *)
14969       lt_prog_compiler_pic='-fPIC'
14970       ;;
14971     esac
14972   else
14973     # PORTME Check for flag to pass linker flags through the system compiler.
14974     case $host_os in
14975     aix*)
14976       lt_prog_compiler_wl='-Wl,'
14977       if test "$host_cpu" = ia64; then
14978         # AIX 5 now supports IA64 processor
14979         lt_prog_compiler_static='-Bstatic'
14980       else
14981         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14982       fi
14983       ;;
14984       darwin*)
14985         # PIC is the default on this platform
14986         # Common symbols not allowed in MH_DYLIB files
14987        case $cc_basename in
14988          xlc*)
14989          lt_prog_compiler_pic='-qnocommon'
14990          lt_prog_compiler_wl='-Wl,'
14991          ;;
14992        esac
14993        ;;
14994
14995     mingw* | pw32* | os2*)
14996       # This hack is so that the source file can tell whether it is being
14997       # built for inclusion in a dll (and should export symbols for example).
14998       lt_prog_compiler_pic='-DDLL_EXPORT'
14999       ;;
15000
15001     hpux9* | hpux10* | hpux11*)
15002       lt_prog_compiler_wl='-Wl,'
15003       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15004       # not for PA HP-UX.
15005       case $host_cpu in
15006       hppa*64*|ia64*)
15007         # +Z the default
15008         ;;
15009       *)
15010         lt_prog_compiler_pic='+Z'
15011         ;;
15012       esac
15013       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15014       lt_prog_compiler_static='${wl}-a ${wl}archive'
15015       ;;
15016
15017     irix5* | irix6* | nonstopux*)
15018       lt_prog_compiler_wl='-Wl,'
15019       # PIC (with -KPIC) is the default.
15020       lt_prog_compiler_static='-non_shared'
15021       ;;
15022
15023     newsos6)
15024       lt_prog_compiler_pic='-KPIC'
15025       lt_prog_compiler_static='-Bstatic'
15026       ;;
15027
15028     linux*)
15029       case $cc_basename in
15030       icc* | ecc*)
15031         lt_prog_compiler_wl='-Wl,'
15032         lt_prog_compiler_pic='-KPIC'
15033         lt_prog_compiler_static='-static'
15034         ;;
15035       pgcc* | pgf77* | pgf90* | pgf95*)
15036         # Portland Group compilers (*not* the Pentium gcc compiler,
15037         # which looks to be a dead project)
15038         lt_prog_compiler_wl='-Wl,'
15039         lt_prog_compiler_pic='-fpic'
15040         lt_prog_compiler_static='-Bstatic'
15041         ;;
15042       ccc*)
15043         lt_prog_compiler_wl='-Wl,'
15044         # All Alpha code is PIC.
15045         lt_prog_compiler_static='-non_shared'
15046         ;;
15047       esac
15048       ;;
15049
15050     osf3* | osf4* | osf5*)
15051       lt_prog_compiler_wl='-Wl,'
15052       # All OSF/1 code is PIC.
15053       lt_prog_compiler_static='-non_shared'
15054       ;;
15055
15056     solaris*)
15057       lt_prog_compiler_pic='-KPIC'
15058       lt_prog_compiler_static='-Bstatic'
15059       case $cc_basename in
15060       f77* | f90* | f95*)
15061         lt_prog_compiler_wl='-Qoption ld ';;
15062       *)
15063         lt_prog_compiler_wl='-Wl,';;
15064       esac
15065       ;;
15066
15067     sunos4*)
15068       lt_prog_compiler_wl='-Qoption ld '
15069       lt_prog_compiler_pic='-PIC'
15070       lt_prog_compiler_static='-Bstatic'
15071       ;;
15072
15073     sysv4 | sysv4.2uw2* | sysv4.3*)
15074       lt_prog_compiler_wl='-Wl,'
15075       lt_prog_compiler_pic='-KPIC'
15076       lt_prog_compiler_static='-Bstatic'
15077       ;;
15078
15079     sysv4*MP*)
15080       if test -d /usr/nec ;then
15081         lt_prog_compiler_pic='-Kconform_pic'
15082         lt_prog_compiler_static='-Bstatic'
15083       fi
15084       ;;
15085
15086     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15087       lt_prog_compiler_wl='-Wl,'
15088       lt_prog_compiler_pic='-KPIC'
15089       lt_prog_compiler_static='-Bstatic'
15090       ;;
15091
15092     unicos*)
15093       lt_prog_compiler_wl='-Wl,'
15094       lt_prog_compiler_can_build_shared=no
15095       ;;
15096
15097     uts4*)
15098       lt_prog_compiler_pic='-pic'
15099       lt_prog_compiler_static='-Bstatic'
15100       ;;
15101
15102     *)
15103       lt_prog_compiler_can_build_shared=no
15104       ;;
15105     esac
15106   fi
15107
15108 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15109 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15110
15111 #
15112 # Check to make sure the PIC flag actually works.
15113 #
15114 if test -n "$lt_prog_compiler_pic"; then
15115
15116 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15117 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15118 if test "${lt_prog_compiler_pic_works+set}" = set; then
15119   echo $ECHO_N "(cached) $ECHO_C" >&6
15120 else
15121   lt_prog_compiler_pic_works=no
15122   ac_outfile=conftest.$ac_objext
15123    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15124    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15125    # Insert the option either (1) after the last *FLAGS variable, or
15126    # (2) before a word containing "conftest.", or (3) at the end.
15127    # Note that $ac_compile itself does not contain backslashes and begins
15128    # with a dollar sign (not a hyphen), so the echo should work correctly.
15129    # The option is referenced via a variable to avoid confusing sed.
15130    lt_compile=`echo "$ac_compile" | $SED \
15131    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15132    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15133    -e 's:$: $lt_compiler_flag:'`
15134    (eval echo "\"\$as_me:15134: $lt_compile\"" >&5)
15135    (eval "$lt_compile" 2>conftest.err)
15136    ac_status=$?
15137    cat conftest.err >&5
15138    echo "$as_me:15138: \$? = $ac_status" >&5
15139    if (exit $ac_status) && test -s "$ac_outfile"; then
15140      # The compiler can only warn and ignore the option if not recognized
15141      # So say no if there are warnings other than the usual output.
15142      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15143      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15144      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15145        lt_prog_compiler_pic_works=yes
15146      fi
15147    fi
15148    $rm conftest*
15149
15150 fi
15151 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15152 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15153
15154 if test x"$lt_prog_compiler_pic_works" = xyes; then
15155     case $lt_prog_compiler_pic in
15156      "" | " "*) ;;
15157      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15158      esac
15159 else
15160     lt_prog_compiler_pic=
15161      lt_prog_compiler_can_build_shared=no
15162 fi
15163
15164 fi
15165 case $host_os in
15166   # For platforms which do not support PIC, -DPIC is meaningless:
15167   *djgpp*)
15168     lt_prog_compiler_pic=
15169     ;;
15170   *)
15171     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15172     ;;
15173 esac
15174
15175 #
15176 # Check to make sure the static flag actually works.
15177 #
15178 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15179 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15180 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15181 if test "${lt_prog_compiler_static_works+set}" = set; then
15182   echo $ECHO_N "(cached) $ECHO_C" >&6
15183 else
15184   lt_prog_compiler_static_works=no
15185    save_LDFLAGS="$LDFLAGS"
15186    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15187    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15188    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15189      # The linker can only warn and ignore the option if not recognized
15190      # So say no if there are warnings
15191      if test -s conftest.err; then
15192        # Append any errors to the config.log.
15193        cat conftest.err 1>&5
15194        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15195        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15196        if diff conftest.exp conftest.er2 >/dev/null; then
15197          lt_prog_compiler_static_works=yes
15198        fi
15199      else
15200        lt_prog_compiler_static_works=yes
15201      fi
15202    fi
15203    $rm conftest*
15204    LDFLAGS="$save_LDFLAGS"
15205
15206 fi
15207 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15208 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15209
15210 if test x"$lt_prog_compiler_static_works" = xyes; then
15211     :
15212 else
15213     lt_prog_compiler_static=
15214 fi
15215
15216
15217 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15218 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15219 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15220   echo $ECHO_N "(cached) $ECHO_C" >&6
15221 else
15222   lt_cv_prog_compiler_c_o=no
15223    $rm -r conftest 2>/dev/null
15224    mkdir conftest
15225    cd conftest
15226    mkdir out
15227    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15228
15229    lt_compiler_flag="-o out/conftest2.$ac_objext"
15230    # Insert the option either (1) after the last *FLAGS variable, or
15231    # (2) before a word containing "conftest.", or (3) at the end.
15232    # Note that $ac_compile itself does not contain backslashes and begins
15233    # with a dollar sign (not a hyphen), so the echo should work correctly.
15234    lt_compile=`echo "$ac_compile" | $SED \
15235    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15236    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15237    -e 's:$: $lt_compiler_flag:'`
15238    (eval echo "\"\$as_me:15238: $lt_compile\"" >&5)
15239    (eval "$lt_compile" 2>out/conftest.err)
15240    ac_status=$?
15241    cat out/conftest.err >&5
15242    echo "$as_me:15242: \$? = $ac_status" >&5
15243    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15244    then
15245      # The compiler can only warn and ignore the option if not recognized
15246      # So say no if there are warnings
15247      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15248      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15249      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15250        lt_cv_prog_compiler_c_o=yes
15251      fi
15252    fi
15253    chmod u+w . 2>&5
15254    $rm conftest*
15255    # SGI C++ compiler will create directory out/ii_files/ for
15256    # template instantiation
15257    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15258    $rm out/* && rmdir out
15259    cd ..
15260    rmdir conftest
15261    $rm conftest*
15262
15263 fi
15264 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15265 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15266
15267
15268 hard_links="nottested"
15269 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15270   # do not overwrite the value of need_locks provided by the user
15271   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15272 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15273   hard_links=yes
15274   $rm conftest*
15275   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15276   touch conftest.a
15277   ln conftest.a conftest.b 2>&5 || hard_links=no
15278   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15279   { echo "$as_me:$LINENO: result: $hard_links" >&5
15280 echo "${ECHO_T}$hard_links" >&6; }
15281   if test "$hard_links" = no; then
15282     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15283 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15284     need_locks=warn
15285   fi
15286 else
15287   need_locks=no
15288 fi
15289
15290 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15291 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15292
15293   runpath_var=
15294   allow_undefined_flag=
15295   enable_shared_with_static_runtimes=no
15296   archive_cmds=
15297   archive_expsym_cmds=
15298   old_archive_From_new_cmds=
15299   old_archive_from_expsyms_cmds=
15300   export_dynamic_flag_spec=
15301   whole_archive_flag_spec=
15302   thread_safe_flag_spec=
15303   hardcode_libdir_flag_spec=
15304   hardcode_libdir_flag_spec_ld=
15305   hardcode_libdir_separator=
15306   hardcode_direct=no
15307   hardcode_minus_L=no
15308   hardcode_shlibpath_var=unsupported
15309   link_all_deplibs=unknown
15310   hardcode_automatic=no
15311   module_cmds=
15312   module_expsym_cmds=
15313   always_export_symbols=no
15314   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15315   # include_expsyms should be a list of space-separated symbols to be *always*
15316   # included in the symbol list
15317   include_expsyms=
15318   # exclude_expsyms can be an extended regexp of symbols to exclude
15319   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15320   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15321   # as well as any symbol that contains `d'.
15322   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15323   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15324   # platforms (ab)use it in PIC code, but their linkers get confused if
15325   # the symbol is explicitly referenced.  Since portable code cannot
15326   # rely on this symbol name, it's probably fine to never include it in
15327   # preloaded symbol tables.
15328   extract_expsyms_cmds=
15329   # Just being paranoid about ensuring that cc_basename is set.
15330   for cc_temp in $compiler""; do
15331   case $cc_temp in
15332     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15333     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15334     \-*) ;;
15335     *) break;;
15336   esac
15337 done
15338 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15339
15340   case $host_os in
15341   cygwin* | mingw* | pw32*)
15342     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15343     # When not using gcc, we currently assume that we are using
15344     # Microsoft Visual C++.
15345     if test "$GCC" != yes; then
15346       with_gnu_ld=no
15347     fi
15348     ;;
15349   interix*)
15350     # we just hope/assume this is gcc and not c89 (= MSVC++)
15351     with_gnu_ld=yes
15352     ;;
15353   openbsd*)
15354     with_gnu_ld=no
15355     ;;
15356   esac
15357
15358   ld_shlibs=yes
15359   if test "$with_gnu_ld" = yes; then
15360     # If archive_cmds runs LD, not CC, wlarc should be empty
15361     wlarc='${wl}'
15362
15363     # Set some defaults for GNU ld with shared library support. These
15364     # are reset later if shared libraries are not supported. Putting them
15365     # here allows them to be overridden if necessary.
15366     runpath_var=LD_RUN_PATH
15367     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15368     export_dynamic_flag_spec='${wl}--export-dynamic'
15369     # ancient GNU ld didn't support --whole-archive et. al.
15370     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15371         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15372       else
15373         whole_archive_flag_spec=
15374     fi
15375     supports_anon_versioning=no
15376     case `$LD -v 2>/dev/null` in
15377       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15378       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15379       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15380       *\ 2.11.*) ;; # other 2.11 versions
15381       *) supports_anon_versioning=yes ;;
15382     esac
15383
15384     # See if GNU ld supports shared libraries.
15385     case $host_os in
15386     aix3* | aix4* | aix5*)
15387       # On AIX/PPC, the GNU linker is very broken
15388       if test "$host_cpu" != ia64; then
15389         ld_shlibs=no
15390         cat <<EOF 1>&2
15391
15392 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15393 *** to be unable to reliably create shared libraries on AIX.
15394 *** Therefore, libtool is disabling shared libraries support.  If you
15395 *** really care for shared libraries, you may want to modify your PATH
15396 *** so that a non-GNU linker is found, and then restart.
15397
15398 EOF
15399       fi
15400       ;;
15401
15402     amigaos*)
15403       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)'
15404       hardcode_libdir_flag_spec='-L$libdir'
15405       hardcode_minus_L=yes
15406
15407       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15408       # that the semantics of dynamic libraries on AmigaOS, at least up
15409       # to version 4, is to share data among multiple programs linked
15410       # with the same dynamic library.  Since this doesn't match the
15411       # behavior of shared libraries on other platforms, we can't use
15412       # them.
15413       ld_shlibs=no
15414       ;;
15415
15416     beos*)
15417       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15418         allow_undefined_flag=unsupported
15419         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15420         # support --undefined.  This deserves some investigation.  FIXME
15421         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15422       else
15423         ld_shlibs=no
15424       fi
15425       ;;
15426
15427     cygwin* | mingw* | pw32*)
15428       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15429       # as there is no search path for DLLs.
15430       hardcode_libdir_flag_spec='-L$libdir'
15431       allow_undefined_flag=unsupported
15432       always_export_symbols=no
15433       enable_shared_with_static_runtimes=yes
15434       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15435
15436       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15437         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15438         # If the export-symbols file already is a .def file (1st line
15439         # is EXPORTS), use it as is; otherwise, prepend...
15440         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15441           cp $export_symbols $output_objdir/$soname.def;
15442         else
15443           echo EXPORTS > $output_objdir/$soname.def;
15444           cat $export_symbols >> $output_objdir/$soname.def;
15445         fi~
15446         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15447       else
15448         ld_shlibs=no
15449       fi
15450       ;;
15451
15452     interix3*)
15453       hardcode_direct=no
15454       hardcode_shlibpath_var=no
15455       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15456       export_dynamic_flag_spec='${wl}-E'
15457       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15458       # Instead, shared libraries are loaded at an image base (0x10000000 by
15459       # default) and relocated if they conflict, which is a slow very memory
15460       # consuming and fragmenting process.  To avoid this, we pick a random,
15461       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15462       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15463       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15464       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'
15465       ;;
15466
15467     linux*)
15468       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15469         tmp_addflag=
15470         case $cc_basename,$host_cpu in
15471         pgcc*)                          # Portland Group C compiler
15472           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'
15473           tmp_addflag=' $pic_flag'
15474           ;;
15475         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15476           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'
15477           tmp_addflag=' $pic_flag -Mnomain' ;;
15478         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15479           tmp_addflag=' -i_dynamic' ;;
15480         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15481           tmp_addflag=' -i_dynamic -nofor_main' ;;
15482         ifc* | ifort*)                  # Intel Fortran compiler
15483           tmp_addflag=' -nofor_main' ;;
15484         esac
15485         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15486
15487         if test $supports_anon_versioning = yes; then
15488           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15489   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15490   $echo "local: *; };" >> $output_objdir/$libname.ver~
15491           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15492         fi
15493       else
15494         ld_shlibs=no
15495       fi
15496       ;;
15497
15498     netbsd*)
15499       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15500         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15501         wlarc=
15502       else
15503         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15504         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15505       fi
15506       ;;
15507
15508     solaris*)
15509       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15510         ld_shlibs=no
15511         cat <<EOF 1>&2
15512
15513 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15514 *** create shared libraries on Solaris systems.  Therefore, libtool
15515 *** is disabling shared libraries support.  We urge you to upgrade GNU
15516 *** binutils to release 2.9.1 or newer.  Another option is to modify
15517 *** your PATH or compiler configuration so that the native linker is
15518 *** used, and then restart.
15519
15520 EOF
15521       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15522         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15523         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15524       else
15525         ld_shlibs=no
15526       fi
15527       ;;
15528
15529     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15530       case `$LD -v 2>&1` in
15531         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15532         ld_shlibs=no
15533         cat <<_LT_EOF 1>&2
15534
15535 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15536 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15537 *** is disabling shared libraries support.  We urge you to upgrade GNU
15538 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15539 *** your PATH or compiler configuration so that the native linker is
15540 *** used, and then restart.
15541
15542 _LT_EOF
15543         ;;
15544         *)
15545           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15546             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15547             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15548             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15549           else
15550             ld_shlibs=no
15551           fi
15552         ;;
15553       esac
15554       ;;
15555
15556     sunos4*)
15557       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15558       wlarc=
15559       hardcode_direct=yes
15560       hardcode_shlibpath_var=no
15561       ;;
15562
15563     *)
15564       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15565         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15566         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15567       else
15568         ld_shlibs=no
15569       fi
15570       ;;
15571     esac
15572
15573     if test "$ld_shlibs" = no; then
15574       runpath_var=
15575       hardcode_libdir_flag_spec=
15576       export_dynamic_flag_spec=
15577       whole_archive_flag_spec=
15578     fi
15579   else
15580     # PORTME fill in a description of your system's linker (not GNU ld)
15581     case $host_os in
15582     aix3*)
15583       allow_undefined_flag=unsupported
15584       always_export_symbols=yes
15585       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'
15586       # Note: this linker hardcodes the directories in LIBPATH if there
15587       # are no directories specified by -L.
15588       hardcode_minus_L=yes
15589       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15590         # Neither direct hardcoding nor static linking is supported with a
15591         # broken collect2.
15592         hardcode_direct=unsupported
15593       fi
15594       ;;
15595
15596     aix4* | aix5*)
15597       if test "$host_cpu" = ia64; then
15598         # On IA64, the linker does run time linking by default, so we don't
15599         # have to do anything special.
15600         aix_use_runtimelinking=no
15601         exp_sym_flag='-Bexport'
15602         no_entry_flag=""
15603       else
15604         # If we're using GNU nm, then we don't want the "-C" option.
15605         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15606         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15607           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'
15608         else
15609           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'
15610         fi
15611         aix_use_runtimelinking=no
15612
15613         # Test if we are trying to use run time linking or normal
15614         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15615         # need to do runtime linking.
15616         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15617           for ld_flag in $LDFLAGS; do
15618           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15619             aix_use_runtimelinking=yes
15620             break
15621           fi
15622           done
15623           ;;
15624         esac
15625
15626         exp_sym_flag='-bexport'
15627         no_entry_flag='-bnoentry'
15628       fi
15629
15630       # When large executables or shared objects are built, AIX ld can
15631       # have problems creating the table of contents.  If linking a library
15632       # or program results in "error TOC overflow" add -mminimal-toc to
15633       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15634       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15635
15636       archive_cmds=''
15637       hardcode_direct=yes
15638       hardcode_libdir_separator=':'
15639       link_all_deplibs=yes
15640
15641       if test "$GCC" = yes; then
15642         case $host_os in aix4.[012]|aix4.[012].*)
15643         # We only want to do this on AIX 4.2 and lower, the check
15644         # below for broken collect2 doesn't work under 4.3+
15645           collect2name=`${CC} -print-prog-name=collect2`
15646           if test -f "$collect2name" && \
15647            strings "$collect2name" | grep resolve_lib_name >/dev/null
15648           then
15649           # We have reworked collect2
15650           hardcode_direct=yes
15651           else
15652           # We have old collect2
15653           hardcode_direct=unsupported
15654           # It fails to find uninstalled libraries when the uninstalled
15655           # path is not listed in the libpath.  Setting hardcode_minus_L
15656           # to unsupported forces relinking
15657           hardcode_minus_L=yes
15658           hardcode_libdir_flag_spec='-L$libdir'
15659           hardcode_libdir_separator=
15660           fi
15661           ;;
15662         esac
15663         shared_flag='-shared'
15664         if test "$aix_use_runtimelinking" = yes; then
15665           shared_flag="$shared_flag "'${wl}-G'
15666         fi
15667       else
15668         # not using gcc
15669         if test "$host_cpu" = ia64; then
15670         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15671         # chokes on -Wl,-G. The following line is correct:
15672           shared_flag='-G'
15673         else
15674           if test "$aix_use_runtimelinking" = yes; then
15675             shared_flag='${wl}-G'
15676           else
15677             shared_flag='${wl}-bM:SRE'
15678           fi
15679         fi
15680       fi
15681
15682       # It seems that -bexpall does not export symbols beginning with
15683       # underscore (_), so it is better to generate a list of symbols to export.
15684       always_export_symbols=yes
15685       if test "$aix_use_runtimelinking" = yes; then
15686         # Warning - without using the other runtime loading flags (-brtl),
15687         # -berok will link without error, but may produce a broken library.
15688         allow_undefined_flag='-berok'
15689        # Determine the default libpath from the value encoded in an empty executable.
15690        cat >conftest.$ac_ext <<_ACEOF
15691 /* confdefs.h.  */
15692 _ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h.  */
15696
15697 int
15698 main ()
15699 {
15700
15701   ;
15702   return 0;
15703 }
15704 _ACEOF
15705 rm -f conftest.$ac_objext conftest$ac_exeext
15706 if { (ac_try="$ac_link"
15707 case "(($ac_try" in
15708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709   *) ac_try_echo=$ac_try;;
15710 esac
15711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712   (eval "$ac_link") 2>conftest.er1
15713   ac_status=$?
15714   grep -v '^ *+' conftest.er1 >conftest.err
15715   rm -f conftest.er1
15716   cat conftest.err >&5
15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718   (exit $ac_status); } &&
15719          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15720   { (case "(($ac_try" in
15721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722   *) ac_try_echo=$ac_try;;
15723 esac
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725   (eval "$ac_try") 2>&5
15726   ac_status=$?
15727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728   (exit $ac_status); }; } &&
15729          { ac_try='test -s conftest$ac_exeext'
15730   { (case "(($ac_try" in
15731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732   *) ac_try_echo=$ac_try;;
15733 esac
15734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735   (eval "$ac_try") 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); }; }; then
15739
15740 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15741 }'`
15742 # Check for a 64-bit object if we didn't find anything.
15743 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; }
15744 }'`; fi
15745 else
15746   echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15748
15749
15750 fi
15751
15752 rm -f core conftest.err conftest.$ac_objext \
15753       conftest$ac_exeext conftest.$ac_ext
15754 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15755
15756        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15757         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"
15758        else
15759         if test "$host_cpu" = ia64; then
15760           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15761           allow_undefined_flag="-z nodefs"
15762           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"
15763         else
15764          # Determine the default libpath from the value encoded in an empty executable.
15765          cat >conftest.$ac_ext <<_ACEOF
15766 /* confdefs.h.  */
15767 _ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h.  */
15771
15772 int
15773 main ()
15774 {
15775
15776   ;
15777   return 0;
15778 }
15779 _ACEOF
15780 rm -f conftest.$ac_objext conftest$ac_exeext
15781 if { (ac_try="$ac_link"
15782 case "(($ac_try" in
15783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784   *) ac_try_echo=$ac_try;;
15785 esac
15786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787   (eval "$ac_link") 2>conftest.er1
15788   ac_status=$?
15789   grep -v '^ *+' conftest.er1 >conftest.err
15790   rm -f conftest.er1
15791   cat conftest.err >&5
15792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793   (exit $ac_status); } &&
15794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15795   { (case "(($ac_try" in
15796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797   *) ac_try_echo=$ac_try;;
15798 esac
15799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800   (eval "$ac_try") 2>&5
15801   ac_status=$?
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); }; } &&
15804          { ac_try='test -s conftest$ac_exeext'
15805   { (case "(($ac_try" in
15806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807   *) ac_try_echo=$ac_try;;
15808 esac
15809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15810   (eval "$ac_try") 2>&5
15811   ac_status=$?
15812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813   (exit $ac_status); }; }; then
15814
15815 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15816 }'`
15817 # Check for a 64-bit object if we didn't find anything.
15818 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; }
15819 }'`; fi
15820 else
15821   echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15823
15824
15825 fi
15826
15827 rm -f core conftest.err conftest.$ac_objext \
15828       conftest$ac_exeext conftest.$ac_ext
15829 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15830
15831          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15832           # Warning - without using the other run time loading flags,
15833           # -berok will link without error, but may produce a broken library.
15834           no_undefined_flag=' ${wl}-bernotok'
15835           allow_undefined_flag=' ${wl}-berok'
15836           # Exported symbols can be pulled into shared objects from archives
15837           whole_archive_flag_spec='$convenience'
15838           archive_cmds_need_lc=yes
15839           # This is similar to how AIX traditionally builds its shared libraries.
15840           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'
15841         fi
15842       fi
15843       ;;
15844
15845     amigaos*)
15846       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)'
15847       hardcode_libdir_flag_spec='-L$libdir'
15848       hardcode_minus_L=yes
15849       # see comment about different semantics on the GNU ld section
15850       ld_shlibs=no
15851       ;;
15852
15853     bsdi[45]*)
15854       export_dynamic_flag_spec=-rdynamic
15855       ;;
15856
15857     cygwin* | mingw* | pw32*)
15858       # When not using gcc, we currently assume that we are using
15859       # Microsoft Visual C++.
15860       # hardcode_libdir_flag_spec is actually meaningless, as there is
15861       # no search path for DLLs.
15862       hardcode_libdir_flag_spec=' '
15863       allow_undefined_flag=unsupported
15864       # Tell ltmain to make .lib files, not .a files.
15865       libext=lib
15866       # Tell ltmain to make .dll files, not .so files.
15867       shrext_cmds=".dll"
15868       # FIXME: Setting linknames here is a bad hack.
15869       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15870       # The linker will automatically build a .lib file if we build a DLL.
15871       old_archive_From_new_cmds='true'
15872       # FIXME: Should let the user specify the lib program.
15873       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15874       fix_srcfile_path='`cygpath -w "$srcfile"`'
15875       enable_shared_with_static_runtimes=yes
15876       ;;
15877
15878     darwin* | rhapsody*)
15879       case $host_os in
15880         rhapsody* | darwin1.[012])
15881          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15882          ;;
15883        *) # Darwin 1.3 on
15884          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15885            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15886          else
15887            case ${MACOSX_DEPLOYMENT_TARGET} in
15888              10.[012])
15889                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15890                ;;
15891              10.*)
15892                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15893                ;;
15894            esac
15895          fi
15896          ;;
15897       esac
15898       archive_cmds_need_lc=no
15899       hardcode_direct=no
15900       hardcode_automatic=yes
15901       hardcode_shlibpath_var=unsupported
15902       whole_archive_flag_spec=''
15903       link_all_deplibs=yes
15904     if test "$GCC" = yes ; then
15905         output_verbose_link_cmd='echo'
15906         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15907       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15908       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15909       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}'
15910       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}'
15911     else
15912       case $cc_basename in
15913         xlc*)
15914          output_verbose_link_cmd='echo'
15915          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15916          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15917           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15918          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}'
15919           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}'
15920           ;;
15921        *)
15922          ld_shlibs=no
15923           ;;
15924       esac
15925     fi
15926       ;;
15927
15928     dgux*)
15929       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15930       hardcode_libdir_flag_spec='-L$libdir'
15931       hardcode_shlibpath_var=no
15932       ;;
15933
15934     freebsd1*)
15935       ld_shlibs=no
15936       ;;
15937
15938     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15939     # support.  Future versions do this automatically, but an explicit c++rt0.o
15940     # does not break anything, and helps significantly (at the cost of a little
15941     # extra space).
15942     freebsd2.2*)
15943       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15944       hardcode_libdir_flag_spec='-R$libdir'
15945       hardcode_direct=yes
15946       hardcode_shlibpath_var=no
15947       ;;
15948
15949     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15950     freebsd2*)
15951       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15952       hardcode_direct=yes
15953       hardcode_minus_L=yes
15954       hardcode_shlibpath_var=no
15955       ;;
15956
15957     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15958     freebsd* | kfreebsd*-gnu | dragonfly*)
15959       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15960       hardcode_libdir_flag_spec='-R$libdir'
15961       hardcode_direct=yes
15962       hardcode_shlibpath_var=no
15963       ;;
15964
15965     hpux9*)
15966       if test "$GCC" = yes; then
15967         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'
15968       else
15969         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'
15970       fi
15971       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15972       hardcode_libdir_separator=:
15973       hardcode_direct=yes
15974
15975       # hardcode_minus_L: Not really in the search PATH,
15976       # but as the default location of the library.
15977       hardcode_minus_L=yes
15978       export_dynamic_flag_spec='${wl}-E'
15979       ;;
15980
15981     hpux10*)
15982       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15983         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15984       else
15985         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15986       fi
15987       if test "$with_gnu_ld" = no; then
15988         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15989         hardcode_libdir_separator=:
15990
15991         hardcode_direct=yes
15992         export_dynamic_flag_spec='${wl}-E'
15993
15994         # hardcode_minus_L: Not really in the search PATH,
15995         # but as the default location of the library.
15996         hardcode_minus_L=yes
15997       fi
15998       ;;
15999
16000     hpux11*)
16001       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16002         case $host_cpu in
16003         hppa*64*)
16004           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16005           ;;
16006         ia64*)
16007           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16008           ;;
16009         *)
16010           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16011           ;;
16012         esac
16013       else
16014         case $host_cpu in
16015         hppa*64*)
16016           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16017           ;;
16018         ia64*)
16019           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16020           ;;
16021         *)
16022           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16023           ;;
16024         esac
16025       fi
16026       if test "$with_gnu_ld" = no; then
16027         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16028         hardcode_libdir_separator=:
16029
16030         case $host_cpu in
16031         hppa*64*|ia64*)
16032           hardcode_libdir_flag_spec_ld='+b $libdir'
16033           hardcode_direct=no
16034           hardcode_shlibpath_var=no
16035           ;;
16036         *)
16037           hardcode_direct=yes
16038           export_dynamic_flag_spec='${wl}-E'
16039
16040           # hardcode_minus_L: Not really in the search PATH,
16041           # but as the default location of the library.
16042           hardcode_minus_L=yes
16043           ;;
16044         esac
16045       fi
16046       ;;
16047
16048     irix5* | irix6* | nonstopux*)
16049       if test "$GCC" = yes; then
16050         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'
16051       else
16052         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'
16053         hardcode_libdir_flag_spec_ld='-rpath $libdir'
16054       fi
16055       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16056       hardcode_libdir_separator=:
16057       link_all_deplibs=yes
16058       ;;
16059
16060     netbsd*)
16061       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16062         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16063       else
16064         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16065       fi
16066       hardcode_libdir_flag_spec='-R$libdir'
16067       hardcode_direct=yes
16068       hardcode_shlibpath_var=no
16069       ;;
16070
16071     newsos6)
16072       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16073       hardcode_direct=yes
16074       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16075       hardcode_libdir_separator=:
16076       hardcode_shlibpath_var=no
16077       ;;
16078
16079     openbsd*)
16080       hardcode_direct=yes
16081       hardcode_shlibpath_var=no
16082       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16083         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16084         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16085         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16086         export_dynamic_flag_spec='${wl}-E'
16087       else
16088        case $host_os in
16089          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16090            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16091            hardcode_libdir_flag_spec='-R$libdir'
16092            ;;
16093          *)
16094            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16095            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16096            ;;
16097        esac
16098       fi
16099       ;;
16100
16101     os2*)
16102       hardcode_libdir_flag_spec='-L$libdir'
16103       hardcode_minus_L=yes
16104       allow_undefined_flag=unsupported
16105       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'
16106       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16107       ;;
16108
16109     osf3*)
16110       if test "$GCC" = yes; then
16111         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16112         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'
16113       else
16114         allow_undefined_flag=' -expect_unresolved \*'
16115         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'
16116       fi
16117       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16118       hardcode_libdir_separator=:
16119       ;;
16120
16121     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16122       if test "$GCC" = yes; then
16123         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16124         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'
16125         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16126       else
16127         allow_undefined_flag=' -expect_unresolved \*'
16128         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'
16129         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16130         $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'
16131
16132         # Both c and cxx compiler support -rpath directly
16133         hardcode_libdir_flag_spec='-rpath $libdir'
16134       fi
16135       hardcode_libdir_separator=:
16136       ;;
16137
16138     solaris*)
16139       no_undefined_flag=' -z text'
16140       if test "$GCC" = yes; then
16141         wlarc='${wl}'
16142         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16143         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16144           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16145       else
16146         wlarc=''
16147         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16148         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16149         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16150       fi
16151       hardcode_libdir_flag_spec='-R$libdir'
16152       hardcode_shlibpath_var=no
16153       case $host_os in
16154       solaris2.[0-5] | solaris2.[0-5].*) ;;
16155       *)
16156         # The compiler driver will combine linker options so we
16157         # cannot just pass the convience library names through
16158         # without $wl, iff we do not link with $LD.
16159         # Luckily, gcc supports the same syntax we need for Sun Studio.
16160         # Supported since Solaris 2.6 (maybe 2.5.1?)
16161         case $wlarc in
16162         '')
16163           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16164         *)
16165           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' ;;
16166         esac ;;
16167       esac
16168       link_all_deplibs=yes
16169       ;;
16170
16171     sunos4*)
16172       if test "x$host_vendor" = xsequent; then
16173         # Use $CC to link under sequent, because it throws in some extra .o
16174         # files that make .init and .fini sections work.
16175         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16176       else
16177         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16178       fi
16179       hardcode_libdir_flag_spec='-L$libdir'
16180       hardcode_direct=yes
16181       hardcode_minus_L=yes
16182       hardcode_shlibpath_var=no
16183       ;;
16184
16185     sysv4)
16186       case $host_vendor in
16187         sni)
16188           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16189           hardcode_direct=yes # is this really true???
16190         ;;
16191         siemens)
16192           ## LD is ld it makes a PLAMLIB
16193           ## CC just makes a GrossModule.
16194           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16195           reload_cmds='$CC -r -o $output$reload_objs'
16196           hardcode_direct=no
16197         ;;
16198         motorola)
16199           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16200           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16201         ;;
16202       esac
16203       runpath_var='LD_RUN_PATH'
16204       hardcode_shlibpath_var=no
16205       ;;
16206
16207     sysv4.3*)
16208       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16209       hardcode_shlibpath_var=no
16210       export_dynamic_flag_spec='-Bexport'
16211       ;;
16212
16213     sysv4*MP*)
16214       if test -d /usr/nec; then
16215         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16216         hardcode_shlibpath_var=no
16217         runpath_var=LD_RUN_PATH
16218         hardcode_runpath_var=yes
16219         ld_shlibs=yes
16220       fi
16221       ;;
16222
16223     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16224       no_undefined_flag='${wl}-z,text'
16225       archive_cmds_need_lc=no
16226       hardcode_shlibpath_var=no
16227       runpath_var='LD_RUN_PATH'
16228
16229       if test "$GCC" = yes; then
16230         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16231         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16232       else
16233         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16234         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16235       fi
16236       ;;
16237
16238     sysv5* | sco3.2v5* | sco5v6*)
16239       # Note: We can NOT use -z defs as we might desire, because we do not
16240       # link with -lc, and that would cause any symbols used from libc to
16241       # always be unresolved, which means just about no library would
16242       # ever link correctly.  If we're not using GNU ld we use -z text
16243       # though, which does catch some bad symbols but isn't as heavy-handed
16244       # as -z defs.
16245       no_undefined_flag='${wl}-z,text'
16246       allow_undefined_flag='${wl}-z,nodefs'
16247       archive_cmds_need_lc=no
16248       hardcode_shlibpath_var=no
16249       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16250       hardcode_libdir_separator=':'
16251       link_all_deplibs=yes
16252       export_dynamic_flag_spec='${wl}-Bexport'
16253       runpath_var='LD_RUN_PATH'
16254
16255       if test "$GCC" = yes; then
16256         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16257         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16258       else
16259         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16260         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16261       fi
16262       ;;
16263
16264     uts4*)
16265       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16266       hardcode_libdir_flag_spec='-L$libdir'
16267       hardcode_shlibpath_var=no
16268       ;;
16269
16270     *)
16271       ld_shlibs=no
16272       ;;
16273     esac
16274   fi
16275
16276 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16277 echo "${ECHO_T}$ld_shlibs" >&6; }
16278 test "$ld_shlibs" = no && can_build_shared=no
16279
16280 #
16281 # Do we need to explicitly link libc?
16282 #
16283 case "x$archive_cmds_need_lc" in
16284 x|xyes)
16285   # Assume -lc should be added
16286   archive_cmds_need_lc=yes
16287
16288   if test "$enable_shared" = yes && test "$GCC" = yes; then
16289     case $archive_cmds in
16290     *'~'*)
16291       # FIXME: we may have to deal with multi-command sequences.
16292       ;;
16293     '$CC '*)
16294       # Test whether the compiler implicitly links with -lc since on some
16295       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16296       # to ld, don't add -lc before -lgcc.
16297       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16298 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16299       $rm conftest*
16300       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16301
16302       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16303   (eval $ac_compile) 2>&5
16304   ac_status=$?
16305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306   (exit $ac_status); } 2>conftest.err; then
16307         soname=conftest
16308         lib=conftest
16309         libobjs=conftest.$ac_objext
16310         deplibs=
16311         wl=$lt_prog_compiler_wl
16312         pic_flag=$lt_prog_compiler_pic
16313         compiler_flags=-v
16314         linker_flags=-v
16315         verstring=
16316         output_objdir=.
16317         libname=conftest
16318         lt_save_allow_undefined_flag=$allow_undefined_flag
16319         allow_undefined_flag=
16320         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16321   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16322   ac_status=$?
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); }
16325         then
16326           archive_cmds_need_lc=no
16327         else
16328           archive_cmds_need_lc=yes
16329         fi
16330         allow_undefined_flag=$lt_save_allow_undefined_flag
16331       else
16332         cat conftest.err 1>&5
16333       fi
16334       $rm conftest*
16335       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16336 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16337       ;;
16338     esac
16339   fi
16340   ;;
16341 esac
16342
16343 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16344 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16345 library_names_spec=
16346 libname_spec='lib$name'
16347 soname_spec=
16348 shrext_cmds=".so"
16349 postinstall_cmds=
16350 postuninstall_cmds=
16351 finish_cmds=
16352 finish_eval=
16353 shlibpath_var=
16354 shlibpath_overrides_runpath=unknown
16355 version_type=none
16356 dynamic_linker="$host_os ld.so"
16357 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16358 if test "$GCC" = yes; then
16359   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16360   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16361     # if the path contains ";" then we assume it to be the separator
16362     # otherwise default to the standard path separator (i.e. ":") - it is
16363     # assumed that no part of a normal pathname contains ";" but that should
16364     # okay in the real world where ";" in dirpaths is itself problematic.
16365     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16366   else
16367     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16368   fi
16369 else
16370   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16371 fi
16372 need_lib_prefix=unknown
16373 hardcode_into_libs=no
16374
16375 # when you set need_version to no, make sure it does not cause -set_version
16376 # flags to be left without arguments
16377 need_version=unknown
16378
16379 case $host_os in
16380 aix3*)
16381   version_type=linux
16382   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16383   shlibpath_var=LIBPATH
16384
16385   # AIX 3 has no versioning support, so we append a major version to the name.
16386   soname_spec='${libname}${release}${shared_ext}$major'
16387   ;;
16388
16389 aix4* | aix5*)
16390   version_type=linux
16391   need_lib_prefix=no
16392   need_version=no
16393   hardcode_into_libs=yes
16394   if test "$host_cpu" = ia64; then
16395     # AIX 5 supports IA64
16396     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16397     shlibpath_var=LD_LIBRARY_PATH
16398   else
16399     # With GCC up to 2.95.x, collect2 would create an import file
16400     # for dependence libraries.  The import file would start with
16401     # the line `#! .'.  This would cause the generated library to
16402     # depend on `.', always an invalid library.  This was fixed in
16403     # development snapshots of GCC prior to 3.0.
16404     case $host_os in
16405       aix4 | aix4.[01] | aix4.[01].*)
16406       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16407            echo ' yes '
16408            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16409         :
16410       else
16411         can_build_shared=no
16412       fi
16413       ;;
16414     esac
16415     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16416     # soname into executable. Probably we can add versioning support to
16417     # collect2, so additional links can be useful in future.
16418     if test "$aix_use_runtimelinking" = yes; then
16419       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16420       # instead of lib<name>.a to let people know that these are not
16421       # typical AIX shared libraries.
16422       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16423     else
16424       # We preserve .a as extension for shared libraries through AIX4.2
16425       # and later when we are not doing run time linking.
16426       library_names_spec='${libname}${release}.a $libname.a'
16427       soname_spec='${libname}${release}${shared_ext}$major'
16428     fi
16429     shlibpath_var=LIBPATH
16430   fi
16431   ;;
16432
16433 amigaos*)
16434   library_names_spec='$libname.ixlibrary $libname.a'
16435   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16436   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'
16437   ;;
16438
16439 beos*)
16440   library_names_spec='${libname}${shared_ext}'
16441   dynamic_linker="$host_os ld.so"
16442   shlibpath_var=LIBRARY_PATH
16443   ;;
16444
16445 bsdi[45]*)
16446   version_type=linux
16447   need_version=no
16448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16449   soname_spec='${libname}${release}${shared_ext}$major'
16450   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16451   shlibpath_var=LD_LIBRARY_PATH
16452   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16453   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16454   # the default ld.so.conf also contains /usr/contrib/lib and
16455   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16456   # libtool to hard-code these into programs
16457   ;;
16458
16459 cygwin* | mingw* | pw32*)
16460   version_type=windows
16461   shrext_cmds=".dll"
16462   need_version=no
16463   need_lib_prefix=no
16464
16465   case $GCC,$host_os in
16466   yes,cygwin* | yes,mingw* | yes,pw32*)
16467     library_names_spec='$libname.dll.a'
16468     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16469     postinstall_cmds='base_file=`basename \${file}`~
16470       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16471       dldir=$destdir/`dirname \$dlpath`~
16472       test -d \$dldir || mkdir -p \$dldir~
16473       $install_prog $dir/$dlname \$dldir/$dlname~
16474       chmod a+x \$dldir/$dlname'
16475     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16476       dlpath=$dir/\$dldll~
16477        $rm \$dlpath'
16478     shlibpath_overrides_runpath=yes
16479
16480     case $host_os in
16481     cygwin*)
16482       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16483       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16484       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16485       ;;
16486     mingw*)
16487       # MinGW DLLs use traditional 'lib' prefix
16488       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16489       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16490       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16491         # It is most probably a Windows format PATH printed by
16492         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16493         # path with ; separators, and with drive letters. We can handle the
16494         # drive letters (cygwin fileutils understands them), so leave them,
16495         # especially as we might pass files found there to a mingw objdump,
16496         # which wouldn't understand a cygwinified path. Ahh.
16497         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16498       else
16499         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16500       fi
16501       ;;
16502     pw32*)
16503       # pw32 DLLs use 'pw' prefix rather than 'lib'
16504       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16505       ;;
16506     esac
16507     ;;
16508
16509   *)
16510     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16511     ;;
16512   esac
16513   dynamic_linker='Win32 ld.exe'
16514   # FIXME: first we should search . and the directory the executable is in
16515   shlibpath_var=PATH
16516   ;;
16517
16518 darwin* | rhapsody*)
16519   dynamic_linker="$host_os dyld"
16520   version_type=darwin
16521   need_lib_prefix=no
16522   need_version=no
16523   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16524   soname_spec='${libname}${release}${major}$shared_ext'
16525   shlibpath_overrides_runpath=yes
16526   shlibpath_var=DYLD_LIBRARY_PATH
16527   shrext_cmds='.dylib'
16528   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16529   if test "$GCC" = yes; then
16530     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"`
16531   else
16532     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16533   fi
16534   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16535   ;;
16536
16537 dgux*)
16538   version_type=linux
16539   need_lib_prefix=no
16540   need_version=no
16541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16542   soname_spec='${libname}${release}${shared_ext}$major'
16543   shlibpath_var=LD_LIBRARY_PATH
16544   ;;
16545
16546 freebsd1*)
16547   dynamic_linker=no
16548   ;;
16549
16550 kfreebsd*-gnu)
16551   version_type=linux
16552   need_lib_prefix=no
16553   need_version=no
16554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16555   soname_spec='${libname}${release}${shared_ext}$major'
16556   shlibpath_var=LD_LIBRARY_PATH
16557   shlibpath_overrides_runpath=no
16558   hardcode_into_libs=yes
16559   dynamic_linker='GNU ld.so'
16560   ;;
16561
16562 freebsd* | dragonfly*)
16563   # DragonFly does not have aout.  When/if they implement a new
16564   # versioning mechanism, adjust this.
16565   if test -x /usr/bin/objformat; then
16566     objformat=`/usr/bin/objformat`
16567   else
16568     case $host_os in
16569     freebsd[123]*) objformat=aout ;;
16570     *) objformat=elf ;;
16571     esac
16572   fi
16573   version_type=freebsd-$objformat
16574   case $version_type in
16575     freebsd-elf*)
16576       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16577       need_version=no
16578       need_lib_prefix=no
16579       ;;
16580     freebsd-*)
16581       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16582       need_version=yes
16583       ;;
16584   esac
16585   shlibpath_var=LD_LIBRARY_PATH
16586   case $host_os in
16587   freebsd2*)
16588     shlibpath_overrides_runpath=yes
16589     ;;
16590   freebsd3.[01]* | freebsdelf3.[01]*)
16591     shlibpath_overrides_runpath=yes
16592     hardcode_into_libs=yes
16593     ;;
16594   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16595   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16596     shlibpath_overrides_runpath=no
16597     hardcode_into_libs=yes
16598     ;;
16599   freebsd*) # from 4.6 on
16600     shlibpath_overrides_runpath=yes
16601     hardcode_into_libs=yes
16602     ;;
16603   esac
16604   ;;
16605
16606 gnu*)
16607   version_type=linux
16608   need_lib_prefix=no
16609   need_version=no
16610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16611   soname_spec='${libname}${release}${shared_ext}$major'
16612   shlibpath_var=LD_LIBRARY_PATH
16613   hardcode_into_libs=yes
16614   ;;
16615
16616 hpux9* | hpux10* | hpux11*)
16617   # Give a soname corresponding to the major version so that dld.sl refuses to
16618   # link against other versions.
16619   version_type=sunos
16620   need_lib_prefix=no
16621   need_version=no
16622   case $host_cpu in
16623   ia64*)
16624     shrext_cmds='.so'
16625     hardcode_into_libs=yes
16626     dynamic_linker="$host_os dld.so"
16627     shlibpath_var=LD_LIBRARY_PATH
16628     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16630     soname_spec='${libname}${release}${shared_ext}$major'
16631     if test "X$HPUX_IA64_MODE" = X32; then
16632       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16633     else
16634       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16635     fi
16636     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16637     ;;
16638    hppa*64*)
16639      shrext_cmds='.sl'
16640      hardcode_into_libs=yes
16641      dynamic_linker="$host_os dld.sl"
16642      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16643      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16644      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16645      soname_spec='${libname}${release}${shared_ext}$major'
16646      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16647      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16648      ;;
16649    *)
16650     shrext_cmds='.sl'
16651     dynamic_linker="$host_os dld.sl"
16652     shlibpath_var=SHLIB_PATH
16653     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16654     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16655     soname_spec='${libname}${release}${shared_ext}$major'
16656     ;;
16657   esac
16658   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16659   postinstall_cmds='chmod 555 $lib'
16660   ;;
16661
16662 interix3*)
16663   version_type=linux
16664   need_lib_prefix=no
16665   need_version=no
16666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16667   soname_spec='${libname}${release}${shared_ext}$major'
16668   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16669   shlibpath_var=LD_LIBRARY_PATH
16670   shlibpath_overrides_runpath=no
16671   hardcode_into_libs=yes
16672   ;;
16673
16674 irix5* | irix6* | nonstopux*)
16675   case $host_os in
16676     nonstopux*) version_type=nonstopux ;;
16677     *)
16678         if test "$lt_cv_prog_gnu_ld" = yes; then
16679                 version_type=linux
16680         else
16681                 version_type=irix
16682         fi ;;
16683   esac
16684   need_lib_prefix=no
16685   need_version=no
16686   soname_spec='${libname}${release}${shared_ext}$major'
16687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16688   case $host_os in
16689   irix5* | nonstopux*)
16690     libsuff= shlibsuff=
16691     ;;
16692   *)
16693     case $LD in # libtool.m4 will add one of these switches to LD
16694     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16695       libsuff= shlibsuff= libmagic=32-bit;;
16696     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16697       libsuff=32 shlibsuff=N32 libmagic=N32;;
16698     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16699       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16700     *) libsuff= shlibsuff= libmagic=never-match;;
16701     esac
16702     ;;
16703   esac
16704   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16705   shlibpath_overrides_runpath=no
16706   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16707   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16708   hardcode_into_libs=yes
16709   ;;
16710
16711 # No shared lib support for Linux oldld, aout, or coff.
16712 linux*oldld* | linux*aout* | linux*coff*)
16713   dynamic_linker=no
16714   ;;
16715
16716 # This must be Linux ELF.
16717 linux*)
16718   version_type=linux
16719   need_lib_prefix=no
16720   need_version=no
16721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16722   soname_spec='${libname}${release}${shared_ext}$major'
16723   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16724   shlibpath_var=LD_LIBRARY_PATH
16725   shlibpath_overrides_runpath=no
16726   # This implies no fast_install, which is unacceptable.
16727   # Some rework will be needed to allow for fast_install
16728   # before this can be enabled.
16729   hardcode_into_libs=yes
16730
16731   # Append ld.so.conf contents to the search path
16732   if test -f /etc/ld.so.conf; then
16733     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' ' '`
16734     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16735   fi
16736
16737   # We used to test for /lib/ld.so.1 and disable shared libraries on
16738   # powerpc, because MkLinux only supported shared libraries with the
16739   # GNU dynamic linker.  Since this was broken with cross compilers,
16740   # most powerpc-linux boxes support dynamic linking these days and
16741   # people can always --disable-shared, the test was removed, and we
16742   # assume the GNU/Linux dynamic linker is in use.
16743   dynamic_linker='GNU/Linux ld.so'
16744   ;;
16745
16746 knetbsd*-gnu)
16747   version_type=linux
16748   need_lib_prefix=no
16749   need_version=no
16750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16751   soname_spec='${libname}${release}${shared_ext}$major'
16752   shlibpath_var=LD_LIBRARY_PATH
16753   shlibpath_overrides_runpath=no
16754   hardcode_into_libs=yes
16755   dynamic_linker='GNU ld.so'
16756   ;;
16757
16758 netbsd*)
16759   version_type=sunos
16760   need_lib_prefix=no
16761   need_version=no
16762   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16763     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16764     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16765     dynamic_linker='NetBSD (a.out) ld.so'
16766   else
16767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16768     soname_spec='${libname}${release}${shared_ext}$major'
16769     dynamic_linker='NetBSD ld.elf_so'
16770   fi
16771   shlibpath_var=LD_LIBRARY_PATH
16772   shlibpath_overrides_runpath=yes
16773   hardcode_into_libs=yes
16774   ;;
16775
16776 newsos6)
16777   version_type=linux
16778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16779   shlibpath_var=LD_LIBRARY_PATH
16780   shlibpath_overrides_runpath=yes
16781   ;;
16782
16783 nto-qnx*)
16784   version_type=linux
16785   need_lib_prefix=no
16786   need_version=no
16787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788   soname_spec='${libname}${release}${shared_ext}$major'
16789   shlibpath_var=LD_LIBRARY_PATH
16790   shlibpath_overrides_runpath=yes
16791   ;;
16792
16793 openbsd*)
16794   version_type=sunos
16795   sys_lib_dlsearch_path_spec="/usr/lib"
16796   need_lib_prefix=no
16797   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16798   case $host_os in
16799     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16800     *)                         need_version=no  ;;
16801   esac
16802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16803   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16804   shlibpath_var=LD_LIBRARY_PATH
16805   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16806     case $host_os in
16807       openbsd2.[89] | openbsd2.[89].*)
16808         shlibpath_overrides_runpath=no
16809         ;;
16810       *)
16811         shlibpath_overrides_runpath=yes
16812         ;;
16813       esac
16814   else
16815     shlibpath_overrides_runpath=yes
16816   fi
16817   ;;
16818
16819 os2*)
16820   libname_spec='$name'
16821   shrext_cmds=".dll"
16822   need_lib_prefix=no
16823   library_names_spec='$libname${shared_ext} $libname.a'
16824   dynamic_linker='OS/2 ld.exe'
16825   shlibpath_var=LIBPATH
16826   ;;
16827
16828 osf3* | osf4* | osf5*)
16829   version_type=osf
16830   need_lib_prefix=no
16831   need_version=no
16832   soname_spec='${libname}${release}${shared_ext}$major'
16833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16834   shlibpath_var=LD_LIBRARY_PATH
16835   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16836   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16837   ;;
16838
16839 solaris*)
16840   version_type=linux
16841   need_lib_prefix=no
16842   need_version=no
16843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844   soname_spec='${libname}${release}${shared_ext}$major'
16845   shlibpath_var=LD_LIBRARY_PATH
16846   shlibpath_overrides_runpath=yes
16847   hardcode_into_libs=yes
16848   # ldd complains unless libraries are executable
16849   postinstall_cmds='chmod +x $lib'
16850   ;;
16851
16852 sunos4*)
16853   version_type=sunos
16854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16855   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16856   shlibpath_var=LD_LIBRARY_PATH
16857   shlibpath_overrides_runpath=yes
16858   if test "$with_gnu_ld" = yes; then
16859     need_lib_prefix=no
16860   fi
16861   need_version=yes
16862   ;;
16863
16864 sysv4 | sysv4.3*)
16865   version_type=linux
16866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16867   soname_spec='${libname}${release}${shared_ext}$major'
16868   shlibpath_var=LD_LIBRARY_PATH
16869   case $host_vendor in
16870     sni)
16871       shlibpath_overrides_runpath=no
16872       need_lib_prefix=no
16873       export_dynamic_flag_spec='${wl}-Blargedynsym'
16874       runpath_var=LD_RUN_PATH
16875       ;;
16876     siemens)
16877       need_lib_prefix=no
16878       ;;
16879     motorola)
16880       need_lib_prefix=no
16881       need_version=no
16882       shlibpath_overrides_runpath=no
16883       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16884       ;;
16885   esac
16886   ;;
16887
16888 sysv4*MP*)
16889   if test -d /usr/nec ;then
16890     version_type=linux
16891     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16892     soname_spec='$libname${shared_ext}.$major'
16893     shlibpath_var=LD_LIBRARY_PATH
16894   fi
16895   ;;
16896
16897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16898   version_type=freebsd-elf
16899   need_lib_prefix=no
16900   need_version=no
16901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16902   soname_spec='${libname}${release}${shared_ext}$major'
16903   shlibpath_var=LD_LIBRARY_PATH
16904   hardcode_into_libs=yes
16905   if test "$with_gnu_ld" = yes; then
16906     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16907     shlibpath_overrides_runpath=no
16908   else
16909     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16910     shlibpath_overrides_runpath=yes
16911     case $host_os in
16912       sco3.2v5*)
16913         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16914         ;;
16915     esac
16916   fi
16917   sys_lib_dlsearch_path_spec='/usr/lib'
16918   ;;
16919
16920 uts4*)
16921   version_type=linux
16922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16923   soname_spec='${libname}${release}${shared_ext}$major'
16924   shlibpath_var=LD_LIBRARY_PATH
16925   ;;
16926
16927 *)
16928   dynamic_linker=no
16929   ;;
16930 esac
16931 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16932 echo "${ECHO_T}$dynamic_linker" >&6; }
16933 test "$dynamic_linker" = no && can_build_shared=no
16934
16935 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16936 if test "$GCC" = yes; then
16937   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16938 fi
16939
16940 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16941 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16942 hardcode_action=
16943 if test -n "$hardcode_libdir_flag_spec" || \
16944    test -n "$runpath_var" || \
16945    test "X$hardcode_automatic" = "Xyes" ; then
16946
16947   # We can hardcode non-existant directories.
16948   if test "$hardcode_direct" != no &&
16949      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16950      # have to relink, otherwise we might link with an installed library
16951      # when we should be linking with a yet-to-be-installed one
16952      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16953      test "$hardcode_minus_L" != no; then
16954     # Linking always hardcodes the temporary library directory.
16955     hardcode_action=relink
16956   else
16957     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16958     hardcode_action=immediate
16959   fi
16960 else
16961   # We cannot hardcode anything, or else we can only hardcode existing
16962   # directories.
16963   hardcode_action=unsupported
16964 fi
16965 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16966 echo "${ECHO_T}$hardcode_action" >&6; }
16967
16968 if test "$hardcode_action" = relink; then
16969   # Fast installation is not supported
16970   enable_fast_install=no
16971 elif test "$shlibpath_overrides_runpath" = yes ||
16972      test "$enable_shared" = no; then
16973   # Fast installation is not necessary
16974   enable_fast_install=needless
16975 fi
16976
16977 striplib=
16978 old_striplib=
16979 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16980 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16981 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16982   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16983   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16984   { echo "$as_me:$LINENO: result: yes" >&5
16985 echo "${ECHO_T}yes" >&6; }
16986 else
16987 # FIXME - insert some real tests, host_os isn't really good enough
16988   case $host_os in
16989    darwin*)
16990        if test -n "$STRIP" ; then
16991          striplib="$STRIP -x"
16992          { echo "$as_me:$LINENO: result: yes" >&5
16993 echo "${ECHO_T}yes" >&6; }
16994        else
16995   { echo "$as_me:$LINENO: result: no" >&5
16996 echo "${ECHO_T}no" >&6; }
16997 fi
16998        ;;
16999    *)
17000   { echo "$as_me:$LINENO: result: no" >&5
17001 echo "${ECHO_T}no" >&6; }
17002     ;;
17003   esac
17004 fi
17005
17006 if test "x$enable_dlopen" != xyes; then
17007   enable_dlopen=unknown
17008   enable_dlopen_self=unknown
17009   enable_dlopen_self_static=unknown
17010 else
17011   lt_cv_dlopen=no
17012   lt_cv_dlopen_libs=
17013
17014   case $host_os in
17015   beos*)
17016     lt_cv_dlopen="load_add_on"
17017     lt_cv_dlopen_libs=
17018     lt_cv_dlopen_self=yes
17019     ;;
17020
17021   mingw* | pw32*)
17022     lt_cv_dlopen="LoadLibrary"
17023     lt_cv_dlopen_libs=
17024    ;;
17025
17026   cygwin*)
17027     lt_cv_dlopen="dlopen"
17028     lt_cv_dlopen_libs=
17029    ;;
17030
17031   darwin*)
17032   # if libdl is installed we need to link against it
17033     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17034 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17035 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17036   echo $ECHO_N "(cached) $ECHO_C" >&6
17037 else
17038   ac_check_lib_save_LIBS=$LIBS
17039 LIBS="-ldl  $LIBS"
17040 cat >conftest.$ac_ext <<_ACEOF
17041 /* confdefs.h.  */
17042 _ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h.  */
17046
17047 /* Override any GCC internal prototype to avoid an error.
17048    Use char because int might match the return type of a GCC
17049    builtin and then its argument prototype would still apply.  */
17050 #ifdef __cplusplus
17051 extern "C"
17052 #endif
17053 char dlopen ();
17054 int
17055 main ()
17056 {
17057 return dlopen ();
17058   ;
17059   return 0;
17060 }
17061 _ACEOF
17062 rm -f conftest.$ac_objext conftest$ac_exeext
17063 if { (ac_try="$ac_link"
17064 case "(($ac_try" in
17065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066   *) ac_try_echo=$ac_try;;
17067 esac
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069   (eval "$ac_link") 2>conftest.er1
17070   ac_status=$?
17071   grep -v '^ *+' conftest.er1 >conftest.err
17072   rm -f conftest.er1
17073   cat conftest.err >&5
17074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075   (exit $ac_status); } &&
17076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17077   { (case "(($ac_try" in
17078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079   *) ac_try_echo=$ac_try;;
17080 esac
17081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082   (eval "$ac_try") 2>&5
17083   ac_status=$?
17084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085   (exit $ac_status); }; } &&
17086          { ac_try='test -s conftest$ac_exeext'
17087   { (case "(($ac_try" in
17088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089   *) ac_try_echo=$ac_try;;
17090 esac
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092   (eval "$ac_try") 2>&5
17093   ac_status=$?
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); }; }; then
17096   ac_cv_lib_dl_dlopen=yes
17097 else
17098   echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17100
17101         ac_cv_lib_dl_dlopen=no
17102 fi
17103
17104 rm -f core conftest.err conftest.$ac_objext \
17105       conftest$ac_exeext conftest.$ac_ext
17106 LIBS=$ac_check_lib_save_LIBS
17107 fi
17108 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17109 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17110 if test $ac_cv_lib_dl_dlopen = yes; then
17111   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17112 else
17113
17114     lt_cv_dlopen="dyld"
17115     lt_cv_dlopen_libs=
17116     lt_cv_dlopen_self=yes
17117
17118 fi
17119
17120    ;;
17121
17122   *)
17123     { echo "$as_me:$LINENO: checking for shl_load" >&5
17124 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17125 if test "${ac_cv_func_shl_load+set}" = set; then
17126   echo $ECHO_N "(cached) $ECHO_C" >&6
17127 else
17128   cat >conftest.$ac_ext <<_ACEOF
17129 /* confdefs.h.  */
17130 _ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h.  */
17134 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17136 #define shl_load innocuous_shl_load
17137
17138 /* System header to define __stub macros and hopefully few prototypes,
17139     which can conflict with char shl_load (); below.
17140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17141     <limits.h> exists even on freestanding compilers.  */
17142
17143 #ifdef __STDC__
17144 # include <limits.h>
17145 #else
17146 # include <assert.h>
17147 #endif
17148
17149 #undef shl_load
17150
17151 /* Override any GCC internal prototype to avoid an error.
17152    Use char because int might match the return type of a GCC
17153    builtin and then its argument prototype would still apply.  */
17154 #ifdef __cplusplus
17155 extern "C"
17156 #endif
17157 char shl_load ();
17158 /* The GNU C library defines this for functions which it implements
17159     to always fail with ENOSYS.  Some functions are actually named
17160     something starting with __ and the normal name is an alias.  */
17161 #if defined __stub_shl_load || defined __stub___shl_load
17162 choke me
17163 #endif
17164
17165 int
17166 main ()
17167 {
17168 return shl_load ();
17169   ;
17170   return 0;
17171 }
17172 _ACEOF
17173 rm -f conftest.$ac_objext conftest$ac_exeext
17174 if { (ac_try="$ac_link"
17175 case "(($ac_try" in
17176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177   *) ac_try_echo=$ac_try;;
17178 esac
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180   (eval "$ac_link") 2>conftest.er1
17181   ac_status=$?
17182   grep -v '^ *+' conftest.er1 >conftest.err
17183   rm -f conftest.er1
17184   cat conftest.err >&5
17185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186   (exit $ac_status); } &&
17187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17188   { (case "(($ac_try" in
17189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190   *) ac_try_echo=$ac_try;;
17191 esac
17192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193   (eval "$ac_try") 2>&5
17194   ac_status=$?
17195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196   (exit $ac_status); }; } &&
17197          { ac_try='test -s conftest$ac_exeext'
17198   { (case "(($ac_try" in
17199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200   *) ac_try_echo=$ac_try;;
17201 esac
17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203   (eval "$ac_try") 2>&5
17204   ac_status=$?
17205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206   (exit $ac_status); }; }; then
17207   ac_cv_func_shl_load=yes
17208 else
17209   echo "$as_me: failed program was:" >&5
17210 sed 's/^/| /' conftest.$ac_ext >&5
17211
17212         ac_cv_func_shl_load=no
17213 fi
17214
17215 rm -f core conftest.err conftest.$ac_objext \
17216       conftest$ac_exeext conftest.$ac_ext
17217 fi
17218 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17219 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17220 if test $ac_cv_func_shl_load = yes; then
17221   lt_cv_dlopen="shl_load"
17222 else
17223   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17224 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17225 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17226   echo $ECHO_N "(cached) $ECHO_C" >&6
17227 else
17228   ac_check_lib_save_LIBS=$LIBS
17229 LIBS="-ldld  $LIBS"
17230 cat >conftest.$ac_ext <<_ACEOF
17231 /* confdefs.h.  */
17232 _ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h.  */
17236
17237 /* Override any GCC internal prototype to avoid an error.
17238    Use char because int might match the return type of a GCC
17239    builtin and then its argument prototype would still apply.  */
17240 #ifdef __cplusplus
17241 extern "C"
17242 #endif
17243 char shl_load ();
17244 int
17245 main ()
17246 {
17247 return shl_load ();
17248   ;
17249   return 0;
17250 }
17251 _ACEOF
17252 rm -f conftest.$ac_objext conftest$ac_exeext
17253 if { (ac_try="$ac_link"
17254 case "(($ac_try" in
17255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256   *) ac_try_echo=$ac_try;;
17257 esac
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259   (eval "$ac_link") 2>conftest.er1
17260   ac_status=$?
17261   grep -v '^ *+' conftest.er1 >conftest.err
17262   rm -f conftest.er1
17263   cat conftest.err >&5
17264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265   (exit $ac_status); } &&
17266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17267   { (case "(($ac_try" in
17268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269   *) ac_try_echo=$ac_try;;
17270 esac
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272   (eval "$ac_try") 2>&5
17273   ac_status=$?
17274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275   (exit $ac_status); }; } &&
17276          { ac_try='test -s conftest$ac_exeext'
17277   { (case "(($ac_try" in
17278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279   *) ac_try_echo=$ac_try;;
17280 esac
17281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17282   (eval "$ac_try") 2>&5
17283   ac_status=$?
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); }; }; then
17286   ac_cv_lib_dld_shl_load=yes
17287 else
17288   echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17290
17291         ac_cv_lib_dld_shl_load=no
17292 fi
17293
17294 rm -f core conftest.err conftest.$ac_objext \
17295       conftest$ac_exeext conftest.$ac_ext
17296 LIBS=$ac_check_lib_save_LIBS
17297 fi
17298 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17299 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17300 if test $ac_cv_lib_dld_shl_load = yes; then
17301   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17302 else
17303   { echo "$as_me:$LINENO: checking for dlopen" >&5
17304 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17305 if test "${ac_cv_func_dlopen+set}" = set; then
17306   echo $ECHO_N "(cached) $ECHO_C" >&6
17307 else
17308   cat >conftest.$ac_ext <<_ACEOF
17309 /* confdefs.h.  */
17310 _ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h.  */
17314 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17315    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17316 #define dlopen innocuous_dlopen
17317
17318 /* System header to define __stub macros and hopefully few prototypes,
17319     which can conflict with char dlopen (); below.
17320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17321     <limits.h> exists even on freestanding compilers.  */
17322
17323 #ifdef __STDC__
17324 # include <limits.h>
17325 #else
17326 # include <assert.h>
17327 #endif
17328
17329 #undef dlopen
17330
17331 /* Override any GCC internal prototype to avoid an error.
17332    Use char because int might match the return type of a GCC
17333    builtin and then its argument prototype would still apply.  */
17334 #ifdef __cplusplus
17335 extern "C"
17336 #endif
17337 char dlopen ();
17338 /* The GNU C library defines this for functions which it implements
17339     to always fail with ENOSYS.  Some functions are actually named
17340     something starting with __ and the normal name is an alias.  */
17341 #if defined __stub_dlopen || defined __stub___dlopen
17342 choke me
17343 #endif
17344
17345 int
17346 main ()
17347 {
17348 return dlopen ();
17349   ;
17350   return 0;
17351 }
17352 _ACEOF
17353 rm -f conftest.$ac_objext conftest$ac_exeext
17354 if { (ac_try="$ac_link"
17355 case "(($ac_try" in
17356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357   *) ac_try_echo=$ac_try;;
17358 esac
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360   (eval "$ac_link") 2>conftest.er1
17361   ac_status=$?
17362   grep -v '^ *+' conftest.er1 >conftest.err
17363   rm -f conftest.er1
17364   cat conftest.err >&5
17365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366   (exit $ac_status); } &&
17367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17368   { (case "(($ac_try" in
17369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370   *) ac_try_echo=$ac_try;;
17371 esac
17372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373   (eval "$ac_try") 2>&5
17374   ac_status=$?
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); }; } &&
17377          { ac_try='test -s conftest$ac_exeext'
17378   { (case "(($ac_try" in
17379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380   *) ac_try_echo=$ac_try;;
17381 esac
17382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17383   (eval "$ac_try") 2>&5
17384   ac_status=$?
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); }; }; then
17387   ac_cv_func_dlopen=yes
17388 else
17389   echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17391
17392         ac_cv_func_dlopen=no
17393 fi
17394
17395 rm -f core conftest.err conftest.$ac_objext \
17396       conftest$ac_exeext conftest.$ac_ext
17397 fi
17398 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17399 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17400 if test $ac_cv_func_dlopen = yes; then
17401   lt_cv_dlopen="dlopen"
17402 else
17403   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17404 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17405 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17406   echo $ECHO_N "(cached) $ECHO_C" >&6
17407 else
17408   ac_check_lib_save_LIBS=$LIBS
17409 LIBS="-ldl  $LIBS"
17410 cat >conftest.$ac_ext <<_ACEOF
17411 /* confdefs.h.  */
17412 _ACEOF
17413 cat confdefs.h >>conftest.$ac_ext
17414 cat >>conftest.$ac_ext <<_ACEOF
17415 /* end confdefs.h.  */
17416
17417 /* Override any GCC internal prototype to avoid an error.
17418    Use char because int might match the return type of a GCC
17419    builtin and then its argument prototype would still apply.  */
17420 #ifdef __cplusplus
17421 extern "C"
17422 #endif
17423 char dlopen ();
17424 int
17425 main ()
17426 {
17427 return dlopen ();
17428   ;
17429   return 0;
17430 }
17431 _ACEOF
17432 rm -f conftest.$ac_objext conftest$ac_exeext
17433 if { (ac_try="$ac_link"
17434 case "(($ac_try" in
17435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436   *) ac_try_echo=$ac_try;;
17437 esac
17438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439   (eval "$ac_link") 2>conftest.er1
17440   ac_status=$?
17441   grep -v '^ *+' conftest.er1 >conftest.err
17442   rm -f conftest.er1
17443   cat conftest.err >&5
17444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445   (exit $ac_status); } &&
17446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17447   { (case "(($ac_try" in
17448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449   *) ac_try_echo=$ac_try;;
17450 esac
17451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452   (eval "$ac_try") 2>&5
17453   ac_status=$?
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); }; } &&
17456          { ac_try='test -s conftest$ac_exeext'
17457   { (case "(($ac_try" in
17458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459   *) ac_try_echo=$ac_try;;
17460 esac
17461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462   (eval "$ac_try") 2>&5
17463   ac_status=$?
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); }; }; then
17466   ac_cv_lib_dl_dlopen=yes
17467 else
17468   echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17470
17471         ac_cv_lib_dl_dlopen=no
17472 fi
17473
17474 rm -f core conftest.err conftest.$ac_objext \
17475       conftest$ac_exeext conftest.$ac_ext
17476 LIBS=$ac_check_lib_save_LIBS
17477 fi
17478 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17479 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17480 if test $ac_cv_lib_dl_dlopen = yes; then
17481   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17482 else
17483   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17484 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17485 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17486   echo $ECHO_N "(cached) $ECHO_C" >&6
17487 else
17488   ac_check_lib_save_LIBS=$LIBS
17489 LIBS="-lsvld  $LIBS"
17490 cat >conftest.$ac_ext <<_ACEOF
17491 /* confdefs.h.  */
17492 _ACEOF
17493 cat confdefs.h >>conftest.$ac_ext
17494 cat >>conftest.$ac_ext <<_ACEOF
17495 /* end confdefs.h.  */
17496
17497 /* Override any GCC internal prototype to avoid an error.
17498    Use char because int might match the return type of a GCC
17499    builtin and then its argument prototype would still apply.  */
17500 #ifdef __cplusplus
17501 extern "C"
17502 #endif
17503 char dlopen ();
17504 int
17505 main ()
17506 {
17507 return dlopen ();
17508   ;
17509   return 0;
17510 }
17511 _ACEOF
17512 rm -f conftest.$ac_objext conftest$ac_exeext
17513 if { (ac_try="$ac_link"
17514 case "(($ac_try" in
17515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17516   *) ac_try_echo=$ac_try;;
17517 esac
17518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519   (eval "$ac_link") 2>conftest.er1
17520   ac_status=$?
17521   grep -v '^ *+' conftest.er1 >conftest.err
17522   rm -f conftest.er1
17523   cat conftest.err >&5
17524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525   (exit $ac_status); } &&
17526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17527   { (case "(($ac_try" in
17528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529   *) ac_try_echo=$ac_try;;
17530 esac
17531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532   (eval "$ac_try") 2>&5
17533   ac_status=$?
17534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535   (exit $ac_status); }; } &&
17536          { ac_try='test -s conftest$ac_exeext'
17537   { (case "(($ac_try" in
17538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539   *) ac_try_echo=$ac_try;;
17540 esac
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542   (eval "$ac_try") 2>&5
17543   ac_status=$?
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); }; }; then
17546   ac_cv_lib_svld_dlopen=yes
17547 else
17548   echo "$as_me: failed program was:" >&5
17549 sed 's/^/| /' conftest.$ac_ext >&5
17550
17551         ac_cv_lib_svld_dlopen=no
17552 fi
17553
17554 rm -f core conftest.err conftest.$ac_objext \
17555       conftest$ac_exeext conftest.$ac_ext
17556 LIBS=$ac_check_lib_save_LIBS
17557 fi
17558 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17559 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17560 if test $ac_cv_lib_svld_dlopen = yes; then
17561   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17562 else
17563   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17564 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17565 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17566   echo $ECHO_N "(cached) $ECHO_C" >&6
17567 else
17568   ac_check_lib_save_LIBS=$LIBS
17569 LIBS="-ldld  $LIBS"
17570 cat >conftest.$ac_ext <<_ACEOF
17571 /* confdefs.h.  */
17572 _ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h.  */
17576
17577 /* Override any GCC internal prototype to avoid an error.
17578    Use char because int might match the return type of a GCC
17579    builtin and then its argument prototype would still apply.  */
17580 #ifdef __cplusplus
17581 extern "C"
17582 #endif
17583 char dld_link ();
17584 int
17585 main ()
17586 {
17587 return dld_link ();
17588   ;
17589   return 0;
17590 }
17591 _ACEOF
17592 rm -f conftest.$ac_objext conftest$ac_exeext
17593 if { (ac_try="$ac_link"
17594 case "(($ac_try" in
17595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596   *) ac_try_echo=$ac_try;;
17597 esac
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599   (eval "$ac_link") 2>conftest.er1
17600   ac_status=$?
17601   grep -v '^ *+' conftest.er1 >conftest.err
17602   rm -f conftest.er1
17603   cat conftest.err >&5
17604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605   (exit $ac_status); } &&
17606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17607   { (case "(($ac_try" in
17608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609   *) ac_try_echo=$ac_try;;
17610 esac
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612   (eval "$ac_try") 2>&5
17613   ac_status=$?
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); }; } &&
17616          { ac_try='test -s conftest$ac_exeext'
17617   { (case "(($ac_try" in
17618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619   *) ac_try_echo=$ac_try;;
17620 esac
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622   (eval "$ac_try") 2>&5
17623   ac_status=$?
17624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625   (exit $ac_status); }; }; then
17626   ac_cv_lib_dld_dld_link=yes
17627 else
17628   echo "$as_me: failed program was:" >&5
17629 sed 's/^/| /' conftest.$ac_ext >&5
17630
17631         ac_cv_lib_dld_dld_link=no
17632 fi
17633
17634 rm -f core conftest.err conftest.$ac_objext \
17635       conftest$ac_exeext conftest.$ac_ext
17636 LIBS=$ac_check_lib_save_LIBS
17637 fi
17638 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17639 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17640 if test $ac_cv_lib_dld_dld_link = yes; then
17641   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17642 fi
17643
17644
17645 fi
17646
17647
17648 fi
17649
17650
17651 fi
17652
17653
17654 fi
17655
17656
17657 fi
17658
17659     ;;
17660   esac
17661
17662   if test "x$lt_cv_dlopen" != xno; then
17663     enable_dlopen=yes
17664   else
17665     enable_dlopen=no
17666   fi
17667
17668   case $lt_cv_dlopen in
17669   dlopen)
17670     save_CPPFLAGS="$CPPFLAGS"
17671     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17672
17673     save_LDFLAGS="$LDFLAGS"
17674     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17675
17676     save_LIBS="$LIBS"
17677     LIBS="$lt_cv_dlopen_libs $LIBS"
17678
17679     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17680 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17681 if test "${lt_cv_dlopen_self+set}" = set; then
17682   echo $ECHO_N "(cached) $ECHO_C" >&6
17683 else
17684           if test "$cross_compiling" = yes; then :
17685   lt_cv_dlopen_self=cross
17686 else
17687   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17688   lt_status=$lt_dlunknown
17689   cat > conftest.$ac_ext <<EOF
17690 #line 17690 "configure"
17691 #include "confdefs.h"
17692
17693 #if HAVE_DLFCN_H
17694 #include <dlfcn.h>
17695 #endif
17696
17697 #include <stdio.h>
17698
17699 #ifdef RTLD_GLOBAL
17700 #  define LT_DLGLOBAL           RTLD_GLOBAL
17701 #else
17702 #  ifdef DL_GLOBAL
17703 #    define LT_DLGLOBAL         DL_GLOBAL
17704 #  else
17705 #    define LT_DLGLOBAL         0
17706 #  endif
17707 #endif
17708
17709 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17710    find out it does not work in some platform. */
17711 #ifndef LT_DLLAZY_OR_NOW
17712 #  ifdef RTLD_LAZY
17713 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17714 #  else
17715 #    ifdef DL_LAZY
17716 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17717 #    else
17718 #      ifdef RTLD_NOW
17719 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17720 #      else
17721 #        ifdef DL_NOW
17722 #          define LT_DLLAZY_OR_NOW      DL_NOW
17723 #        else
17724 #          define LT_DLLAZY_OR_NOW      0
17725 #        endif
17726 #      endif
17727 #    endif
17728 #  endif
17729 #endif
17730
17731 #ifdef __cplusplus
17732 extern "C" void exit (int);
17733 #endif
17734
17735 void fnord() { int i=42;}
17736 int main ()
17737 {
17738   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17739   int status = $lt_dlunknown;
17740
17741   if (self)
17742     {
17743       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17744       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17745       /* dlclose (self); */
17746     }
17747   else
17748     puts (dlerror ());
17749
17750     exit (status);
17751 }
17752 EOF
17753   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17754   (eval $ac_link) 2>&5
17755   ac_status=$?
17756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17758     (./conftest; exit; ) >&5 2>/dev/null
17759     lt_status=$?
17760     case x$lt_status in
17761       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17762       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17763       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17764     esac
17765   else :
17766     # compilation failed
17767     lt_cv_dlopen_self=no
17768   fi
17769 fi
17770 rm -fr conftest*
17771
17772
17773 fi
17774 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17775 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17776
17777     if test "x$lt_cv_dlopen_self" = xyes; then
17778       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17779       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17780 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17781 if test "${lt_cv_dlopen_self_static+set}" = set; then
17782   echo $ECHO_N "(cached) $ECHO_C" >&6
17783 else
17784           if test "$cross_compiling" = yes; then :
17785   lt_cv_dlopen_self_static=cross
17786 else
17787   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17788   lt_status=$lt_dlunknown
17789   cat > conftest.$ac_ext <<EOF
17790 #line 17790 "configure"
17791 #include "confdefs.h"
17792
17793 #if HAVE_DLFCN_H
17794 #include <dlfcn.h>
17795 #endif
17796
17797 #include <stdio.h>
17798
17799 #ifdef RTLD_GLOBAL
17800 #  define LT_DLGLOBAL           RTLD_GLOBAL
17801 #else
17802 #  ifdef DL_GLOBAL
17803 #    define LT_DLGLOBAL         DL_GLOBAL
17804 #  else
17805 #    define LT_DLGLOBAL         0
17806 #  endif
17807 #endif
17808
17809 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17810    find out it does not work in some platform. */
17811 #ifndef LT_DLLAZY_OR_NOW
17812 #  ifdef RTLD_LAZY
17813 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17814 #  else
17815 #    ifdef DL_LAZY
17816 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17817 #    else
17818 #      ifdef RTLD_NOW
17819 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17820 #      else
17821 #        ifdef DL_NOW
17822 #          define LT_DLLAZY_OR_NOW      DL_NOW
17823 #        else
17824 #          define LT_DLLAZY_OR_NOW      0
17825 #        endif
17826 #      endif
17827 #    endif
17828 #  endif
17829 #endif
17830
17831 #ifdef __cplusplus
17832 extern "C" void exit (int);
17833 #endif
17834
17835 void fnord() { int i=42;}
17836 int main ()
17837 {
17838   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17839   int status = $lt_dlunknown;
17840
17841   if (self)
17842     {
17843       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17844       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17845       /* dlclose (self); */
17846     }
17847   else
17848     puts (dlerror ());
17849
17850     exit (status);
17851 }
17852 EOF
17853   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17854   (eval $ac_link) 2>&5
17855   ac_status=$?
17856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17858     (./conftest; exit; ) >&5 2>/dev/null
17859     lt_status=$?
17860     case x$lt_status in
17861       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17862       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17863       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17864     esac
17865   else :
17866     # compilation failed
17867     lt_cv_dlopen_self_static=no
17868   fi
17869 fi
17870 rm -fr conftest*
17871
17872
17873 fi
17874 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17875 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17876     fi
17877
17878     CPPFLAGS="$save_CPPFLAGS"
17879     LDFLAGS="$save_LDFLAGS"
17880     LIBS="$save_LIBS"
17881     ;;
17882   esac
17883
17884   case $lt_cv_dlopen_self in
17885   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17886   *) enable_dlopen_self=unknown ;;
17887   esac
17888
17889   case $lt_cv_dlopen_self_static in
17890   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17891   *) enable_dlopen_self_static=unknown ;;
17892   esac
17893 fi
17894
17895
17896 # Report which library types will actually be built
17897 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17898 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17899 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17900 echo "${ECHO_T}$can_build_shared" >&6; }
17901
17902 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17903 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17904 test "$can_build_shared" = "no" && enable_shared=no
17905
17906 # On AIX, shared libraries and static libraries use the same namespace, and
17907 # are all built from PIC.
17908 case $host_os in
17909 aix3*)
17910   test "$enable_shared" = yes && enable_static=no
17911   if test -n "$RANLIB"; then
17912     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17913     postinstall_cmds='$RANLIB $lib'
17914   fi
17915   ;;
17916
17917 aix4* | aix5*)
17918   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17919     test "$enable_shared" = yes && enable_static=no
17920   fi
17921     ;;
17922 esac
17923 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17924 echo "${ECHO_T}$enable_shared" >&6; }
17925
17926 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17927 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17928 # Make sure either enable_shared or enable_static is yes.
17929 test "$enable_shared" = yes || enable_static=yes
17930 { echo "$as_me:$LINENO: result: $enable_static" >&5
17931 echo "${ECHO_T}$enable_static" >&6; }
17932
17933 # The else clause should only fire when bootstrapping the
17934 # libtool distribution, otherwise you forgot to ship ltmain.sh
17935 # with your package, and you will get complaints that there are
17936 # no rules to generate ltmain.sh.
17937 if test -f "$ltmain"; then
17938   # See if we are running on zsh, and set the options which allow our commands through
17939   # without removal of \ escapes.
17940   if test -n "${ZSH_VERSION+set}" ; then
17941     setopt NO_GLOB_SUBST
17942   fi
17943   # Now quote all the things that may contain metacharacters while being
17944   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17945   # variables and quote the copies for generation of the libtool script.
17946   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17947     SED SHELL STRIP \
17948     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17949     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17950     deplibs_check_method reload_flag reload_cmds need_locks \
17951     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17952     lt_cv_sys_global_symbol_to_c_name_address \
17953     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17954     old_postinstall_cmds old_postuninstall_cmds \
17955     compiler \
17956     CC \
17957     LD \
17958     lt_prog_compiler_wl \
17959     lt_prog_compiler_pic \
17960     lt_prog_compiler_static \
17961     lt_prog_compiler_no_builtin_flag \
17962     export_dynamic_flag_spec \
17963     thread_safe_flag_spec \
17964     whole_archive_flag_spec \
17965     enable_shared_with_static_runtimes \
17966     old_archive_cmds \
17967     old_archive_from_new_cmds \
17968     predep_objects \
17969     postdep_objects \
17970     predeps \
17971     postdeps \
17972     compiler_lib_search_path \
17973     archive_cmds \
17974     archive_expsym_cmds \
17975     postinstall_cmds \
17976     postuninstall_cmds \
17977     old_archive_from_expsyms_cmds \
17978     allow_undefined_flag \
17979     no_undefined_flag \
17980     export_symbols_cmds \
17981     hardcode_libdir_flag_spec \
17982     hardcode_libdir_flag_spec_ld \
17983     hardcode_libdir_separator \
17984     hardcode_automatic \
17985     module_cmds \
17986     module_expsym_cmds \
17987     lt_cv_prog_compiler_c_o \
17988     exclude_expsyms \
17989     include_expsyms; do
17990
17991     case $var in
17992     old_archive_cmds | \
17993     old_archive_from_new_cmds | \
17994     archive_cmds | \
17995     archive_expsym_cmds | \
17996     module_cmds | \
17997     module_expsym_cmds | \
17998     old_archive_from_expsyms_cmds | \
17999     export_symbols_cmds | \
18000     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18001     postinstall_cmds | postuninstall_cmds | \
18002     old_postinstall_cmds | old_postuninstall_cmds | \
18003     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18004       # Double-quote double-evaled strings.
18005       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18006       ;;
18007     *)
18008       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18009       ;;
18010     esac
18011   done
18012
18013   case $lt_echo in
18014   *'\$0 --fallback-echo"')
18015     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18016     ;;
18017   esac
18018
18019 cfgfile="${ofile}T"
18020   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18021   $rm -f "$cfgfile"
18022   { echo "$as_me:$LINENO: creating $ofile" >&5
18023 echo "$as_me: creating $ofile" >&6;}
18024
18025   cat <<__EOF__ >> "$cfgfile"
18026 #! $SHELL
18027
18028 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18029 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18030 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18031 #
18032 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18033 # Free Software Foundation, Inc.
18034 #
18035 # This file is part of GNU Libtool:
18036 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18037 #
18038 # This program is free software; you can redistribute it and/or modify
18039 # it under the terms of the GNU General Public License as published by
18040 # the Free Software Foundation; either version 2 of the License, or
18041 # (at your option) any later version.
18042 #
18043 # This program is distributed in the hope that it will be useful, but
18044 # WITHOUT ANY WARRANTY; without even the implied warranty of
18045 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18046 # General Public License for more details.
18047 #
18048 # You should have received a copy of the GNU General Public License
18049 # along with this program; if not, write to the Free Software
18050 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18051 #
18052 # As a special exception to the GNU General Public License, if you
18053 # distribute this file as part of a program that contains a
18054 # configuration script generated by Autoconf, you may include it under
18055 # the same distribution terms that you use for the rest of that program.
18056
18057 # A sed program that does not truncate output.
18058 SED=$lt_SED
18059
18060 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18061 Xsed="$SED -e 1s/^X//"
18062
18063 # The HP-UX ksh and POSIX shell print the target directory to stdout
18064 # if CDPATH is set.
18065 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18066
18067 # The names of the tagged configurations supported by this script.
18068 available_tags=
18069
18070 # ### BEGIN LIBTOOL CONFIG
18071
18072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18073
18074 # Shell to use when invoking shell scripts.
18075 SHELL=$lt_SHELL
18076
18077 # Whether or not to build shared libraries.
18078 build_libtool_libs=$enable_shared
18079
18080 # Whether or not to build static libraries.
18081 build_old_libs=$enable_static
18082
18083 # Whether or not to add -lc for building shared libraries.
18084 build_libtool_need_lc=$archive_cmds_need_lc
18085
18086 # Whether or not to disallow shared libs when runtime libs are static
18087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18088
18089 # Whether or not to optimize for fast installation.
18090 fast_install=$enable_fast_install
18091
18092 # The host system.
18093 host_alias=$host_alias
18094 host=$host
18095 host_os=$host_os
18096
18097 # The build system.
18098 build_alias=$build_alias
18099 build=$build
18100 build_os=$build_os
18101
18102 # An echo program that does not interpret backslashes.
18103 echo=$lt_echo
18104
18105 # The archiver.
18106 AR=$lt_AR
18107 AR_FLAGS=$lt_AR_FLAGS
18108
18109 # A C compiler.
18110 LTCC=$lt_LTCC
18111
18112 # LTCC compiler flags.
18113 LTCFLAGS=$lt_LTCFLAGS
18114
18115 # A language-specific compiler.
18116 CC=$lt_compiler
18117
18118 # Is the compiler the GNU C compiler?
18119 with_gcc=$GCC
18120
18121 # An ERE matcher.
18122 EGREP=$lt_EGREP
18123
18124 # The linker used to build libraries.
18125 LD=$lt_LD
18126
18127 # Whether we need hard or soft links.
18128 LN_S=$lt_LN_S
18129
18130 # A BSD-compatible nm program.
18131 NM=$lt_NM
18132
18133 # A symbol stripping program
18134 STRIP=$lt_STRIP
18135
18136 # Used to examine libraries when file_magic_cmd begins "file"
18137 MAGIC_CMD=$MAGIC_CMD
18138
18139 # Used on cygwin: DLL creation program.
18140 DLLTOOL="$DLLTOOL"
18141
18142 # Used on cygwin: object dumper.
18143 OBJDUMP="$OBJDUMP"
18144
18145 # Used on cygwin: assembler.
18146 AS="$AS"
18147
18148 # The name of the directory that contains temporary libtool files.
18149 objdir=$objdir
18150
18151 # How to create reloadable object files.
18152 reload_flag=$lt_reload_flag
18153 reload_cmds=$lt_reload_cmds
18154
18155 # How to pass a linker flag through the compiler.
18156 wl=$lt_lt_prog_compiler_wl
18157
18158 # Object file suffix (normally "o").
18159 objext="$ac_objext"
18160
18161 # Old archive suffix (normally "a").
18162 libext="$libext"
18163
18164 # Shared library suffix (normally ".so").
18165 shrext_cmds='$shrext_cmds'
18166
18167 # Executable file suffix (normally "").
18168 exeext="$exeext"
18169
18170 # Additional compiler flags for building library objects.
18171 pic_flag=$lt_lt_prog_compiler_pic
18172 pic_mode=$pic_mode
18173
18174 # What is the maximum length of a command?
18175 max_cmd_len=$lt_cv_sys_max_cmd_len
18176
18177 # Does compiler simultaneously support -c and -o options?
18178 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18179
18180 # Must we lock files when doing compilation?
18181 need_locks=$lt_need_locks
18182
18183 # Do we need the lib prefix for modules?
18184 need_lib_prefix=$need_lib_prefix
18185
18186 # Do we need a version for libraries?
18187 need_version=$need_version
18188
18189 # Whether dlopen is supported.
18190 dlopen_support=$enable_dlopen
18191
18192 # Whether dlopen of programs is supported.
18193 dlopen_self=$enable_dlopen_self
18194
18195 # Whether dlopen of statically linked programs is supported.
18196 dlopen_self_static=$enable_dlopen_self_static
18197
18198 # Compiler flag to prevent dynamic linking.
18199 link_static_flag=$lt_lt_prog_compiler_static
18200
18201 # Compiler flag to turn off builtin functions.
18202 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18203
18204 # Compiler flag to allow reflexive dlopens.
18205 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18206
18207 # Compiler flag to generate shared objects directly from archives.
18208 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18209
18210 # Compiler flag to generate thread-safe objects.
18211 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18212
18213 # Library versioning type.
18214 version_type=$version_type
18215
18216 # Format of library name prefix.
18217 libname_spec=$lt_libname_spec
18218
18219 # List of archive names.  First name is the real one, the rest are links.
18220 # The last name is the one that the linker finds with -lNAME.
18221 library_names_spec=$lt_library_names_spec
18222
18223 # The coded name of the library, if different from the real name.
18224 soname_spec=$lt_soname_spec
18225
18226 # Commands used to build and install an old-style archive.
18227 RANLIB=$lt_RANLIB
18228 old_archive_cmds=$lt_old_archive_cmds
18229 old_postinstall_cmds=$lt_old_postinstall_cmds
18230 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18231
18232 # Create an old-style archive from a shared archive.
18233 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18234
18235 # Create a temporary old-style archive to link instead of a shared archive.
18236 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18237
18238 # Commands used to build and install a shared archive.
18239 archive_cmds=$lt_archive_cmds
18240 archive_expsym_cmds=$lt_archive_expsym_cmds
18241 postinstall_cmds=$lt_postinstall_cmds
18242 postuninstall_cmds=$lt_postuninstall_cmds
18243
18244 # Commands used to build a loadable module (assumed same as above if empty)
18245 module_cmds=$lt_module_cmds
18246 module_expsym_cmds=$lt_module_expsym_cmds
18247
18248 # Commands to strip libraries.
18249 old_striplib=$lt_old_striplib
18250 striplib=$lt_striplib
18251
18252 # Dependencies to place before the objects being linked to create a
18253 # shared library.
18254 predep_objects=$lt_predep_objects
18255
18256 # Dependencies to place after the objects being linked to create a
18257 # shared library.
18258 postdep_objects=$lt_postdep_objects
18259
18260 # Dependencies to place before the objects being linked to create a
18261 # shared library.
18262 predeps=$lt_predeps
18263
18264 # Dependencies to place after the objects being linked to create a
18265 # shared library.
18266 postdeps=$lt_postdeps
18267
18268 # The library search path used internally by the compiler when linking
18269 # a shared library.
18270 compiler_lib_search_path=$lt_compiler_lib_search_path
18271
18272 # Method to check whether dependent libraries are shared objects.
18273 deplibs_check_method=$lt_deplibs_check_method
18274
18275 # Command to use when deplibs_check_method == file_magic.
18276 file_magic_cmd=$lt_file_magic_cmd
18277
18278 # Flag that allows shared libraries with undefined symbols to be built.
18279 allow_undefined_flag=$lt_allow_undefined_flag
18280
18281 # Flag that forces no undefined symbols.
18282 no_undefined_flag=$lt_no_undefined_flag
18283
18284 # Commands used to finish a libtool library installation in a directory.
18285 finish_cmds=$lt_finish_cmds
18286
18287 # Same as above, but a single script fragment to be evaled but not shown.
18288 finish_eval=$lt_finish_eval
18289
18290 # Take the output of nm and produce a listing of raw symbols and C names.
18291 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18292
18293 # Transform the output of nm in a proper C declaration
18294 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18295
18296 # Transform the output of nm in a C name address pair
18297 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18298
18299 # This is the shared library runtime path variable.
18300 runpath_var=$runpath_var
18301
18302 # This is the shared library path variable.
18303 shlibpath_var=$shlibpath_var
18304
18305 # Is shlibpath searched before the hard-coded library search path?
18306 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18307
18308 # How to hardcode a shared library path into an executable.
18309 hardcode_action=$hardcode_action
18310
18311 # Whether we should hardcode library paths into libraries.
18312 hardcode_into_libs=$hardcode_into_libs
18313
18314 # Flag to hardcode \$libdir into a binary during linking.
18315 # This must work even if \$libdir does not exist.
18316 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18317
18318 # If ld is used when linking, flag to hardcode \$libdir into
18319 # a binary during linking. This must work even if \$libdir does
18320 # not exist.
18321 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18322
18323 # Whether we need a single -rpath flag with a separated argument.
18324 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18325
18326 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18327 # resulting binary.
18328 hardcode_direct=$hardcode_direct
18329
18330 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18331 # resulting binary.
18332 hardcode_minus_L=$hardcode_minus_L
18333
18334 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18335 # the resulting binary.
18336 hardcode_shlibpath_var=$hardcode_shlibpath_var
18337
18338 # Set to yes if building a shared library automatically hardcodes DIR into the library
18339 # and all subsequent libraries and executables linked against it.
18340 hardcode_automatic=$hardcode_automatic
18341
18342 # Variables whose values should be saved in libtool wrapper scripts and
18343 # restored at relink time.
18344 variables_saved_for_relink="$variables_saved_for_relink"
18345
18346 # Whether libtool must link a program against all its dependency libraries.
18347 link_all_deplibs=$link_all_deplibs
18348
18349 # Compile-time system search path for libraries
18350 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18351
18352 # Run-time system search path for libraries
18353 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18354
18355 # Fix the shell variable \$srcfile for the compiler.
18356 fix_srcfile_path="$fix_srcfile_path"
18357
18358 # Set to yes if exported symbols are required.
18359 always_export_symbols=$always_export_symbols
18360
18361 # The commands to list exported symbols.
18362 export_symbols_cmds=$lt_export_symbols_cmds
18363
18364 # The commands to extract the exported symbol list from a shared archive.
18365 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18366
18367 # Symbols that should not be listed in the preloaded symbols.
18368 exclude_expsyms=$lt_exclude_expsyms
18369
18370 # Symbols that must always be exported.
18371 include_expsyms=$lt_include_expsyms
18372
18373 # ### END LIBTOOL CONFIG
18374
18375 __EOF__
18376
18377
18378   case $host_os in
18379   aix3*)
18380     cat <<\EOF >> "$cfgfile"
18381
18382 # AIX sometimes has problems with the GCC collect2 program.  For some
18383 # reason, if we set the COLLECT_NAMES environment variable, the problems
18384 # vanish in a puff of smoke.
18385 if test "X${COLLECT_NAMES+set}" != Xset; then
18386   COLLECT_NAMES=
18387   export COLLECT_NAMES
18388 fi
18389 EOF
18390     ;;
18391   esac
18392
18393   # We use sed instead of cat because bash on DJGPP gets confused if
18394   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18395   # text mode, it properly converts lines to CR/LF.  This bash problem
18396   # is reportedly fixed, but why not run on old versions too?
18397   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18398
18399   mv -f "$cfgfile" "$ofile" || \
18400     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18401   chmod +x "$ofile"
18402
18403 else
18404   # If there is no Makefile yet, we rely on a make rule to execute
18405   # `config.status --recheck' to rerun these tests and create the
18406   # libtool script then.
18407   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18408   if test -f "$ltmain_in"; then
18409     test -f Makefile && make "$ltmain"
18410   fi
18411 fi
18412
18413
18414 ac_ext=c
18415 ac_cpp='$CPP $CPPFLAGS'
18416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18419
18420 CC="$lt_save_CC"
18421
18422
18423 # Check whether --with-tags was given.
18424 if test "${with_tags+set}" = set; then
18425   withval=$with_tags; tagnames="$withval"
18426 fi
18427
18428
18429 if test -f "$ltmain" && test -n "$tagnames"; then
18430   if test ! -f "${ofile}"; then
18431     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18432 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18433   fi
18434
18435   if test -z "$LTCC"; then
18436     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18437     if test -z "$LTCC"; then
18438       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18439 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18440     else
18441       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18442 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18443     fi
18444   fi
18445   if test -z "$LTCFLAGS"; then
18446     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18447   fi
18448
18449   # Extract list of available tagged configurations in $ofile.
18450   # Note that this assumes the entire list is on one line.
18451   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18452
18453   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18454   for tagname in $tagnames; do
18455     IFS="$lt_save_ifs"
18456     # Check whether tagname contains only valid characters
18457     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18458     "") ;;
18459     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18460 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18461    { (exit 1); exit 1; }; }
18462         ;;
18463     esac
18464
18465     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18466     then
18467       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18468 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18469    { (exit 1); exit 1; }; }
18470     fi
18471
18472     # Update the list of available tags.
18473     if test -n "$tagname"; then
18474       echo appending configuration tag \"$tagname\" to $ofile
18475
18476       case $tagname in
18477       CXX)
18478         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18479             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18480             (test "X$CXX" != "Xg++"))) ; then
18481           ac_ext=cpp
18482 ac_cpp='$CXXCPP $CPPFLAGS'
18483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18486
18487
18488
18489
18490 archive_cmds_need_lc_CXX=no
18491 allow_undefined_flag_CXX=
18492 always_export_symbols_CXX=no
18493 archive_expsym_cmds_CXX=
18494 export_dynamic_flag_spec_CXX=
18495 hardcode_direct_CXX=no
18496 hardcode_libdir_flag_spec_CXX=
18497 hardcode_libdir_flag_spec_ld_CXX=
18498 hardcode_libdir_separator_CXX=
18499 hardcode_minus_L_CXX=no
18500 hardcode_shlibpath_var_CXX=unsupported
18501 hardcode_automatic_CXX=no
18502 module_cmds_CXX=
18503 module_expsym_cmds_CXX=
18504 link_all_deplibs_CXX=unknown
18505 old_archive_cmds_CXX=$old_archive_cmds
18506 no_undefined_flag_CXX=
18507 whole_archive_flag_spec_CXX=
18508 enable_shared_with_static_runtimes_CXX=no
18509
18510 # Dependencies to place before and after the object being linked:
18511 predep_objects_CXX=
18512 postdep_objects_CXX=
18513 predeps_CXX=
18514 postdeps_CXX=
18515 compiler_lib_search_path_CXX=
18516
18517 # Source file extension for C++ test sources.
18518 ac_ext=cpp
18519
18520 # Object file extension for compiled C++ test sources.
18521 objext=o
18522 objext_CXX=$objext
18523
18524 # Code to be used in simple compile tests
18525 lt_simple_compile_test_code="int some_variable = 0;\n"
18526
18527 # Code to be used in simple link tests
18528 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18529
18530 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18531
18532 # If no C compiler was specified, use CC.
18533 LTCC=${LTCC-"$CC"}
18534
18535 # If no C compiler flags were specified, use CFLAGS.
18536 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18537
18538 # Allow CC to be a program name with arguments.
18539 compiler=$CC
18540
18541
18542 # save warnings/boilerplate of simple test code
18543 ac_outfile=conftest.$ac_objext
18544 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18545 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18546 _lt_compiler_boilerplate=`cat conftest.err`
18547 $rm conftest*
18548
18549 ac_outfile=conftest.$ac_objext
18550 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18551 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18552 _lt_linker_boilerplate=`cat conftest.err`
18553 $rm conftest*
18554
18555
18556 # Allow CC to be a program name with arguments.
18557 lt_save_CC=$CC
18558 lt_save_LD=$LD
18559 lt_save_GCC=$GCC
18560 GCC=$GXX
18561 lt_save_with_gnu_ld=$with_gnu_ld
18562 lt_save_path_LD=$lt_cv_path_LD
18563 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18564   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18565 else
18566   $as_unset lt_cv_prog_gnu_ld
18567 fi
18568 if test -n "${lt_cv_path_LDCXX+set}"; then
18569   lt_cv_path_LD=$lt_cv_path_LDCXX
18570 else
18571   $as_unset lt_cv_path_LD
18572 fi
18573 test -z "${LDCXX+set}" || LD=$LDCXX
18574 CC=${CXX-"c++"}
18575 compiler=$CC
18576 compiler_CXX=$CC
18577 for cc_temp in $compiler""; do
18578   case $cc_temp in
18579     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18580     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18581     \-*) ;;
18582     *) break;;
18583   esac
18584 done
18585 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18586
18587
18588 # We don't want -fno-exception wen compiling C++ code, so set the
18589 # no_builtin_flag separately
18590 if test "$GXX" = yes; then
18591   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18592 else
18593   lt_prog_compiler_no_builtin_flag_CXX=
18594 fi
18595
18596 if test "$GXX" = yes; then
18597   # Set up default GNU C++ configuration
18598
18599
18600 # Check whether --with-gnu-ld was given.
18601 if test "${with_gnu_ld+set}" = set; then
18602   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18603 else
18604   with_gnu_ld=no
18605 fi
18606
18607 ac_prog=ld
18608 if test "$GCC" = yes; then
18609   # Check if gcc -print-prog-name=ld gives a path.
18610   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18611 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18612   case $host in
18613   *-*-mingw*)
18614     # gcc leaves a trailing carriage return which upsets mingw
18615     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18616   *)
18617     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18618   esac
18619   case $ac_prog in
18620     # Accept absolute paths.
18621     [\\/]* | ?:[\\/]*)
18622       re_direlt='/[^/][^/]*/\.\./'
18623       # Canonicalize the pathname of ld
18624       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18625       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18626         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18627       done
18628       test -z "$LD" && LD="$ac_prog"
18629       ;;
18630   "")
18631     # If it fails, then pretend we aren't using GCC.
18632     ac_prog=ld
18633     ;;
18634   *)
18635     # If it is relative, then search for the first ld in PATH.
18636     with_gnu_ld=unknown
18637     ;;
18638   esac
18639 elif test "$with_gnu_ld" = yes; then
18640   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18641 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18642 else
18643   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18644 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18645 fi
18646 if test "${lt_cv_path_LD+set}" = set; then
18647   echo $ECHO_N "(cached) $ECHO_C" >&6
18648 else
18649   if test -z "$LD"; then
18650   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18651   for ac_dir in $PATH; do
18652     IFS="$lt_save_ifs"
18653     test -z "$ac_dir" && ac_dir=.
18654     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18655       lt_cv_path_LD="$ac_dir/$ac_prog"
18656       # Check to see if the program is GNU ld.  I'd rather use --version,
18657       # but apparently some variants of GNU ld only accept -v.
18658       # Break only if it was the GNU/non-GNU ld that we prefer.
18659       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18660       *GNU* | *'with BFD'*)
18661         test "$with_gnu_ld" != no && break
18662         ;;
18663       *)
18664         test "$with_gnu_ld" != yes && break
18665         ;;
18666       esac
18667     fi
18668   done
18669   IFS="$lt_save_ifs"
18670 else
18671   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18672 fi
18673 fi
18674
18675 LD="$lt_cv_path_LD"
18676 if test -n "$LD"; then
18677   { echo "$as_me:$LINENO: result: $LD" >&5
18678 echo "${ECHO_T}$LD" >&6; }
18679 else
18680   { echo "$as_me:$LINENO: result: no" >&5
18681 echo "${ECHO_T}no" >&6; }
18682 fi
18683 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18684 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18685    { (exit 1); exit 1; }; }
18686 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18687 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18688 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18689   echo $ECHO_N "(cached) $ECHO_C" >&6
18690 else
18691   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18692 case `$LD -v 2>&1 </dev/null` in
18693 *GNU* | *'with BFD'*)
18694   lt_cv_prog_gnu_ld=yes
18695   ;;
18696 *)
18697   lt_cv_prog_gnu_ld=no
18698   ;;
18699 esac
18700 fi
18701 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18702 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18703 with_gnu_ld=$lt_cv_prog_gnu_ld
18704
18705
18706
18707   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18708   # archiving commands below assume that GNU ld is being used.
18709   if test "$with_gnu_ld" = yes; then
18710     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18711     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'
18712
18713     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18714     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18715
18716     # If archive_cmds runs LD, not CC, wlarc should be empty
18717     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18718     #     investigate it a little bit more. (MM)
18719     wlarc='${wl}'
18720
18721     # ancient GNU ld didn't support --whole-archive et. al.
18722     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18723         grep 'no-whole-archive' > /dev/null; then
18724       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18725     else
18726       whole_archive_flag_spec_CXX=
18727     fi
18728   else
18729     with_gnu_ld=no
18730     wlarc=
18731
18732     # A generic and very simple default shared library creation
18733     # command for GNU C++ for the case where it uses the native
18734     # linker, instead of GNU ld.  If possible, this setting should
18735     # overridden to take advantage of the native linker features on
18736     # the platform it is being used on.
18737     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18738   fi
18739
18740   # Commands to make compiler produce verbose output that lists
18741   # what "hidden" libraries, object files and flags are used when
18742   # linking a shared library.
18743   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18744
18745 else
18746   GXX=no
18747   with_gnu_ld=no
18748   wlarc=
18749 fi
18750
18751 # PORTME: fill in a description of your system's C++ link characteristics
18752 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18753 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18754 ld_shlibs_CXX=yes
18755 case $host_os in
18756   aix3*)
18757     # FIXME: insert proper C++ library support
18758     ld_shlibs_CXX=no
18759     ;;
18760   aix4* | aix5*)
18761     if test "$host_cpu" = ia64; then
18762       # On IA64, the linker does run time linking by default, so we don't
18763       # have to do anything special.
18764       aix_use_runtimelinking=no
18765       exp_sym_flag='-Bexport'
18766       no_entry_flag=""
18767     else
18768       aix_use_runtimelinking=no
18769
18770       # Test if we are trying to use run time linking or normal
18771       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18772       # need to do runtime linking.
18773       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18774         for ld_flag in $LDFLAGS; do
18775           case $ld_flag in
18776           *-brtl*)
18777             aix_use_runtimelinking=yes
18778             break
18779             ;;
18780           esac
18781         done
18782         ;;
18783       esac
18784
18785       exp_sym_flag='-bexport'
18786       no_entry_flag='-bnoentry'
18787     fi
18788
18789     # When large executables or shared objects are built, AIX ld can
18790     # have problems creating the table of contents.  If linking a library
18791     # or program results in "error TOC overflow" add -mminimal-toc to
18792     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18793     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18794
18795     archive_cmds_CXX=''
18796     hardcode_direct_CXX=yes
18797     hardcode_libdir_separator_CXX=':'
18798     link_all_deplibs_CXX=yes
18799
18800     if test "$GXX" = yes; then
18801       case $host_os in aix4.[012]|aix4.[012].*)
18802       # We only want to do this on AIX 4.2 and lower, the check
18803       # below for broken collect2 doesn't work under 4.3+
18804         collect2name=`${CC} -print-prog-name=collect2`
18805         if test -f "$collect2name" && \
18806            strings "$collect2name" | grep resolve_lib_name >/dev/null
18807         then
18808           # We have reworked collect2
18809           hardcode_direct_CXX=yes
18810         else
18811           # We have old collect2
18812           hardcode_direct_CXX=unsupported
18813           # It fails to find uninstalled libraries when the uninstalled
18814           # path is not listed in the libpath.  Setting hardcode_minus_L
18815           # to unsupported forces relinking
18816           hardcode_minus_L_CXX=yes
18817           hardcode_libdir_flag_spec_CXX='-L$libdir'
18818           hardcode_libdir_separator_CXX=
18819         fi
18820         ;;
18821       esac
18822       shared_flag='-shared'
18823       if test "$aix_use_runtimelinking" = yes; then
18824         shared_flag="$shared_flag "'${wl}-G'
18825       fi
18826     else
18827       # not using gcc
18828       if test "$host_cpu" = ia64; then
18829         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18830         # chokes on -Wl,-G. The following line is correct:
18831         shared_flag='-G'
18832       else
18833         if test "$aix_use_runtimelinking" = yes; then
18834           shared_flag='${wl}-G'
18835         else
18836           shared_flag='${wl}-bM:SRE'
18837         fi
18838       fi
18839     fi
18840
18841     # It seems that -bexpall does not export symbols beginning with
18842     # underscore (_), so it is better to generate a list of symbols to export.
18843     always_export_symbols_CXX=yes
18844     if test "$aix_use_runtimelinking" = yes; then
18845       # Warning - without using the other runtime loading flags (-brtl),
18846       # -berok will link without error, but may produce a broken library.
18847       allow_undefined_flag_CXX='-berok'
18848       # Determine the default libpath from the value encoded in an empty executable.
18849       cat >conftest.$ac_ext <<_ACEOF
18850 /* confdefs.h.  */
18851 _ACEOF
18852 cat confdefs.h >>conftest.$ac_ext
18853 cat >>conftest.$ac_ext <<_ACEOF
18854 /* end confdefs.h.  */
18855
18856 int
18857 main ()
18858 {
18859
18860   ;
18861   return 0;
18862 }
18863 _ACEOF
18864 rm -f conftest.$ac_objext conftest$ac_exeext
18865 if { (ac_try="$ac_link"
18866 case "(($ac_try" in
18867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868   *) ac_try_echo=$ac_try;;
18869 esac
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871   (eval "$ac_link") 2>conftest.er1
18872   ac_status=$?
18873   grep -v '^ *+' conftest.er1 >conftest.err
18874   rm -f conftest.er1
18875   cat conftest.err >&5
18876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877   (exit $ac_status); } &&
18878          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18879   { (case "(($ac_try" in
18880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881   *) ac_try_echo=$ac_try;;
18882 esac
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884   (eval "$ac_try") 2>&5
18885   ac_status=$?
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); }; } &&
18888          { ac_try='test -s conftest$ac_exeext'
18889   { (case "(($ac_try" in
18890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891   *) ac_try_echo=$ac_try;;
18892 esac
18893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894   (eval "$ac_try") 2>&5
18895   ac_status=$?
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); }; }; then
18898
18899 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18900 }'`
18901 # Check for a 64-bit object if we didn't find anything.
18902 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; }
18903 }'`; fi
18904 else
18905   echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18907
18908
18909 fi
18910
18911 rm -f core conftest.err conftest.$ac_objext \
18912       conftest$ac_exeext conftest.$ac_ext
18913 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18914
18915       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18916
18917       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"
18918      else
18919       if test "$host_cpu" = ia64; then
18920         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18921         allow_undefined_flag_CXX="-z nodefs"
18922         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"
18923       else
18924         # Determine the default libpath from the value encoded in an empty executable.
18925         cat >conftest.$ac_ext <<_ACEOF
18926 /* confdefs.h.  */
18927 _ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h.  */
18931
18932 int
18933 main ()
18934 {
18935
18936   ;
18937   return 0;
18938 }
18939 _ACEOF
18940 rm -f conftest.$ac_objext conftest$ac_exeext
18941 if { (ac_try="$ac_link"
18942 case "(($ac_try" in
18943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944   *) ac_try_echo=$ac_try;;
18945 esac
18946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947   (eval "$ac_link") 2>conftest.er1
18948   ac_status=$?
18949   grep -v '^ *+' conftest.er1 >conftest.err
18950   rm -f conftest.er1
18951   cat conftest.err >&5
18952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953   (exit $ac_status); } &&
18954          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18955   { (case "(($ac_try" in
18956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957   *) ac_try_echo=$ac_try;;
18958 esac
18959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960   (eval "$ac_try") 2>&5
18961   ac_status=$?
18962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963   (exit $ac_status); }; } &&
18964          { ac_try='test -s conftest$ac_exeext'
18965   { (case "(($ac_try" in
18966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18967   *) ac_try_echo=$ac_try;;
18968 esac
18969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18970   (eval "$ac_try") 2>&5
18971   ac_status=$?
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); }; }; then
18974
18975 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18976 }'`
18977 # Check for a 64-bit object if we didn't find anything.
18978 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; }
18979 }'`; fi
18980 else
18981   echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18983
18984
18985 fi
18986
18987 rm -f core conftest.err conftest.$ac_objext \
18988       conftest$ac_exeext conftest.$ac_ext
18989 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18990
18991         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18992         # Warning - without using the other run time loading flags,
18993         # -berok will link without error, but may produce a broken library.
18994         no_undefined_flag_CXX=' ${wl}-bernotok'
18995         allow_undefined_flag_CXX=' ${wl}-berok'
18996         # Exported symbols can be pulled into shared objects from archives
18997         whole_archive_flag_spec_CXX='$convenience'
18998         archive_cmds_need_lc_CXX=yes
18999         # This is similar to how AIX traditionally builds its shared libraries.
19000         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'
19001       fi
19002     fi
19003     ;;
19004
19005   beos*)
19006     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19007       allow_undefined_flag_CXX=unsupported
19008       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19009       # support --undefined.  This deserves some investigation.  FIXME
19010       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19011     else
19012       ld_shlibs_CXX=no
19013     fi
19014     ;;
19015
19016   chorus*)
19017     case $cc_basename in
19018       *)
19019         # FIXME: insert proper C++ library support
19020         ld_shlibs_CXX=no
19021         ;;
19022     esac
19023     ;;
19024
19025   cygwin* | mingw* | pw32*)
19026     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19027     # as there is no search path for DLLs.
19028     hardcode_libdir_flag_spec_CXX='-L$libdir'
19029     allow_undefined_flag_CXX=unsupported
19030     always_export_symbols_CXX=no
19031     enable_shared_with_static_runtimes_CXX=yes
19032
19033     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19034       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'
19035       # If the export-symbols file already is a .def file (1st line
19036       # is EXPORTS), use it as is; otherwise, prepend...
19037       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19038         cp $export_symbols $output_objdir/$soname.def;
19039       else
19040         echo EXPORTS > $output_objdir/$soname.def;
19041         cat $export_symbols >> $output_objdir/$soname.def;
19042       fi~
19043       $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'
19044     else
19045       ld_shlibs_CXX=no
19046     fi
19047   ;;
19048       darwin* | rhapsody*)
19049         case $host_os in
19050         rhapsody* | darwin1.[012])
19051          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19052          ;;
19053        *) # Darwin 1.3 on
19054          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19055            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19056          else
19057            case ${MACOSX_DEPLOYMENT_TARGET} in
19058              10.[012])
19059                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19060                ;;
19061              10.*)
19062                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19063                ;;
19064            esac
19065          fi
19066          ;;
19067         esac
19068       archive_cmds_need_lc_CXX=no
19069       hardcode_direct_CXX=no
19070       hardcode_automatic_CXX=yes
19071       hardcode_shlibpath_var_CXX=unsupported
19072       whole_archive_flag_spec_CXX=''
19073       link_all_deplibs_CXX=yes
19074
19075     if test "$GXX" = yes ; then
19076       lt_int_apple_cc_single_mod=no
19077       output_verbose_link_cmd='echo'
19078       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19079        lt_int_apple_cc_single_mod=yes
19080       fi
19081       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19082        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19083       else
19084           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'
19085         fi
19086         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19087         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19088           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19089             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}'
19090           else
19091             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}'
19092           fi
19093             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}'
19094       else
19095       case $cc_basename in
19096         xlc*)
19097          output_verbose_link_cmd='echo'
19098           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'
19099           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19100           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19101           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}'
19102           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}'
19103           ;;
19104        *)
19105          ld_shlibs_CXX=no
19106           ;;
19107       esac
19108       fi
19109         ;;
19110
19111   dgux*)
19112     case $cc_basename in
19113       ec++*)
19114         # FIXME: insert proper C++ library support
19115         ld_shlibs_CXX=no
19116         ;;
19117       ghcx*)
19118         # Green Hills C++ Compiler
19119         # FIXME: insert proper C++ library support
19120         ld_shlibs_CXX=no
19121         ;;
19122       *)
19123         # FIXME: insert proper C++ library support
19124         ld_shlibs_CXX=no
19125         ;;
19126     esac
19127     ;;
19128   freebsd[12]*)
19129     # C++ shared libraries reported to be fairly broken before switch to ELF
19130     ld_shlibs_CXX=no
19131     ;;
19132   freebsd-elf*)
19133     archive_cmds_need_lc_CXX=no
19134     ;;
19135   freebsd* | kfreebsd*-gnu | dragonfly*)
19136     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19137     # conventions
19138     ld_shlibs_CXX=yes
19139     ;;
19140   gnu*)
19141     ;;
19142   hpux9*)
19143     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19144     hardcode_libdir_separator_CXX=:
19145     export_dynamic_flag_spec_CXX='${wl}-E'
19146     hardcode_direct_CXX=yes
19147     hardcode_minus_L_CXX=yes # Not in the search PATH,
19148                                 # but as the default
19149                                 # location of the library.
19150
19151     case $cc_basename in
19152     CC*)
19153       # FIXME: insert proper C++ library support
19154       ld_shlibs_CXX=no
19155       ;;
19156     aCC*)
19157       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'
19158       # Commands to make compiler produce verbose output that lists
19159       # what "hidden" libraries, object files and flags are used when
19160       # linking a shared library.
19161       #
19162       # There doesn't appear to be a way to prevent this compiler from
19163       # explicitly linking system object files so we need to strip them
19164       # from the output so that they don't get included in the library
19165       # dependencies.
19166       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'
19167       ;;
19168     *)
19169       if test "$GXX" = yes; then
19170         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'
19171       else
19172         # FIXME: insert proper C++ library support
19173         ld_shlibs_CXX=no
19174       fi
19175       ;;
19176     esac
19177     ;;
19178   hpux10*|hpux11*)
19179     if test $with_gnu_ld = no; then
19180       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19181       hardcode_libdir_separator_CXX=:
19182
19183       case $host_cpu in
19184       hppa*64*|ia64*)
19185         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19186         ;;
19187       *)
19188         export_dynamic_flag_spec_CXX='${wl}-E'
19189         ;;
19190       esac
19191     fi
19192     case $host_cpu in
19193     hppa*64*|ia64*)
19194       hardcode_direct_CXX=no
19195       hardcode_shlibpath_var_CXX=no
19196       ;;
19197     *)
19198       hardcode_direct_CXX=yes
19199       hardcode_minus_L_CXX=yes # Not in the search PATH,
19200                                               # but as the default
19201                                               # location of the library.
19202       ;;
19203     esac
19204
19205     case $cc_basename in
19206       CC*)
19207         # FIXME: insert proper C++ library support
19208         ld_shlibs_CXX=no
19209         ;;
19210       aCC*)
19211         case $host_cpu in
19212         hppa*64*)
19213           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19214           ;;
19215         ia64*)
19216           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19217           ;;
19218         *)
19219           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19220           ;;
19221         esac
19222         # Commands to make compiler produce verbose output that lists
19223         # what "hidden" libraries, object files and flags are used when
19224         # linking a shared library.
19225         #
19226         # There doesn't appear to be a way to prevent this compiler from
19227         # explicitly linking system object files so we need to strip them
19228         # from the output so that they don't get included in the library
19229         # dependencies.
19230         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'
19231         ;;
19232       *)
19233         if test "$GXX" = yes; then
19234           if test $with_gnu_ld = no; then
19235             case $host_cpu in
19236             hppa*64*)
19237               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19238               ;;
19239             ia64*)
19240               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19241               ;;
19242             *)
19243               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'
19244               ;;
19245             esac
19246           fi
19247         else
19248           # FIXME: insert proper C++ library support
19249           ld_shlibs_CXX=no
19250         fi
19251         ;;
19252     esac
19253     ;;
19254   interix3*)
19255     hardcode_direct_CXX=no
19256     hardcode_shlibpath_var_CXX=no
19257     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19258     export_dynamic_flag_spec_CXX='${wl}-E'
19259     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19260     # Instead, shared libraries are loaded at an image base (0x10000000 by
19261     # default) and relocated if they conflict, which is a slow very memory
19262     # consuming and fragmenting process.  To avoid this, we pick a random,
19263     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19264     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19265     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'
19266     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'
19267     ;;
19268   irix5* | irix6*)
19269     case $cc_basename in
19270       CC*)
19271         # SGI C++
19272         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'
19273
19274         # Archives containing C++ object files must be created using
19275         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19276         # necessary to make sure instantiated templates are included
19277         # in the archive.
19278         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19279         ;;
19280       *)
19281         if test "$GXX" = yes; then
19282           if test "$with_gnu_ld" = no; then
19283             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'
19284           else
19285             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'
19286           fi
19287         fi
19288         link_all_deplibs_CXX=yes
19289         ;;
19290     esac
19291     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19292     hardcode_libdir_separator_CXX=:
19293     ;;
19294   linux*)
19295     case $cc_basename in
19296       KCC*)
19297         # Kuck and Associates, Inc. (KAI) C++ Compiler
19298
19299         # KCC will only create a shared library if the output file
19300         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19301         # to its proper name (with version) after linking.
19302         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'
19303         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'
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 $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'
19313
19314         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19315         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19316
19317         # Archives containing C++ object files must be created using
19318         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19319         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19320         ;;
19321       icpc*)
19322         # Intel C++
19323         with_gnu_ld=yes
19324         # version 8.0 and above of icpc choke on multiply defined symbols
19325         # if we add $predep_objects and $postdep_objects, however 7.1 and
19326         # earlier do not add the objects themselves.
19327         case `$CC -V 2>&1` in
19328         *"Version 7."*)
19329           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19330           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'
19331           ;;
19332         *)  # Version 8.0 or newer
19333           tmp_idyn=
19334           case $host_cpu in
19335             ia64*) tmp_idyn=' -i_dynamic';;
19336           esac
19337           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19338           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'
19339           ;;
19340         esac
19341         archive_cmds_need_lc_CXX=no
19342         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19343         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19344         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19345         ;;
19346       pgCC*)
19347         # Portland Group C++ compiler
19348         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19349         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'
19350
19351         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19352         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19353         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'
19354         ;;
19355       cxx*)
19356         # Compaq C++
19357         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19358         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'
19359
19360         runpath_var=LD_RUN_PATH
19361         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19362         hardcode_libdir_separator_CXX=:
19363
19364         # Commands to make compiler produce verbose output that lists
19365         # what "hidden" libraries, object files and flags are used when
19366         # linking a shared library.
19367         #
19368         # There doesn't appear to be a way to prevent this compiler from
19369         # explicitly linking system object files so we need to strip them
19370         # from the output so that they don't get included in the library
19371         # dependencies.
19372         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'
19373         ;;
19374     esac
19375     ;;
19376   lynxos*)
19377     # FIXME: insert proper C++ library support
19378     ld_shlibs_CXX=no
19379     ;;
19380   m88k*)
19381     # FIXME: insert proper C++ library support
19382     ld_shlibs_CXX=no
19383     ;;
19384   mvs*)
19385     case $cc_basename in
19386       cxx*)
19387         # FIXME: insert proper C++ library support
19388         ld_shlibs_CXX=no
19389         ;;
19390       *)
19391         # FIXME: insert proper C++ library support
19392         ld_shlibs_CXX=no
19393         ;;
19394     esac
19395     ;;
19396   netbsd*)
19397     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19398       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19399       wlarc=
19400       hardcode_libdir_flag_spec_CXX='-R$libdir'
19401       hardcode_direct_CXX=yes
19402       hardcode_shlibpath_var_CXX=no
19403     fi
19404     # Workaround some broken pre-1.5 toolchains
19405     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19406     ;;
19407   openbsd2*)
19408     # C++ shared libraries are fairly broken
19409     ld_shlibs_CXX=no
19410     ;;
19411   openbsd*)
19412     hardcode_direct_CXX=yes
19413     hardcode_shlibpath_var_CXX=no
19414     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19415     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19416     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19417       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19418       export_dynamic_flag_spec_CXX='${wl}-E'
19419       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19420     fi
19421     output_verbose_link_cmd='echo'
19422     ;;
19423   osf3*)
19424     case $cc_basename in
19425       KCC*)
19426         # Kuck and Associates, Inc. (KAI) C++ Compiler
19427
19428         # KCC will only create a shared library if the output file
19429         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19430         # to its proper name (with version) after linking.
19431         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'
19432
19433         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19434         hardcode_libdir_separator_CXX=:
19435
19436         # Archives containing C++ object files must be created using
19437         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19438         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19439
19440         ;;
19441       RCC*)
19442         # Rational C++ 2.4.1
19443         # FIXME: insert proper C++ library support
19444         ld_shlibs_CXX=no
19445         ;;
19446       cxx*)
19447         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19448         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'
19449
19450         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19451         hardcode_libdir_separator_CXX=:
19452
19453         # Commands to make compiler produce verbose output that lists
19454         # what "hidden" libraries, object files and flags are used when
19455         # linking a shared library.
19456         #
19457         # There doesn't appear to be a way to prevent this compiler from
19458         # explicitly linking system object files so we need to strip them
19459         # from the output so that they don't get included in the library
19460         # dependencies.
19461         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'
19462         ;;
19463       *)
19464         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19465           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19466           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'
19467
19468           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19469           hardcode_libdir_separator_CXX=:
19470
19471           # Commands to make compiler produce verbose output that lists
19472           # what "hidden" libraries, object files and flags are used when
19473           # linking a shared library.
19474           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19475
19476         else
19477           # FIXME: insert proper C++ library support
19478           ld_shlibs_CXX=no
19479         fi
19480         ;;
19481     esac
19482     ;;
19483   osf4* | osf5*)
19484     case $cc_basename in
19485       KCC*)
19486         # Kuck and Associates, Inc. (KAI) C++ Compiler
19487
19488         # KCC will only create a shared library if the output file
19489         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19490         # to its proper name (with version) after linking.
19491         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'
19492
19493         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19494         hardcode_libdir_separator_CXX=:
19495
19496         # Archives containing C++ object files must be created using
19497         # the KAI C++ compiler.
19498         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19499         ;;
19500       RCC*)
19501         # Rational C++ 2.4.1
19502         # FIXME: insert proper C++ library support
19503         ld_shlibs_CXX=no
19504         ;;
19505       cxx*)
19506         allow_undefined_flag_CXX=' -expect_unresolved \*'
19507         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'
19508         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19509           echo "-hidden">> $lib.exp~
19510           $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~
19511           $rm $lib.exp'
19512
19513         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19514         hardcode_libdir_separator_CXX=:
19515
19516         # Commands to make compiler produce verbose output that lists
19517         # what "hidden" libraries, object files and flags are used when
19518         # linking a shared library.
19519         #
19520         # There doesn't appear to be a way to prevent this compiler from
19521         # explicitly linking system object files so we need to strip them
19522         # from the output so that they don't get included in the library
19523         # dependencies.
19524         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'
19525         ;;
19526       *)
19527         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19528           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19529          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'
19530
19531           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19532           hardcode_libdir_separator_CXX=:
19533
19534           # Commands to make compiler produce verbose output that lists
19535           # what "hidden" libraries, object files and flags are used when
19536           # linking a shared library.
19537           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19538
19539         else
19540           # FIXME: insert proper C++ library support
19541           ld_shlibs_CXX=no
19542         fi
19543         ;;
19544     esac
19545     ;;
19546   psos*)
19547     # FIXME: insert proper C++ library support
19548     ld_shlibs_CXX=no
19549     ;;
19550   sunos4*)
19551     case $cc_basename in
19552       CC*)
19553         # Sun C++ 4.x
19554         # FIXME: insert proper C++ library support
19555         ld_shlibs_CXX=no
19556         ;;
19557       lcc*)
19558         # Lucid
19559         # FIXME: insert proper C++ library support
19560         ld_shlibs_CXX=no
19561         ;;
19562       *)
19563         # FIXME: insert proper C++ library support
19564         ld_shlibs_CXX=no
19565         ;;
19566     esac
19567     ;;
19568   solaris*)
19569     case $cc_basename in
19570       CC*)
19571         # Sun C++ 4.2, 5.x and Centerline C++
19572         archive_cmds_need_lc_CXX=yes
19573         no_undefined_flag_CXX=' -zdefs'
19574         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19575         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19576         $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'
19577
19578         hardcode_libdir_flag_spec_CXX='-R$libdir'
19579         hardcode_shlibpath_var_CXX=no
19580         case $host_os in
19581           solaris2.[0-5] | solaris2.[0-5].*) ;;
19582           *)
19583             # The C++ compiler is used as linker so we must use $wl
19584             # flag to pass the commands to the underlying system
19585             # linker. We must also pass each convience library through
19586             # to the system linker between allextract/defaultextract.
19587             # The C++ compiler will combine linker options so we
19588             # cannot just pass the convience library names through
19589             # without $wl.
19590             # Supported since Solaris 2.6 (maybe 2.5.1?)
19591             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'
19592             ;;
19593         esac
19594         link_all_deplibs_CXX=yes
19595
19596         output_verbose_link_cmd='echo'
19597
19598         # Archives containing C++ object files must be created using
19599         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19600         # necessary to make sure instantiated templates are included
19601         # in the archive.
19602         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19603         ;;
19604       gcx*)
19605         # Green Hills C++ Compiler
19606         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19607
19608         # The C++ compiler must be used to create the archive.
19609         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19610         ;;
19611       *)
19612         # GNU C++ compiler with Solaris linker
19613         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19614           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19615           if $CC --version | grep -v '^2\.7' > /dev/null; then
19616             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19617             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19618                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19619
19620             # Commands to make compiler produce verbose output that lists
19621             # what "hidden" libraries, object files and flags are used when
19622             # linking a shared library.
19623             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19624           else
19625             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19626             # platform.
19627             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19628             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19629                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19630
19631             # Commands to make compiler produce verbose output that lists
19632             # what "hidden" libraries, object files and flags are used when
19633             # linking a shared library.
19634             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19635           fi
19636
19637           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19638         fi
19639         ;;
19640     esac
19641     ;;
19642   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19643     no_undefined_flag_CXX='${wl}-z,text'
19644     archive_cmds_need_lc_CXX=no
19645     hardcode_shlibpath_var_CXX=no
19646     runpath_var='LD_RUN_PATH'
19647
19648     case $cc_basename in
19649       CC*)
19650         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19651         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19652         ;;
19653       *)
19654         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19655         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19656         ;;
19657     esac
19658     ;;
19659   sysv5* | sco3.2v5* | sco5v6*)
19660     # Note: We can NOT use -z defs as we might desire, because we do not
19661     # link with -lc, and that would cause any symbols used from libc to
19662     # always be unresolved, which means just about no library would
19663     # ever link correctly.  If we're not using GNU ld we use -z text
19664     # though, which does catch some bad symbols but isn't as heavy-handed
19665     # as -z defs.
19666     # For security reasons, it is highly recommended that you always
19667     # use absolute paths for naming shared libraries, and exclude the
19668     # DT_RUNPATH tag from executables and libraries.  But doing so
19669     # requires that you compile everything twice, which is a pain.
19670     # So that behaviour is only enabled if SCOABSPATH is set to a
19671     # non-empty value in the environment.  Most likely only useful for
19672     # creating official distributions of packages.
19673     # This is a hack until libtool officially supports absolute path
19674     # names for shared libraries.
19675     no_undefined_flag_CXX='${wl}-z,text'
19676     allow_undefined_flag_CXX='${wl}-z,nodefs'
19677     archive_cmds_need_lc_CXX=no
19678     hardcode_shlibpath_var_CXX=no
19679     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19680     hardcode_libdir_separator_CXX=':'
19681     link_all_deplibs_CXX=yes
19682     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19683     runpath_var='LD_RUN_PATH'
19684
19685     case $cc_basename in
19686       CC*)
19687         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19688         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19689         ;;
19690       *)
19691         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19692         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19693         ;;
19694     esac
19695     ;;
19696   tandem*)
19697     case $cc_basename in
19698       NCC*)
19699         # NonStop-UX NCC 3.20
19700         # FIXME: insert proper C++ library support
19701         ld_shlibs_CXX=no
19702         ;;
19703       *)
19704         # FIXME: insert proper C++ library support
19705         ld_shlibs_CXX=no
19706         ;;
19707     esac
19708     ;;
19709   vxworks*)
19710     # FIXME: insert proper C++ library support
19711     ld_shlibs_CXX=no
19712     ;;
19713   *)
19714     # FIXME: insert proper C++ library support
19715     ld_shlibs_CXX=no
19716     ;;
19717 esac
19718 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19719 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19720 test "$ld_shlibs_CXX" = no && can_build_shared=no
19721
19722 GCC_CXX="$GXX"
19723 LD_CXX="$LD"
19724
19725
19726 cat > conftest.$ac_ext <<EOF
19727 class Foo
19728 {
19729 public:
19730   Foo (void) { a = 0; }
19731 private:
19732   int a;
19733 };
19734 EOF
19735
19736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19737   (eval $ac_compile) 2>&5
19738   ac_status=$?
19739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740   (exit $ac_status); }; then
19741   # Parse the compiler output and extract the necessary
19742   # objects, libraries and library flags.
19743
19744   # Sentinel used to keep track of whether or not we are before
19745   # the conftest object file.
19746   pre_test_object_deps_done=no
19747
19748   # The `*' in the case matches for architectures that use `case' in
19749   # $output_verbose_cmd can trigger glob expansion during the loop
19750   # eval without this substitution.
19751   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19752
19753   for p in `eval $output_verbose_link_cmd`; do
19754     case $p in
19755
19756     -L* | -R* | -l*)
19757        # Some compilers place space between "-{L,R}" and the path.
19758        # Remove the space.
19759        if test $p = "-L" \
19760           || test $p = "-R"; then
19761          prev=$p
19762          continue
19763        else
19764          prev=
19765        fi
19766
19767        if test "$pre_test_object_deps_done" = no; then
19768          case $p in
19769          -L* | -R*)
19770            # Internal compiler library paths should come after those
19771            # provided the user.  The postdeps already come after the
19772            # user supplied libs so there is no need to process them.
19773            if test -z "$compiler_lib_search_path_CXX"; then
19774              compiler_lib_search_path_CXX="${prev}${p}"
19775            else
19776              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19777            fi
19778            ;;
19779          # The "-l" case would never come before the object being
19780          # linked, so don't bother handling this case.
19781          esac
19782        else
19783          if test -z "$postdeps_CXX"; then
19784            postdeps_CXX="${prev}${p}"
19785          else
19786            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19787          fi
19788        fi
19789        ;;
19790
19791     *.$objext)
19792        # This assumes that the test object file only shows up
19793        # once in the compiler output.
19794        if test "$p" = "conftest.$objext"; then
19795          pre_test_object_deps_done=yes
19796          continue
19797        fi
19798
19799        if test "$pre_test_object_deps_done" = no; then
19800          if test -z "$predep_objects_CXX"; then
19801            predep_objects_CXX="$p"
19802          else
19803            predep_objects_CXX="$predep_objects_CXX $p"
19804          fi
19805        else
19806          if test -z "$postdep_objects_CXX"; then
19807            postdep_objects_CXX="$p"
19808          else
19809            postdep_objects_CXX="$postdep_objects_CXX $p"
19810          fi
19811        fi
19812        ;;
19813
19814     *) ;; # Ignore the rest.
19815
19816     esac
19817   done
19818
19819   # Clean up.
19820   rm -f a.out a.exe
19821 else
19822   echo "libtool.m4: error: problem compiling CXX test program"
19823 fi
19824
19825 $rm -f confest.$objext
19826
19827 # PORTME: override above test on systems where it is broken
19828 case $host_os in
19829 interix3*)
19830   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19831   # hack all around it, let's just trust "g++" to DTRT.
19832   predep_objects_CXX=
19833   postdep_objects_CXX=
19834   postdeps_CXX=
19835   ;;
19836
19837 solaris*)
19838   case $cc_basename in
19839   CC*)
19840     # Adding this requires a known-good setup of shared libraries for
19841     # Sun compiler versions before 5.6, else PIC objects from an old
19842     # archive will be linked into the output, leading to subtle bugs.
19843     postdeps_CXX='-lCstd -lCrun'
19844     ;;
19845   esac
19846   ;;
19847 esac
19848
19849
19850 case " $postdeps_CXX " in
19851 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19852 esac
19853
19854 lt_prog_compiler_wl_CXX=
19855 lt_prog_compiler_pic_CXX=
19856 lt_prog_compiler_static_CXX=
19857
19858 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19859 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19860
19861   # C++ specific cases for pic, static, wl, etc.
19862   if test "$GXX" = yes; then
19863     lt_prog_compiler_wl_CXX='-Wl,'
19864     lt_prog_compiler_static_CXX='-static'
19865
19866     case $host_os in
19867     aix*)
19868       # All AIX code is PIC.
19869       if test "$host_cpu" = ia64; then
19870         # AIX 5 now supports IA64 processor
19871         lt_prog_compiler_static_CXX='-Bstatic'
19872       fi
19873       ;;
19874     amigaos*)
19875       # FIXME: we need at least 68020 code to build shared libraries, but
19876       # adding the `-m68020' flag to GCC prevents building anything better,
19877       # like `-m68040'.
19878       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19879       ;;
19880     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19881       # PIC is the default for these OSes.
19882       ;;
19883     mingw* | os2* | pw32*)
19884       # This hack is so that the source file can tell whether it is being
19885       # built for inclusion in a dll (and should export symbols for example).
19886       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19887       ;;
19888     darwin* | rhapsody*)
19889       # PIC is the default on this platform
19890       # Common symbols not allowed in MH_DYLIB files
19891       lt_prog_compiler_pic_CXX='-fno-common'
19892       ;;
19893     *djgpp*)
19894       # DJGPP does not support shared libraries at all
19895       lt_prog_compiler_pic_CXX=
19896       ;;
19897     interix3*)
19898       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19899       # Instead, we relocate shared libraries at runtime.
19900       ;;
19901     sysv4*MP*)
19902       if test -d /usr/nec; then
19903         lt_prog_compiler_pic_CXX=-Kconform_pic
19904       fi
19905       ;;
19906     hpux*)
19907       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19908       # not for PA HP-UX.
19909       case $host_cpu in
19910       hppa*64*|ia64*)
19911         ;;
19912       *)
19913         lt_prog_compiler_pic_CXX='-fPIC'
19914         ;;
19915       esac
19916       ;;
19917     *)
19918       lt_prog_compiler_pic_CXX='-fPIC'
19919       ;;
19920     esac
19921   else
19922     case $host_os in
19923       aix4* | aix5*)
19924         # All AIX code is PIC.
19925         if test "$host_cpu" = ia64; then
19926           # AIX 5 now supports IA64 processor
19927           lt_prog_compiler_static_CXX='-Bstatic'
19928         else
19929           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19930         fi
19931         ;;
19932       chorus*)
19933         case $cc_basename in
19934         cxch68*)
19935           # Green Hills C++ Compiler
19936           # _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"
19937           ;;
19938         esac
19939         ;;
19940        darwin*)
19941          # PIC is the default on this platform
19942          # Common symbols not allowed in MH_DYLIB files
19943          case $cc_basename in
19944            xlc*)
19945            lt_prog_compiler_pic_CXX='-qnocommon'
19946            lt_prog_compiler_wl_CXX='-Wl,'
19947            ;;
19948          esac
19949        ;;
19950       dgux*)
19951         case $cc_basename in
19952           ec++*)
19953             lt_prog_compiler_pic_CXX='-KPIC'
19954             ;;
19955           ghcx*)
19956             # Green Hills C++ Compiler
19957             lt_prog_compiler_pic_CXX='-pic'
19958             ;;
19959           *)
19960             ;;
19961         esac
19962         ;;
19963       freebsd* | kfreebsd*-gnu | dragonfly*)
19964         # FreeBSD uses GNU C++
19965         ;;
19966       hpux9* | hpux10* | hpux11*)
19967         case $cc_basename in
19968           CC*)
19969             lt_prog_compiler_wl_CXX='-Wl,'
19970             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19971             if test "$host_cpu" != ia64; then
19972               lt_prog_compiler_pic_CXX='+Z'
19973             fi
19974             ;;
19975           aCC*)
19976             lt_prog_compiler_wl_CXX='-Wl,'
19977             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19978             case $host_cpu in
19979             hppa*64*|ia64*)
19980               # +Z the default
19981               ;;
19982             *)
19983               lt_prog_compiler_pic_CXX='+Z'
19984               ;;
19985             esac
19986             ;;
19987           *)
19988             ;;
19989         esac
19990         ;;
19991       interix*)
19992         # This is c89, which is MS Visual C++ (no shared libs)
19993         # Anyone wants to do a port?
19994         ;;
19995       irix5* | irix6* | nonstopux*)
19996         case $cc_basename in
19997           CC*)
19998             lt_prog_compiler_wl_CXX='-Wl,'
19999             lt_prog_compiler_static_CXX='-non_shared'
20000             # CC pic flag -KPIC is the default.
20001             ;;
20002           *)
20003             ;;
20004         esac
20005         ;;
20006       linux*)
20007         case $cc_basename in
20008           KCC*)
20009             # KAI C++ Compiler
20010             lt_prog_compiler_wl_CXX='--backend -Wl,'
20011             lt_prog_compiler_pic_CXX='-fPIC'
20012             ;;
20013           icpc* | ecpc*)
20014             # Intel C++
20015             lt_prog_compiler_wl_CXX='-Wl,'
20016             lt_prog_compiler_pic_CXX='-KPIC'
20017             lt_prog_compiler_static_CXX='-static'
20018             ;;
20019           pgCC*)
20020             # Portland Group C++ compiler.
20021             lt_prog_compiler_wl_CXX='-Wl,'
20022             lt_prog_compiler_pic_CXX='-fpic'
20023             lt_prog_compiler_static_CXX='-Bstatic'
20024             ;;
20025           cxx*)
20026             # Compaq C++
20027             # Make sure the PIC flag is empty.  It appears that all Alpha
20028             # Linux and Compaq Tru64 Unix objects are PIC.
20029             lt_prog_compiler_pic_CXX=
20030             lt_prog_compiler_static_CXX='-non_shared'
20031             ;;
20032           *)
20033             ;;
20034         esac
20035         ;;
20036       lynxos*)
20037         ;;
20038       m88k*)
20039         ;;
20040       mvs*)
20041         case $cc_basename in
20042           cxx*)
20043             lt_prog_compiler_pic_CXX='-W c,exportall'
20044             ;;
20045           *)
20046             ;;
20047         esac
20048         ;;
20049       netbsd*)
20050         ;;
20051       osf3* | osf4* | osf5*)
20052         case $cc_basename in
20053           KCC*)
20054             lt_prog_compiler_wl_CXX='--backend -Wl,'
20055             ;;
20056           RCC*)
20057             # Rational C++ 2.4.1
20058             lt_prog_compiler_pic_CXX='-pic'
20059             ;;
20060           cxx*)
20061             # Digital/Compaq C++
20062             lt_prog_compiler_wl_CXX='-Wl,'
20063             # Make sure the PIC flag is empty.  It appears that all Alpha
20064             # Linux and Compaq Tru64 Unix objects are PIC.
20065             lt_prog_compiler_pic_CXX=
20066             lt_prog_compiler_static_CXX='-non_shared'
20067             ;;
20068           *)
20069             ;;
20070         esac
20071         ;;
20072       psos*)
20073         ;;
20074       solaris*)
20075         case $cc_basename in
20076           CC*)
20077             # Sun C++ 4.2, 5.x and Centerline C++
20078             lt_prog_compiler_pic_CXX='-KPIC'
20079             lt_prog_compiler_static_CXX='-Bstatic'
20080             lt_prog_compiler_wl_CXX='-Qoption ld '
20081             ;;
20082           gcx*)
20083             # Green Hills C++ Compiler
20084             lt_prog_compiler_pic_CXX='-PIC'
20085             ;;
20086           *)
20087             ;;
20088         esac
20089         ;;
20090       sunos4*)
20091         case $cc_basename in
20092           CC*)
20093             # Sun C++ 4.x
20094             lt_prog_compiler_pic_CXX='-pic'
20095             lt_prog_compiler_static_CXX='-Bstatic'
20096             ;;
20097           lcc*)
20098             # Lucid
20099             lt_prog_compiler_pic_CXX='-pic'
20100             ;;
20101           *)
20102             ;;
20103         esac
20104         ;;
20105       tandem*)
20106         case $cc_basename in
20107           NCC*)
20108             # NonStop-UX NCC 3.20
20109             lt_prog_compiler_pic_CXX='-KPIC'
20110             ;;
20111           *)
20112             ;;
20113         esac
20114         ;;
20115       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20116         case $cc_basename in
20117           CC*)
20118             lt_prog_compiler_wl_CXX='-Wl,'
20119             lt_prog_compiler_pic_CXX='-KPIC'
20120             lt_prog_compiler_static_CXX='-Bstatic'
20121             ;;
20122         esac
20123         ;;
20124       vxworks*)
20125         ;;
20126       *)
20127         lt_prog_compiler_can_build_shared_CXX=no
20128         ;;
20129     esac
20130   fi
20131
20132 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20133 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20134
20135 #
20136 # Check to make sure the PIC flag actually works.
20137 #
20138 if test -n "$lt_prog_compiler_pic_CXX"; then
20139
20140 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20141 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20142 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20143   echo $ECHO_N "(cached) $ECHO_C" >&6
20144 else
20145   lt_prog_compiler_pic_works_CXX=no
20146   ac_outfile=conftest.$ac_objext
20147    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20148    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20149    # Insert the option either (1) after the last *FLAGS variable, or
20150    # (2) before a word containing "conftest.", or (3) at the end.
20151    # Note that $ac_compile itself does not contain backslashes and begins
20152    # with a dollar sign (not a hyphen), so the echo should work correctly.
20153    # The option is referenced via a variable to avoid confusing sed.
20154    lt_compile=`echo "$ac_compile" | $SED \
20155    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20156    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20157    -e 's:$: $lt_compiler_flag:'`
20158    (eval echo "\"\$as_me:20158: $lt_compile\"" >&5)
20159    (eval "$lt_compile" 2>conftest.err)
20160    ac_status=$?
20161    cat conftest.err >&5
20162    echo "$as_me:20162: \$? = $ac_status" >&5
20163    if (exit $ac_status) && test -s "$ac_outfile"; then
20164      # The compiler can only warn and ignore the option if not recognized
20165      # So say no if there are warnings other than the usual output.
20166      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20167      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20168      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20169        lt_prog_compiler_pic_works_CXX=yes
20170      fi
20171    fi
20172    $rm conftest*
20173
20174 fi
20175 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20176 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20177
20178 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20179     case $lt_prog_compiler_pic_CXX in
20180      "" | " "*) ;;
20181      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20182      esac
20183 else
20184     lt_prog_compiler_pic_CXX=
20185      lt_prog_compiler_can_build_shared_CXX=no
20186 fi
20187
20188 fi
20189 case $host_os in
20190   # For platforms which do not support PIC, -DPIC is meaningless:
20191   *djgpp*)
20192     lt_prog_compiler_pic_CXX=
20193     ;;
20194   *)
20195     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20196     ;;
20197 esac
20198
20199 #
20200 # Check to make sure the static flag actually works.
20201 #
20202 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20203 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20204 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20205 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20206   echo $ECHO_N "(cached) $ECHO_C" >&6
20207 else
20208   lt_prog_compiler_static_works_CXX=no
20209    save_LDFLAGS="$LDFLAGS"
20210    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20211    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20212    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20213      # The linker can only warn and ignore the option if not recognized
20214      # So say no if there are warnings
20215      if test -s conftest.err; then
20216        # Append any errors to the config.log.
20217        cat conftest.err 1>&5
20218        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20219        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20220        if diff conftest.exp conftest.er2 >/dev/null; then
20221          lt_prog_compiler_static_works_CXX=yes
20222        fi
20223      else
20224        lt_prog_compiler_static_works_CXX=yes
20225      fi
20226    fi
20227    $rm conftest*
20228    LDFLAGS="$save_LDFLAGS"
20229
20230 fi
20231 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20232 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20233
20234 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20235     :
20236 else
20237     lt_prog_compiler_static_CXX=
20238 fi
20239
20240
20241 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20242 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20243 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20244   echo $ECHO_N "(cached) $ECHO_C" >&6
20245 else
20246   lt_cv_prog_compiler_c_o_CXX=no
20247    $rm -r conftest 2>/dev/null
20248    mkdir conftest
20249    cd conftest
20250    mkdir out
20251    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20252
20253    lt_compiler_flag="-o out/conftest2.$ac_objext"
20254    # Insert the option either (1) after the last *FLAGS variable, or
20255    # (2) before a word containing "conftest.", or (3) at the end.
20256    # Note that $ac_compile itself does not contain backslashes and begins
20257    # with a dollar sign (not a hyphen), so the echo should work correctly.
20258    lt_compile=`echo "$ac_compile" | $SED \
20259    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20260    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20261    -e 's:$: $lt_compiler_flag:'`
20262    (eval echo "\"\$as_me:20262: $lt_compile\"" >&5)
20263    (eval "$lt_compile" 2>out/conftest.err)
20264    ac_status=$?
20265    cat out/conftest.err >&5
20266    echo "$as_me:20266: \$? = $ac_status" >&5
20267    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20268    then
20269      # The compiler can only warn and ignore the option if not recognized
20270      # So say no if there are warnings
20271      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20272      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20273      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20274        lt_cv_prog_compiler_c_o_CXX=yes
20275      fi
20276    fi
20277    chmod u+w . 2>&5
20278    $rm conftest*
20279    # SGI C++ compiler will create directory out/ii_files/ for
20280    # template instantiation
20281    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20282    $rm out/* && rmdir out
20283    cd ..
20284    rmdir conftest
20285    $rm conftest*
20286
20287 fi
20288 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20289 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20290
20291
20292 hard_links="nottested"
20293 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20294   # do not overwrite the value of need_locks provided by the user
20295   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20296 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20297   hard_links=yes
20298   $rm conftest*
20299   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20300   touch conftest.a
20301   ln conftest.a conftest.b 2>&5 || hard_links=no
20302   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20303   { echo "$as_me:$LINENO: result: $hard_links" >&5
20304 echo "${ECHO_T}$hard_links" >&6; }
20305   if test "$hard_links" = no; then
20306     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20307 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20308     need_locks=warn
20309   fi
20310 else
20311   need_locks=no
20312 fi
20313
20314 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20315 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20316
20317   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20318   case $host_os in
20319   aix4* | aix5*)
20320     # If we're using GNU nm, then we don't want the "-C" option.
20321     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20322     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20323       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'
20324     else
20325       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'
20326     fi
20327     ;;
20328   pw32*)
20329     export_symbols_cmds_CXX="$ltdll_cmds"
20330   ;;
20331   cygwin* | mingw*)
20332     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'
20333   ;;
20334   *)
20335     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20336   ;;
20337   esac
20338
20339 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20340 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20341 test "$ld_shlibs_CXX" = no && can_build_shared=no
20342
20343 #
20344 # Do we need to explicitly link libc?
20345 #
20346 case "x$archive_cmds_need_lc_CXX" in
20347 x|xyes)
20348   # Assume -lc should be added
20349   archive_cmds_need_lc_CXX=yes
20350
20351   if test "$enable_shared" = yes && test "$GCC" = yes; then
20352     case $archive_cmds_CXX in
20353     *'~'*)
20354       # FIXME: we may have to deal with multi-command sequences.
20355       ;;
20356     '$CC '*)
20357       # Test whether the compiler implicitly links with -lc since on some
20358       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20359       # to ld, don't add -lc before -lgcc.
20360       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20361 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20362       $rm conftest*
20363       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20364
20365       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20366   (eval $ac_compile) 2>&5
20367   ac_status=$?
20368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); } 2>conftest.err; then
20370         soname=conftest
20371         lib=conftest
20372         libobjs=conftest.$ac_objext
20373         deplibs=
20374         wl=$lt_prog_compiler_wl_CXX
20375         pic_flag=$lt_prog_compiler_pic_CXX
20376         compiler_flags=-v
20377         linker_flags=-v
20378         verstring=
20379         output_objdir=.
20380         libname=conftest
20381         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20382         allow_undefined_flag_CXX=
20383         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20384   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20385   ac_status=$?
20386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387   (exit $ac_status); }
20388         then
20389           archive_cmds_need_lc_CXX=no
20390         else
20391           archive_cmds_need_lc_CXX=yes
20392         fi
20393         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20394       else
20395         cat conftest.err 1>&5
20396       fi
20397       $rm conftest*
20398       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20399 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20400       ;;
20401     esac
20402   fi
20403   ;;
20404 esac
20405
20406 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20407 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20408 library_names_spec=
20409 libname_spec='lib$name'
20410 soname_spec=
20411 shrext_cmds=".so"
20412 postinstall_cmds=
20413 postuninstall_cmds=
20414 finish_cmds=
20415 finish_eval=
20416 shlibpath_var=
20417 shlibpath_overrides_runpath=unknown
20418 version_type=none
20419 dynamic_linker="$host_os ld.so"
20420 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20421 if test "$GCC" = yes; then
20422   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20423   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20424     # if the path contains ";" then we assume it to be the separator
20425     # otherwise default to the standard path separator (i.e. ":") - it is
20426     # assumed that no part of a normal pathname contains ";" but that should
20427     # okay in the real world where ";" in dirpaths is itself problematic.
20428     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20429   else
20430     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20431   fi
20432 else
20433   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20434 fi
20435 need_lib_prefix=unknown
20436 hardcode_into_libs=no
20437
20438 # when you set need_version to no, make sure it does not cause -set_version
20439 # flags to be left without arguments
20440 need_version=unknown
20441
20442 case $host_os in
20443 aix3*)
20444   version_type=linux
20445   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20446   shlibpath_var=LIBPATH
20447
20448   # AIX 3 has no versioning support, so we append a major version to the name.
20449   soname_spec='${libname}${release}${shared_ext}$major'
20450   ;;
20451
20452 aix4* | aix5*)
20453   version_type=linux
20454   need_lib_prefix=no
20455   need_version=no
20456   hardcode_into_libs=yes
20457   if test "$host_cpu" = ia64; then
20458     # AIX 5 supports IA64
20459     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20460     shlibpath_var=LD_LIBRARY_PATH
20461   else
20462     # With GCC up to 2.95.x, collect2 would create an import file
20463     # for dependence libraries.  The import file would start with
20464     # the line `#! .'.  This would cause the generated library to
20465     # depend on `.', always an invalid library.  This was fixed in
20466     # development snapshots of GCC prior to 3.0.
20467     case $host_os in
20468       aix4 | aix4.[01] | aix4.[01].*)
20469       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20470            echo ' yes '
20471            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20472         :
20473       else
20474         can_build_shared=no
20475       fi
20476       ;;
20477     esac
20478     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20479     # soname into executable. Probably we can add versioning support to
20480     # collect2, so additional links can be useful in future.
20481     if test "$aix_use_runtimelinking" = yes; then
20482       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20483       # instead of lib<name>.a to let people know that these are not
20484       # typical AIX shared libraries.
20485       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20486     else
20487       # We preserve .a as extension for shared libraries through AIX4.2
20488       # and later when we are not doing run time linking.
20489       library_names_spec='${libname}${release}.a $libname.a'
20490       soname_spec='${libname}${release}${shared_ext}$major'
20491     fi
20492     shlibpath_var=LIBPATH
20493   fi
20494   ;;
20495
20496 amigaos*)
20497   library_names_spec='$libname.ixlibrary $libname.a'
20498   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20499   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'
20500   ;;
20501
20502 beos*)
20503   library_names_spec='${libname}${shared_ext}'
20504   dynamic_linker="$host_os ld.so"
20505   shlibpath_var=LIBRARY_PATH
20506   ;;
20507
20508 bsdi[45]*)
20509   version_type=linux
20510   need_version=no
20511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20512   soname_spec='${libname}${release}${shared_ext}$major'
20513   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20514   shlibpath_var=LD_LIBRARY_PATH
20515   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20516   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20517   # the default ld.so.conf also contains /usr/contrib/lib and
20518   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20519   # libtool to hard-code these into programs
20520   ;;
20521
20522 cygwin* | mingw* | pw32*)
20523   version_type=windows
20524   shrext_cmds=".dll"
20525   need_version=no
20526   need_lib_prefix=no
20527
20528   case $GCC,$host_os in
20529   yes,cygwin* | yes,mingw* | yes,pw32*)
20530     library_names_spec='$libname.dll.a'
20531     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20532     postinstall_cmds='base_file=`basename \${file}`~
20533       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20534       dldir=$destdir/`dirname \$dlpath`~
20535       test -d \$dldir || mkdir -p \$dldir~
20536       $install_prog $dir/$dlname \$dldir/$dlname~
20537       chmod a+x \$dldir/$dlname'
20538     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20539       dlpath=$dir/\$dldll~
20540        $rm \$dlpath'
20541     shlibpath_overrides_runpath=yes
20542
20543     case $host_os in
20544     cygwin*)
20545       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20546       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20547       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20548       ;;
20549     mingw*)
20550       # MinGW DLLs use traditional 'lib' prefix
20551       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20552       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20553       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20554         # It is most probably a Windows format PATH printed by
20555         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20556         # path with ; separators, and with drive letters. We can handle the
20557         # drive letters (cygwin fileutils understands them), so leave them,
20558         # especially as we might pass files found there to a mingw objdump,
20559         # which wouldn't understand a cygwinified path. Ahh.
20560         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20561       else
20562         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20563       fi
20564       ;;
20565     pw32*)
20566       # pw32 DLLs use 'pw' prefix rather than 'lib'
20567       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20568       ;;
20569     esac
20570     ;;
20571
20572   *)
20573     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20574     ;;
20575   esac
20576   dynamic_linker='Win32 ld.exe'
20577   # FIXME: first we should search . and the directory the executable is in
20578   shlibpath_var=PATH
20579   ;;
20580
20581 darwin* | rhapsody*)
20582   dynamic_linker="$host_os dyld"
20583   version_type=darwin
20584   need_lib_prefix=no
20585   need_version=no
20586   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20587   soname_spec='${libname}${release}${major}$shared_ext'
20588   shlibpath_overrides_runpath=yes
20589   shlibpath_var=DYLD_LIBRARY_PATH
20590   shrext_cmds='.dylib'
20591   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20592   if test "$GCC" = yes; then
20593     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"`
20594   else
20595     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20596   fi
20597   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20598   ;;
20599
20600 dgux*)
20601   version_type=linux
20602   need_lib_prefix=no
20603   need_version=no
20604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20605   soname_spec='${libname}${release}${shared_ext}$major'
20606   shlibpath_var=LD_LIBRARY_PATH
20607   ;;
20608
20609 freebsd1*)
20610   dynamic_linker=no
20611   ;;
20612
20613 kfreebsd*-gnu)
20614   version_type=linux
20615   need_lib_prefix=no
20616   need_version=no
20617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20618   soname_spec='${libname}${release}${shared_ext}$major'
20619   shlibpath_var=LD_LIBRARY_PATH
20620   shlibpath_overrides_runpath=no
20621   hardcode_into_libs=yes
20622   dynamic_linker='GNU ld.so'
20623   ;;
20624
20625 freebsd* | dragonfly*)
20626   # DragonFly does not have aout.  When/if they implement a new
20627   # versioning mechanism, adjust this.
20628   if test -x /usr/bin/objformat; then
20629     objformat=`/usr/bin/objformat`
20630   else
20631     case $host_os in
20632     freebsd[123]*) objformat=aout ;;
20633     *) objformat=elf ;;
20634     esac
20635   fi
20636   version_type=freebsd-$objformat
20637   case $version_type in
20638     freebsd-elf*)
20639       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20640       need_version=no
20641       need_lib_prefix=no
20642       ;;
20643     freebsd-*)
20644       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20645       need_version=yes
20646       ;;
20647   esac
20648   shlibpath_var=LD_LIBRARY_PATH
20649   case $host_os in
20650   freebsd2*)
20651     shlibpath_overrides_runpath=yes
20652     ;;
20653   freebsd3.[01]* | freebsdelf3.[01]*)
20654     shlibpath_overrides_runpath=yes
20655     hardcode_into_libs=yes
20656     ;;
20657   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20658   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20659     shlibpath_overrides_runpath=no
20660     hardcode_into_libs=yes
20661     ;;
20662   freebsd*) # from 4.6 on
20663     shlibpath_overrides_runpath=yes
20664     hardcode_into_libs=yes
20665     ;;
20666   esac
20667   ;;
20668
20669 gnu*)
20670   version_type=linux
20671   need_lib_prefix=no
20672   need_version=no
20673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20674   soname_spec='${libname}${release}${shared_ext}$major'
20675   shlibpath_var=LD_LIBRARY_PATH
20676   hardcode_into_libs=yes
20677   ;;
20678
20679 hpux9* | hpux10* | hpux11*)
20680   # Give a soname corresponding to the major version so that dld.sl refuses to
20681   # link against other versions.
20682   version_type=sunos
20683   need_lib_prefix=no
20684   need_version=no
20685   case $host_cpu in
20686   ia64*)
20687     shrext_cmds='.so'
20688     hardcode_into_libs=yes
20689     dynamic_linker="$host_os dld.so"
20690     shlibpath_var=LD_LIBRARY_PATH
20691     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20692     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20693     soname_spec='${libname}${release}${shared_ext}$major'
20694     if test "X$HPUX_IA64_MODE" = X32; then
20695       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20696     else
20697       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20698     fi
20699     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20700     ;;
20701    hppa*64*)
20702      shrext_cmds='.sl'
20703      hardcode_into_libs=yes
20704      dynamic_linker="$host_os dld.sl"
20705      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20706      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20707      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20708      soname_spec='${libname}${release}${shared_ext}$major'
20709      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20710      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20711      ;;
20712    *)
20713     shrext_cmds='.sl'
20714     dynamic_linker="$host_os dld.sl"
20715     shlibpath_var=SHLIB_PATH
20716     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20717     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20718     soname_spec='${libname}${release}${shared_ext}$major'
20719     ;;
20720   esac
20721   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20722   postinstall_cmds='chmod 555 $lib'
20723   ;;
20724
20725 interix3*)
20726   version_type=linux
20727   need_lib_prefix=no
20728   need_version=no
20729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20730   soname_spec='${libname}${release}${shared_ext}$major'
20731   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20732   shlibpath_var=LD_LIBRARY_PATH
20733   shlibpath_overrides_runpath=no
20734   hardcode_into_libs=yes
20735   ;;
20736
20737 irix5* | irix6* | nonstopux*)
20738   case $host_os in
20739     nonstopux*) version_type=nonstopux ;;
20740     *)
20741         if test "$lt_cv_prog_gnu_ld" = yes; then
20742                 version_type=linux
20743         else
20744                 version_type=irix
20745         fi ;;
20746   esac
20747   need_lib_prefix=no
20748   need_version=no
20749   soname_spec='${libname}${release}${shared_ext}$major'
20750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20751   case $host_os in
20752   irix5* | nonstopux*)
20753     libsuff= shlibsuff=
20754     ;;
20755   *)
20756     case $LD in # libtool.m4 will add one of these switches to LD
20757     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20758       libsuff= shlibsuff= libmagic=32-bit;;
20759     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20760       libsuff=32 shlibsuff=N32 libmagic=N32;;
20761     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20762       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20763     *) libsuff= shlibsuff= libmagic=never-match;;
20764     esac
20765     ;;
20766   esac
20767   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20768   shlibpath_overrides_runpath=no
20769   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20770   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20771   hardcode_into_libs=yes
20772   ;;
20773
20774 # No shared lib support for Linux oldld, aout, or coff.
20775 linux*oldld* | linux*aout* | linux*coff*)
20776   dynamic_linker=no
20777   ;;
20778
20779 # This must be Linux ELF.
20780 linux*)
20781   version_type=linux
20782   need_lib_prefix=no
20783   need_version=no
20784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20785   soname_spec='${libname}${release}${shared_ext}$major'
20786   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20787   shlibpath_var=LD_LIBRARY_PATH
20788   shlibpath_overrides_runpath=no
20789   # This implies no fast_install, which is unacceptable.
20790   # Some rework will be needed to allow for fast_install
20791   # before this can be enabled.
20792   hardcode_into_libs=yes
20793
20794   # Append ld.so.conf contents to the search path
20795   if test -f /etc/ld.so.conf; then
20796     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' ' '`
20797     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20798   fi
20799
20800   # We used to test for /lib/ld.so.1 and disable shared libraries on
20801   # powerpc, because MkLinux only supported shared libraries with the
20802   # GNU dynamic linker.  Since this was broken with cross compilers,
20803   # most powerpc-linux boxes support dynamic linking these days and
20804   # people can always --disable-shared, the test was removed, and we
20805   # assume the GNU/Linux dynamic linker is in use.
20806   dynamic_linker='GNU/Linux ld.so'
20807   ;;
20808
20809 knetbsd*-gnu)
20810   version_type=linux
20811   need_lib_prefix=no
20812   need_version=no
20813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20814   soname_spec='${libname}${release}${shared_ext}$major'
20815   shlibpath_var=LD_LIBRARY_PATH
20816   shlibpath_overrides_runpath=no
20817   hardcode_into_libs=yes
20818   dynamic_linker='GNU ld.so'
20819   ;;
20820
20821 netbsd*)
20822   version_type=sunos
20823   need_lib_prefix=no
20824   need_version=no
20825   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20826     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20827     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20828     dynamic_linker='NetBSD (a.out) ld.so'
20829   else
20830     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20831     soname_spec='${libname}${release}${shared_ext}$major'
20832     dynamic_linker='NetBSD ld.elf_so'
20833   fi
20834   shlibpath_var=LD_LIBRARY_PATH
20835   shlibpath_overrides_runpath=yes
20836   hardcode_into_libs=yes
20837   ;;
20838
20839 newsos6)
20840   version_type=linux
20841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20842   shlibpath_var=LD_LIBRARY_PATH
20843   shlibpath_overrides_runpath=yes
20844   ;;
20845
20846 nto-qnx*)
20847   version_type=linux
20848   need_lib_prefix=no
20849   need_version=no
20850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20851   soname_spec='${libname}${release}${shared_ext}$major'
20852   shlibpath_var=LD_LIBRARY_PATH
20853   shlibpath_overrides_runpath=yes
20854   ;;
20855
20856 openbsd*)
20857   version_type=sunos
20858   sys_lib_dlsearch_path_spec="/usr/lib"
20859   need_lib_prefix=no
20860   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20861   case $host_os in
20862     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20863     *)                         need_version=no  ;;
20864   esac
20865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20866   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20867   shlibpath_var=LD_LIBRARY_PATH
20868   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20869     case $host_os in
20870       openbsd2.[89] | openbsd2.[89].*)
20871         shlibpath_overrides_runpath=no
20872         ;;
20873       *)
20874         shlibpath_overrides_runpath=yes
20875         ;;
20876       esac
20877   else
20878     shlibpath_overrides_runpath=yes
20879   fi
20880   ;;
20881
20882 os2*)
20883   libname_spec='$name'
20884   shrext_cmds=".dll"
20885   need_lib_prefix=no
20886   library_names_spec='$libname${shared_ext} $libname.a'
20887   dynamic_linker='OS/2 ld.exe'
20888   shlibpath_var=LIBPATH
20889   ;;
20890
20891 osf3* | osf4* | osf5*)
20892   version_type=osf
20893   need_lib_prefix=no
20894   need_version=no
20895   soname_spec='${libname}${release}${shared_ext}$major'
20896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20897   shlibpath_var=LD_LIBRARY_PATH
20898   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20899   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20900   ;;
20901
20902 solaris*)
20903   version_type=linux
20904   need_lib_prefix=no
20905   need_version=no
20906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20907   soname_spec='${libname}${release}${shared_ext}$major'
20908   shlibpath_var=LD_LIBRARY_PATH
20909   shlibpath_overrides_runpath=yes
20910   hardcode_into_libs=yes
20911   # ldd complains unless libraries are executable
20912   postinstall_cmds='chmod +x $lib'
20913   ;;
20914
20915 sunos4*)
20916   version_type=sunos
20917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20918   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20919   shlibpath_var=LD_LIBRARY_PATH
20920   shlibpath_overrides_runpath=yes
20921   if test "$with_gnu_ld" = yes; then
20922     need_lib_prefix=no
20923   fi
20924   need_version=yes
20925   ;;
20926
20927 sysv4 | sysv4.3*)
20928   version_type=linux
20929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20930   soname_spec='${libname}${release}${shared_ext}$major'
20931   shlibpath_var=LD_LIBRARY_PATH
20932   case $host_vendor in
20933     sni)
20934       shlibpath_overrides_runpath=no
20935       need_lib_prefix=no
20936       export_dynamic_flag_spec='${wl}-Blargedynsym'
20937       runpath_var=LD_RUN_PATH
20938       ;;
20939     siemens)
20940       need_lib_prefix=no
20941       ;;
20942     motorola)
20943       need_lib_prefix=no
20944       need_version=no
20945       shlibpath_overrides_runpath=no
20946       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20947       ;;
20948   esac
20949   ;;
20950
20951 sysv4*MP*)
20952   if test -d /usr/nec ;then
20953     version_type=linux
20954     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20955     soname_spec='$libname${shared_ext}.$major'
20956     shlibpath_var=LD_LIBRARY_PATH
20957   fi
20958   ;;
20959
20960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20961   version_type=freebsd-elf
20962   need_lib_prefix=no
20963   need_version=no
20964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20965   soname_spec='${libname}${release}${shared_ext}$major'
20966   shlibpath_var=LD_LIBRARY_PATH
20967   hardcode_into_libs=yes
20968   if test "$with_gnu_ld" = yes; then
20969     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20970     shlibpath_overrides_runpath=no
20971   else
20972     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20973     shlibpath_overrides_runpath=yes
20974     case $host_os in
20975       sco3.2v5*)
20976         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20977         ;;
20978     esac
20979   fi
20980   sys_lib_dlsearch_path_spec='/usr/lib'
20981   ;;
20982
20983 uts4*)
20984   version_type=linux
20985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20986   soname_spec='${libname}${release}${shared_ext}$major'
20987   shlibpath_var=LD_LIBRARY_PATH
20988   ;;
20989
20990 *)
20991   dynamic_linker=no
20992   ;;
20993 esac
20994 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20995 echo "${ECHO_T}$dynamic_linker" >&6; }
20996 test "$dynamic_linker" = no && can_build_shared=no
20997
20998 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20999 if test "$GCC" = yes; then
21000   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21001 fi
21002
21003 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21004 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21005 hardcode_action_CXX=
21006 if test -n "$hardcode_libdir_flag_spec_CXX" || \
21007    test -n "$runpath_var_CXX" || \
21008    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21009
21010   # We can hardcode non-existant directories.
21011   if test "$hardcode_direct_CXX" != no &&
21012      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21013      # have to relink, otherwise we might link with an installed library
21014      # when we should be linking with a yet-to-be-installed one
21015      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21016      test "$hardcode_minus_L_CXX" != no; then
21017     # Linking always hardcodes the temporary library directory.
21018     hardcode_action_CXX=relink
21019   else
21020     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21021     hardcode_action_CXX=immediate
21022   fi
21023 else
21024   # We cannot hardcode anything, or else we can only hardcode existing
21025   # directories.
21026   hardcode_action_CXX=unsupported
21027 fi
21028 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21029 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21030
21031 if test "$hardcode_action_CXX" = relink; then
21032   # Fast installation is not supported
21033   enable_fast_install=no
21034 elif test "$shlibpath_overrides_runpath" = yes ||
21035      test "$enable_shared" = no; then
21036   # Fast installation is not necessary
21037   enable_fast_install=needless
21038 fi
21039
21040
21041 # The else clause should only fire when bootstrapping the
21042 # libtool distribution, otherwise you forgot to ship ltmain.sh
21043 # with your package, and you will get complaints that there are
21044 # no rules to generate ltmain.sh.
21045 if test -f "$ltmain"; then
21046   # See if we are running on zsh, and set the options which allow our commands through
21047   # without removal of \ escapes.
21048   if test -n "${ZSH_VERSION+set}" ; then
21049     setopt NO_GLOB_SUBST
21050   fi
21051   # Now quote all the things that may contain metacharacters while being
21052   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21053   # variables and quote the copies for generation of the libtool script.
21054   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21055     SED SHELL STRIP \
21056     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21057     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21058     deplibs_check_method reload_flag reload_cmds need_locks \
21059     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21060     lt_cv_sys_global_symbol_to_c_name_address \
21061     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21062     old_postinstall_cmds old_postuninstall_cmds \
21063     compiler_CXX \
21064     CC_CXX \
21065     LD_CXX \
21066     lt_prog_compiler_wl_CXX \
21067     lt_prog_compiler_pic_CXX \
21068     lt_prog_compiler_static_CXX \
21069     lt_prog_compiler_no_builtin_flag_CXX \
21070     export_dynamic_flag_spec_CXX \
21071     thread_safe_flag_spec_CXX \
21072     whole_archive_flag_spec_CXX \
21073     enable_shared_with_static_runtimes_CXX \
21074     old_archive_cmds_CXX \
21075     old_archive_from_new_cmds_CXX \
21076     predep_objects_CXX \
21077     postdep_objects_CXX \
21078     predeps_CXX \
21079     postdeps_CXX \
21080     compiler_lib_search_path_CXX \
21081     archive_cmds_CXX \
21082     archive_expsym_cmds_CXX \
21083     postinstall_cmds_CXX \
21084     postuninstall_cmds_CXX \
21085     old_archive_from_expsyms_cmds_CXX \
21086     allow_undefined_flag_CXX \
21087     no_undefined_flag_CXX \
21088     export_symbols_cmds_CXX \
21089     hardcode_libdir_flag_spec_CXX \
21090     hardcode_libdir_flag_spec_ld_CXX \
21091     hardcode_libdir_separator_CXX \
21092     hardcode_automatic_CXX \
21093     module_cmds_CXX \
21094     module_expsym_cmds_CXX \
21095     lt_cv_prog_compiler_c_o_CXX \
21096     exclude_expsyms_CXX \
21097     include_expsyms_CXX; do
21098
21099     case $var in
21100     old_archive_cmds_CXX | \
21101     old_archive_from_new_cmds_CXX | \
21102     archive_cmds_CXX | \
21103     archive_expsym_cmds_CXX | \
21104     module_cmds_CXX | \
21105     module_expsym_cmds_CXX | \
21106     old_archive_from_expsyms_cmds_CXX | \
21107     export_symbols_cmds_CXX | \
21108     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21109     postinstall_cmds | postuninstall_cmds | \
21110     old_postinstall_cmds | old_postuninstall_cmds | \
21111     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21112       # Double-quote double-evaled strings.
21113       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21114       ;;
21115     *)
21116       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21117       ;;
21118     esac
21119   done
21120
21121   case $lt_echo in
21122   *'\$0 --fallback-echo"')
21123     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21124     ;;
21125   esac
21126
21127 cfgfile="$ofile"
21128
21129   cat <<__EOF__ >> "$cfgfile"
21130 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21131
21132 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21133
21134 # Shell to use when invoking shell scripts.
21135 SHELL=$lt_SHELL
21136
21137 # Whether or not to build shared libraries.
21138 build_libtool_libs=$enable_shared
21139
21140 # Whether or not to build static libraries.
21141 build_old_libs=$enable_static
21142
21143 # Whether or not to add -lc for building shared libraries.
21144 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21145
21146 # Whether or not to disallow shared libs when runtime libs are static
21147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21148
21149 # Whether or not to optimize for fast installation.
21150 fast_install=$enable_fast_install
21151
21152 # The host system.
21153 host_alias=$host_alias
21154 host=$host
21155 host_os=$host_os
21156
21157 # The build system.
21158 build_alias=$build_alias
21159 build=$build
21160 build_os=$build_os
21161
21162 # An echo program that does not interpret backslashes.
21163 echo=$lt_echo
21164
21165 # The archiver.
21166 AR=$lt_AR
21167 AR_FLAGS=$lt_AR_FLAGS
21168
21169 # A C compiler.
21170 LTCC=$lt_LTCC
21171
21172 # LTCC compiler flags.
21173 LTCFLAGS=$lt_LTCFLAGS
21174
21175 # A language-specific compiler.
21176 CC=$lt_compiler_CXX
21177
21178 # Is the compiler the GNU C compiler?
21179 with_gcc=$GCC_CXX
21180
21181 # An ERE matcher.
21182 EGREP=$lt_EGREP
21183
21184 # The linker used to build libraries.
21185 LD=$lt_LD_CXX
21186
21187 # Whether we need hard or soft links.
21188 LN_S=$lt_LN_S
21189
21190 # A BSD-compatible nm program.
21191 NM=$lt_NM
21192
21193 # A symbol stripping program
21194 STRIP=$lt_STRIP
21195
21196 # Used to examine libraries when file_magic_cmd begins "file"
21197 MAGIC_CMD=$MAGIC_CMD
21198
21199 # Used on cygwin: DLL creation program.
21200 DLLTOOL="$DLLTOOL"
21201
21202 # Used on cygwin: object dumper.
21203 OBJDUMP="$OBJDUMP"
21204
21205 # Used on cygwin: assembler.
21206 AS="$AS"
21207
21208 # The name of the directory that contains temporary libtool files.
21209 objdir=$objdir
21210
21211 # How to create reloadable object files.
21212 reload_flag=$lt_reload_flag
21213 reload_cmds=$lt_reload_cmds
21214
21215 # How to pass a linker flag through the compiler.
21216 wl=$lt_lt_prog_compiler_wl_CXX
21217
21218 # Object file suffix (normally "o").
21219 objext="$ac_objext"
21220
21221 # Old archive suffix (normally "a").
21222 libext="$libext"
21223
21224 # Shared library suffix (normally ".so").
21225 shrext_cmds='$shrext_cmds'
21226
21227 # Executable file suffix (normally "").
21228 exeext="$exeext"
21229
21230 # Additional compiler flags for building library objects.
21231 pic_flag=$lt_lt_prog_compiler_pic_CXX
21232 pic_mode=$pic_mode
21233
21234 # What is the maximum length of a command?
21235 max_cmd_len=$lt_cv_sys_max_cmd_len
21236
21237 # Does compiler simultaneously support -c and -o options?
21238 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21239
21240 # Must we lock files when doing compilation?
21241 need_locks=$lt_need_locks
21242
21243 # Do we need the lib prefix for modules?
21244 need_lib_prefix=$need_lib_prefix
21245
21246 # Do we need a version for libraries?
21247 need_version=$need_version
21248
21249 # Whether dlopen is supported.
21250 dlopen_support=$enable_dlopen
21251
21252 # Whether dlopen of programs is supported.
21253 dlopen_self=$enable_dlopen_self
21254
21255 # Whether dlopen of statically linked programs is supported.
21256 dlopen_self_static=$enable_dlopen_self_static
21257
21258 # Compiler flag to prevent dynamic linking.
21259 link_static_flag=$lt_lt_prog_compiler_static_CXX
21260
21261 # Compiler flag to turn off builtin functions.
21262 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21263
21264 # Compiler flag to allow reflexive dlopens.
21265 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21266
21267 # Compiler flag to generate shared objects directly from archives.
21268 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21269
21270 # Compiler flag to generate thread-safe objects.
21271 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21272
21273 # Library versioning type.
21274 version_type=$version_type
21275
21276 # Format of library name prefix.
21277 libname_spec=$lt_libname_spec
21278
21279 # List of archive names.  First name is the real one, the rest are links.
21280 # The last name is the one that the linker finds with -lNAME.
21281 library_names_spec=$lt_library_names_spec
21282
21283 # The coded name of the library, if different from the real name.
21284 soname_spec=$lt_soname_spec
21285
21286 # Commands used to build and install an old-style archive.
21287 RANLIB=$lt_RANLIB
21288 old_archive_cmds=$lt_old_archive_cmds_CXX
21289 old_postinstall_cmds=$lt_old_postinstall_cmds
21290 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21291
21292 # Create an old-style archive from a shared archive.
21293 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21294
21295 # Create a temporary old-style archive to link instead of a shared archive.
21296 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21297
21298 # Commands used to build and install a shared archive.
21299 archive_cmds=$lt_archive_cmds_CXX
21300 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21301 postinstall_cmds=$lt_postinstall_cmds
21302 postuninstall_cmds=$lt_postuninstall_cmds
21303
21304 # Commands used to build a loadable module (assumed same as above if empty)
21305 module_cmds=$lt_module_cmds_CXX
21306 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21307
21308 # Commands to strip libraries.
21309 old_striplib=$lt_old_striplib
21310 striplib=$lt_striplib
21311
21312 # Dependencies to place before the objects being linked to create a
21313 # shared library.
21314 predep_objects=$lt_predep_objects_CXX
21315
21316 # Dependencies to place after the objects being linked to create a
21317 # shared library.
21318 postdep_objects=$lt_postdep_objects_CXX
21319
21320 # Dependencies to place before the objects being linked to create a
21321 # shared library.
21322 predeps=$lt_predeps_CXX
21323
21324 # Dependencies to place after the objects being linked to create a
21325 # shared library.
21326 postdeps=$lt_postdeps_CXX
21327
21328 # The library search path used internally by the compiler when linking
21329 # a shared library.
21330 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21331
21332 # Method to check whether dependent libraries are shared objects.
21333 deplibs_check_method=$lt_deplibs_check_method
21334
21335 # Command to use when deplibs_check_method == file_magic.
21336 file_magic_cmd=$lt_file_magic_cmd
21337
21338 # Flag that allows shared libraries with undefined symbols to be built.
21339 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21340
21341 # Flag that forces no undefined symbols.
21342 no_undefined_flag=$lt_no_undefined_flag_CXX
21343
21344 # Commands used to finish a libtool library installation in a directory.
21345 finish_cmds=$lt_finish_cmds
21346
21347 # Same as above, but a single script fragment to be evaled but not shown.
21348 finish_eval=$lt_finish_eval
21349
21350 # Take the output of nm and produce a listing of raw symbols and C names.
21351 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21352
21353 # Transform the output of nm in a proper C declaration
21354 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21355
21356 # Transform the output of nm in a C name address pair
21357 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21358
21359 # This is the shared library runtime path variable.
21360 runpath_var=$runpath_var
21361
21362 # This is the shared library path variable.
21363 shlibpath_var=$shlibpath_var
21364
21365 # Is shlibpath searched before the hard-coded library search path?
21366 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21367
21368 # How to hardcode a shared library path into an executable.
21369 hardcode_action=$hardcode_action_CXX
21370
21371 # Whether we should hardcode library paths into libraries.
21372 hardcode_into_libs=$hardcode_into_libs
21373
21374 # Flag to hardcode \$libdir into a binary during linking.
21375 # This must work even if \$libdir does not exist.
21376 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21377
21378 # If ld is used when linking, flag to hardcode \$libdir into
21379 # a binary during linking. This must work even if \$libdir does
21380 # not exist.
21381 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21382
21383 # Whether we need a single -rpath flag with a separated argument.
21384 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21385
21386 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21387 # resulting binary.
21388 hardcode_direct=$hardcode_direct_CXX
21389
21390 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21391 # resulting binary.
21392 hardcode_minus_L=$hardcode_minus_L_CXX
21393
21394 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21395 # the resulting binary.
21396 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21397
21398 # Set to yes if building a shared library automatically hardcodes DIR into the library
21399 # and all subsequent libraries and executables linked against it.
21400 hardcode_automatic=$hardcode_automatic_CXX
21401
21402 # Variables whose values should be saved in libtool wrapper scripts and
21403 # restored at relink time.
21404 variables_saved_for_relink="$variables_saved_for_relink"
21405
21406 # Whether libtool must link a program against all its dependency libraries.
21407 link_all_deplibs=$link_all_deplibs_CXX
21408
21409 # Compile-time system search path for libraries
21410 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21411
21412 # Run-time system search path for libraries
21413 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21414
21415 # Fix the shell variable \$srcfile for the compiler.
21416 fix_srcfile_path="$fix_srcfile_path_CXX"
21417
21418 # Set to yes if exported symbols are required.
21419 always_export_symbols=$always_export_symbols_CXX
21420
21421 # The commands to list exported symbols.
21422 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21423
21424 # The commands to extract the exported symbol list from a shared archive.
21425 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21426
21427 # Symbols that should not be listed in the preloaded symbols.
21428 exclude_expsyms=$lt_exclude_expsyms_CXX
21429
21430 # Symbols that must always be exported.
21431 include_expsyms=$lt_include_expsyms_CXX
21432
21433 # ### END LIBTOOL TAG CONFIG: $tagname
21434
21435 __EOF__
21436
21437
21438 else
21439   # If there is no Makefile yet, we rely on a make rule to execute
21440   # `config.status --recheck' to rerun these tests and create the
21441   # libtool script then.
21442   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21443   if test -f "$ltmain_in"; then
21444     test -f Makefile && make "$ltmain"
21445   fi
21446 fi
21447
21448
21449 ac_ext=c
21450 ac_cpp='$CPP $CPPFLAGS'
21451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21454
21455 CC=$lt_save_CC
21456 LDCXX=$LD
21457 LD=$lt_save_LD
21458 GCC=$lt_save_GCC
21459 with_gnu_ldcxx=$with_gnu_ld
21460 with_gnu_ld=$lt_save_with_gnu_ld
21461 lt_cv_path_LDCXX=$lt_cv_path_LD
21462 lt_cv_path_LD=$lt_save_path_LD
21463 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21464 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21465
21466         else
21467           tagname=""
21468         fi
21469         ;;
21470
21471       F77)
21472         if test -n "$F77" && test "X$F77" != "Xno"; then
21473
21474 ac_ext=f
21475 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21476 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21477 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21478
21479
21480 archive_cmds_need_lc_F77=no
21481 allow_undefined_flag_F77=
21482 always_export_symbols_F77=no
21483 archive_expsym_cmds_F77=
21484 export_dynamic_flag_spec_F77=
21485 hardcode_direct_F77=no
21486 hardcode_libdir_flag_spec_F77=
21487 hardcode_libdir_flag_spec_ld_F77=
21488 hardcode_libdir_separator_F77=
21489 hardcode_minus_L_F77=no
21490 hardcode_automatic_F77=no
21491 module_cmds_F77=
21492 module_expsym_cmds_F77=
21493 link_all_deplibs_F77=unknown
21494 old_archive_cmds_F77=$old_archive_cmds
21495 no_undefined_flag_F77=
21496 whole_archive_flag_spec_F77=
21497 enable_shared_with_static_runtimes_F77=no
21498
21499 # Source file extension for f77 test sources.
21500 ac_ext=f
21501
21502 # Object file extension for compiled f77 test sources.
21503 objext=o
21504 objext_F77=$objext
21505
21506 # Code to be used in simple compile tests
21507 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21508
21509 # Code to be used in simple link tests
21510 lt_simple_link_test_code="      program t\n      end\n"
21511
21512 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21513
21514 # If no C compiler was specified, use CC.
21515 LTCC=${LTCC-"$CC"}
21516
21517 # If no C compiler flags were specified, use CFLAGS.
21518 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21519
21520 # Allow CC to be a program name with arguments.
21521 compiler=$CC
21522
21523
21524 # save warnings/boilerplate of simple test code
21525 ac_outfile=conftest.$ac_objext
21526 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21527 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21528 _lt_compiler_boilerplate=`cat conftest.err`
21529 $rm conftest*
21530
21531 ac_outfile=conftest.$ac_objext
21532 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21533 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21534 _lt_linker_boilerplate=`cat conftest.err`
21535 $rm conftest*
21536
21537
21538 # Allow CC to be a program name with arguments.
21539 lt_save_CC="$CC"
21540 CC=${F77-"f77"}
21541 compiler=$CC
21542 compiler_F77=$CC
21543 for cc_temp in $compiler""; do
21544   case $cc_temp in
21545     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21546     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21547     \-*) ;;
21548     *) break;;
21549   esac
21550 done
21551 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21552
21553
21554 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21555 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21556 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21557 echo "${ECHO_T}$can_build_shared" >&6; }
21558
21559 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21560 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21561 test "$can_build_shared" = "no" && enable_shared=no
21562
21563 # On AIX, shared libraries and static libraries use the same namespace, and
21564 # are all built from PIC.
21565 case $host_os in
21566 aix3*)
21567   test "$enable_shared" = yes && enable_static=no
21568   if test -n "$RANLIB"; then
21569     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21570     postinstall_cmds='$RANLIB $lib'
21571   fi
21572   ;;
21573 aix4* | aix5*)
21574   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21575     test "$enable_shared" = yes && enable_static=no
21576   fi
21577   ;;
21578 esac
21579 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21580 echo "${ECHO_T}$enable_shared" >&6; }
21581
21582 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21583 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21584 # Make sure either enable_shared or enable_static is yes.
21585 test "$enable_shared" = yes || enable_static=yes
21586 { echo "$as_me:$LINENO: result: $enable_static" >&5
21587 echo "${ECHO_T}$enable_static" >&6; }
21588
21589 GCC_F77="$G77"
21590 LD_F77="$LD"
21591
21592 lt_prog_compiler_wl_F77=
21593 lt_prog_compiler_pic_F77=
21594 lt_prog_compiler_static_F77=
21595
21596 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21597 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21598
21599   if test "$GCC" = yes; then
21600     lt_prog_compiler_wl_F77='-Wl,'
21601     lt_prog_compiler_static_F77='-static'
21602
21603     case $host_os in
21604       aix*)
21605       # All AIX code is PIC.
21606       if test "$host_cpu" = ia64; then
21607         # AIX 5 now supports IA64 processor
21608         lt_prog_compiler_static_F77='-Bstatic'
21609       fi
21610       ;;
21611
21612     amigaos*)
21613       # FIXME: we need at least 68020 code to build shared libraries, but
21614       # adding the `-m68020' flag to GCC prevents building anything better,
21615       # like `-m68040'.
21616       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21617       ;;
21618
21619     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21620       # PIC is the default for these OSes.
21621       ;;
21622
21623     mingw* | pw32* | os2*)
21624       # This hack is so that the source file can tell whether it is being
21625       # built for inclusion in a dll (and should export symbols for example).
21626       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21627       ;;
21628
21629     darwin* | rhapsody*)
21630       # PIC is the default on this platform
21631       # Common symbols not allowed in MH_DYLIB files
21632       lt_prog_compiler_pic_F77='-fno-common'
21633       ;;
21634
21635     interix3*)
21636       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21637       # Instead, we relocate shared libraries at runtime.
21638       ;;
21639
21640     msdosdjgpp*)
21641       # Just because we use GCC doesn't mean we suddenly get shared libraries
21642       # on systems that don't support them.
21643       lt_prog_compiler_can_build_shared_F77=no
21644       enable_shared=no
21645       ;;
21646
21647     sysv4*MP*)
21648       if test -d /usr/nec; then
21649         lt_prog_compiler_pic_F77=-Kconform_pic
21650       fi
21651       ;;
21652
21653     hpux*)
21654       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21655       # not for PA HP-UX.
21656       case $host_cpu in
21657       hppa*64*|ia64*)
21658         # +Z the default
21659         ;;
21660       *)
21661         lt_prog_compiler_pic_F77='-fPIC'
21662         ;;
21663       esac
21664       ;;
21665
21666     *)
21667       lt_prog_compiler_pic_F77='-fPIC'
21668       ;;
21669     esac
21670   else
21671     # PORTME Check for flag to pass linker flags through the system compiler.
21672     case $host_os in
21673     aix*)
21674       lt_prog_compiler_wl_F77='-Wl,'
21675       if test "$host_cpu" = ia64; then
21676         # AIX 5 now supports IA64 processor
21677         lt_prog_compiler_static_F77='-Bstatic'
21678       else
21679         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21680       fi
21681       ;;
21682       darwin*)
21683         # PIC is the default on this platform
21684         # Common symbols not allowed in MH_DYLIB files
21685        case $cc_basename in
21686          xlc*)
21687          lt_prog_compiler_pic_F77='-qnocommon'
21688          lt_prog_compiler_wl_F77='-Wl,'
21689          ;;
21690        esac
21691        ;;
21692
21693     mingw* | pw32* | os2*)
21694       # This hack is so that the source file can tell whether it is being
21695       # built for inclusion in a dll (and should export symbols for example).
21696       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21697       ;;
21698
21699     hpux9* | hpux10* | hpux11*)
21700       lt_prog_compiler_wl_F77='-Wl,'
21701       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21702       # not for PA HP-UX.
21703       case $host_cpu in
21704       hppa*64*|ia64*)
21705         # +Z the default
21706         ;;
21707       *)
21708         lt_prog_compiler_pic_F77='+Z'
21709         ;;
21710       esac
21711       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21712       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21713       ;;
21714
21715     irix5* | irix6* | nonstopux*)
21716       lt_prog_compiler_wl_F77='-Wl,'
21717       # PIC (with -KPIC) is the default.
21718       lt_prog_compiler_static_F77='-non_shared'
21719       ;;
21720
21721     newsos6)
21722       lt_prog_compiler_pic_F77='-KPIC'
21723       lt_prog_compiler_static_F77='-Bstatic'
21724       ;;
21725
21726     linux*)
21727       case $cc_basename in
21728       icc* | ecc*)
21729         lt_prog_compiler_wl_F77='-Wl,'
21730         lt_prog_compiler_pic_F77='-KPIC'
21731         lt_prog_compiler_static_F77='-static'
21732         ;;
21733       pgcc* | pgf77* | pgf90* | pgf95*)
21734         # Portland Group compilers (*not* the Pentium gcc compiler,
21735         # which looks to be a dead project)
21736         lt_prog_compiler_wl_F77='-Wl,'
21737         lt_prog_compiler_pic_F77='-fpic'
21738         lt_prog_compiler_static_F77='-Bstatic'
21739         ;;
21740       ccc*)
21741         lt_prog_compiler_wl_F77='-Wl,'
21742         # All Alpha code is PIC.
21743         lt_prog_compiler_static_F77='-non_shared'
21744         ;;
21745       esac
21746       ;;
21747
21748     osf3* | osf4* | osf5*)
21749       lt_prog_compiler_wl_F77='-Wl,'
21750       # All OSF/1 code is PIC.
21751       lt_prog_compiler_static_F77='-non_shared'
21752       ;;
21753
21754     solaris*)
21755       lt_prog_compiler_pic_F77='-KPIC'
21756       lt_prog_compiler_static_F77='-Bstatic'
21757       case $cc_basename in
21758       f77* | f90* | f95*)
21759         lt_prog_compiler_wl_F77='-Qoption ld ';;
21760       *)
21761         lt_prog_compiler_wl_F77='-Wl,';;
21762       esac
21763       ;;
21764
21765     sunos4*)
21766       lt_prog_compiler_wl_F77='-Qoption ld '
21767       lt_prog_compiler_pic_F77='-PIC'
21768       lt_prog_compiler_static_F77='-Bstatic'
21769       ;;
21770
21771     sysv4 | sysv4.2uw2* | sysv4.3*)
21772       lt_prog_compiler_wl_F77='-Wl,'
21773       lt_prog_compiler_pic_F77='-KPIC'
21774       lt_prog_compiler_static_F77='-Bstatic'
21775       ;;
21776
21777     sysv4*MP*)
21778       if test -d /usr/nec ;then
21779         lt_prog_compiler_pic_F77='-Kconform_pic'
21780         lt_prog_compiler_static_F77='-Bstatic'
21781       fi
21782       ;;
21783
21784     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21785       lt_prog_compiler_wl_F77='-Wl,'
21786       lt_prog_compiler_pic_F77='-KPIC'
21787       lt_prog_compiler_static_F77='-Bstatic'
21788       ;;
21789
21790     unicos*)
21791       lt_prog_compiler_wl_F77='-Wl,'
21792       lt_prog_compiler_can_build_shared_F77=no
21793       ;;
21794
21795     uts4*)
21796       lt_prog_compiler_pic_F77='-pic'
21797       lt_prog_compiler_static_F77='-Bstatic'
21798       ;;
21799
21800     *)
21801       lt_prog_compiler_can_build_shared_F77=no
21802       ;;
21803     esac
21804   fi
21805
21806 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21807 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21808
21809 #
21810 # Check to make sure the PIC flag actually works.
21811 #
21812 if test -n "$lt_prog_compiler_pic_F77"; then
21813
21814 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21815 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21816 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21817   echo $ECHO_N "(cached) $ECHO_C" >&6
21818 else
21819   lt_prog_compiler_pic_works_F77=no
21820   ac_outfile=conftest.$ac_objext
21821    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21822    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21823    # Insert the option either (1) after the last *FLAGS variable, or
21824    # (2) before a word containing "conftest.", or (3) at the end.
21825    # Note that $ac_compile itself does not contain backslashes and begins
21826    # with a dollar sign (not a hyphen), so the echo should work correctly.
21827    # The option is referenced via a variable to avoid confusing sed.
21828    lt_compile=`echo "$ac_compile" | $SED \
21829    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21830    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21831    -e 's:$: $lt_compiler_flag:'`
21832    (eval echo "\"\$as_me:21832: $lt_compile\"" >&5)
21833    (eval "$lt_compile" 2>conftest.err)
21834    ac_status=$?
21835    cat conftest.err >&5
21836    echo "$as_me:21836: \$? = $ac_status" >&5
21837    if (exit $ac_status) && test -s "$ac_outfile"; then
21838      # The compiler can only warn and ignore the option if not recognized
21839      # So say no if there are warnings other than the usual output.
21840      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21841      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21842      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21843        lt_prog_compiler_pic_works_F77=yes
21844      fi
21845    fi
21846    $rm conftest*
21847
21848 fi
21849 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21850 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21851
21852 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21853     case $lt_prog_compiler_pic_F77 in
21854      "" | " "*) ;;
21855      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21856      esac
21857 else
21858     lt_prog_compiler_pic_F77=
21859      lt_prog_compiler_can_build_shared_F77=no
21860 fi
21861
21862 fi
21863 case $host_os in
21864   # For platforms which do not support PIC, -DPIC is meaningless:
21865   *djgpp*)
21866     lt_prog_compiler_pic_F77=
21867     ;;
21868   *)
21869     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21870     ;;
21871 esac
21872
21873 #
21874 # Check to make sure the static flag actually works.
21875 #
21876 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21877 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21878 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21879 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21880   echo $ECHO_N "(cached) $ECHO_C" >&6
21881 else
21882   lt_prog_compiler_static_works_F77=no
21883    save_LDFLAGS="$LDFLAGS"
21884    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21885    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21886    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21887      # The linker can only warn and ignore the option if not recognized
21888      # So say no if there are warnings
21889      if test -s conftest.err; then
21890        # Append any errors to the config.log.
21891        cat conftest.err 1>&5
21892        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21893        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21894        if diff conftest.exp conftest.er2 >/dev/null; then
21895          lt_prog_compiler_static_works_F77=yes
21896        fi
21897      else
21898        lt_prog_compiler_static_works_F77=yes
21899      fi
21900    fi
21901    $rm conftest*
21902    LDFLAGS="$save_LDFLAGS"
21903
21904 fi
21905 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21906 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21907
21908 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21909     :
21910 else
21911     lt_prog_compiler_static_F77=
21912 fi
21913
21914
21915 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21916 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21917 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21918   echo $ECHO_N "(cached) $ECHO_C" >&6
21919 else
21920   lt_cv_prog_compiler_c_o_F77=no
21921    $rm -r conftest 2>/dev/null
21922    mkdir conftest
21923    cd conftest
21924    mkdir out
21925    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21926
21927    lt_compiler_flag="-o out/conftest2.$ac_objext"
21928    # Insert the option either (1) after the last *FLAGS variable, or
21929    # (2) before a word containing "conftest.", or (3) at the end.
21930    # Note that $ac_compile itself does not contain backslashes and begins
21931    # with a dollar sign (not a hyphen), so the echo should work correctly.
21932    lt_compile=`echo "$ac_compile" | $SED \
21933    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21934    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21935    -e 's:$: $lt_compiler_flag:'`
21936    (eval echo "\"\$as_me:21936: $lt_compile\"" >&5)
21937    (eval "$lt_compile" 2>out/conftest.err)
21938    ac_status=$?
21939    cat out/conftest.err >&5
21940    echo "$as_me:21940: \$? = $ac_status" >&5
21941    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21942    then
21943      # The compiler can only warn and ignore the option if not recognized
21944      # So say no if there are warnings
21945      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21946      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21947      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21948        lt_cv_prog_compiler_c_o_F77=yes
21949      fi
21950    fi
21951    chmod u+w . 2>&5
21952    $rm conftest*
21953    # SGI C++ compiler will create directory out/ii_files/ for
21954    # template instantiation
21955    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21956    $rm out/* && rmdir out
21957    cd ..
21958    rmdir conftest
21959    $rm conftest*
21960
21961 fi
21962 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21963 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21964
21965
21966 hard_links="nottested"
21967 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21968   # do not overwrite the value of need_locks provided by the user
21969   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21970 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21971   hard_links=yes
21972   $rm conftest*
21973   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21974   touch conftest.a
21975   ln conftest.a conftest.b 2>&5 || hard_links=no
21976   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21977   { echo "$as_me:$LINENO: result: $hard_links" >&5
21978 echo "${ECHO_T}$hard_links" >&6; }
21979   if test "$hard_links" = no; then
21980     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21981 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21982     need_locks=warn
21983   fi
21984 else
21985   need_locks=no
21986 fi
21987
21988 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21989 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21990
21991   runpath_var=
21992   allow_undefined_flag_F77=
21993   enable_shared_with_static_runtimes_F77=no
21994   archive_cmds_F77=
21995   archive_expsym_cmds_F77=
21996   old_archive_From_new_cmds_F77=
21997   old_archive_from_expsyms_cmds_F77=
21998   export_dynamic_flag_spec_F77=
21999   whole_archive_flag_spec_F77=
22000   thread_safe_flag_spec_F77=
22001   hardcode_libdir_flag_spec_F77=
22002   hardcode_libdir_flag_spec_ld_F77=
22003   hardcode_libdir_separator_F77=
22004   hardcode_direct_F77=no
22005   hardcode_minus_L_F77=no
22006   hardcode_shlibpath_var_F77=unsupported
22007   link_all_deplibs_F77=unknown
22008   hardcode_automatic_F77=no
22009   module_cmds_F77=
22010   module_expsym_cmds_F77=
22011   always_export_symbols_F77=no
22012   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22013   # include_expsyms should be a list of space-separated symbols to be *always*
22014   # included in the symbol list
22015   include_expsyms_F77=
22016   # exclude_expsyms can be an extended regexp of symbols to exclude
22017   # it will be wrapped by ` (' and `)$', so one must not match beginning or
22018   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22019   # as well as any symbol that contains `d'.
22020   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22021   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22022   # platforms (ab)use it in PIC code, but their linkers get confused if
22023   # the symbol is explicitly referenced.  Since portable code cannot
22024   # rely on this symbol name, it's probably fine to never include it in
22025   # preloaded symbol tables.
22026   extract_expsyms_cmds=
22027   # Just being paranoid about ensuring that cc_basename is set.
22028   for cc_temp in $compiler""; do
22029   case $cc_temp in
22030     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22031     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22032     \-*) ;;
22033     *) break;;
22034   esac
22035 done
22036 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22037
22038   case $host_os in
22039   cygwin* | mingw* | pw32*)
22040     # FIXME: the MSVC++ port hasn't been tested in a loooong time
22041     # When not using gcc, we currently assume that we are using
22042     # Microsoft Visual C++.
22043     if test "$GCC" != yes; then
22044       with_gnu_ld=no
22045     fi
22046     ;;
22047   interix*)
22048     # we just hope/assume this is gcc and not c89 (= MSVC++)
22049     with_gnu_ld=yes
22050     ;;
22051   openbsd*)
22052     with_gnu_ld=no
22053     ;;
22054   esac
22055
22056   ld_shlibs_F77=yes
22057   if test "$with_gnu_ld" = yes; then
22058     # If archive_cmds runs LD, not CC, wlarc should be empty
22059     wlarc='${wl}'
22060
22061     # Set some defaults for GNU ld with shared library support. These
22062     # are reset later if shared libraries are not supported. Putting them
22063     # here allows them to be overridden if necessary.
22064     runpath_var=LD_RUN_PATH
22065     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22066     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22067     # ancient GNU ld didn't support --whole-archive et. al.
22068     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22069         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22070       else
22071         whole_archive_flag_spec_F77=
22072     fi
22073     supports_anon_versioning=no
22074     case `$LD -v 2>/dev/null` in
22075       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22076       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22077       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22078       *\ 2.11.*) ;; # other 2.11 versions
22079       *) supports_anon_versioning=yes ;;
22080     esac
22081
22082     # See if GNU ld supports shared libraries.
22083     case $host_os in
22084     aix3* | aix4* | aix5*)
22085       # On AIX/PPC, the GNU linker is very broken
22086       if test "$host_cpu" != ia64; then
22087         ld_shlibs_F77=no
22088         cat <<EOF 1>&2
22089
22090 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22091 *** to be unable to reliably create shared libraries on AIX.
22092 *** Therefore, libtool is disabling shared libraries support.  If you
22093 *** really care for shared libraries, you may want to modify your PATH
22094 *** so that a non-GNU linker is found, and then restart.
22095
22096 EOF
22097       fi
22098       ;;
22099
22100     amigaos*)
22101       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)'
22102       hardcode_libdir_flag_spec_F77='-L$libdir'
22103       hardcode_minus_L_F77=yes
22104
22105       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22106       # that the semantics of dynamic libraries on AmigaOS, at least up
22107       # to version 4, is to share data among multiple programs linked
22108       # with the same dynamic library.  Since this doesn't match the
22109       # behavior of shared libraries on other platforms, we can't use
22110       # them.
22111       ld_shlibs_F77=no
22112       ;;
22113
22114     beos*)
22115       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22116         allow_undefined_flag_F77=unsupported
22117         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22118         # support --undefined.  This deserves some investigation.  FIXME
22119         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22120       else
22121         ld_shlibs_F77=no
22122       fi
22123       ;;
22124
22125     cygwin* | mingw* | pw32*)
22126       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22127       # as there is no search path for DLLs.
22128       hardcode_libdir_flag_spec_F77='-L$libdir'
22129       allow_undefined_flag_F77=unsupported
22130       always_export_symbols_F77=no
22131       enable_shared_with_static_runtimes_F77=yes
22132       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22133
22134       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22135         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22136         # If the export-symbols file already is a .def file (1st line
22137         # is EXPORTS), use it as is; otherwise, prepend...
22138         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22139           cp $export_symbols $output_objdir/$soname.def;
22140         else
22141           echo EXPORTS > $output_objdir/$soname.def;
22142           cat $export_symbols >> $output_objdir/$soname.def;
22143         fi~
22144         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22145       else
22146         ld_shlibs_F77=no
22147       fi
22148       ;;
22149
22150     interix3*)
22151       hardcode_direct_F77=no
22152       hardcode_shlibpath_var_F77=no
22153       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22154       export_dynamic_flag_spec_F77='${wl}-E'
22155       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22156       # Instead, shared libraries are loaded at an image base (0x10000000 by
22157       # default) and relocated if they conflict, which is a slow very memory
22158       # consuming and fragmenting process.  To avoid this, we pick a random,
22159       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22160       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22161       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'
22162       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'
22163       ;;
22164
22165     linux*)
22166       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22167         tmp_addflag=
22168         case $cc_basename,$host_cpu in
22169         pgcc*)                          # Portland Group C compiler
22170           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'
22171           tmp_addflag=' $pic_flag'
22172           ;;
22173         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22174           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'
22175           tmp_addflag=' $pic_flag -Mnomain' ;;
22176         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22177           tmp_addflag=' -i_dynamic' ;;
22178         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22179           tmp_addflag=' -i_dynamic -nofor_main' ;;
22180         ifc* | ifort*)                  # Intel Fortran compiler
22181           tmp_addflag=' -nofor_main' ;;
22182         esac
22183         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22184
22185         if test $supports_anon_versioning = yes; then
22186           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22187   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22188   $echo "local: *; };" >> $output_objdir/$libname.ver~
22189           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22190         fi
22191       else
22192         ld_shlibs_F77=no
22193       fi
22194       ;;
22195
22196     netbsd*)
22197       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22198         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22199         wlarc=
22200       else
22201         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22202         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22203       fi
22204       ;;
22205
22206     solaris*)
22207       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22208         ld_shlibs_F77=no
22209         cat <<EOF 1>&2
22210
22211 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22212 *** create shared libraries on Solaris systems.  Therefore, libtool
22213 *** is disabling shared libraries support.  We urge you to upgrade GNU
22214 *** binutils to release 2.9.1 or newer.  Another option is to modify
22215 *** your PATH or compiler configuration so that the native linker is
22216 *** used, and then restart.
22217
22218 EOF
22219       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22220         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22221         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22222       else
22223         ld_shlibs_F77=no
22224       fi
22225       ;;
22226
22227     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22228       case `$LD -v 2>&1` in
22229         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22230         ld_shlibs_F77=no
22231         cat <<_LT_EOF 1>&2
22232
22233 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22234 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22235 *** is disabling shared libraries support.  We urge you to upgrade GNU
22236 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22237 *** your PATH or compiler configuration so that the native linker is
22238 *** used, and then restart.
22239
22240 _LT_EOF
22241         ;;
22242         *)
22243           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22244             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22245             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22246             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22247           else
22248             ld_shlibs_F77=no
22249           fi
22250         ;;
22251       esac
22252       ;;
22253
22254     sunos4*)
22255       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22256       wlarc=
22257       hardcode_direct_F77=yes
22258       hardcode_shlibpath_var_F77=no
22259       ;;
22260
22261     *)
22262       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22263         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22264         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22265       else
22266         ld_shlibs_F77=no
22267       fi
22268       ;;
22269     esac
22270
22271     if test "$ld_shlibs_F77" = no; then
22272       runpath_var=
22273       hardcode_libdir_flag_spec_F77=
22274       export_dynamic_flag_spec_F77=
22275       whole_archive_flag_spec_F77=
22276     fi
22277   else
22278     # PORTME fill in a description of your system's linker (not GNU ld)
22279     case $host_os in
22280     aix3*)
22281       allow_undefined_flag_F77=unsupported
22282       always_export_symbols_F77=yes
22283       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'
22284       # Note: this linker hardcodes the directories in LIBPATH if there
22285       # are no directories specified by -L.
22286       hardcode_minus_L_F77=yes
22287       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22288         # Neither direct hardcoding nor static linking is supported with a
22289         # broken collect2.
22290         hardcode_direct_F77=unsupported
22291       fi
22292       ;;
22293
22294     aix4* | aix5*)
22295       if test "$host_cpu" = ia64; then
22296         # On IA64, the linker does run time linking by default, so we don't
22297         # have to do anything special.
22298         aix_use_runtimelinking=no
22299         exp_sym_flag='-Bexport'
22300         no_entry_flag=""
22301       else
22302         # If we're using GNU nm, then we don't want the "-C" option.
22303         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22304         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22305           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'
22306         else
22307           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'
22308         fi
22309         aix_use_runtimelinking=no
22310
22311         # Test if we are trying to use run time linking or normal
22312         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22313         # need to do runtime linking.
22314         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22315           for ld_flag in $LDFLAGS; do
22316           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22317             aix_use_runtimelinking=yes
22318             break
22319           fi
22320           done
22321           ;;
22322         esac
22323
22324         exp_sym_flag='-bexport'
22325         no_entry_flag='-bnoentry'
22326       fi
22327
22328       # When large executables or shared objects are built, AIX ld can
22329       # have problems creating the table of contents.  If linking a library
22330       # or program results in "error TOC overflow" add -mminimal-toc to
22331       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22332       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22333
22334       archive_cmds_F77=''
22335       hardcode_direct_F77=yes
22336       hardcode_libdir_separator_F77=':'
22337       link_all_deplibs_F77=yes
22338
22339       if test "$GCC" = yes; then
22340         case $host_os in aix4.[012]|aix4.[012].*)
22341         # We only want to do this on AIX 4.2 and lower, the check
22342         # below for broken collect2 doesn't work under 4.3+
22343           collect2name=`${CC} -print-prog-name=collect2`
22344           if test -f "$collect2name" && \
22345            strings "$collect2name" | grep resolve_lib_name >/dev/null
22346           then
22347           # We have reworked collect2
22348           hardcode_direct_F77=yes
22349           else
22350           # We have old collect2
22351           hardcode_direct_F77=unsupported
22352           # It fails to find uninstalled libraries when the uninstalled
22353           # path is not listed in the libpath.  Setting hardcode_minus_L
22354           # to unsupported forces relinking
22355           hardcode_minus_L_F77=yes
22356           hardcode_libdir_flag_spec_F77='-L$libdir'
22357           hardcode_libdir_separator_F77=
22358           fi
22359           ;;
22360         esac
22361         shared_flag='-shared'
22362         if test "$aix_use_runtimelinking" = yes; then
22363           shared_flag="$shared_flag "'${wl}-G'
22364         fi
22365       else
22366         # not using gcc
22367         if test "$host_cpu" = ia64; then
22368         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22369         # chokes on -Wl,-G. The following line is correct:
22370           shared_flag='-G'
22371         else
22372           if test "$aix_use_runtimelinking" = yes; then
22373             shared_flag='${wl}-G'
22374           else
22375             shared_flag='${wl}-bM:SRE'
22376           fi
22377         fi
22378       fi
22379
22380       # It seems that -bexpall does not export symbols beginning with
22381       # underscore (_), so it is better to generate a list of symbols to export.
22382       always_export_symbols_F77=yes
22383       if test "$aix_use_runtimelinking" = yes; then
22384         # Warning - without using the other runtime loading flags (-brtl),
22385         # -berok will link without error, but may produce a broken library.
22386         allow_undefined_flag_F77='-berok'
22387        # Determine the default libpath from the value encoded in an empty executable.
22388        cat >conftest.$ac_ext <<_ACEOF
22389       program main
22390
22391       end
22392 _ACEOF
22393 rm -f conftest.$ac_objext conftest$ac_exeext
22394 if { (ac_try="$ac_link"
22395 case "(($ac_try" in
22396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397   *) ac_try_echo=$ac_try;;
22398 esac
22399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22400   (eval "$ac_link") 2>conftest.er1
22401   ac_status=$?
22402   grep -v '^ *+' conftest.er1 >conftest.err
22403   rm -f conftest.er1
22404   cat conftest.err >&5
22405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406   (exit $ac_status); } &&
22407          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22408   { (case "(($ac_try" in
22409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22410   *) ac_try_echo=$ac_try;;
22411 esac
22412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22413   (eval "$ac_try") 2>&5
22414   ac_status=$?
22415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416   (exit $ac_status); }; } &&
22417          { ac_try='test -s conftest$ac_exeext'
22418   { (case "(($ac_try" in
22419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420   *) ac_try_echo=$ac_try;;
22421 esac
22422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22423   (eval "$ac_try") 2>&5
22424   ac_status=$?
22425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426   (exit $ac_status); }; }; then
22427
22428 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22429 }'`
22430 # Check for a 64-bit object if we didn't find anything.
22431 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; }
22432 }'`; fi
22433 else
22434   echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22436
22437
22438 fi
22439
22440 rm -f core conftest.err conftest.$ac_objext \
22441       conftest$ac_exeext conftest.$ac_ext
22442 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22443
22444        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22445         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"
22446        else
22447         if test "$host_cpu" = ia64; then
22448           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22449           allow_undefined_flag_F77="-z nodefs"
22450           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"
22451         else
22452          # Determine the default libpath from the value encoded in an empty executable.
22453          cat >conftest.$ac_ext <<_ACEOF
22454       program main
22455
22456       end
22457 _ACEOF
22458 rm -f conftest.$ac_objext conftest$ac_exeext
22459 if { (ac_try="$ac_link"
22460 case "(($ac_try" in
22461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462   *) ac_try_echo=$ac_try;;
22463 esac
22464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22465   (eval "$ac_link") 2>conftest.er1
22466   ac_status=$?
22467   grep -v '^ *+' conftest.er1 >conftest.err
22468   rm -f conftest.er1
22469   cat conftest.err >&5
22470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471   (exit $ac_status); } &&
22472          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22473   { (case "(($ac_try" in
22474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475   *) ac_try_echo=$ac_try;;
22476 esac
22477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22478   (eval "$ac_try") 2>&5
22479   ac_status=$?
22480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481   (exit $ac_status); }; } &&
22482          { ac_try='test -s conftest$ac_exeext'
22483   { (case "(($ac_try" in
22484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485   *) ac_try_echo=$ac_try;;
22486 esac
22487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22488   (eval "$ac_try") 2>&5
22489   ac_status=$?
22490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491   (exit $ac_status); }; }; then
22492
22493 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22494 }'`
22495 # Check for a 64-bit object if we didn't find anything.
22496 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; }
22497 }'`; fi
22498 else
22499   echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22501
22502
22503 fi
22504
22505 rm -f core conftest.err conftest.$ac_objext \
22506       conftest$ac_exeext conftest.$ac_ext
22507 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22508
22509          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22510           # Warning - without using the other run time loading flags,
22511           # -berok will link without error, but may produce a broken library.
22512           no_undefined_flag_F77=' ${wl}-bernotok'
22513           allow_undefined_flag_F77=' ${wl}-berok'
22514           # Exported symbols can be pulled into shared objects from archives
22515           whole_archive_flag_spec_F77='$convenience'
22516           archive_cmds_need_lc_F77=yes
22517           # This is similar to how AIX traditionally builds its shared libraries.
22518           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'
22519         fi
22520       fi
22521       ;;
22522
22523     amigaos*)
22524       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)'
22525       hardcode_libdir_flag_spec_F77='-L$libdir'
22526       hardcode_minus_L_F77=yes
22527       # see comment about different semantics on the GNU ld section
22528       ld_shlibs_F77=no
22529       ;;
22530
22531     bsdi[45]*)
22532       export_dynamic_flag_spec_F77=-rdynamic
22533       ;;
22534
22535     cygwin* | mingw* | pw32*)
22536       # When not using gcc, we currently assume that we are using
22537       # Microsoft Visual C++.
22538       # hardcode_libdir_flag_spec is actually meaningless, as there is
22539       # no search path for DLLs.
22540       hardcode_libdir_flag_spec_F77=' '
22541       allow_undefined_flag_F77=unsupported
22542       # Tell ltmain to make .lib files, not .a files.
22543       libext=lib
22544       # Tell ltmain to make .dll files, not .so files.
22545       shrext_cmds=".dll"
22546       # FIXME: Setting linknames here is a bad hack.
22547       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22548       # The linker will automatically build a .lib file if we build a DLL.
22549       old_archive_From_new_cmds_F77='true'
22550       # FIXME: Should let the user specify the lib program.
22551       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22552       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22553       enable_shared_with_static_runtimes_F77=yes
22554       ;;
22555
22556     darwin* | rhapsody*)
22557       case $host_os in
22558         rhapsody* | darwin1.[012])
22559          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22560          ;;
22561        *) # Darwin 1.3 on
22562          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22563            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22564          else
22565            case ${MACOSX_DEPLOYMENT_TARGET} in
22566              10.[012])
22567                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22568                ;;
22569              10.*)
22570                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22571                ;;
22572            esac
22573          fi
22574          ;;
22575       esac
22576       archive_cmds_need_lc_F77=no
22577       hardcode_direct_F77=no
22578       hardcode_automatic_F77=yes
22579       hardcode_shlibpath_var_F77=unsupported
22580       whole_archive_flag_spec_F77=''
22581       link_all_deplibs_F77=yes
22582     if test "$GCC" = yes ; then
22583         output_verbose_link_cmd='echo'
22584         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22585       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22586       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22587       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}'
22588       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}'
22589     else
22590       case $cc_basename in
22591         xlc*)
22592          output_verbose_link_cmd='echo'
22593          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22594          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22595           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22596          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}'
22597           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}'
22598           ;;
22599        *)
22600          ld_shlibs_F77=no
22601           ;;
22602       esac
22603     fi
22604       ;;
22605
22606     dgux*)
22607       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22608       hardcode_libdir_flag_spec_F77='-L$libdir'
22609       hardcode_shlibpath_var_F77=no
22610       ;;
22611
22612     freebsd1*)
22613       ld_shlibs_F77=no
22614       ;;
22615
22616     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22617     # support.  Future versions do this automatically, but an explicit c++rt0.o
22618     # does not break anything, and helps significantly (at the cost of a little
22619     # extra space).
22620     freebsd2.2*)
22621       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22622       hardcode_libdir_flag_spec_F77='-R$libdir'
22623       hardcode_direct_F77=yes
22624       hardcode_shlibpath_var_F77=no
22625       ;;
22626
22627     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22628     freebsd2*)
22629       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22630       hardcode_direct_F77=yes
22631       hardcode_minus_L_F77=yes
22632       hardcode_shlibpath_var_F77=no
22633       ;;
22634
22635     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22636     freebsd* | kfreebsd*-gnu | dragonfly*)
22637       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22638       hardcode_libdir_flag_spec_F77='-R$libdir'
22639       hardcode_direct_F77=yes
22640       hardcode_shlibpath_var_F77=no
22641       ;;
22642
22643     hpux9*)
22644       if test "$GCC" = yes; then
22645         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'
22646       else
22647         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'
22648       fi
22649       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22650       hardcode_libdir_separator_F77=:
22651       hardcode_direct_F77=yes
22652
22653       # hardcode_minus_L: Not really in the search PATH,
22654       # but as the default location of the library.
22655       hardcode_minus_L_F77=yes
22656       export_dynamic_flag_spec_F77='${wl}-E'
22657       ;;
22658
22659     hpux10*)
22660       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22661         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22662       else
22663         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22664       fi
22665       if test "$with_gnu_ld" = no; then
22666         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22667         hardcode_libdir_separator_F77=:
22668
22669         hardcode_direct_F77=yes
22670         export_dynamic_flag_spec_F77='${wl}-E'
22671
22672         # hardcode_minus_L: Not really in the search PATH,
22673         # but as the default location of the library.
22674         hardcode_minus_L_F77=yes
22675       fi
22676       ;;
22677
22678     hpux11*)
22679       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22680         case $host_cpu in
22681         hppa*64*)
22682           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22683           ;;
22684         ia64*)
22685           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22686           ;;
22687         *)
22688           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22689           ;;
22690         esac
22691       else
22692         case $host_cpu in
22693         hppa*64*)
22694           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22695           ;;
22696         ia64*)
22697           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22698           ;;
22699         *)
22700           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22701           ;;
22702         esac
22703       fi
22704       if test "$with_gnu_ld" = no; then
22705         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22706         hardcode_libdir_separator_F77=:
22707
22708         case $host_cpu in
22709         hppa*64*|ia64*)
22710           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22711           hardcode_direct_F77=no
22712           hardcode_shlibpath_var_F77=no
22713           ;;
22714         *)
22715           hardcode_direct_F77=yes
22716           export_dynamic_flag_spec_F77='${wl}-E'
22717
22718           # hardcode_minus_L: Not really in the search PATH,
22719           # but as the default location of the library.
22720           hardcode_minus_L_F77=yes
22721           ;;
22722         esac
22723       fi
22724       ;;
22725
22726     irix5* | irix6* | nonstopux*)
22727       if test "$GCC" = yes; then
22728         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'
22729       else
22730         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'
22731         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22732       fi
22733       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22734       hardcode_libdir_separator_F77=:
22735       link_all_deplibs_F77=yes
22736       ;;
22737
22738     netbsd*)
22739       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22740         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22741       else
22742         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22743       fi
22744       hardcode_libdir_flag_spec_F77='-R$libdir'
22745       hardcode_direct_F77=yes
22746       hardcode_shlibpath_var_F77=no
22747       ;;
22748
22749     newsos6)
22750       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22751       hardcode_direct_F77=yes
22752       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22753       hardcode_libdir_separator_F77=:
22754       hardcode_shlibpath_var_F77=no
22755       ;;
22756
22757     openbsd*)
22758       hardcode_direct_F77=yes
22759       hardcode_shlibpath_var_F77=no
22760       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22761         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22762         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22763         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22764         export_dynamic_flag_spec_F77='${wl}-E'
22765       else
22766        case $host_os in
22767          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22768            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22769            hardcode_libdir_flag_spec_F77='-R$libdir'
22770            ;;
22771          *)
22772            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22773            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22774            ;;
22775        esac
22776       fi
22777       ;;
22778
22779     os2*)
22780       hardcode_libdir_flag_spec_F77='-L$libdir'
22781       hardcode_minus_L_F77=yes
22782       allow_undefined_flag_F77=unsupported
22783       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'
22784       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22785       ;;
22786
22787     osf3*)
22788       if test "$GCC" = yes; then
22789         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22790         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'
22791       else
22792         allow_undefined_flag_F77=' -expect_unresolved \*'
22793         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'
22794       fi
22795       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22796       hardcode_libdir_separator_F77=:
22797       ;;
22798
22799     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22800       if test "$GCC" = yes; then
22801         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22802         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'
22803         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22804       else
22805         allow_undefined_flag_F77=' -expect_unresolved \*'
22806         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'
22807         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~
22808         $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'
22809
22810         # Both c and cxx compiler support -rpath directly
22811         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22812       fi
22813       hardcode_libdir_separator_F77=:
22814       ;;
22815
22816     solaris*)
22817       no_undefined_flag_F77=' -z text'
22818       if test "$GCC" = yes; then
22819         wlarc='${wl}'
22820         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22821         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22822           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22823       else
22824         wlarc=''
22825         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22826         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22827         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22828       fi
22829       hardcode_libdir_flag_spec_F77='-R$libdir'
22830       hardcode_shlibpath_var_F77=no
22831       case $host_os in
22832       solaris2.[0-5] | solaris2.[0-5].*) ;;
22833       *)
22834         # The compiler driver will combine linker options so we
22835         # cannot just pass the convience library names through
22836         # without $wl, iff we do not link with $LD.
22837         # Luckily, gcc supports the same syntax we need for Sun Studio.
22838         # Supported since Solaris 2.6 (maybe 2.5.1?)
22839         case $wlarc in
22840         '')
22841           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22842         *)
22843           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' ;;
22844         esac ;;
22845       esac
22846       link_all_deplibs_F77=yes
22847       ;;
22848
22849     sunos4*)
22850       if test "x$host_vendor" = xsequent; then
22851         # Use $CC to link under sequent, because it throws in some extra .o
22852         # files that make .init and .fini sections work.
22853         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22854       else
22855         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22856       fi
22857       hardcode_libdir_flag_spec_F77='-L$libdir'
22858       hardcode_direct_F77=yes
22859       hardcode_minus_L_F77=yes
22860       hardcode_shlibpath_var_F77=no
22861       ;;
22862
22863     sysv4)
22864       case $host_vendor in
22865         sni)
22866           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22867           hardcode_direct_F77=yes # is this really true???
22868         ;;
22869         siemens)
22870           ## LD is ld it makes a PLAMLIB
22871           ## CC just makes a GrossModule.
22872           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22873           reload_cmds_F77='$CC -r -o $output$reload_objs'
22874           hardcode_direct_F77=no
22875         ;;
22876         motorola)
22877           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22878           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22879         ;;
22880       esac
22881       runpath_var='LD_RUN_PATH'
22882       hardcode_shlibpath_var_F77=no
22883       ;;
22884
22885     sysv4.3*)
22886       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22887       hardcode_shlibpath_var_F77=no
22888       export_dynamic_flag_spec_F77='-Bexport'
22889       ;;
22890
22891     sysv4*MP*)
22892       if test -d /usr/nec; then
22893         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22894         hardcode_shlibpath_var_F77=no
22895         runpath_var=LD_RUN_PATH
22896         hardcode_runpath_var=yes
22897         ld_shlibs_F77=yes
22898       fi
22899       ;;
22900
22901     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22902       no_undefined_flag_F77='${wl}-z,text'
22903       archive_cmds_need_lc_F77=no
22904       hardcode_shlibpath_var_F77=no
22905       runpath_var='LD_RUN_PATH'
22906
22907       if test "$GCC" = yes; then
22908         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22909         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22910       else
22911         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22912         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22913       fi
22914       ;;
22915
22916     sysv5* | sco3.2v5* | sco5v6*)
22917       # Note: We can NOT use -z defs as we might desire, because we do not
22918       # link with -lc, and that would cause any symbols used from libc to
22919       # always be unresolved, which means just about no library would
22920       # ever link correctly.  If we're not using GNU ld we use -z text
22921       # though, which does catch some bad symbols but isn't as heavy-handed
22922       # as -z defs.
22923       no_undefined_flag_F77='${wl}-z,text'
22924       allow_undefined_flag_F77='${wl}-z,nodefs'
22925       archive_cmds_need_lc_F77=no
22926       hardcode_shlibpath_var_F77=no
22927       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22928       hardcode_libdir_separator_F77=':'
22929       link_all_deplibs_F77=yes
22930       export_dynamic_flag_spec_F77='${wl}-Bexport'
22931       runpath_var='LD_RUN_PATH'
22932
22933       if test "$GCC" = yes; then
22934         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22935         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22936       else
22937         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22938         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22939       fi
22940       ;;
22941
22942     uts4*)
22943       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22944       hardcode_libdir_flag_spec_F77='-L$libdir'
22945       hardcode_shlibpath_var_F77=no
22946       ;;
22947
22948     *)
22949       ld_shlibs_F77=no
22950       ;;
22951     esac
22952   fi
22953
22954 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22955 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22956 test "$ld_shlibs_F77" = no && can_build_shared=no
22957
22958 #
22959 # Do we need to explicitly link libc?
22960 #
22961 case "x$archive_cmds_need_lc_F77" in
22962 x|xyes)
22963   # Assume -lc should be added
22964   archive_cmds_need_lc_F77=yes
22965
22966   if test "$enable_shared" = yes && test "$GCC" = yes; then
22967     case $archive_cmds_F77 in
22968     *'~'*)
22969       # FIXME: we may have to deal with multi-command sequences.
22970       ;;
22971     '$CC '*)
22972       # Test whether the compiler implicitly links with -lc since on some
22973       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22974       # to ld, don't add -lc before -lgcc.
22975       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22976 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22977       $rm conftest*
22978       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22979
22980       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22981   (eval $ac_compile) 2>&5
22982   ac_status=$?
22983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984   (exit $ac_status); } 2>conftest.err; then
22985         soname=conftest
22986         lib=conftest
22987         libobjs=conftest.$ac_objext
22988         deplibs=
22989         wl=$lt_prog_compiler_wl_F77
22990         pic_flag=$lt_prog_compiler_pic_F77
22991         compiler_flags=-v
22992         linker_flags=-v
22993         verstring=
22994         output_objdir=.
22995         libname=conftest
22996         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22997         allow_undefined_flag_F77=
22998         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22999   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23000   ac_status=$?
23001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002   (exit $ac_status); }
23003         then
23004           archive_cmds_need_lc_F77=no
23005         else
23006           archive_cmds_need_lc_F77=yes
23007         fi
23008         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23009       else
23010         cat conftest.err 1>&5
23011       fi
23012       $rm conftest*
23013       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23014 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23015       ;;
23016     esac
23017   fi
23018   ;;
23019 esac
23020
23021 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23022 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23023 library_names_spec=
23024 libname_spec='lib$name'
23025 soname_spec=
23026 shrext_cmds=".so"
23027 postinstall_cmds=
23028 postuninstall_cmds=
23029 finish_cmds=
23030 finish_eval=
23031 shlibpath_var=
23032 shlibpath_overrides_runpath=unknown
23033 version_type=none
23034 dynamic_linker="$host_os ld.so"
23035 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23036 if test "$GCC" = yes; then
23037   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23038   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23039     # if the path contains ";" then we assume it to be the separator
23040     # otherwise default to the standard path separator (i.e. ":") - it is
23041     # assumed that no part of a normal pathname contains ";" but that should
23042     # okay in the real world where ";" in dirpaths is itself problematic.
23043     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23044   else
23045     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23046   fi
23047 else
23048   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23049 fi
23050 need_lib_prefix=unknown
23051 hardcode_into_libs=no
23052
23053 # when you set need_version to no, make sure it does not cause -set_version
23054 # flags to be left without arguments
23055 need_version=unknown
23056
23057 case $host_os in
23058 aix3*)
23059   version_type=linux
23060   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23061   shlibpath_var=LIBPATH
23062
23063   # AIX 3 has no versioning support, so we append a major version to the name.
23064   soname_spec='${libname}${release}${shared_ext}$major'
23065   ;;
23066
23067 aix4* | aix5*)
23068   version_type=linux
23069   need_lib_prefix=no
23070   need_version=no
23071   hardcode_into_libs=yes
23072   if test "$host_cpu" = ia64; then
23073     # AIX 5 supports IA64
23074     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23075     shlibpath_var=LD_LIBRARY_PATH
23076   else
23077     # With GCC up to 2.95.x, collect2 would create an import file
23078     # for dependence libraries.  The import file would start with
23079     # the line `#! .'.  This would cause the generated library to
23080     # depend on `.', always an invalid library.  This was fixed in
23081     # development snapshots of GCC prior to 3.0.
23082     case $host_os in
23083       aix4 | aix4.[01] | aix4.[01].*)
23084       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23085            echo ' yes '
23086            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23087         :
23088       else
23089         can_build_shared=no
23090       fi
23091       ;;
23092     esac
23093     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23094     # soname into executable. Probably we can add versioning support to
23095     # collect2, so additional links can be useful in future.
23096     if test "$aix_use_runtimelinking" = yes; then
23097       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23098       # instead of lib<name>.a to let people know that these are not
23099       # typical AIX shared libraries.
23100       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23101     else
23102       # We preserve .a as extension for shared libraries through AIX4.2
23103       # and later when we are not doing run time linking.
23104       library_names_spec='${libname}${release}.a $libname.a'
23105       soname_spec='${libname}${release}${shared_ext}$major'
23106     fi
23107     shlibpath_var=LIBPATH
23108   fi
23109   ;;
23110
23111 amigaos*)
23112   library_names_spec='$libname.ixlibrary $libname.a'
23113   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23114   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'
23115   ;;
23116
23117 beos*)
23118   library_names_spec='${libname}${shared_ext}'
23119   dynamic_linker="$host_os ld.so"
23120   shlibpath_var=LIBRARY_PATH
23121   ;;
23122
23123 bsdi[45]*)
23124   version_type=linux
23125   need_version=no
23126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23127   soname_spec='${libname}${release}${shared_ext}$major'
23128   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23129   shlibpath_var=LD_LIBRARY_PATH
23130   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23131   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23132   # the default ld.so.conf also contains /usr/contrib/lib and
23133   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23134   # libtool to hard-code these into programs
23135   ;;
23136
23137 cygwin* | mingw* | pw32*)
23138   version_type=windows
23139   shrext_cmds=".dll"
23140   need_version=no
23141   need_lib_prefix=no
23142
23143   case $GCC,$host_os in
23144   yes,cygwin* | yes,mingw* | yes,pw32*)
23145     library_names_spec='$libname.dll.a'
23146     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23147     postinstall_cmds='base_file=`basename \${file}`~
23148       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23149       dldir=$destdir/`dirname \$dlpath`~
23150       test -d \$dldir || mkdir -p \$dldir~
23151       $install_prog $dir/$dlname \$dldir/$dlname~
23152       chmod a+x \$dldir/$dlname'
23153     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23154       dlpath=$dir/\$dldll~
23155        $rm \$dlpath'
23156     shlibpath_overrides_runpath=yes
23157
23158     case $host_os in
23159     cygwin*)
23160       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23161       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23162       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23163       ;;
23164     mingw*)
23165       # MinGW DLLs use traditional 'lib' prefix
23166       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23167       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23168       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23169         # It is most probably a Windows format PATH printed by
23170         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23171         # path with ; separators, and with drive letters. We can handle the
23172         # drive letters (cygwin fileutils understands them), so leave them,
23173         # especially as we might pass files found there to a mingw objdump,
23174         # which wouldn't understand a cygwinified path. Ahh.
23175         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23176       else
23177         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23178       fi
23179       ;;
23180     pw32*)
23181       # pw32 DLLs use 'pw' prefix rather than 'lib'
23182       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23183       ;;
23184     esac
23185     ;;
23186
23187   *)
23188     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23189     ;;
23190   esac
23191   dynamic_linker='Win32 ld.exe'
23192   # FIXME: first we should search . and the directory the executable is in
23193   shlibpath_var=PATH
23194   ;;
23195
23196 darwin* | rhapsody*)
23197   dynamic_linker="$host_os dyld"
23198   version_type=darwin
23199   need_lib_prefix=no
23200   need_version=no
23201   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23202   soname_spec='${libname}${release}${major}$shared_ext'
23203   shlibpath_overrides_runpath=yes
23204   shlibpath_var=DYLD_LIBRARY_PATH
23205   shrext_cmds='.dylib'
23206   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23207   if test "$GCC" = yes; then
23208     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"`
23209   else
23210     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23211   fi
23212   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23213   ;;
23214
23215 dgux*)
23216   version_type=linux
23217   need_lib_prefix=no
23218   need_version=no
23219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23220   soname_spec='${libname}${release}${shared_ext}$major'
23221   shlibpath_var=LD_LIBRARY_PATH
23222   ;;
23223
23224 freebsd1*)
23225   dynamic_linker=no
23226   ;;
23227
23228 kfreebsd*-gnu)
23229   version_type=linux
23230   need_lib_prefix=no
23231   need_version=no
23232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23233   soname_spec='${libname}${release}${shared_ext}$major'
23234   shlibpath_var=LD_LIBRARY_PATH
23235   shlibpath_overrides_runpath=no
23236   hardcode_into_libs=yes
23237   dynamic_linker='GNU ld.so'
23238   ;;
23239
23240 freebsd* | dragonfly*)
23241   # DragonFly does not have aout.  When/if they implement a new
23242   # versioning mechanism, adjust this.
23243   if test -x /usr/bin/objformat; then
23244     objformat=`/usr/bin/objformat`
23245   else
23246     case $host_os in
23247     freebsd[123]*) objformat=aout ;;
23248     *) objformat=elf ;;
23249     esac
23250   fi
23251   version_type=freebsd-$objformat
23252   case $version_type in
23253     freebsd-elf*)
23254       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23255       need_version=no
23256       need_lib_prefix=no
23257       ;;
23258     freebsd-*)
23259       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23260       need_version=yes
23261       ;;
23262   esac
23263   shlibpath_var=LD_LIBRARY_PATH
23264   case $host_os in
23265   freebsd2*)
23266     shlibpath_overrides_runpath=yes
23267     ;;
23268   freebsd3.[01]* | freebsdelf3.[01]*)
23269     shlibpath_overrides_runpath=yes
23270     hardcode_into_libs=yes
23271     ;;
23272   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23273   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23274     shlibpath_overrides_runpath=no
23275     hardcode_into_libs=yes
23276     ;;
23277   freebsd*) # from 4.6 on
23278     shlibpath_overrides_runpath=yes
23279     hardcode_into_libs=yes
23280     ;;
23281   esac
23282   ;;
23283
23284 gnu*)
23285   version_type=linux
23286   need_lib_prefix=no
23287   need_version=no
23288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23289   soname_spec='${libname}${release}${shared_ext}$major'
23290   shlibpath_var=LD_LIBRARY_PATH
23291   hardcode_into_libs=yes
23292   ;;
23293
23294 hpux9* | hpux10* | hpux11*)
23295   # Give a soname corresponding to the major version so that dld.sl refuses to
23296   # link against other versions.
23297   version_type=sunos
23298   need_lib_prefix=no
23299   need_version=no
23300   case $host_cpu in
23301   ia64*)
23302     shrext_cmds='.so'
23303     hardcode_into_libs=yes
23304     dynamic_linker="$host_os dld.so"
23305     shlibpath_var=LD_LIBRARY_PATH
23306     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23308     soname_spec='${libname}${release}${shared_ext}$major'
23309     if test "X$HPUX_IA64_MODE" = X32; then
23310       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23311     else
23312       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23313     fi
23314     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23315     ;;
23316    hppa*64*)
23317      shrext_cmds='.sl'
23318      hardcode_into_libs=yes
23319      dynamic_linker="$host_os dld.sl"
23320      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23321      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23322      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23323      soname_spec='${libname}${release}${shared_ext}$major'
23324      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23325      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23326      ;;
23327    *)
23328     shrext_cmds='.sl'
23329     dynamic_linker="$host_os dld.sl"
23330     shlibpath_var=SHLIB_PATH
23331     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23332     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23333     soname_spec='${libname}${release}${shared_ext}$major'
23334     ;;
23335   esac
23336   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23337   postinstall_cmds='chmod 555 $lib'
23338   ;;
23339
23340 interix3*)
23341   version_type=linux
23342   need_lib_prefix=no
23343   need_version=no
23344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23345   soname_spec='${libname}${release}${shared_ext}$major'
23346   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23347   shlibpath_var=LD_LIBRARY_PATH
23348   shlibpath_overrides_runpath=no
23349   hardcode_into_libs=yes
23350   ;;
23351
23352 irix5* | irix6* | nonstopux*)
23353   case $host_os in
23354     nonstopux*) version_type=nonstopux ;;
23355     *)
23356         if test "$lt_cv_prog_gnu_ld" = yes; then
23357                 version_type=linux
23358         else
23359                 version_type=irix
23360         fi ;;
23361   esac
23362   need_lib_prefix=no
23363   need_version=no
23364   soname_spec='${libname}${release}${shared_ext}$major'
23365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23366   case $host_os in
23367   irix5* | nonstopux*)
23368     libsuff= shlibsuff=
23369     ;;
23370   *)
23371     case $LD in # libtool.m4 will add one of these switches to LD
23372     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23373       libsuff= shlibsuff= libmagic=32-bit;;
23374     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23375       libsuff=32 shlibsuff=N32 libmagic=N32;;
23376     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23377       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23378     *) libsuff= shlibsuff= libmagic=never-match;;
23379     esac
23380     ;;
23381   esac
23382   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23383   shlibpath_overrides_runpath=no
23384   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23385   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23386   hardcode_into_libs=yes
23387   ;;
23388
23389 # No shared lib support for Linux oldld, aout, or coff.
23390 linux*oldld* | linux*aout* | linux*coff*)
23391   dynamic_linker=no
23392   ;;
23393
23394 # This must be Linux ELF.
23395 linux*)
23396   version_type=linux
23397   need_lib_prefix=no
23398   need_version=no
23399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23400   soname_spec='${libname}${release}${shared_ext}$major'
23401   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23402   shlibpath_var=LD_LIBRARY_PATH
23403   shlibpath_overrides_runpath=no
23404   # This implies no fast_install, which is unacceptable.
23405   # Some rework will be needed to allow for fast_install
23406   # before this can be enabled.
23407   hardcode_into_libs=yes
23408
23409   # Append ld.so.conf contents to the search path
23410   if test -f /etc/ld.so.conf; then
23411     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' ' '`
23412     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23413   fi
23414
23415   # We used to test for /lib/ld.so.1 and disable shared libraries on
23416   # powerpc, because MkLinux only supported shared libraries with the
23417   # GNU dynamic linker.  Since this was broken with cross compilers,
23418   # most powerpc-linux boxes support dynamic linking these days and
23419   # people can always --disable-shared, the test was removed, and we
23420   # assume the GNU/Linux dynamic linker is in use.
23421   dynamic_linker='GNU/Linux ld.so'
23422   ;;
23423
23424 knetbsd*-gnu)
23425   version_type=linux
23426   need_lib_prefix=no
23427   need_version=no
23428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23429   soname_spec='${libname}${release}${shared_ext}$major'
23430   shlibpath_var=LD_LIBRARY_PATH
23431   shlibpath_overrides_runpath=no
23432   hardcode_into_libs=yes
23433   dynamic_linker='GNU ld.so'
23434   ;;
23435
23436 netbsd*)
23437   version_type=sunos
23438   need_lib_prefix=no
23439   need_version=no
23440   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23441     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23442     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23443     dynamic_linker='NetBSD (a.out) ld.so'
23444   else
23445     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23446     soname_spec='${libname}${release}${shared_ext}$major'
23447     dynamic_linker='NetBSD ld.elf_so'
23448   fi
23449   shlibpath_var=LD_LIBRARY_PATH
23450   shlibpath_overrides_runpath=yes
23451   hardcode_into_libs=yes
23452   ;;
23453
23454 newsos6)
23455   version_type=linux
23456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23457   shlibpath_var=LD_LIBRARY_PATH
23458   shlibpath_overrides_runpath=yes
23459   ;;
23460
23461 nto-qnx*)
23462   version_type=linux
23463   need_lib_prefix=no
23464   need_version=no
23465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23466   soname_spec='${libname}${release}${shared_ext}$major'
23467   shlibpath_var=LD_LIBRARY_PATH
23468   shlibpath_overrides_runpath=yes
23469   ;;
23470
23471 openbsd*)
23472   version_type=sunos
23473   sys_lib_dlsearch_path_spec="/usr/lib"
23474   need_lib_prefix=no
23475   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23476   case $host_os in
23477     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23478     *)                         need_version=no  ;;
23479   esac
23480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23481   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23482   shlibpath_var=LD_LIBRARY_PATH
23483   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23484     case $host_os in
23485       openbsd2.[89] | openbsd2.[89].*)
23486         shlibpath_overrides_runpath=no
23487         ;;
23488       *)
23489         shlibpath_overrides_runpath=yes
23490         ;;
23491       esac
23492   else
23493     shlibpath_overrides_runpath=yes
23494   fi
23495   ;;
23496
23497 os2*)
23498   libname_spec='$name'
23499   shrext_cmds=".dll"
23500   need_lib_prefix=no
23501   library_names_spec='$libname${shared_ext} $libname.a'
23502   dynamic_linker='OS/2 ld.exe'
23503   shlibpath_var=LIBPATH
23504   ;;
23505
23506 osf3* | osf4* | osf5*)
23507   version_type=osf
23508   need_lib_prefix=no
23509   need_version=no
23510   soname_spec='${libname}${release}${shared_ext}$major'
23511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23512   shlibpath_var=LD_LIBRARY_PATH
23513   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23514   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23515   ;;
23516
23517 solaris*)
23518   version_type=linux
23519   need_lib_prefix=no
23520   need_version=no
23521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23522   soname_spec='${libname}${release}${shared_ext}$major'
23523   shlibpath_var=LD_LIBRARY_PATH
23524   shlibpath_overrides_runpath=yes
23525   hardcode_into_libs=yes
23526   # ldd complains unless libraries are executable
23527   postinstall_cmds='chmod +x $lib'
23528   ;;
23529
23530 sunos4*)
23531   version_type=sunos
23532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23533   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23534   shlibpath_var=LD_LIBRARY_PATH
23535   shlibpath_overrides_runpath=yes
23536   if test "$with_gnu_ld" = yes; then
23537     need_lib_prefix=no
23538   fi
23539   need_version=yes
23540   ;;
23541
23542 sysv4 | sysv4.3*)
23543   version_type=linux
23544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23545   soname_spec='${libname}${release}${shared_ext}$major'
23546   shlibpath_var=LD_LIBRARY_PATH
23547   case $host_vendor in
23548     sni)
23549       shlibpath_overrides_runpath=no
23550       need_lib_prefix=no
23551       export_dynamic_flag_spec='${wl}-Blargedynsym'
23552       runpath_var=LD_RUN_PATH
23553       ;;
23554     siemens)
23555       need_lib_prefix=no
23556       ;;
23557     motorola)
23558       need_lib_prefix=no
23559       need_version=no
23560       shlibpath_overrides_runpath=no
23561       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23562       ;;
23563   esac
23564   ;;
23565
23566 sysv4*MP*)
23567   if test -d /usr/nec ;then
23568     version_type=linux
23569     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23570     soname_spec='$libname${shared_ext}.$major'
23571     shlibpath_var=LD_LIBRARY_PATH
23572   fi
23573   ;;
23574
23575 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23576   version_type=freebsd-elf
23577   need_lib_prefix=no
23578   need_version=no
23579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23580   soname_spec='${libname}${release}${shared_ext}$major'
23581   shlibpath_var=LD_LIBRARY_PATH
23582   hardcode_into_libs=yes
23583   if test "$with_gnu_ld" = yes; then
23584     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23585     shlibpath_overrides_runpath=no
23586   else
23587     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23588     shlibpath_overrides_runpath=yes
23589     case $host_os in
23590       sco3.2v5*)
23591         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23592         ;;
23593     esac
23594   fi
23595   sys_lib_dlsearch_path_spec='/usr/lib'
23596   ;;
23597
23598 uts4*)
23599   version_type=linux
23600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23601   soname_spec='${libname}${release}${shared_ext}$major'
23602   shlibpath_var=LD_LIBRARY_PATH
23603   ;;
23604
23605 *)
23606   dynamic_linker=no
23607   ;;
23608 esac
23609 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23610 echo "${ECHO_T}$dynamic_linker" >&6; }
23611 test "$dynamic_linker" = no && can_build_shared=no
23612
23613 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23614 if test "$GCC" = yes; then
23615   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23616 fi
23617
23618 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23619 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23620 hardcode_action_F77=
23621 if test -n "$hardcode_libdir_flag_spec_F77" || \
23622    test -n "$runpath_var_F77" || \
23623    test "X$hardcode_automatic_F77" = "Xyes" ; then
23624
23625   # We can hardcode non-existant directories.
23626   if test "$hardcode_direct_F77" != no &&
23627      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23628      # have to relink, otherwise we might link with an installed library
23629      # when we should be linking with a yet-to-be-installed one
23630      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23631      test "$hardcode_minus_L_F77" != no; then
23632     # Linking always hardcodes the temporary library directory.
23633     hardcode_action_F77=relink
23634   else
23635     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23636     hardcode_action_F77=immediate
23637   fi
23638 else
23639   # We cannot hardcode anything, or else we can only hardcode existing
23640   # directories.
23641   hardcode_action_F77=unsupported
23642 fi
23643 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23644 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23645
23646 if test "$hardcode_action_F77" = relink; then
23647   # Fast installation is not supported
23648   enable_fast_install=no
23649 elif test "$shlibpath_overrides_runpath" = yes ||
23650      test "$enable_shared" = no; then
23651   # Fast installation is not necessary
23652   enable_fast_install=needless
23653 fi
23654
23655
23656 # The else clause should only fire when bootstrapping the
23657 # libtool distribution, otherwise you forgot to ship ltmain.sh
23658 # with your package, and you will get complaints that there are
23659 # no rules to generate ltmain.sh.
23660 if test -f "$ltmain"; then
23661   # See if we are running on zsh, and set the options which allow our commands through
23662   # without removal of \ escapes.
23663   if test -n "${ZSH_VERSION+set}" ; then
23664     setopt NO_GLOB_SUBST
23665   fi
23666   # Now quote all the things that may contain metacharacters while being
23667   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23668   # variables and quote the copies for generation of the libtool script.
23669   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23670     SED SHELL STRIP \
23671     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23672     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23673     deplibs_check_method reload_flag reload_cmds need_locks \
23674     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23675     lt_cv_sys_global_symbol_to_c_name_address \
23676     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23677     old_postinstall_cmds old_postuninstall_cmds \
23678     compiler_F77 \
23679     CC_F77 \
23680     LD_F77 \
23681     lt_prog_compiler_wl_F77 \
23682     lt_prog_compiler_pic_F77 \
23683     lt_prog_compiler_static_F77 \
23684     lt_prog_compiler_no_builtin_flag_F77 \
23685     export_dynamic_flag_spec_F77 \
23686     thread_safe_flag_spec_F77 \
23687     whole_archive_flag_spec_F77 \
23688     enable_shared_with_static_runtimes_F77 \
23689     old_archive_cmds_F77 \
23690     old_archive_from_new_cmds_F77 \
23691     predep_objects_F77 \
23692     postdep_objects_F77 \
23693     predeps_F77 \
23694     postdeps_F77 \
23695     compiler_lib_search_path_F77 \
23696     archive_cmds_F77 \
23697     archive_expsym_cmds_F77 \
23698     postinstall_cmds_F77 \
23699     postuninstall_cmds_F77 \
23700     old_archive_from_expsyms_cmds_F77 \
23701     allow_undefined_flag_F77 \
23702     no_undefined_flag_F77 \
23703     export_symbols_cmds_F77 \
23704     hardcode_libdir_flag_spec_F77 \
23705     hardcode_libdir_flag_spec_ld_F77 \
23706     hardcode_libdir_separator_F77 \
23707     hardcode_automatic_F77 \
23708     module_cmds_F77 \
23709     module_expsym_cmds_F77 \
23710     lt_cv_prog_compiler_c_o_F77 \
23711     exclude_expsyms_F77 \
23712     include_expsyms_F77; do
23713
23714     case $var in
23715     old_archive_cmds_F77 | \
23716     old_archive_from_new_cmds_F77 | \
23717     archive_cmds_F77 | \
23718     archive_expsym_cmds_F77 | \
23719     module_cmds_F77 | \
23720     module_expsym_cmds_F77 | \
23721     old_archive_from_expsyms_cmds_F77 | \
23722     export_symbols_cmds_F77 | \
23723     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23724     postinstall_cmds | postuninstall_cmds | \
23725     old_postinstall_cmds | old_postuninstall_cmds | \
23726     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23727       # Double-quote double-evaled strings.
23728       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23729       ;;
23730     *)
23731       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23732       ;;
23733     esac
23734   done
23735
23736   case $lt_echo in
23737   *'\$0 --fallback-echo"')
23738     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23739     ;;
23740   esac
23741
23742 cfgfile="$ofile"
23743
23744   cat <<__EOF__ >> "$cfgfile"
23745 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23746
23747 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23748
23749 # Shell to use when invoking shell scripts.
23750 SHELL=$lt_SHELL
23751
23752 # Whether or not to build shared libraries.
23753 build_libtool_libs=$enable_shared
23754
23755 # Whether or not to build static libraries.
23756 build_old_libs=$enable_static
23757
23758 # Whether or not to add -lc for building shared libraries.
23759 build_libtool_need_lc=$archive_cmds_need_lc_F77
23760
23761 # Whether or not to disallow shared libs when runtime libs are static
23762 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23763
23764 # Whether or not to optimize for fast installation.
23765 fast_install=$enable_fast_install
23766
23767 # The host system.
23768 host_alias=$host_alias
23769 host=$host
23770 host_os=$host_os
23771
23772 # The build system.
23773 build_alias=$build_alias
23774 build=$build
23775 build_os=$build_os
23776
23777 # An echo program that does not interpret backslashes.
23778 echo=$lt_echo
23779
23780 # The archiver.
23781 AR=$lt_AR
23782 AR_FLAGS=$lt_AR_FLAGS
23783
23784 # A C compiler.
23785 LTCC=$lt_LTCC
23786
23787 # LTCC compiler flags.
23788 LTCFLAGS=$lt_LTCFLAGS
23789
23790 # A language-specific compiler.
23791 CC=$lt_compiler_F77
23792
23793 # Is the compiler the GNU C compiler?
23794 with_gcc=$GCC_F77
23795
23796 # An ERE matcher.
23797 EGREP=$lt_EGREP
23798
23799 # The linker used to build libraries.
23800 LD=$lt_LD_F77
23801
23802 # Whether we need hard or soft links.
23803 LN_S=$lt_LN_S
23804
23805 # A BSD-compatible nm program.
23806 NM=$lt_NM
23807
23808 # A symbol stripping program
23809 STRIP=$lt_STRIP
23810
23811 # Used to examine libraries when file_magic_cmd begins "file"
23812 MAGIC_CMD=$MAGIC_CMD
23813
23814 # Used on cygwin: DLL creation program.
23815 DLLTOOL="$DLLTOOL"
23816
23817 # Used on cygwin: object dumper.
23818 OBJDUMP="$OBJDUMP"
23819
23820 # Used on cygwin: assembler.
23821 AS="$AS"
23822
23823 # The name of the directory that contains temporary libtool files.
23824 objdir=$objdir
23825
23826 # How to create reloadable object files.
23827 reload_flag=$lt_reload_flag
23828 reload_cmds=$lt_reload_cmds
23829
23830 # How to pass a linker flag through the compiler.
23831 wl=$lt_lt_prog_compiler_wl_F77
23832
23833 # Object file suffix (normally "o").
23834 objext="$ac_objext"
23835
23836 # Old archive suffix (normally "a").
23837 libext="$libext"
23838
23839 # Shared library suffix (normally ".so").
23840 shrext_cmds='$shrext_cmds'
23841
23842 # Executable file suffix (normally "").
23843 exeext="$exeext"
23844
23845 # Additional compiler flags for building library objects.
23846 pic_flag=$lt_lt_prog_compiler_pic_F77
23847 pic_mode=$pic_mode
23848
23849 # What is the maximum length of a command?
23850 max_cmd_len=$lt_cv_sys_max_cmd_len
23851
23852 # Does compiler simultaneously support -c and -o options?
23853 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23854
23855 # Must we lock files when doing compilation?
23856 need_locks=$lt_need_locks
23857
23858 # Do we need the lib prefix for modules?
23859 need_lib_prefix=$need_lib_prefix
23860
23861 # Do we need a version for libraries?
23862 need_version=$need_version
23863
23864 # Whether dlopen is supported.
23865 dlopen_support=$enable_dlopen
23866
23867 # Whether dlopen of programs is supported.
23868 dlopen_self=$enable_dlopen_self
23869
23870 # Whether dlopen of statically linked programs is supported.
23871 dlopen_self_static=$enable_dlopen_self_static
23872
23873 # Compiler flag to prevent dynamic linking.
23874 link_static_flag=$lt_lt_prog_compiler_static_F77
23875
23876 # Compiler flag to turn off builtin functions.
23877 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23878
23879 # Compiler flag to allow reflexive dlopens.
23880 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23881
23882 # Compiler flag to generate shared objects directly from archives.
23883 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23884
23885 # Compiler flag to generate thread-safe objects.
23886 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23887
23888 # Library versioning type.
23889 version_type=$version_type
23890
23891 # Format of library name prefix.
23892 libname_spec=$lt_libname_spec
23893
23894 # List of archive names.  First name is the real one, the rest are links.
23895 # The last name is the one that the linker finds with -lNAME.
23896 library_names_spec=$lt_library_names_spec
23897
23898 # The coded name of the library, if different from the real name.
23899 soname_spec=$lt_soname_spec
23900
23901 # Commands used to build and install an old-style archive.
23902 RANLIB=$lt_RANLIB
23903 old_archive_cmds=$lt_old_archive_cmds_F77
23904 old_postinstall_cmds=$lt_old_postinstall_cmds
23905 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23906
23907 # Create an old-style archive from a shared archive.
23908 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23909
23910 # Create a temporary old-style archive to link instead of a shared archive.
23911 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23912
23913 # Commands used to build and install a shared archive.
23914 archive_cmds=$lt_archive_cmds_F77
23915 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23916 postinstall_cmds=$lt_postinstall_cmds
23917 postuninstall_cmds=$lt_postuninstall_cmds
23918
23919 # Commands used to build a loadable module (assumed same as above if empty)
23920 module_cmds=$lt_module_cmds_F77
23921 module_expsym_cmds=$lt_module_expsym_cmds_F77
23922
23923 # Commands to strip libraries.
23924 old_striplib=$lt_old_striplib
23925 striplib=$lt_striplib
23926
23927 # Dependencies to place before the objects being linked to create a
23928 # shared library.
23929 predep_objects=$lt_predep_objects_F77
23930
23931 # Dependencies to place after the objects being linked to create a
23932 # shared library.
23933 postdep_objects=$lt_postdep_objects_F77
23934
23935 # Dependencies to place before the objects being linked to create a
23936 # shared library.
23937 predeps=$lt_predeps_F77
23938
23939 # Dependencies to place after the objects being linked to create a
23940 # shared library.
23941 postdeps=$lt_postdeps_F77
23942
23943 # The library search path used internally by the compiler when linking
23944 # a shared library.
23945 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23946
23947 # Method to check whether dependent libraries are shared objects.
23948 deplibs_check_method=$lt_deplibs_check_method
23949
23950 # Command to use when deplibs_check_method == file_magic.
23951 file_magic_cmd=$lt_file_magic_cmd
23952
23953 # Flag that allows shared libraries with undefined symbols to be built.
23954 allow_undefined_flag=$lt_allow_undefined_flag_F77
23955
23956 # Flag that forces no undefined symbols.
23957 no_undefined_flag=$lt_no_undefined_flag_F77
23958
23959 # Commands used to finish a libtool library installation in a directory.
23960 finish_cmds=$lt_finish_cmds
23961
23962 # Same as above, but a single script fragment to be evaled but not shown.
23963 finish_eval=$lt_finish_eval
23964
23965 # Take the output of nm and produce a listing of raw symbols and C names.
23966 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23967
23968 # Transform the output of nm in a proper C declaration
23969 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23970
23971 # Transform the output of nm in a C name address pair
23972 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23973
23974 # This is the shared library runtime path variable.
23975 runpath_var=$runpath_var
23976
23977 # This is the shared library path variable.
23978 shlibpath_var=$shlibpath_var
23979
23980 # Is shlibpath searched before the hard-coded library search path?
23981 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23982
23983 # How to hardcode a shared library path into an executable.
23984 hardcode_action=$hardcode_action_F77
23985
23986 # Whether we should hardcode library paths into libraries.
23987 hardcode_into_libs=$hardcode_into_libs
23988
23989 # Flag to hardcode \$libdir into a binary during linking.
23990 # This must work even if \$libdir does not exist.
23991 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23992
23993 # If ld is used when linking, flag to hardcode \$libdir into
23994 # a binary during linking. This must work even if \$libdir does
23995 # not exist.
23996 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23997
23998 # Whether we need a single -rpath flag with a separated argument.
23999 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24000
24001 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24002 # resulting binary.
24003 hardcode_direct=$hardcode_direct_F77
24004
24005 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24006 # resulting binary.
24007 hardcode_minus_L=$hardcode_minus_L_F77
24008
24009 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24010 # the resulting binary.
24011 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24012
24013 # Set to yes if building a shared library automatically hardcodes DIR into the library
24014 # and all subsequent libraries and executables linked against it.
24015 hardcode_automatic=$hardcode_automatic_F77
24016
24017 # Variables whose values should be saved in libtool wrapper scripts and
24018 # restored at relink time.
24019 variables_saved_for_relink="$variables_saved_for_relink"
24020
24021 # Whether libtool must link a program against all its dependency libraries.
24022 link_all_deplibs=$link_all_deplibs_F77
24023
24024 # Compile-time system search path for libraries
24025 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24026
24027 # Run-time system search path for libraries
24028 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24029
24030 # Fix the shell variable \$srcfile for the compiler.
24031 fix_srcfile_path="$fix_srcfile_path_F77"
24032
24033 # Set to yes if exported symbols are required.
24034 always_export_symbols=$always_export_symbols_F77
24035
24036 # The commands to list exported symbols.
24037 export_symbols_cmds=$lt_export_symbols_cmds_F77
24038
24039 # The commands to extract the exported symbol list from a shared archive.
24040 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24041
24042 # Symbols that should not be listed in the preloaded symbols.
24043 exclude_expsyms=$lt_exclude_expsyms_F77
24044
24045 # Symbols that must always be exported.
24046 include_expsyms=$lt_include_expsyms_F77
24047
24048 # ### END LIBTOOL TAG CONFIG: $tagname
24049
24050 __EOF__
24051
24052
24053 else
24054   # If there is no Makefile yet, we rely on a make rule to execute
24055   # `config.status --recheck' to rerun these tests and create the
24056   # libtool script then.
24057   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24058   if test -f "$ltmain_in"; then
24059     test -f Makefile && make "$ltmain"
24060   fi
24061 fi
24062
24063
24064 ac_ext=c
24065 ac_cpp='$CPP $CPPFLAGS'
24066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24069
24070 CC="$lt_save_CC"
24071
24072         else
24073           tagname=""
24074         fi
24075         ;;
24076
24077       GCJ)
24078         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24079           ac_ext=c
24080 ac_cpp='$CPP $CPPFLAGS'
24081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24084
24085
24086 # Source file extension for Java test sources.
24087 ac_ext=java
24088
24089 # Object file extension for compiled Java test sources.
24090 objext=o
24091 objext_GCJ=$objext
24092
24093 # Code to be used in simple compile tests
24094 lt_simple_compile_test_code="class foo {}\n"
24095
24096 # Code to be used in simple link tests
24097 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24098
24099 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24100
24101 # If no C compiler was specified, use CC.
24102 LTCC=${LTCC-"$CC"}
24103
24104 # If no C compiler flags were specified, use CFLAGS.
24105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24106
24107 # Allow CC to be a program name with arguments.
24108 compiler=$CC
24109
24110
24111 # save warnings/boilerplate of simple test code
24112 ac_outfile=conftest.$ac_objext
24113 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24114 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24115 _lt_compiler_boilerplate=`cat conftest.err`
24116 $rm conftest*
24117
24118 ac_outfile=conftest.$ac_objext
24119 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24120 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24121 _lt_linker_boilerplate=`cat conftest.err`
24122 $rm conftest*
24123
24124
24125 # Allow CC to be a program name with arguments.
24126 lt_save_CC="$CC"
24127 CC=${GCJ-"gcj"}
24128 compiler=$CC
24129 compiler_GCJ=$CC
24130 for cc_temp in $compiler""; do
24131   case $cc_temp in
24132     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24133     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24134     \-*) ;;
24135     *) break;;
24136   esac
24137 done
24138 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24139
24140
24141 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24142 archive_cmds_need_lc_GCJ=no
24143
24144 old_archive_cmds_GCJ=$old_archive_cmds
24145
24146
24147 lt_prog_compiler_no_builtin_flag_GCJ=
24148
24149 if test "$GCC" = yes; then
24150   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24151
24152
24153 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24154 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24155 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24156   echo $ECHO_N "(cached) $ECHO_C" >&6
24157 else
24158   lt_cv_prog_compiler_rtti_exceptions=no
24159   ac_outfile=conftest.$ac_objext
24160    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24161    lt_compiler_flag="-fno-rtti -fno-exceptions"
24162    # Insert the option either (1) after the last *FLAGS variable, or
24163    # (2) before a word containing "conftest.", or (3) at the end.
24164    # Note that $ac_compile itself does not contain backslashes and begins
24165    # with a dollar sign (not a hyphen), so the echo should work correctly.
24166    # The option is referenced via a variable to avoid confusing sed.
24167    lt_compile=`echo "$ac_compile" | $SED \
24168    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24169    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24170    -e 's:$: $lt_compiler_flag:'`
24171    (eval echo "\"\$as_me:24171: $lt_compile\"" >&5)
24172    (eval "$lt_compile" 2>conftest.err)
24173    ac_status=$?
24174    cat conftest.err >&5
24175    echo "$as_me:24175: \$? = $ac_status" >&5
24176    if (exit $ac_status) && test -s "$ac_outfile"; then
24177      # The compiler can only warn and ignore the option if not recognized
24178      # So say no if there are warnings other than the usual output.
24179      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24180      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24181      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24182        lt_cv_prog_compiler_rtti_exceptions=yes
24183      fi
24184    fi
24185    $rm conftest*
24186
24187 fi
24188 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24189 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24190
24191 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24192     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24193 else
24194     :
24195 fi
24196
24197 fi
24198
24199 lt_prog_compiler_wl_GCJ=
24200 lt_prog_compiler_pic_GCJ=
24201 lt_prog_compiler_static_GCJ=
24202
24203 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24204 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24205
24206   if test "$GCC" = yes; then
24207     lt_prog_compiler_wl_GCJ='-Wl,'
24208     lt_prog_compiler_static_GCJ='-static'
24209
24210     case $host_os in
24211       aix*)
24212       # All AIX code is PIC.
24213       if test "$host_cpu" = ia64; then
24214         # AIX 5 now supports IA64 processor
24215         lt_prog_compiler_static_GCJ='-Bstatic'
24216       fi
24217       ;;
24218
24219     amigaos*)
24220       # FIXME: we need at least 68020 code to build shared libraries, but
24221       # adding the `-m68020' flag to GCC prevents building anything better,
24222       # like `-m68040'.
24223       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24224       ;;
24225
24226     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24227       # PIC is the default for these OSes.
24228       ;;
24229
24230     mingw* | pw32* | os2*)
24231       # This hack is so that the source file can tell whether it is being
24232       # built for inclusion in a dll (and should export symbols for example).
24233       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24234       ;;
24235
24236     darwin* | rhapsody*)
24237       # PIC is the default on this platform
24238       # Common symbols not allowed in MH_DYLIB files
24239       lt_prog_compiler_pic_GCJ='-fno-common'
24240       ;;
24241
24242     interix3*)
24243       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24244       # Instead, we relocate shared libraries at runtime.
24245       ;;
24246
24247     msdosdjgpp*)
24248       # Just because we use GCC doesn't mean we suddenly get shared libraries
24249       # on systems that don't support them.
24250       lt_prog_compiler_can_build_shared_GCJ=no
24251       enable_shared=no
24252       ;;
24253
24254     sysv4*MP*)
24255       if test -d /usr/nec; then
24256         lt_prog_compiler_pic_GCJ=-Kconform_pic
24257       fi
24258       ;;
24259
24260     hpux*)
24261       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24262       # not for PA HP-UX.
24263       case $host_cpu in
24264       hppa*64*|ia64*)
24265         # +Z the default
24266         ;;
24267       *)
24268         lt_prog_compiler_pic_GCJ='-fPIC'
24269         ;;
24270       esac
24271       ;;
24272
24273     *)
24274       lt_prog_compiler_pic_GCJ='-fPIC'
24275       ;;
24276     esac
24277   else
24278     # PORTME Check for flag to pass linker flags through the system compiler.
24279     case $host_os in
24280     aix*)
24281       lt_prog_compiler_wl_GCJ='-Wl,'
24282       if test "$host_cpu" = ia64; then
24283         # AIX 5 now supports IA64 processor
24284         lt_prog_compiler_static_GCJ='-Bstatic'
24285       else
24286         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24287       fi
24288       ;;
24289       darwin*)
24290         # PIC is the default on this platform
24291         # Common symbols not allowed in MH_DYLIB files
24292        case $cc_basename in
24293          xlc*)
24294          lt_prog_compiler_pic_GCJ='-qnocommon'
24295          lt_prog_compiler_wl_GCJ='-Wl,'
24296          ;;
24297        esac
24298        ;;
24299
24300     mingw* | pw32* | os2*)
24301       # This hack is so that the source file can tell whether it is being
24302       # built for inclusion in a dll (and should export symbols for example).
24303       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24304       ;;
24305
24306     hpux9* | hpux10* | hpux11*)
24307       lt_prog_compiler_wl_GCJ='-Wl,'
24308       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24309       # not for PA HP-UX.
24310       case $host_cpu in
24311       hppa*64*|ia64*)
24312         # +Z the default
24313         ;;
24314       *)
24315         lt_prog_compiler_pic_GCJ='+Z'
24316         ;;
24317       esac
24318       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24319       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24320       ;;
24321
24322     irix5* | irix6* | nonstopux*)
24323       lt_prog_compiler_wl_GCJ='-Wl,'
24324       # PIC (with -KPIC) is the default.
24325       lt_prog_compiler_static_GCJ='-non_shared'
24326       ;;
24327
24328     newsos6)
24329       lt_prog_compiler_pic_GCJ='-KPIC'
24330       lt_prog_compiler_static_GCJ='-Bstatic'
24331       ;;
24332
24333     linux*)
24334       case $cc_basename in
24335       icc* | ecc*)
24336         lt_prog_compiler_wl_GCJ='-Wl,'
24337         lt_prog_compiler_pic_GCJ='-KPIC'
24338         lt_prog_compiler_static_GCJ='-static'
24339         ;;
24340       pgcc* | pgf77* | pgf90* | pgf95*)
24341         # Portland Group compilers (*not* the Pentium gcc compiler,
24342         # which looks to be a dead project)
24343         lt_prog_compiler_wl_GCJ='-Wl,'
24344         lt_prog_compiler_pic_GCJ='-fpic'
24345         lt_prog_compiler_static_GCJ='-Bstatic'
24346         ;;
24347       ccc*)
24348         lt_prog_compiler_wl_GCJ='-Wl,'
24349         # All Alpha code is PIC.
24350         lt_prog_compiler_static_GCJ='-non_shared'
24351         ;;
24352       esac
24353       ;;
24354
24355     osf3* | osf4* | osf5*)
24356       lt_prog_compiler_wl_GCJ='-Wl,'
24357       # All OSF/1 code is PIC.
24358       lt_prog_compiler_static_GCJ='-non_shared'
24359       ;;
24360
24361     solaris*)
24362       lt_prog_compiler_pic_GCJ='-KPIC'
24363       lt_prog_compiler_static_GCJ='-Bstatic'
24364       case $cc_basename in
24365       f77* | f90* | f95*)
24366         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24367       *)
24368         lt_prog_compiler_wl_GCJ='-Wl,';;
24369       esac
24370       ;;
24371
24372     sunos4*)
24373       lt_prog_compiler_wl_GCJ='-Qoption ld '
24374       lt_prog_compiler_pic_GCJ='-PIC'
24375       lt_prog_compiler_static_GCJ='-Bstatic'
24376       ;;
24377
24378     sysv4 | sysv4.2uw2* | sysv4.3*)
24379       lt_prog_compiler_wl_GCJ='-Wl,'
24380       lt_prog_compiler_pic_GCJ='-KPIC'
24381       lt_prog_compiler_static_GCJ='-Bstatic'
24382       ;;
24383
24384     sysv4*MP*)
24385       if test -d /usr/nec ;then
24386         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24387         lt_prog_compiler_static_GCJ='-Bstatic'
24388       fi
24389       ;;
24390
24391     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24392       lt_prog_compiler_wl_GCJ='-Wl,'
24393       lt_prog_compiler_pic_GCJ='-KPIC'
24394       lt_prog_compiler_static_GCJ='-Bstatic'
24395       ;;
24396
24397     unicos*)
24398       lt_prog_compiler_wl_GCJ='-Wl,'
24399       lt_prog_compiler_can_build_shared_GCJ=no
24400       ;;
24401
24402     uts4*)
24403       lt_prog_compiler_pic_GCJ='-pic'
24404       lt_prog_compiler_static_GCJ='-Bstatic'
24405       ;;
24406
24407     *)
24408       lt_prog_compiler_can_build_shared_GCJ=no
24409       ;;
24410     esac
24411   fi
24412
24413 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24414 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24415
24416 #
24417 # Check to make sure the PIC flag actually works.
24418 #
24419 if test -n "$lt_prog_compiler_pic_GCJ"; then
24420
24421 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24422 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24423 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24424   echo $ECHO_N "(cached) $ECHO_C" >&6
24425 else
24426   lt_prog_compiler_pic_works_GCJ=no
24427   ac_outfile=conftest.$ac_objext
24428    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24429    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24430    # Insert the option either (1) after the last *FLAGS variable, or
24431    # (2) before a word containing "conftest.", or (3) at the end.
24432    # Note that $ac_compile itself does not contain backslashes and begins
24433    # with a dollar sign (not a hyphen), so the echo should work correctly.
24434    # The option is referenced via a variable to avoid confusing sed.
24435    lt_compile=`echo "$ac_compile" | $SED \
24436    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24437    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24438    -e 's:$: $lt_compiler_flag:'`
24439    (eval echo "\"\$as_me:24439: $lt_compile\"" >&5)
24440    (eval "$lt_compile" 2>conftest.err)
24441    ac_status=$?
24442    cat conftest.err >&5
24443    echo "$as_me:24443: \$? = $ac_status" >&5
24444    if (exit $ac_status) && test -s "$ac_outfile"; then
24445      # The compiler can only warn and ignore the option if not recognized
24446      # So say no if there are warnings other than the usual output.
24447      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24448      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24449      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24450        lt_prog_compiler_pic_works_GCJ=yes
24451      fi
24452    fi
24453    $rm conftest*
24454
24455 fi
24456 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24457 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24458
24459 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24460     case $lt_prog_compiler_pic_GCJ in
24461      "" | " "*) ;;
24462      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24463      esac
24464 else
24465     lt_prog_compiler_pic_GCJ=
24466      lt_prog_compiler_can_build_shared_GCJ=no
24467 fi
24468
24469 fi
24470 case $host_os in
24471   # For platforms which do not support PIC, -DPIC is meaningless:
24472   *djgpp*)
24473     lt_prog_compiler_pic_GCJ=
24474     ;;
24475   *)
24476     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24477     ;;
24478 esac
24479
24480 #
24481 # Check to make sure the static flag actually works.
24482 #
24483 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24484 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24485 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24486 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24487   echo $ECHO_N "(cached) $ECHO_C" >&6
24488 else
24489   lt_prog_compiler_static_works_GCJ=no
24490    save_LDFLAGS="$LDFLAGS"
24491    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24492    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24493    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24494      # The linker can only warn and ignore the option if not recognized
24495      # So say no if there are warnings
24496      if test -s conftest.err; then
24497        # Append any errors to the config.log.
24498        cat conftest.err 1>&5
24499        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24500        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24501        if diff conftest.exp conftest.er2 >/dev/null; then
24502          lt_prog_compiler_static_works_GCJ=yes
24503        fi
24504      else
24505        lt_prog_compiler_static_works_GCJ=yes
24506      fi
24507    fi
24508    $rm conftest*
24509    LDFLAGS="$save_LDFLAGS"
24510
24511 fi
24512 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24513 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24514
24515 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24516     :
24517 else
24518     lt_prog_compiler_static_GCJ=
24519 fi
24520
24521
24522 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24523 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24524 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24525   echo $ECHO_N "(cached) $ECHO_C" >&6
24526 else
24527   lt_cv_prog_compiler_c_o_GCJ=no
24528    $rm -r conftest 2>/dev/null
24529    mkdir conftest
24530    cd conftest
24531    mkdir out
24532    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24533
24534    lt_compiler_flag="-o out/conftest2.$ac_objext"
24535    # Insert the option either (1) after the last *FLAGS variable, or
24536    # (2) before a word containing "conftest.", or (3) at the end.
24537    # Note that $ac_compile itself does not contain backslashes and begins
24538    # with a dollar sign (not a hyphen), so the echo should work correctly.
24539    lt_compile=`echo "$ac_compile" | $SED \
24540    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24541    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24542    -e 's:$: $lt_compiler_flag:'`
24543    (eval echo "\"\$as_me:24543: $lt_compile\"" >&5)
24544    (eval "$lt_compile" 2>out/conftest.err)
24545    ac_status=$?
24546    cat out/conftest.err >&5
24547    echo "$as_me:24547: \$? = $ac_status" >&5
24548    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24549    then
24550      # The compiler can only warn and ignore the option if not recognized
24551      # So say no if there are warnings
24552      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24553      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24554      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24555        lt_cv_prog_compiler_c_o_GCJ=yes
24556      fi
24557    fi
24558    chmod u+w . 2>&5
24559    $rm conftest*
24560    # SGI C++ compiler will create directory out/ii_files/ for
24561    # template instantiation
24562    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24563    $rm out/* && rmdir out
24564    cd ..
24565    rmdir conftest
24566    $rm conftest*
24567
24568 fi
24569 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24570 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24571
24572
24573 hard_links="nottested"
24574 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24575   # do not overwrite the value of need_locks provided by the user
24576   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24577 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24578   hard_links=yes
24579   $rm conftest*
24580   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24581   touch conftest.a
24582   ln conftest.a conftest.b 2>&5 || hard_links=no
24583   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24584   { echo "$as_me:$LINENO: result: $hard_links" >&5
24585 echo "${ECHO_T}$hard_links" >&6; }
24586   if test "$hard_links" = no; then
24587     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24588 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24589     need_locks=warn
24590   fi
24591 else
24592   need_locks=no
24593 fi
24594
24595 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24596 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24597
24598   runpath_var=
24599   allow_undefined_flag_GCJ=
24600   enable_shared_with_static_runtimes_GCJ=no
24601   archive_cmds_GCJ=
24602   archive_expsym_cmds_GCJ=
24603   old_archive_From_new_cmds_GCJ=
24604   old_archive_from_expsyms_cmds_GCJ=
24605   export_dynamic_flag_spec_GCJ=
24606   whole_archive_flag_spec_GCJ=
24607   thread_safe_flag_spec_GCJ=
24608   hardcode_libdir_flag_spec_GCJ=
24609   hardcode_libdir_flag_spec_ld_GCJ=
24610   hardcode_libdir_separator_GCJ=
24611   hardcode_direct_GCJ=no
24612   hardcode_minus_L_GCJ=no
24613   hardcode_shlibpath_var_GCJ=unsupported
24614   link_all_deplibs_GCJ=unknown
24615   hardcode_automatic_GCJ=no
24616   module_cmds_GCJ=
24617   module_expsym_cmds_GCJ=
24618   always_export_symbols_GCJ=no
24619   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24620   # include_expsyms should be a list of space-separated symbols to be *always*
24621   # included in the symbol list
24622   include_expsyms_GCJ=
24623   # exclude_expsyms can be an extended regexp of symbols to exclude
24624   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24625   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24626   # as well as any symbol that contains `d'.
24627   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24628   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24629   # platforms (ab)use it in PIC code, but their linkers get confused if
24630   # the symbol is explicitly referenced.  Since portable code cannot
24631   # rely on this symbol name, it's probably fine to never include it in
24632   # preloaded symbol tables.
24633   extract_expsyms_cmds=
24634   # Just being paranoid about ensuring that cc_basename is set.
24635   for cc_temp in $compiler""; do
24636   case $cc_temp in
24637     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24638     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24639     \-*) ;;
24640     *) break;;
24641   esac
24642 done
24643 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24644
24645   case $host_os in
24646   cygwin* | mingw* | pw32*)
24647     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24648     # When not using gcc, we currently assume that we are using
24649     # Microsoft Visual C++.
24650     if test "$GCC" != yes; then
24651       with_gnu_ld=no
24652     fi
24653     ;;
24654   interix*)
24655     # we just hope/assume this is gcc and not c89 (= MSVC++)
24656     with_gnu_ld=yes
24657     ;;
24658   openbsd*)
24659     with_gnu_ld=no
24660     ;;
24661   esac
24662
24663   ld_shlibs_GCJ=yes
24664   if test "$with_gnu_ld" = yes; then
24665     # If archive_cmds runs LD, not CC, wlarc should be empty
24666     wlarc='${wl}'
24667
24668     # Set some defaults for GNU ld with shared library support. These
24669     # are reset later if shared libraries are not supported. Putting them
24670     # here allows them to be overridden if necessary.
24671     runpath_var=LD_RUN_PATH
24672     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24673     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24674     # ancient GNU ld didn't support --whole-archive et. al.
24675     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24676         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24677       else
24678         whole_archive_flag_spec_GCJ=
24679     fi
24680     supports_anon_versioning=no
24681     case `$LD -v 2>/dev/null` in
24682       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24683       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24684       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24685       *\ 2.11.*) ;; # other 2.11 versions
24686       *) supports_anon_versioning=yes ;;
24687     esac
24688
24689     # See if GNU ld supports shared libraries.
24690     case $host_os in
24691     aix3* | aix4* | aix5*)
24692       # On AIX/PPC, the GNU linker is very broken
24693       if test "$host_cpu" != ia64; then
24694         ld_shlibs_GCJ=no
24695         cat <<EOF 1>&2
24696
24697 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24698 *** to be unable to reliably create shared libraries on AIX.
24699 *** Therefore, libtool is disabling shared libraries support.  If you
24700 *** really care for shared libraries, you may want to modify your PATH
24701 *** so that a non-GNU linker is found, and then restart.
24702
24703 EOF
24704       fi
24705       ;;
24706
24707     amigaos*)
24708       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)'
24709       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24710       hardcode_minus_L_GCJ=yes
24711
24712       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24713       # that the semantics of dynamic libraries on AmigaOS, at least up
24714       # to version 4, is to share data among multiple programs linked
24715       # with the same dynamic library.  Since this doesn't match the
24716       # behavior of shared libraries on other platforms, we can't use
24717       # them.
24718       ld_shlibs_GCJ=no
24719       ;;
24720
24721     beos*)
24722       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24723         allow_undefined_flag_GCJ=unsupported
24724         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24725         # support --undefined.  This deserves some investigation.  FIXME
24726         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24727       else
24728         ld_shlibs_GCJ=no
24729       fi
24730       ;;
24731
24732     cygwin* | mingw* | pw32*)
24733       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24734       # as there is no search path for DLLs.
24735       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24736       allow_undefined_flag_GCJ=unsupported
24737       always_export_symbols_GCJ=no
24738       enable_shared_with_static_runtimes_GCJ=yes
24739       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24740
24741       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24742         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24743         # If the export-symbols file already is a .def file (1st line
24744         # is EXPORTS), use it as is; otherwise, prepend...
24745         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24746           cp $export_symbols $output_objdir/$soname.def;
24747         else
24748           echo EXPORTS > $output_objdir/$soname.def;
24749           cat $export_symbols >> $output_objdir/$soname.def;
24750         fi~
24751         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24752       else
24753         ld_shlibs_GCJ=no
24754       fi
24755       ;;
24756
24757     interix3*)
24758       hardcode_direct_GCJ=no
24759       hardcode_shlibpath_var_GCJ=no
24760       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24761       export_dynamic_flag_spec_GCJ='${wl}-E'
24762       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24763       # Instead, shared libraries are loaded at an image base (0x10000000 by
24764       # default) and relocated if they conflict, which is a slow very memory
24765       # consuming and fragmenting process.  To avoid this, we pick a random,
24766       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24767       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24768       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'
24769       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'
24770       ;;
24771
24772     linux*)
24773       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24774         tmp_addflag=
24775         case $cc_basename,$host_cpu in
24776         pgcc*)                          # Portland Group C compiler
24777           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'
24778           tmp_addflag=' $pic_flag'
24779           ;;
24780         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24781           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'
24782           tmp_addflag=' $pic_flag -Mnomain' ;;
24783         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24784           tmp_addflag=' -i_dynamic' ;;
24785         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24786           tmp_addflag=' -i_dynamic -nofor_main' ;;
24787         ifc* | ifort*)                  # Intel Fortran compiler
24788           tmp_addflag=' -nofor_main' ;;
24789         esac
24790         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24791
24792         if test $supports_anon_versioning = yes; then
24793           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24794   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24795   $echo "local: *; };" >> $output_objdir/$libname.ver~
24796           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24797         fi
24798       else
24799         ld_shlibs_GCJ=no
24800       fi
24801       ;;
24802
24803     netbsd*)
24804       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24805         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24806         wlarc=
24807       else
24808         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24809         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24810       fi
24811       ;;
24812
24813     solaris*)
24814       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24815         ld_shlibs_GCJ=no
24816         cat <<EOF 1>&2
24817
24818 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24819 *** create shared libraries on Solaris systems.  Therefore, libtool
24820 *** is disabling shared libraries support.  We urge you to upgrade GNU
24821 *** binutils to release 2.9.1 or newer.  Another option is to modify
24822 *** your PATH or compiler configuration so that the native linker is
24823 *** used, and then restart.
24824
24825 EOF
24826       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24827         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24828         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24829       else
24830         ld_shlibs_GCJ=no
24831       fi
24832       ;;
24833
24834     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24835       case `$LD -v 2>&1` in
24836         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24837         ld_shlibs_GCJ=no
24838         cat <<_LT_EOF 1>&2
24839
24840 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24841 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24842 *** is disabling shared libraries support.  We urge you to upgrade GNU
24843 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24844 *** your PATH or compiler configuration so that the native linker is
24845 *** used, and then restart.
24846
24847 _LT_EOF
24848         ;;
24849         *)
24850           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24851             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24852             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24853             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24854           else
24855             ld_shlibs_GCJ=no
24856           fi
24857         ;;
24858       esac
24859       ;;
24860
24861     sunos4*)
24862       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24863       wlarc=
24864       hardcode_direct_GCJ=yes
24865       hardcode_shlibpath_var_GCJ=no
24866       ;;
24867
24868     *)
24869       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24870         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24871         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24872       else
24873         ld_shlibs_GCJ=no
24874       fi
24875       ;;
24876     esac
24877
24878     if test "$ld_shlibs_GCJ" = no; then
24879       runpath_var=
24880       hardcode_libdir_flag_spec_GCJ=
24881       export_dynamic_flag_spec_GCJ=
24882       whole_archive_flag_spec_GCJ=
24883     fi
24884   else
24885     # PORTME fill in a description of your system's linker (not GNU ld)
24886     case $host_os in
24887     aix3*)
24888       allow_undefined_flag_GCJ=unsupported
24889       always_export_symbols_GCJ=yes
24890       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'
24891       # Note: this linker hardcodes the directories in LIBPATH if there
24892       # are no directories specified by -L.
24893       hardcode_minus_L_GCJ=yes
24894       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24895         # Neither direct hardcoding nor static linking is supported with a
24896         # broken collect2.
24897         hardcode_direct_GCJ=unsupported
24898       fi
24899       ;;
24900
24901     aix4* | aix5*)
24902       if test "$host_cpu" = ia64; then
24903         # On IA64, the linker does run time linking by default, so we don't
24904         # have to do anything special.
24905         aix_use_runtimelinking=no
24906         exp_sym_flag='-Bexport'
24907         no_entry_flag=""
24908       else
24909         # If we're using GNU nm, then we don't want the "-C" option.
24910         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24911         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24912           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'
24913         else
24914           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'
24915         fi
24916         aix_use_runtimelinking=no
24917
24918         # Test if we are trying to use run time linking or normal
24919         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24920         # need to do runtime linking.
24921         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24922           for ld_flag in $LDFLAGS; do
24923           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24924             aix_use_runtimelinking=yes
24925             break
24926           fi
24927           done
24928           ;;
24929         esac
24930
24931         exp_sym_flag='-bexport'
24932         no_entry_flag='-bnoentry'
24933       fi
24934
24935       # When large executables or shared objects are built, AIX ld can
24936       # have problems creating the table of contents.  If linking a library
24937       # or program results in "error TOC overflow" add -mminimal-toc to
24938       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24939       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24940
24941       archive_cmds_GCJ=''
24942       hardcode_direct_GCJ=yes
24943       hardcode_libdir_separator_GCJ=':'
24944       link_all_deplibs_GCJ=yes
24945
24946       if test "$GCC" = yes; then
24947         case $host_os in aix4.[012]|aix4.[012].*)
24948         # We only want to do this on AIX 4.2 and lower, the check
24949         # below for broken collect2 doesn't work under 4.3+
24950           collect2name=`${CC} -print-prog-name=collect2`
24951           if test -f "$collect2name" && \
24952            strings "$collect2name" | grep resolve_lib_name >/dev/null
24953           then
24954           # We have reworked collect2
24955           hardcode_direct_GCJ=yes
24956           else
24957           # We have old collect2
24958           hardcode_direct_GCJ=unsupported
24959           # It fails to find uninstalled libraries when the uninstalled
24960           # path is not listed in the libpath.  Setting hardcode_minus_L
24961           # to unsupported forces relinking
24962           hardcode_minus_L_GCJ=yes
24963           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24964           hardcode_libdir_separator_GCJ=
24965           fi
24966           ;;
24967         esac
24968         shared_flag='-shared'
24969         if test "$aix_use_runtimelinking" = yes; then
24970           shared_flag="$shared_flag "'${wl}-G'
24971         fi
24972       else
24973         # not using gcc
24974         if test "$host_cpu" = ia64; then
24975         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24976         # chokes on -Wl,-G. The following line is correct:
24977           shared_flag='-G'
24978         else
24979           if test "$aix_use_runtimelinking" = yes; then
24980             shared_flag='${wl}-G'
24981           else
24982             shared_flag='${wl}-bM:SRE'
24983           fi
24984         fi
24985       fi
24986
24987       # It seems that -bexpall does not export symbols beginning with
24988       # underscore (_), so it is better to generate a list of symbols to export.
24989       always_export_symbols_GCJ=yes
24990       if test "$aix_use_runtimelinking" = yes; then
24991         # Warning - without using the other runtime loading flags (-brtl),
24992         # -berok will link without error, but may produce a broken library.
24993         allow_undefined_flag_GCJ='-berok'
24994        # Determine the default libpath from the value encoded in an empty executable.
24995        cat >conftest.$ac_ext <<_ACEOF
24996 /* confdefs.h.  */
24997 _ACEOF
24998 cat confdefs.h >>conftest.$ac_ext
24999 cat >>conftest.$ac_ext <<_ACEOF
25000 /* end confdefs.h.  */
25001
25002 int
25003 main ()
25004 {
25005
25006   ;
25007   return 0;
25008 }
25009 _ACEOF
25010 rm -f conftest.$ac_objext conftest$ac_exeext
25011 if { (ac_try="$ac_link"
25012 case "(($ac_try" in
25013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25014   *) ac_try_echo=$ac_try;;
25015 esac
25016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25017   (eval "$ac_link") 2>conftest.er1
25018   ac_status=$?
25019   grep -v '^ *+' conftest.er1 >conftest.err
25020   rm -f conftest.er1
25021   cat conftest.err >&5
25022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023   (exit $ac_status); } &&
25024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25025   { (case "(($ac_try" in
25026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25027   *) ac_try_echo=$ac_try;;
25028 esac
25029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25030   (eval "$ac_try") 2>&5
25031   ac_status=$?
25032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033   (exit $ac_status); }; } &&
25034          { ac_try='test -s conftest$ac_exeext'
25035   { (case "(($ac_try" in
25036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037   *) ac_try_echo=$ac_try;;
25038 esac
25039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25040   (eval "$ac_try") 2>&5
25041   ac_status=$?
25042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043   (exit $ac_status); }; }; then
25044
25045 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25046 }'`
25047 # Check for a 64-bit object if we didn't find anything.
25048 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; }
25049 }'`; fi
25050 else
25051   echo "$as_me: failed program was:" >&5
25052 sed 's/^/| /' conftest.$ac_ext >&5
25053
25054
25055 fi
25056
25057 rm -f core conftest.err conftest.$ac_objext \
25058       conftest$ac_exeext conftest.$ac_ext
25059 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25060
25061        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25062         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"
25063        else
25064         if test "$host_cpu" = ia64; then
25065           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25066           allow_undefined_flag_GCJ="-z nodefs"
25067           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"
25068         else
25069          # Determine the default libpath from the value encoded in an empty executable.
25070          cat >conftest.$ac_ext <<_ACEOF
25071 /* confdefs.h.  */
25072 _ACEOF
25073 cat confdefs.h >>conftest.$ac_ext
25074 cat >>conftest.$ac_ext <<_ACEOF
25075 /* end confdefs.h.  */
25076
25077 int
25078 main ()
25079 {
25080
25081   ;
25082   return 0;
25083 }
25084 _ACEOF
25085 rm -f conftest.$ac_objext conftest$ac_exeext
25086 if { (ac_try="$ac_link"
25087 case "(($ac_try" in
25088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25089   *) ac_try_echo=$ac_try;;
25090 esac
25091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25092   (eval "$ac_link") 2>conftest.er1
25093   ac_status=$?
25094   grep -v '^ *+' conftest.er1 >conftest.err
25095   rm -f conftest.er1
25096   cat conftest.err >&5
25097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098   (exit $ac_status); } &&
25099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25100   { (case "(($ac_try" in
25101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102   *) ac_try_echo=$ac_try;;
25103 esac
25104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25105   (eval "$ac_try") 2>&5
25106   ac_status=$?
25107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108   (exit $ac_status); }; } &&
25109          { ac_try='test -s conftest$ac_exeext'
25110   { (case "(($ac_try" in
25111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25112   *) ac_try_echo=$ac_try;;
25113 esac
25114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25115   (eval "$ac_try") 2>&5
25116   ac_status=$?
25117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118   (exit $ac_status); }; }; then
25119
25120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25121 }'`
25122 # Check for a 64-bit object if we didn't find anything.
25123 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; }
25124 }'`; fi
25125 else
25126   echo "$as_me: failed program was:" >&5
25127 sed 's/^/| /' conftest.$ac_ext >&5
25128
25129
25130 fi
25131
25132 rm -f core conftest.err conftest.$ac_objext \
25133       conftest$ac_exeext conftest.$ac_ext
25134 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25135
25136          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25137           # Warning - without using the other run time loading flags,
25138           # -berok will link without error, but may produce a broken library.
25139           no_undefined_flag_GCJ=' ${wl}-bernotok'
25140           allow_undefined_flag_GCJ=' ${wl}-berok'
25141           # Exported symbols can be pulled into shared objects from archives
25142           whole_archive_flag_spec_GCJ='$convenience'
25143           archive_cmds_need_lc_GCJ=yes
25144           # This is similar to how AIX traditionally builds its shared libraries.
25145           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'
25146         fi
25147       fi
25148       ;;
25149
25150     amigaos*)
25151       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)'
25152       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25153       hardcode_minus_L_GCJ=yes
25154       # see comment about different semantics on the GNU ld section
25155       ld_shlibs_GCJ=no
25156       ;;
25157
25158     bsdi[45]*)
25159       export_dynamic_flag_spec_GCJ=-rdynamic
25160       ;;
25161
25162     cygwin* | mingw* | pw32*)
25163       # When not using gcc, we currently assume that we are using
25164       # Microsoft Visual C++.
25165       # hardcode_libdir_flag_spec is actually meaningless, as there is
25166       # no search path for DLLs.
25167       hardcode_libdir_flag_spec_GCJ=' '
25168       allow_undefined_flag_GCJ=unsupported
25169       # Tell ltmain to make .lib files, not .a files.
25170       libext=lib
25171       # Tell ltmain to make .dll files, not .so files.
25172       shrext_cmds=".dll"
25173       # FIXME: Setting linknames here is a bad hack.
25174       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25175       # The linker will automatically build a .lib file if we build a DLL.
25176       old_archive_From_new_cmds_GCJ='true'
25177       # FIXME: Should let the user specify the lib program.
25178       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25179       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25180       enable_shared_with_static_runtimes_GCJ=yes
25181       ;;
25182
25183     darwin* | rhapsody*)
25184       case $host_os in
25185         rhapsody* | darwin1.[012])
25186          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25187          ;;
25188        *) # Darwin 1.3 on
25189          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25190            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25191          else
25192            case ${MACOSX_DEPLOYMENT_TARGET} in
25193              10.[012])
25194                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25195                ;;
25196              10.*)
25197                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25198                ;;
25199            esac
25200          fi
25201          ;;
25202       esac
25203       archive_cmds_need_lc_GCJ=no
25204       hardcode_direct_GCJ=no
25205       hardcode_automatic_GCJ=yes
25206       hardcode_shlibpath_var_GCJ=unsupported
25207       whole_archive_flag_spec_GCJ=''
25208       link_all_deplibs_GCJ=yes
25209     if test "$GCC" = yes ; then
25210         output_verbose_link_cmd='echo'
25211         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25212       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25213       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25214       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}'
25215       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}'
25216     else
25217       case $cc_basename in
25218         xlc*)
25219          output_verbose_link_cmd='echo'
25220          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25221          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25222           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25223          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}'
25224           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}'
25225           ;;
25226        *)
25227          ld_shlibs_GCJ=no
25228           ;;
25229       esac
25230     fi
25231       ;;
25232
25233     dgux*)
25234       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25235       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25236       hardcode_shlibpath_var_GCJ=no
25237       ;;
25238
25239     freebsd1*)
25240       ld_shlibs_GCJ=no
25241       ;;
25242
25243     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25244     # support.  Future versions do this automatically, but an explicit c++rt0.o
25245     # does not break anything, and helps significantly (at the cost of a little
25246     # extra space).
25247     freebsd2.2*)
25248       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25249       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25250       hardcode_direct_GCJ=yes
25251       hardcode_shlibpath_var_GCJ=no
25252       ;;
25253
25254     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25255     freebsd2*)
25256       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25257       hardcode_direct_GCJ=yes
25258       hardcode_minus_L_GCJ=yes
25259       hardcode_shlibpath_var_GCJ=no
25260       ;;
25261
25262     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25263     freebsd* | kfreebsd*-gnu | dragonfly*)
25264       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25265       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25266       hardcode_direct_GCJ=yes
25267       hardcode_shlibpath_var_GCJ=no
25268       ;;
25269
25270     hpux9*)
25271       if test "$GCC" = yes; then
25272         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'
25273       else
25274         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'
25275       fi
25276       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25277       hardcode_libdir_separator_GCJ=:
25278       hardcode_direct_GCJ=yes
25279
25280       # hardcode_minus_L: Not really in the search PATH,
25281       # but as the default location of the library.
25282       hardcode_minus_L_GCJ=yes
25283       export_dynamic_flag_spec_GCJ='${wl}-E'
25284       ;;
25285
25286     hpux10*)
25287       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25288         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25289       else
25290         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25291       fi
25292       if test "$with_gnu_ld" = no; then
25293         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25294         hardcode_libdir_separator_GCJ=:
25295
25296         hardcode_direct_GCJ=yes
25297         export_dynamic_flag_spec_GCJ='${wl}-E'
25298
25299         # hardcode_minus_L: Not really in the search PATH,
25300         # but as the default location of the library.
25301         hardcode_minus_L_GCJ=yes
25302       fi
25303       ;;
25304
25305     hpux11*)
25306       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25307         case $host_cpu in
25308         hppa*64*)
25309           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25310           ;;
25311         ia64*)
25312           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25313           ;;
25314         *)
25315           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25316           ;;
25317         esac
25318       else
25319         case $host_cpu in
25320         hppa*64*)
25321           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25322           ;;
25323         ia64*)
25324           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25325           ;;
25326         *)
25327           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25328           ;;
25329         esac
25330       fi
25331       if test "$with_gnu_ld" = no; then
25332         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25333         hardcode_libdir_separator_GCJ=:
25334
25335         case $host_cpu in
25336         hppa*64*|ia64*)
25337           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25338           hardcode_direct_GCJ=no
25339           hardcode_shlibpath_var_GCJ=no
25340           ;;
25341         *)
25342           hardcode_direct_GCJ=yes
25343           export_dynamic_flag_spec_GCJ='${wl}-E'
25344
25345           # hardcode_minus_L: Not really in the search PATH,
25346           # but as the default location of the library.
25347           hardcode_minus_L_GCJ=yes
25348           ;;
25349         esac
25350       fi
25351       ;;
25352
25353     irix5* | irix6* | nonstopux*)
25354       if test "$GCC" = yes; then
25355         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'
25356       else
25357         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'
25358         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25359       fi
25360       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25361       hardcode_libdir_separator_GCJ=:
25362       link_all_deplibs_GCJ=yes
25363       ;;
25364
25365     netbsd*)
25366       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25367         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25368       else
25369         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25370       fi
25371       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25372       hardcode_direct_GCJ=yes
25373       hardcode_shlibpath_var_GCJ=no
25374       ;;
25375
25376     newsos6)
25377       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25378       hardcode_direct_GCJ=yes
25379       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25380       hardcode_libdir_separator_GCJ=:
25381       hardcode_shlibpath_var_GCJ=no
25382       ;;
25383
25384     openbsd*)
25385       hardcode_direct_GCJ=yes
25386       hardcode_shlibpath_var_GCJ=no
25387       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25388         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25389         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25390         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25391         export_dynamic_flag_spec_GCJ='${wl}-E'
25392       else
25393        case $host_os in
25394          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25395            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25396            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25397            ;;
25398          *)
25399            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25400            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25401            ;;
25402        esac
25403       fi
25404       ;;
25405
25406     os2*)
25407       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25408       hardcode_minus_L_GCJ=yes
25409       allow_undefined_flag_GCJ=unsupported
25410       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'
25411       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25412       ;;
25413
25414     osf3*)
25415       if test "$GCC" = yes; then
25416         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25417         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'
25418       else
25419         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25420         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'
25421       fi
25422       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25423       hardcode_libdir_separator_GCJ=:
25424       ;;
25425
25426     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25427       if test "$GCC" = yes; then
25428         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25429         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'
25430         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25431       else
25432         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25433         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'
25434         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~
25435         $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'
25436
25437         # Both c and cxx compiler support -rpath directly
25438         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25439       fi
25440       hardcode_libdir_separator_GCJ=:
25441       ;;
25442
25443     solaris*)
25444       no_undefined_flag_GCJ=' -z text'
25445       if test "$GCC" = yes; then
25446         wlarc='${wl}'
25447         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25448         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25449           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25450       else
25451         wlarc=''
25452         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25453         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25454         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25455       fi
25456       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25457       hardcode_shlibpath_var_GCJ=no
25458       case $host_os in
25459       solaris2.[0-5] | solaris2.[0-5].*) ;;
25460       *)
25461         # The compiler driver will combine linker options so we
25462         # cannot just pass the convience library names through
25463         # without $wl, iff we do not link with $LD.
25464         # Luckily, gcc supports the same syntax we need for Sun Studio.
25465         # Supported since Solaris 2.6 (maybe 2.5.1?)
25466         case $wlarc in
25467         '')
25468           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25469         *)
25470           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' ;;
25471         esac ;;
25472       esac
25473       link_all_deplibs_GCJ=yes
25474       ;;
25475
25476     sunos4*)
25477       if test "x$host_vendor" = xsequent; then
25478         # Use $CC to link under sequent, because it throws in some extra .o
25479         # files that make .init and .fini sections work.
25480         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25481       else
25482         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25483       fi
25484       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25485       hardcode_direct_GCJ=yes
25486       hardcode_minus_L_GCJ=yes
25487       hardcode_shlibpath_var_GCJ=no
25488       ;;
25489
25490     sysv4)
25491       case $host_vendor in
25492         sni)
25493           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25494           hardcode_direct_GCJ=yes # is this really true???
25495         ;;
25496         siemens)
25497           ## LD is ld it makes a PLAMLIB
25498           ## CC just makes a GrossModule.
25499           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25500           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25501           hardcode_direct_GCJ=no
25502         ;;
25503         motorola)
25504           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25505           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25506         ;;
25507       esac
25508       runpath_var='LD_RUN_PATH'
25509       hardcode_shlibpath_var_GCJ=no
25510       ;;
25511
25512     sysv4.3*)
25513       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25514       hardcode_shlibpath_var_GCJ=no
25515       export_dynamic_flag_spec_GCJ='-Bexport'
25516       ;;
25517
25518     sysv4*MP*)
25519       if test -d /usr/nec; then
25520         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25521         hardcode_shlibpath_var_GCJ=no
25522         runpath_var=LD_RUN_PATH
25523         hardcode_runpath_var=yes
25524         ld_shlibs_GCJ=yes
25525       fi
25526       ;;
25527
25528     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25529       no_undefined_flag_GCJ='${wl}-z,text'
25530       archive_cmds_need_lc_GCJ=no
25531       hardcode_shlibpath_var_GCJ=no
25532       runpath_var='LD_RUN_PATH'
25533
25534       if test "$GCC" = yes; then
25535         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25536         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25537       else
25538         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25539         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25540       fi
25541       ;;
25542
25543     sysv5* | sco3.2v5* | sco5v6*)
25544       # Note: We can NOT use -z defs as we might desire, because we do not
25545       # link with -lc, and that would cause any symbols used from libc to
25546       # always be unresolved, which means just about no library would
25547       # ever link correctly.  If we're not using GNU ld we use -z text
25548       # though, which does catch some bad symbols but isn't as heavy-handed
25549       # as -z defs.
25550       no_undefined_flag_GCJ='${wl}-z,text'
25551       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25552       archive_cmds_need_lc_GCJ=no
25553       hardcode_shlibpath_var_GCJ=no
25554       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25555       hardcode_libdir_separator_GCJ=':'
25556       link_all_deplibs_GCJ=yes
25557       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25558       runpath_var='LD_RUN_PATH'
25559
25560       if test "$GCC" = yes; then
25561         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25562         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25563       else
25564         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25565         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25566       fi
25567       ;;
25568
25569     uts4*)
25570       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25571       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25572       hardcode_shlibpath_var_GCJ=no
25573       ;;
25574
25575     *)
25576       ld_shlibs_GCJ=no
25577       ;;
25578     esac
25579   fi
25580
25581 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25582 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25583 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25584
25585 #
25586 # Do we need to explicitly link libc?
25587 #
25588 case "x$archive_cmds_need_lc_GCJ" in
25589 x|xyes)
25590   # Assume -lc should be added
25591   archive_cmds_need_lc_GCJ=yes
25592
25593   if test "$enable_shared" = yes && test "$GCC" = yes; then
25594     case $archive_cmds_GCJ in
25595     *'~'*)
25596       # FIXME: we may have to deal with multi-command sequences.
25597       ;;
25598     '$CC '*)
25599       # Test whether the compiler implicitly links with -lc since on some
25600       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25601       # to ld, don't add -lc before -lgcc.
25602       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25603 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25604       $rm conftest*
25605       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25606
25607       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25608   (eval $ac_compile) 2>&5
25609   ac_status=$?
25610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611   (exit $ac_status); } 2>conftest.err; then
25612         soname=conftest
25613         lib=conftest
25614         libobjs=conftest.$ac_objext
25615         deplibs=
25616         wl=$lt_prog_compiler_wl_GCJ
25617         pic_flag=$lt_prog_compiler_pic_GCJ
25618         compiler_flags=-v
25619         linker_flags=-v
25620         verstring=
25621         output_objdir=.
25622         libname=conftest
25623         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25624         allow_undefined_flag_GCJ=
25625         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25626   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25627   ac_status=$?
25628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629   (exit $ac_status); }
25630         then
25631           archive_cmds_need_lc_GCJ=no
25632         else
25633           archive_cmds_need_lc_GCJ=yes
25634         fi
25635         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25636       else
25637         cat conftest.err 1>&5
25638       fi
25639       $rm conftest*
25640       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25641 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25642       ;;
25643     esac
25644   fi
25645   ;;
25646 esac
25647
25648 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25649 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25650 library_names_spec=
25651 libname_spec='lib$name'
25652 soname_spec=
25653 shrext_cmds=".so"
25654 postinstall_cmds=
25655 postuninstall_cmds=
25656 finish_cmds=
25657 finish_eval=
25658 shlibpath_var=
25659 shlibpath_overrides_runpath=unknown
25660 version_type=none
25661 dynamic_linker="$host_os ld.so"
25662 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25663 if test "$GCC" = yes; then
25664   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25665   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25666     # if the path contains ";" then we assume it to be the separator
25667     # otherwise default to the standard path separator (i.e. ":") - it is
25668     # assumed that no part of a normal pathname contains ";" but that should
25669     # okay in the real world where ";" in dirpaths is itself problematic.
25670     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25671   else
25672     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25673   fi
25674 else
25675   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25676 fi
25677 need_lib_prefix=unknown
25678 hardcode_into_libs=no
25679
25680 # when you set need_version to no, make sure it does not cause -set_version
25681 # flags to be left without arguments
25682 need_version=unknown
25683
25684 case $host_os in
25685 aix3*)
25686   version_type=linux
25687   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25688   shlibpath_var=LIBPATH
25689
25690   # AIX 3 has no versioning support, so we append a major version to the name.
25691   soname_spec='${libname}${release}${shared_ext}$major'
25692   ;;
25693
25694 aix4* | aix5*)
25695   version_type=linux
25696   need_lib_prefix=no
25697   need_version=no
25698   hardcode_into_libs=yes
25699   if test "$host_cpu" = ia64; then
25700     # AIX 5 supports IA64
25701     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25702     shlibpath_var=LD_LIBRARY_PATH
25703   else
25704     # With GCC up to 2.95.x, collect2 would create an import file
25705     # for dependence libraries.  The import file would start with
25706     # the line `#! .'.  This would cause the generated library to
25707     # depend on `.', always an invalid library.  This was fixed in
25708     # development snapshots of GCC prior to 3.0.
25709     case $host_os in
25710       aix4 | aix4.[01] | aix4.[01].*)
25711       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25712            echo ' yes '
25713            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25714         :
25715       else
25716         can_build_shared=no
25717       fi
25718       ;;
25719     esac
25720     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25721     # soname into executable. Probably we can add versioning support to
25722     # collect2, so additional links can be useful in future.
25723     if test "$aix_use_runtimelinking" = yes; then
25724       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25725       # instead of lib<name>.a to let people know that these are not
25726       # typical AIX shared libraries.
25727       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25728     else
25729       # We preserve .a as extension for shared libraries through AIX4.2
25730       # and later when we are not doing run time linking.
25731       library_names_spec='${libname}${release}.a $libname.a'
25732       soname_spec='${libname}${release}${shared_ext}$major'
25733     fi
25734     shlibpath_var=LIBPATH
25735   fi
25736   ;;
25737
25738 amigaos*)
25739   library_names_spec='$libname.ixlibrary $libname.a'
25740   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25741   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'
25742   ;;
25743
25744 beos*)
25745   library_names_spec='${libname}${shared_ext}'
25746   dynamic_linker="$host_os ld.so"
25747   shlibpath_var=LIBRARY_PATH
25748   ;;
25749
25750 bsdi[45]*)
25751   version_type=linux
25752   need_version=no
25753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25754   soname_spec='${libname}${release}${shared_ext}$major'
25755   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25756   shlibpath_var=LD_LIBRARY_PATH
25757   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25758   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25759   # the default ld.so.conf also contains /usr/contrib/lib and
25760   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25761   # libtool to hard-code these into programs
25762   ;;
25763
25764 cygwin* | mingw* | pw32*)
25765   version_type=windows
25766   shrext_cmds=".dll"
25767   need_version=no
25768   need_lib_prefix=no
25769
25770   case $GCC,$host_os in
25771   yes,cygwin* | yes,mingw* | yes,pw32*)
25772     library_names_spec='$libname.dll.a'
25773     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25774     postinstall_cmds='base_file=`basename \${file}`~
25775       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25776       dldir=$destdir/`dirname \$dlpath`~
25777       test -d \$dldir || mkdir -p \$dldir~
25778       $install_prog $dir/$dlname \$dldir/$dlname~
25779       chmod a+x \$dldir/$dlname'
25780     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25781       dlpath=$dir/\$dldll~
25782        $rm \$dlpath'
25783     shlibpath_overrides_runpath=yes
25784
25785     case $host_os in
25786     cygwin*)
25787       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25788       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25789       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25790       ;;
25791     mingw*)
25792       # MinGW DLLs use traditional 'lib' prefix
25793       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25794       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25795       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25796         # It is most probably a Windows format PATH printed by
25797         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25798         # path with ; separators, and with drive letters. We can handle the
25799         # drive letters (cygwin fileutils understands them), so leave them,
25800         # especially as we might pass files found there to a mingw objdump,
25801         # which wouldn't understand a cygwinified path. Ahh.
25802         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25803       else
25804         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25805       fi
25806       ;;
25807     pw32*)
25808       # pw32 DLLs use 'pw' prefix rather than 'lib'
25809       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25810       ;;
25811     esac
25812     ;;
25813
25814   *)
25815     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25816     ;;
25817   esac
25818   dynamic_linker='Win32 ld.exe'
25819   # FIXME: first we should search . and the directory the executable is in
25820   shlibpath_var=PATH
25821   ;;
25822
25823 darwin* | rhapsody*)
25824   dynamic_linker="$host_os dyld"
25825   version_type=darwin
25826   need_lib_prefix=no
25827   need_version=no
25828   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25829   soname_spec='${libname}${release}${major}$shared_ext'
25830   shlibpath_overrides_runpath=yes
25831   shlibpath_var=DYLD_LIBRARY_PATH
25832   shrext_cmds='.dylib'
25833   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25834   if test "$GCC" = yes; then
25835     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"`
25836   else
25837     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25838   fi
25839   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25840   ;;
25841
25842 dgux*)
25843   version_type=linux
25844   need_lib_prefix=no
25845   need_version=no
25846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25847   soname_spec='${libname}${release}${shared_ext}$major'
25848   shlibpath_var=LD_LIBRARY_PATH
25849   ;;
25850
25851 freebsd1*)
25852   dynamic_linker=no
25853   ;;
25854
25855 kfreebsd*-gnu)
25856   version_type=linux
25857   need_lib_prefix=no
25858   need_version=no
25859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25860   soname_spec='${libname}${release}${shared_ext}$major'
25861   shlibpath_var=LD_LIBRARY_PATH
25862   shlibpath_overrides_runpath=no
25863   hardcode_into_libs=yes
25864   dynamic_linker='GNU ld.so'
25865   ;;
25866
25867 freebsd* | dragonfly*)
25868   # DragonFly does not have aout.  When/if they implement a new
25869   # versioning mechanism, adjust this.
25870   if test -x /usr/bin/objformat; then
25871     objformat=`/usr/bin/objformat`
25872   else
25873     case $host_os in
25874     freebsd[123]*) objformat=aout ;;
25875     *) objformat=elf ;;
25876     esac
25877   fi
25878   version_type=freebsd-$objformat
25879   case $version_type in
25880     freebsd-elf*)
25881       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25882       need_version=no
25883       need_lib_prefix=no
25884       ;;
25885     freebsd-*)
25886       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25887       need_version=yes
25888       ;;
25889   esac
25890   shlibpath_var=LD_LIBRARY_PATH
25891   case $host_os in
25892   freebsd2*)
25893     shlibpath_overrides_runpath=yes
25894     ;;
25895   freebsd3.[01]* | freebsdelf3.[01]*)
25896     shlibpath_overrides_runpath=yes
25897     hardcode_into_libs=yes
25898     ;;
25899   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25900   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25901     shlibpath_overrides_runpath=no
25902     hardcode_into_libs=yes
25903     ;;
25904   freebsd*) # from 4.6 on
25905     shlibpath_overrides_runpath=yes
25906     hardcode_into_libs=yes
25907     ;;
25908   esac
25909   ;;
25910
25911 gnu*)
25912   version_type=linux
25913   need_lib_prefix=no
25914   need_version=no
25915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25916   soname_spec='${libname}${release}${shared_ext}$major'
25917   shlibpath_var=LD_LIBRARY_PATH
25918   hardcode_into_libs=yes
25919   ;;
25920
25921 hpux9* | hpux10* | hpux11*)
25922   # Give a soname corresponding to the major version so that dld.sl refuses to
25923   # link against other versions.
25924   version_type=sunos
25925   need_lib_prefix=no
25926   need_version=no
25927   case $host_cpu in
25928   ia64*)
25929     shrext_cmds='.so'
25930     hardcode_into_libs=yes
25931     dynamic_linker="$host_os dld.so"
25932     shlibpath_var=LD_LIBRARY_PATH
25933     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25935     soname_spec='${libname}${release}${shared_ext}$major'
25936     if test "X$HPUX_IA64_MODE" = X32; then
25937       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25938     else
25939       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25940     fi
25941     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25942     ;;
25943    hppa*64*)
25944      shrext_cmds='.sl'
25945      hardcode_into_libs=yes
25946      dynamic_linker="$host_os dld.sl"
25947      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25948      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25949      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25950      soname_spec='${libname}${release}${shared_ext}$major'
25951      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25952      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25953      ;;
25954    *)
25955     shrext_cmds='.sl'
25956     dynamic_linker="$host_os dld.sl"
25957     shlibpath_var=SHLIB_PATH
25958     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25959     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25960     soname_spec='${libname}${release}${shared_ext}$major'
25961     ;;
25962   esac
25963   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25964   postinstall_cmds='chmod 555 $lib'
25965   ;;
25966
25967 interix3*)
25968   version_type=linux
25969   need_lib_prefix=no
25970   need_version=no
25971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25972   soname_spec='${libname}${release}${shared_ext}$major'
25973   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25974   shlibpath_var=LD_LIBRARY_PATH
25975   shlibpath_overrides_runpath=no
25976   hardcode_into_libs=yes
25977   ;;
25978
25979 irix5* | irix6* | nonstopux*)
25980   case $host_os in
25981     nonstopux*) version_type=nonstopux ;;
25982     *)
25983         if test "$lt_cv_prog_gnu_ld" = yes; then
25984                 version_type=linux
25985         else
25986                 version_type=irix
25987         fi ;;
25988   esac
25989   need_lib_prefix=no
25990   need_version=no
25991   soname_spec='${libname}${release}${shared_ext}$major'
25992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25993   case $host_os in
25994   irix5* | nonstopux*)
25995     libsuff= shlibsuff=
25996     ;;
25997   *)
25998     case $LD in # libtool.m4 will add one of these switches to LD
25999     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26000       libsuff= shlibsuff= libmagic=32-bit;;
26001     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26002       libsuff=32 shlibsuff=N32 libmagic=N32;;
26003     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26004       libsuff=64 shlibsuff=64 libmagic=64-bit;;
26005     *) libsuff= shlibsuff= libmagic=never-match;;
26006     esac
26007     ;;
26008   esac
26009   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26010   shlibpath_overrides_runpath=no
26011   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26012   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26013   hardcode_into_libs=yes
26014   ;;
26015
26016 # No shared lib support for Linux oldld, aout, or coff.
26017 linux*oldld* | linux*aout* | linux*coff*)
26018   dynamic_linker=no
26019   ;;
26020
26021 # This must be Linux ELF.
26022 linux*)
26023   version_type=linux
26024   need_lib_prefix=no
26025   need_version=no
26026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26027   soname_spec='${libname}${release}${shared_ext}$major'
26028   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26029   shlibpath_var=LD_LIBRARY_PATH
26030   shlibpath_overrides_runpath=no
26031   # This implies no fast_install, which is unacceptable.
26032   # Some rework will be needed to allow for fast_install
26033   # before this can be enabled.
26034   hardcode_into_libs=yes
26035
26036   # Append ld.so.conf contents to the search path
26037   if test -f /etc/ld.so.conf; then
26038     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' ' '`
26039     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26040   fi
26041
26042   # We used to test for /lib/ld.so.1 and disable shared libraries on
26043   # powerpc, because MkLinux only supported shared libraries with the
26044   # GNU dynamic linker.  Since this was broken with cross compilers,
26045   # most powerpc-linux boxes support dynamic linking these days and
26046   # people can always --disable-shared, the test was removed, and we
26047   # assume the GNU/Linux dynamic linker is in use.
26048   dynamic_linker='GNU/Linux ld.so'
26049   ;;
26050
26051 knetbsd*-gnu)
26052   version_type=linux
26053   need_lib_prefix=no
26054   need_version=no
26055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26056   soname_spec='${libname}${release}${shared_ext}$major'
26057   shlibpath_var=LD_LIBRARY_PATH
26058   shlibpath_overrides_runpath=no
26059   hardcode_into_libs=yes
26060   dynamic_linker='GNU ld.so'
26061   ;;
26062
26063 netbsd*)
26064   version_type=sunos
26065   need_lib_prefix=no
26066   need_version=no
26067   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26068     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26069     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26070     dynamic_linker='NetBSD (a.out) ld.so'
26071   else
26072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26073     soname_spec='${libname}${release}${shared_ext}$major'
26074     dynamic_linker='NetBSD ld.elf_so'
26075   fi
26076   shlibpath_var=LD_LIBRARY_PATH
26077   shlibpath_overrides_runpath=yes
26078   hardcode_into_libs=yes
26079   ;;
26080
26081 newsos6)
26082   version_type=linux
26083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26084   shlibpath_var=LD_LIBRARY_PATH
26085   shlibpath_overrides_runpath=yes
26086   ;;
26087
26088 nto-qnx*)
26089   version_type=linux
26090   need_lib_prefix=no
26091   need_version=no
26092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26093   soname_spec='${libname}${release}${shared_ext}$major'
26094   shlibpath_var=LD_LIBRARY_PATH
26095   shlibpath_overrides_runpath=yes
26096   ;;
26097
26098 openbsd*)
26099   version_type=sunos
26100   sys_lib_dlsearch_path_spec="/usr/lib"
26101   need_lib_prefix=no
26102   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26103   case $host_os in
26104     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26105     *)                         need_version=no  ;;
26106   esac
26107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26108   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26109   shlibpath_var=LD_LIBRARY_PATH
26110   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26111     case $host_os in
26112       openbsd2.[89] | openbsd2.[89].*)
26113         shlibpath_overrides_runpath=no
26114         ;;
26115       *)
26116         shlibpath_overrides_runpath=yes
26117         ;;
26118       esac
26119   else
26120     shlibpath_overrides_runpath=yes
26121   fi
26122   ;;
26123
26124 os2*)
26125   libname_spec='$name'
26126   shrext_cmds=".dll"
26127   need_lib_prefix=no
26128   library_names_spec='$libname${shared_ext} $libname.a'
26129   dynamic_linker='OS/2 ld.exe'
26130   shlibpath_var=LIBPATH
26131   ;;
26132
26133 osf3* | osf4* | osf5*)
26134   version_type=osf
26135   need_lib_prefix=no
26136   need_version=no
26137   soname_spec='${libname}${release}${shared_ext}$major'
26138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26139   shlibpath_var=LD_LIBRARY_PATH
26140   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26141   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26142   ;;
26143
26144 solaris*)
26145   version_type=linux
26146   need_lib_prefix=no
26147   need_version=no
26148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26149   soname_spec='${libname}${release}${shared_ext}$major'
26150   shlibpath_var=LD_LIBRARY_PATH
26151   shlibpath_overrides_runpath=yes
26152   hardcode_into_libs=yes
26153   # ldd complains unless libraries are executable
26154   postinstall_cmds='chmod +x $lib'
26155   ;;
26156
26157 sunos4*)
26158   version_type=sunos
26159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26160   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26161   shlibpath_var=LD_LIBRARY_PATH
26162   shlibpath_overrides_runpath=yes
26163   if test "$with_gnu_ld" = yes; then
26164     need_lib_prefix=no
26165   fi
26166   need_version=yes
26167   ;;
26168
26169 sysv4 | sysv4.3*)
26170   version_type=linux
26171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26172   soname_spec='${libname}${release}${shared_ext}$major'
26173   shlibpath_var=LD_LIBRARY_PATH
26174   case $host_vendor in
26175     sni)
26176       shlibpath_overrides_runpath=no
26177       need_lib_prefix=no
26178       export_dynamic_flag_spec='${wl}-Blargedynsym'
26179       runpath_var=LD_RUN_PATH
26180       ;;
26181     siemens)
26182       need_lib_prefix=no
26183       ;;
26184     motorola)
26185       need_lib_prefix=no
26186       need_version=no
26187       shlibpath_overrides_runpath=no
26188       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26189       ;;
26190   esac
26191   ;;
26192
26193 sysv4*MP*)
26194   if test -d /usr/nec ;then
26195     version_type=linux
26196     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26197     soname_spec='$libname${shared_ext}.$major'
26198     shlibpath_var=LD_LIBRARY_PATH
26199   fi
26200   ;;
26201
26202 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26203   version_type=freebsd-elf
26204   need_lib_prefix=no
26205   need_version=no
26206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26207   soname_spec='${libname}${release}${shared_ext}$major'
26208   shlibpath_var=LD_LIBRARY_PATH
26209   hardcode_into_libs=yes
26210   if test "$with_gnu_ld" = yes; then
26211     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26212     shlibpath_overrides_runpath=no
26213   else
26214     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26215     shlibpath_overrides_runpath=yes
26216     case $host_os in
26217       sco3.2v5*)
26218         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26219         ;;
26220     esac
26221   fi
26222   sys_lib_dlsearch_path_spec='/usr/lib'
26223   ;;
26224
26225 uts4*)
26226   version_type=linux
26227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26228   soname_spec='${libname}${release}${shared_ext}$major'
26229   shlibpath_var=LD_LIBRARY_PATH
26230   ;;
26231
26232 *)
26233   dynamic_linker=no
26234   ;;
26235 esac
26236 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26237 echo "${ECHO_T}$dynamic_linker" >&6; }
26238 test "$dynamic_linker" = no && can_build_shared=no
26239
26240 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26241 if test "$GCC" = yes; then
26242   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26243 fi
26244
26245 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26246 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26247 hardcode_action_GCJ=
26248 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26249    test -n "$runpath_var_GCJ" || \
26250    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26251
26252   # We can hardcode non-existant directories.
26253   if test "$hardcode_direct_GCJ" != no &&
26254      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26255      # have to relink, otherwise we might link with an installed library
26256      # when we should be linking with a yet-to-be-installed one
26257      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26258      test "$hardcode_minus_L_GCJ" != no; then
26259     # Linking always hardcodes the temporary library directory.
26260     hardcode_action_GCJ=relink
26261   else
26262     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26263     hardcode_action_GCJ=immediate
26264   fi
26265 else
26266   # We cannot hardcode anything, or else we can only hardcode existing
26267   # directories.
26268   hardcode_action_GCJ=unsupported
26269 fi
26270 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26271 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26272
26273 if test "$hardcode_action_GCJ" = relink; then
26274   # Fast installation is not supported
26275   enable_fast_install=no
26276 elif test "$shlibpath_overrides_runpath" = yes ||
26277      test "$enable_shared" = no; then
26278   # Fast installation is not necessary
26279   enable_fast_install=needless
26280 fi
26281
26282
26283 # The else clause should only fire when bootstrapping the
26284 # libtool distribution, otherwise you forgot to ship ltmain.sh
26285 # with your package, and you will get complaints that there are
26286 # no rules to generate ltmain.sh.
26287 if test -f "$ltmain"; then
26288   # See if we are running on zsh, and set the options which allow our commands through
26289   # without removal of \ escapes.
26290   if test -n "${ZSH_VERSION+set}" ; then
26291     setopt NO_GLOB_SUBST
26292   fi
26293   # Now quote all the things that may contain metacharacters while being
26294   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26295   # variables and quote the copies for generation of the libtool script.
26296   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26297     SED SHELL STRIP \
26298     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26299     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26300     deplibs_check_method reload_flag reload_cmds need_locks \
26301     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26302     lt_cv_sys_global_symbol_to_c_name_address \
26303     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26304     old_postinstall_cmds old_postuninstall_cmds \
26305     compiler_GCJ \
26306     CC_GCJ \
26307     LD_GCJ \
26308     lt_prog_compiler_wl_GCJ \
26309     lt_prog_compiler_pic_GCJ \
26310     lt_prog_compiler_static_GCJ \
26311     lt_prog_compiler_no_builtin_flag_GCJ \
26312     export_dynamic_flag_spec_GCJ \
26313     thread_safe_flag_spec_GCJ \
26314     whole_archive_flag_spec_GCJ \
26315     enable_shared_with_static_runtimes_GCJ \
26316     old_archive_cmds_GCJ \
26317     old_archive_from_new_cmds_GCJ \
26318     predep_objects_GCJ \
26319     postdep_objects_GCJ \
26320     predeps_GCJ \
26321     postdeps_GCJ \
26322     compiler_lib_search_path_GCJ \
26323     archive_cmds_GCJ \
26324     archive_expsym_cmds_GCJ \
26325     postinstall_cmds_GCJ \
26326     postuninstall_cmds_GCJ \
26327     old_archive_from_expsyms_cmds_GCJ \
26328     allow_undefined_flag_GCJ \
26329     no_undefined_flag_GCJ \
26330     export_symbols_cmds_GCJ \
26331     hardcode_libdir_flag_spec_GCJ \
26332     hardcode_libdir_flag_spec_ld_GCJ \
26333     hardcode_libdir_separator_GCJ \
26334     hardcode_automatic_GCJ \
26335     module_cmds_GCJ \
26336     module_expsym_cmds_GCJ \
26337     lt_cv_prog_compiler_c_o_GCJ \
26338     exclude_expsyms_GCJ \
26339     include_expsyms_GCJ; do
26340
26341     case $var in
26342     old_archive_cmds_GCJ | \
26343     old_archive_from_new_cmds_GCJ | \
26344     archive_cmds_GCJ | \
26345     archive_expsym_cmds_GCJ | \
26346     module_cmds_GCJ | \
26347     module_expsym_cmds_GCJ | \
26348     old_archive_from_expsyms_cmds_GCJ | \
26349     export_symbols_cmds_GCJ | \
26350     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26351     postinstall_cmds | postuninstall_cmds | \
26352     old_postinstall_cmds | old_postuninstall_cmds | \
26353     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26354       # Double-quote double-evaled strings.
26355       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26356       ;;
26357     *)
26358       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26359       ;;
26360     esac
26361   done
26362
26363   case $lt_echo in
26364   *'\$0 --fallback-echo"')
26365     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26366     ;;
26367   esac
26368
26369 cfgfile="$ofile"
26370
26371   cat <<__EOF__ >> "$cfgfile"
26372 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26373
26374 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26375
26376 # Shell to use when invoking shell scripts.
26377 SHELL=$lt_SHELL
26378
26379 # Whether or not to build shared libraries.
26380 build_libtool_libs=$enable_shared
26381
26382 # Whether or not to build static libraries.
26383 build_old_libs=$enable_static
26384
26385 # Whether or not to add -lc for building shared libraries.
26386 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26387
26388 # Whether or not to disallow shared libs when runtime libs are static
26389 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26390
26391 # Whether or not to optimize for fast installation.
26392 fast_install=$enable_fast_install
26393
26394 # The host system.
26395 host_alias=$host_alias
26396 host=$host
26397 host_os=$host_os
26398
26399 # The build system.
26400 build_alias=$build_alias
26401 build=$build
26402 build_os=$build_os
26403
26404 # An echo program that does not interpret backslashes.
26405 echo=$lt_echo
26406
26407 # The archiver.
26408 AR=$lt_AR
26409 AR_FLAGS=$lt_AR_FLAGS
26410
26411 # A C compiler.
26412 LTCC=$lt_LTCC
26413
26414 # LTCC compiler flags.
26415 LTCFLAGS=$lt_LTCFLAGS
26416
26417 # A language-specific compiler.
26418 CC=$lt_compiler_GCJ
26419
26420 # Is the compiler the GNU C compiler?
26421 with_gcc=$GCC_GCJ
26422
26423 # An ERE matcher.
26424 EGREP=$lt_EGREP
26425
26426 # The linker used to build libraries.
26427 LD=$lt_LD_GCJ
26428
26429 # Whether we need hard or soft links.
26430 LN_S=$lt_LN_S
26431
26432 # A BSD-compatible nm program.
26433 NM=$lt_NM
26434
26435 # A symbol stripping program
26436 STRIP=$lt_STRIP
26437
26438 # Used to examine libraries when file_magic_cmd begins "file"
26439 MAGIC_CMD=$MAGIC_CMD
26440
26441 # Used on cygwin: DLL creation program.
26442 DLLTOOL="$DLLTOOL"
26443
26444 # Used on cygwin: object dumper.
26445 OBJDUMP="$OBJDUMP"
26446
26447 # Used on cygwin: assembler.
26448 AS="$AS"
26449
26450 # The name of the directory that contains temporary libtool files.
26451 objdir=$objdir
26452
26453 # How to create reloadable object files.
26454 reload_flag=$lt_reload_flag
26455 reload_cmds=$lt_reload_cmds
26456
26457 # How to pass a linker flag through the compiler.
26458 wl=$lt_lt_prog_compiler_wl_GCJ
26459
26460 # Object file suffix (normally "o").
26461 objext="$ac_objext"
26462
26463 # Old archive suffix (normally "a").
26464 libext="$libext"
26465
26466 # Shared library suffix (normally ".so").
26467 shrext_cmds='$shrext_cmds'
26468
26469 # Executable file suffix (normally "").
26470 exeext="$exeext"
26471
26472 # Additional compiler flags for building library objects.
26473 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26474 pic_mode=$pic_mode
26475
26476 # What is the maximum length of a command?
26477 max_cmd_len=$lt_cv_sys_max_cmd_len
26478
26479 # Does compiler simultaneously support -c and -o options?
26480 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26481
26482 # Must we lock files when doing compilation?
26483 need_locks=$lt_need_locks
26484
26485 # Do we need the lib prefix for modules?
26486 need_lib_prefix=$need_lib_prefix
26487
26488 # Do we need a version for libraries?
26489 need_version=$need_version
26490
26491 # Whether dlopen is supported.
26492 dlopen_support=$enable_dlopen
26493
26494 # Whether dlopen of programs is supported.
26495 dlopen_self=$enable_dlopen_self
26496
26497 # Whether dlopen of statically linked programs is supported.
26498 dlopen_self_static=$enable_dlopen_self_static
26499
26500 # Compiler flag to prevent dynamic linking.
26501 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26502
26503 # Compiler flag to turn off builtin functions.
26504 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26505
26506 # Compiler flag to allow reflexive dlopens.
26507 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26508
26509 # Compiler flag to generate shared objects directly from archives.
26510 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26511
26512 # Compiler flag to generate thread-safe objects.
26513 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26514
26515 # Library versioning type.
26516 version_type=$version_type
26517
26518 # Format of library name prefix.
26519 libname_spec=$lt_libname_spec
26520
26521 # List of archive names.  First name is the real one, the rest are links.
26522 # The last name is the one that the linker finds with -lNAME.
26523 library_names_spec=$lt_library_names_spec
26524
26525 # The coded name of the library, if different from the real name.
26526 soname_spec=$lt_soname_spec
26527
26528 # Commands used to build and install an old-style archive.
26529 RANLIB=$lt_RANLIB
26530 old_archive_cmds=$lt_old_archive_cmds_GCJ
26531 old_postinstall_cmds=$lt_old_postinstall_cmds
26532 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26533
26534 # Create an old-style archive from a shared archive.
26535 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26536
26537 # Create a temporary old-style archive to link instead of a shared archive.
26538 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26539
26540 # Commands used to build and install a shared archive.
26541 archive_cmds=$lt_archive_cmds_GCJ
26542 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26543 postinstall_cmds=$lt_postinstall_cmds
26544 postuninstall_cmds=$lt_postuninstall_cmds
26545
26546 # Commands used to build a loadable module (assumed same as above if empty)
26547 module_cmds=$lt_module_cmds_GCJ
26548 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26549
26550 # Commands to strip libraries.
26551 old_striplib=$lt_old_striplib
26552 striplib=$lt_striplib
26553
26554 # Dependencies to place before the objects being linked to create a
26555 # shared library.
26556 predep_objects=$lt_predep_objects_GCJ
26557
26558 # Dependencies to place after the objects being linked to create a
26559 # shared library.
26560 postdep_objects=$lt_postdep_objects_GCJ
26561
26562 # Dependencies to place before the objects being linked to create a
26563 # shared library.
26564 predeps=$lt_predeps_GCJ
26565
26566 # Dependencies to place after the objects being linked to create a
26567 # shared library.
26568 postdeps=$lt_postdeps_GCJ
26569
26570 # The library search path used internally by the compiler when linking
26571 # a shared library.
26572 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26573
26574 # Method to check whether dependent libraries are shared objects.
26575 deplibs_check_method=$lt_deplibs_check_method
26576
26577 # Command to use when deplibs_check_method == file_magic.
26578 file_magic_cmd=$lt_file_magic_cmd
26579
26580 # Flag that allows shared libraries with undefined symbols to be built.
26581 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26582
26583 # Flag that forces no undefined symbols.
26584 no_undefined_flag=$lt_no_undefined_flag_GCJ
26585
26586 # Commands used to finish a libtool library installation in a directory.
26587 finish_cmds=$lt_finish_cmds
26588
26589 # Same as above, but a single script fragment to be evaled but not shown.
26590 finish_eval=$lt_finish_eval
26591
26592 # Take the output of nm and produce a listing of raw symbols and C names.
26593 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26594
26595 # Transform the output of nm in a proper C declaration
26596 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26597
26598 # Transform the output of nm in a C name address pair
26599 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26600
26601 # This is the shared library runtime path variable.
26602 runpath_var=$runpath_var
26603
26604 # This is the shared library path variable.
26605 shlibpath_var=$shlibpath_var
26606
26607 # Is shlibpath searched before the hard-coded library search path?
26608 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26609
26610 # How to hardcode a shared library path into an executable.
26611 hardcode_action=$hardcode_action_GCJ
26612
26613 # Whether we should hardcode library paths into libraries.
26614 hardcode_into_libs=$hardcode_into_libs
26615
26616 # Flag to hardcode \$libdir into a binary during linking.
26617 # This must work even if \$libdir does not exist.
26618 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26619
26620 # If ld is used when linking, flag to hardcode \$libdir into
26621 # a binary during linking. This must work even if \$libdir does
26622 # not exist.
26623 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26624
26625 # Whether we need a single -rpath flag with a separated argument.
26626 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26627
26628 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26629 # resulting binary.
26630 hardcode_direct=$hardcode_direct_GCJ
26631
26632 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26633 # resulting binary.
26634 hardcode_minus_L=$hardcode_minus_L_GCJ
26635
26636 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26637 # the resulting binary.
26638 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26639
26640 # Set to yes if building a shared library automatically hardcodes DIR into the library
26641 # and all subsequent libraries and executables linked against it.
26642 hardcode_automatic=$hardcode_automatic_GCJ
26643
26644 # Variables whose values should be saved in libtool wrapper scripts and
26645 # restored at relink time.
26646 variables_saved_for_relink="$variables_saved_for_relink"
26647
26648 # Whether libtool must link a program against all its dependency libraries.
26649 link_all_deplibs=$link_all_deplibs_GCJ
26650
26651 # Compile-time system search path for libraries
26652 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26653
26654 # Run-time system search path for libraries
26655 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26656
26657 # Fix the shell variable \$srcfile for the compiler.
26658 fix_srcfile_path="$fix_srcfile_path_GCJ"
26659
26660 # Set to yes if exported symbols are required.
26661 always_export_symbols=$always_export_symbols_GCJ
26662
26663 # The commands to list exported symbols.
26664 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26665
26666 # The commands to extract the exported symbol list from a shared archive.
26667 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26668
26669 # Symbols that should not be listed in the preloaded symbols.
26670 exclude_expsyms=$lt_exclude_expsyms_GCJ
26671
26672 # Symbols that must always be exported.
26673 include_expsyms=$lt_include_expsyms_GCJ
26674
26675 # ### END LIBTOOL TAG CONFIG: $tagname
26676
26677 __EOF__
26678
26679
26680 else
26681   # If there is no Makefile yet, we rely on a make rule to execute
26682   # `config.status --recheck' to rerun these tests and create the
26683   # libtool script then.
26684   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26685   if test -f "$ltmain_in"; then
26686     test -f Makefile && make "$ltmain"
26687   fi
26688 fi
26689
26690
26691 ac_ext=c
26692 ac_cpp='$CPP $CPPFLAGS'
26693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26696
26697 CC="$lt_save_CC"
26698
26699         else
26700           tagname=""
26701         fi
26702         ;;
26703
26704       RC)
26705         ac_ext=c
26706 ac_cpp='$CPP $CPPFLAGS'
26707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26710
26711
26712 # Source file extension for RC test sources.
26713 ac_ext=rc
26714
26715 # Object file extension for compiled RC test sources.
26716 objext=o
26717 objext_RC=$objext
26718
26719 # Code to be used in simple compile tests
26720 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26721
26722 # Code to be used in simple link tests
26723 lt_simple_link_test_code="$lt_simple_compile_test_code"
26724
26725 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26726
26727 # If no C compiler was specified, use CC.
26728 LTCC=${LTCC-"$CC"}
26729
26730 # If no C compiler flags were specified, use CFLAGS.
26731 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26732
26733 # Allow CC to be a program name with arguments.
26734 compiler=$CC
26735
26736
26737 # save warnings/boilerplate of simple test code
26738 ac_outfile=conftest.$ac_objext
26739 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26740 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26741 _lt_compiler_boilerplate=`cat conftest.err`
26742 $rm conftest*
26743
26744 ac_outfile=conftest.$ac_objext
26745 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26746 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26747 _lt_linker_boilerplate=`cat conftest.err`
26748 $rm conftest*
26749
26750
26751 # Allow CC to be a program name with arguments.
26752 lt_save_CC="$CC"
26753 CC=${RC-"windres"}
26754 compiler=$CC
26755 compiler_RC=$CC
26756 for cc_temp in $compiler""; do
26757   case $cc_temp in
26758     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26759     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26760     \-*) ;;
26761     *) break;;
26762   esac
26763 done
26764 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26765
26766 lt_cv_prog_compiler_c_o_RC=yes
26767
26768 # The else clause should only fire when bootstrapping the
26769 # libtool distribution, otherwise you forgot to ship ltmain.sh
26770 # with your package, and you will get complaints that there are
26771 # no rules to generate ltmain.sh.
26772 if test -f "$ltmain"; then
26773   # See if we are running on zsh, and set the options which allow our commands through
26774   # without removal of \ escapes.
26775   if test -n "${ZSH_VERSION+set}" ; then
26776     setopt NO_GLOB_SUBST
26777   fi
26778   # Now quote all the things that may contain metacharacters while being
26779   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26780   # variables and quote the copies for generation of the libtool script.
26781   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26782     SED SHELL STRIP \
26783     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26784     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26785     deplibs_check_method reload_flag reload_cmds need_locks \
26786     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26787     lt_cv_sys_global_symbol_to_c_name_address \
26788     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26789     old_postinstall_cmds old_postuninstall_cmds \
26790     compiler_RC \
26791     CC_RC \
26792     LD_RC \
26793     lt_prog_compiler_wl_RC \
26794     lt_prog_compiler_pic_RC \
26795     lt_prog_compiler_static_RC \
26796     lt_prog_compiler_no_builtin_flag_RC \
26797     export_dynamic_flag_spec_RC \
26798     thread_safe_flag_spec_RC \
26799     whole_archive_flag_spec_RC \
26800     enable_shared_with_static_runtimes_RC \
26801     old_archive_cmds_RC \
26802     old_archive_from_new_cmds_RC \
26803     predep_objects_RC \
26804     postdep_objects_RC \
26805     predeps_RC \
26806     postdeps_RC \
26807     compiler_lib_search_path_RC \
26808     archive_cmds_RC \
26809     archive_expsym_cmds_RC \
26810     postinstall_cmds_RC \
26811     postuninstall_cmds_RC \
26812     old_archive_from_expsyms_cmds_RC \
26813     allow_undefined_flag_RC \
26814     no_undefined_flag_RC \
26815     export_symbols_cmds_RC \
26816     hardcode_libdir_flag_spec_RC \
26817     hardcode_libdir_flag_spec_ld_RC \
26818     hardcode_libdir_separator_RC \
26819     hardcode_automatic_RC \
26820     module_cmds_RC \
26821     module_expsym_cmds_RC \
26822     lt_cv_prog_compiler_c_o_RC \
26823     exclude_expsyms_RC \
26824     include_expsyms_RC; do
26825
26826     case $var in
26827     old_archive_cmds_RC | \
26828     old_archive_from_new_cmds_RC | \
26829     archive_cmds_RC | \
26830     archive_expsym_cmds_RC | \
26831     module_cmds_RC | \
26832     module_expsym_cmds_RC | \
26833     old_archive_from_expsyms_cmds_RC | \
26834     export_symbols_cmds_RC | \
26835     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26836     postinstall_cmds | postuninstall_cmds | \
26837     old_postinstall_cmds | old_postuninstall_cmds | \
26838     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26839       # Double-quote double-evaled strings.
26840       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26841       ;;
26842     *)
26843       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26844       ;;
26845     esac
26846   done
26847
26848   case $lt_echo in
26849   *'\$0 --fallback-echo"')
26850     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26851     ;;
26852   esac
26853
26854 cfgfile="$ofile"
26855
26856   cat <<__EOF__ >> "$cfgfile"
26857 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26858
26859 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26860
26861 # Shell to use when invoking shell scripts.
26862 SHELL=$lt_SHELL
26863
26864 # Whether or not to build shared libraries.
26865 build_libtool_libs=$enable_shared
26866
26867 # Whether or not to build static libraries.
26868 build_old_libs=$enable_static
26869
26870 # Whether or not to add -lc for building shared libraries.
26871 build_libtool_need_lc=$archive_cmds_need_lc_RC
26872
26873 # Whether or not to disallow shared libs when runtime libs are static
26874 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26875
26876 # Whether or not to optimize for fast installation.
26877 fast_install=$enable_fast_install
26878
26879 # The host system.
26880 host_alias=$host_alias
26881 host=$host
26882 host_os=$host_os
26883
26884 # The build system.
26885 build_alias=$build_alias
26886 build=$build
26887 build_os=$build_os
26888
26889 # An echo program that does not interpret backslashes.
26890 echo=$lt_echo
26891
26892 # The archiver.
26893 AR=$lt_AR
26894 AR_FLAGS=$lt_AR_FLAGS
26895
26896 # A C compiler.
26897 LTCC=$lt_LTCC
26898
26899 # LTCC compiler flags.
26900 LTCFLAGS=$lt_LTCFLAGS
26901
26902 # A language-specific compiler.
26903 CC=$lt_compiler_RC
26904
26905 # Is the compiler the GNU C compiler?
26906 with_gcc=$GCC_RC
26907
26908 # An ERE matcher.
26909 EGREP=$lt_EGREP
26910
26911 # The linker used to build libraries.
26912 LD=$lt_LD_RC
26913
26914 # Whether we need hard or soft links.
26915 LN_S=$lt_LN_S
26916
26917 # A BSD-compatible nm program.
26918 NM=$lt_NM
26919
26920 # A symbol stripping program
26921 STRIP=$lt_STRIP
26922
26923 # Used to examine libraries when file_magic_cmd begins "file"
26924 MAGIC_CMD=$MAGIC_CMD
26925
26926 # Used on cygwin: DLL creation program.
26927 DLLTOOL="$DLLTOOL"
26928
26929 # Used on cygwin: object dumper.
26930 OBJDUMP="$OBJDUMP"
26931
26932 # Used on cygwin: assembler.
26933 AS="$AS"
26934
26935 # The name of the directory that contains temporary libtool files.
26936 objdir=$objdir
26937
26938 # How to create reloadable object files.
26939 reload_flag=$lt_reload_flag
26940 reload_cmds=$lt_reload_cmds
26941
26942 # How to pass a linker flag through the compiler.
26943 wl=$lt_lt_prog_compiler_wl_RC
26944
26945 # Object file suffix (normally "o").
26946 objext="$ac_objext"
26947
26948 # Old archive suffix (normally "a").
26949 libext="$libext"
26950
26951 # Shared library suffix (normally ".so").
26952 shrext_cmds='$shrext_cmds'
26953
26954 # Executable file suffix (normally "").
26955 exeext="$exeext"
26956
26957 # Additional compiler flags for building library objects.
26958 pic_flag=$lt_lt_prog_compiler_pic_RC
26959 pic_mode=$pic_mode
26960
26961 # What is the maximum length of a command?
26962 max_cmd_len=$lt_cv_sys_max_cmd_len
26963
26964 # Does compiler simultaneously support -c and -o options?
26965 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26966
26967 # Must we lock files when doing compilation?
26968 need_locks=$lt_need_locks
26969
26970 # Do we need the lib prefix for modules?
26971 need_lib_prefix=$need_lib_prefix
26972
26973 # Do we need a version for libraries?
26974 need_version=$need_version
26975
26976 # Whether dlopen is supported.
26977 dlopen_support=$enable_dlopen
26978
26979 # Whether dlopen of programs is supported.
26980 dlopen_self=$enable_dlopen_self
26981
26982 # Whether dlopen of statically linked programs is supported.
26983 dlopen_self_static=$enable_dlopen_self_static
26984
26985 # Compiler flag to prevent dynamic linking.
26986 link_static_flag=$lt_lt_prog_compiler_static_RC
26987
26988 # Compiler flag to turn off builtin functions.
26989 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26990
26991 # Compiler flag to allow reflexive dlopens.
26992 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26993
26994 # Compiler flag to generate shared objects directly from archives.
26995 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26996
26997 # Compiler flag to generate thread-safe objects.
26998 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26999
27000 # Library versioning type.
27001 version_type=$version_type
27002
27003 # Format of library name prefix.
27004 libname_spec=$lt_libname_spec
27005
27006 # List of archive names.  First name is the real one, the rest are links.
27007 # The last name is the one that the linker finds with -lNAME.
27008 library_names_spec=$lt_library_names_spec
27009
27010 # The coded name of the library, if different from the real name.
27011 soname_spec=$lt_soname_spec
27012
27013 # Commands used to build and install an old-style archive.
27014 RANLIB=$lt_RANLIB
27015 old_archive_cmds=$lt_old_archive_cmds_RC
27016 old_postinstall_cmds=$lt_old_postinstall_cmds
27017 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27018
27019 # Create an old-style archive from a shared archive.
27020 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27021
27022 # Create a temporary old-style archive to link instead of a shared archive.
27023 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27024
27025 # Commands used to build and install a shared archive.
27026 archive_cmds=$lt_archive_cmds_RC
27027 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27028 postinstall_cmds=$lt_postinstall_cmds
27029 postuninstall_cmds=$lt_postuninstall_cmds
27030
27031 # Commands used to build a loadable module (assumed same as above if empty)
27032 module_cmds=$lt_module_cmds_RC
27033 module_expsym_cmds=$lt_module_expsym_cmds_RC
27034
27035 # Commands to strip libraries.
27036 old_striplib=$lt_old_striplib
27037 striplib=$lt_striplib
27038
27039 # Dependencies to place before the objects being linked to create a
27040 # shared library.
27041 predep_objects=$lt_predep_objects_RC
27042
27043 # Dependencies to place after the objects being linked to create a
27044 # shared library.
27045 postdep_objects=$lt_postdep_objects_RC
27046
27047 # Dependencies to place before the objects being linked to create a
27048 # shared library.
27049 predeps=$lt_predeps_RC
27050
27051 # Dependencies to place after the objects being linked to create a
27052 # shared library.
27053 postdeps=$lt_postdeps_RC
27054
27055 # The library search path used internally by the compiler when linking
27056 # a shared library.
27057 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27058
27059 # Method to check whether dependent libraries are shared objects.
27060 deplibs_check_method=$lt_deplibs_check_method
27061
27062 # Command to use when deplibs_check_method == file_magic.
27063 file_magic_cmd=$lt_file_magic_cmd
27064
27065 # Flag that allows shared libraries with undefined symbols to be built.
27066 allow_undefined_flag=$lt_allow_undefined_flag_RC
27067
27068 # Flag that forces no undefined symbols.
27069 no_undefined_flag=$lt_no_undefined_flag_RC
27070
27071 # Commands used to finish a libtool library installation in a directory.
27072 finish_cmds=$lt_finish_cmds
27073
27074 # Same as above, but a single script fragment to be evaled but not shown.
27075 finish_eval=$lt_finish_eval
27076
27077 # Take the output of nm and produce a listing of raw symbols and C names.
27078 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27079
27080 # Transform the output of nm in a proper C declaration
27081 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27082
27083 # Transform the output of nm in a C name address pair
27084 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27085
27086 # This is the shared library runtime path variable.
27087 runpath_var=$runpath_var
27088
27089 # This is the shared library path variable.
27090 shlibpath_var=$shlibpath_var
27091
27092 # Is shlibpath searched before the hard-coded library search path?
27093 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27094
27095 # How to hardcode a shared library path into an executable.
27096 hardcode_action=$hardcode_action_RC
27097
27098 # Whether we should hardcode library paths into libraries.
27099 hardcode_into_libs=$hardcode_into_libs
27100
27101 # Flag to hardcode \$libdir into a binary during linking.
27102 # This must work even if \$libdir does not exist.
27103 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27104
27105 # If ld is used when linking, flag to hardcode \$libdir into
27106 # a binary during linking. This must work even if \$libdir does
27107 # not exist.
27108 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27109
27110 # Whether we need a single -rpath flag with a separated argument.
27111 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27112
27113 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27114 # resulting binary.
27115 hardcode_direct=$hardcode_direct_RC
27116
27117 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27118 # resulting binary.
27119 hardcode_minus_L=$hardcode_minus_L_RC
27120
27121 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27122 # the resulting binary.
27123 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27124
27125 # Set to yes if building a shared library automatically hardcodes DIR into the library
27126 # and all subsequent libraries and executables linked against it.
27127 hardcode_automatic=$hardcode_automatic_RC
27128
27129 # Variables whose values should be saved in libtool wrapper scripts and
27130 # restored at relink time.
27131 variables_saved_for_relink="$variables_saved_for_relink"
27132
27133 # Whether libtool must link a program against all its dependency libraries.
27134 link_all_deplibs=$link_all_deplibs_RC
27135
27136 # Compile-time system search path for libraries
27137 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27138
27139 # Run-time system search path for libraries
27140 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27141
27142 # Fix the shell variable \$srcfile for the compiler.
27143 fix_srcfile_path="$fix_srcfile_path_RC"
27144
27145 # Set to yes if exported symbols are required.
27146 always_export_symbols=$always_export_symbols_RC
27147
27148 # The commands to list exported symbols.
27149 export_symbols_cmds=$lt_export_symbols_cmds_RC
27150
27151 # The commands to extract the exported symbol list from a shared archive.
27152 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27153
27154 # Symbols that should not be listed in the preloaded symbols.
27155 exclude_expsyms=$lt_exclude_expsyms_RC
27156
27157 # Symbols that must always be exported.
27158 include_expsyms=$lt_include_expsyms_RC
27159
27160 # ### END LIBTOOL TAG CONFIG: $tagname
27161
27162 __EOF__
27163
27164
27165 else
27166   # If there is no Makefile yet, we rely on a make rule to execute
27167   # `config.status --recheck' to rerun these tests and create the
27168   # libtool script then.
27169   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27170   if test -f "$ltmain_in"; then
27171     test -f Makefile && make "$ltmain"
27172   fi
27173 fi
27174
27175
27176 ac_ext=c
27177 ac_cpp='$CPP $CPPFLAGS'
27178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27181
27182 CC="$lt_save_CC"
27183
27184         ;;
27185
27186       *)
27187         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27188 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27189    { (exit 1); exit 1; }; }
27190         ;;
27191       esac
27192
27193       # Append the new tag name to the list of available tags.
27194       if test -n "$tagname" ; then
27195       available_tags="$available_tags $tagname"
27196     fi
27197     fi
27198   done
27199   IFS="$lt_save_ifs"
27200
27201   # Now substitute the updated list of available tags.
27202   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27203     mv "${ofile}T" "$ofile"
27204     chmod +x "$ofile"
27205   else
27206     rm -f "${ofile}T"
27207     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27208 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27209    { (exit 1); exit 1; }; }
27210   fi
27211 fi
27212
27213
27214
27215 # This can be used to rebuild libtool when needed
27216 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27217
27218 # Always use our own libtool.
27219 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27220
27221 # Prevent multiple expansion
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236
27237
27238
27239
27240
27241
27242
27243 if test "$lt_cv_dlopen_self" = "yes" ; then
27244
27245 cat >>confdefs.h <<\_ACEOF
27246 #define CAN_DLOPEN_SELF 1
27247 _ACEOF
27248
27249 fi
27250
27251
27252 if test "$WITH_LLVMGCCDIR" = "default" ; then
27253   LLVMGCC="llvm-gcc${EXEEXT}"
27254   LLVMGXX="llvm-g++${EXEEXT}"
27255   LLVMGCCCOMMAND="$LLVMGCC"
27256   LLVMGXXCOMMAND="$LLVMGXX"
27257   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27258
27259   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27260
27261   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27262 set dummy $LLVMGCC; ac_word=$2
27263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27265 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27266   echo $ECHO_N "(cached) $ECHO_C" >&6
27267 else
27268   case $LLVMGCC in
27269   [\\/]* | ?:[\\/]*)
27270   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27271   ;;
27272   *)
27273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27274 for as_dir in $PATH
27275 do
27276   IFS=$as_save_IFS
27277   test -z "$as_dir" && as_dir=.
27278   for ac_exec_ext in '' $ac_executable_extensions; do
27279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27280     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27282     break 2
27283   fi
27284 done
27285 done
27286 IFS=$as_save_IFS
27287
27288   ;;
27289 esac
27290 fi
27291 LLVMGCC=$ac_cv_path_LLVMGCC
27292 if test -n "$LLVMGCC"; then
27293   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27294 echo "${ECHO_T}$LLVMGCC" >&6; }
27295 else
27296   { echo "$as_me:$LINENO: result: no" >&5
27297 echo "${ECHO_T}no" >&6; }
27298 fi
27299
27300
27301   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27302 set dummy $LLVMGXX; ac_word=$2
27303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27305 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27306   echo $ECHO_N "(cached) $ECHO_C" >&6
27307 else
27308   case $LLVMGXX in
27309   [\\/]* | ?:[\\/]*)
27310   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27311   ;;
27312   *)
27313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27314 for as_dir in $PATH
27315 do
27316   IFS=$as_save_IFS
27317   test -z "$as_dir" && as_dir=.
27318   for ac_exec_ext in '' $ac_executable_extensions; do
27319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27320     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27322     break 2
27323   fi
27324 done
27325 done
27326 IFS=$as_save_IFS
27327
27328   ;;
27329 esac
27330 fi
27331 LLVMGXX=$ac_cv_path_LLVMGXX
27332 if test -n "$LLVMGXX"; then
27333   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27334 echo "${ECHO_T}$LLVMGXX" >&6; }
27335 else
27336   { echo "$as_me:$LINENO: result: no" >&5
27337 echo "${ECHO_T}no" >&6; }
27338 fi
27339
27340
27341 else
27342   if test -z "$LLVMGCC"; then
27343     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27344     LLVMGCCCOMMAND="$LLVMGCC"
27345   fi
27346   if test -z "$LLVMGXX"; then
27347     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27348     LLVMGXXCOMMAND="$LLVMGXX"
27349   fi
27350
27351   LLVMGCC=$LLVMGCC
27352
27353   LLVMGXX=$LLVMGXX
27354
27355   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27356
27357   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27358
27359 fi
27360
27361
27362 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27363 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27364
27365 ICC=no
27366 IXX=no
27367 case $CC in
27368   icc*|icpc*)
27369     ICC=yes
27370     IXX=yes
27371     ;;
27372    *)
27373     ;;
27374 esac
27375
27376 if test "$GCC" != "yes" && test "$ICC" != "yes"
27377 then
27378   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27379 echo "$as_me: error: gcc|icc required but not found" >&2;}
27380    { (exit 1); exit 1; }; }
27381 fi
27382
27383 if test "$GXX" != "yes" && test "$IXX" != "yes"
27384 then
27385   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27386 echo "$as_me: error: g++|icc required but not found" >&2;}
27387    { (exit 1); exit 1; }; }
27388 fi
27389
27390 if test "$GCC" = "yes"
27391 then
27392   cat >conftest.$ac_ext <<_ACEOF
27393 #if !defined(__GNUC__) || __GNUC__ < 3
27394 #error Unsupported GCC version
27395 #endif
27396
27397 _ACEOF
27398 rm -f conftest.$ac_objext
27399 if { (ac_try="$ac_compile"
27400 case "(($ac_try" in
27401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27402   *) ac_try_echo=$ac_try;;
27403 esac
27404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27405   (eval "$ac_compile") 2>conftest.er1
27406   ac_status=$?
27407   grep -v '^ *+' conftest.er1 >conftest.err
27408   rm -f conftest.er1
27409   cat conftest.err >&5
27410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411   (exit $ac_status); } &&
27412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27413   { (case "(($ac_try" in
27414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415   *) ac_try_echo=$ac_try;;
27416 esac
27417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418   (eval "$ac_try") 2>&5
27419   ac_status=$?
27420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421   (exit $ac_status); }; } &&
27422          { ac_try='test -s conftest.$ac_objext'
27423   { (case "(($ac_try" in
27424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27425   *) ac_try_echo=$ac_try;;
27426 esac
27427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27428   (eval "$ac_try") 2>&5
27429   ac_status=$?
27430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431   (exit $ac_status); }; }; then
27432   :
27433 else
27434   echo "$as_me: failed program was:" >&5
27435 sed 's/^/| /' conftest.$ac_ext >&5
27436
27437         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27438 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27439    { (exit 1); exit 1; }; }
27440 fi
27441
27442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27443 fi
27444
27445 if test -z "$llvm_cv_gnu_make_command"
27446 then
27447   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27448 echo "$as_me: error: GNU Make required but not found" >&2;}
27449    { (exit 1); exit 1; }; }
27450 fi
27451
27452 { echo "$as_me:$LINENO: result: ok" >&5
27453 echo "${ECHO_T}ok" >&6; }
27454
27455
27456
27457 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27458 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27459 if test "${ac_cv_lib_m_sin+set}" = set; then
27460   echo $ECHO_N "(cached) $ECHO_C" >&6
27461 else
27462   ac_check_lib_save_LIBS=$LIBS
27463 LIBS="-lm  $LIBS"
27464 cat >conftest.$ac_ext <<_ACEOF
27465 /* confdefs.h.  */
27466 _ACEOF
27467 cat confdefs.h >>conftest.$ac_ext
27468 cat >>conftest.$ac_ext <<_ACEOF
27469 /* end confdefs.h.  */
27470
27471 /* Override any GCC internal prototype to avoid an error.
27472    Use char because int might match the return type of a GCC
27473    builtin and then its argument prototype would still apply.  */
27474 #ifdef __cplusplus
27475 extern "C"
27476 #endif
27477 char sin ();
27478 int
27479 main ()
27480 {
27481 return sin ();
27482   ;
27483   return 0;
27484 }
27485 _ACEOF
27486 rm -f conftest.$ac_objext conftest$ac_exeext
27487 if { (ac_try="$ac_link"
27488 case "(($ac_try" in
27489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27490   *) ac_try_echo=$ac_try;;
27491 esac
27492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27493   (eval "$ac_link") 2>conftest.er1
27494   ac_status=$?
27495   grep -v '^ *+' conftest.er1 >conftest.err
27496   rm -f conftest.er1
27497   cat conftest.err >&5
27498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499   (exit $ac_status); } &&
27500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27501   { (case "(($ac_try" in
27502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27503   *) ac_try_echo=$ac_try;;
27504 esac
27505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27506   (eval "$ac_try") 2>&5
27507   ac_status=$?
27508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509   (exit $ac_status); }; } &&
27510          { ac_try='test -s conftest$ac_exeext'
27511   { (case "(($ac_try" in
27512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27513   *) ac_try_echo=$ac_try;;
27514 esac
27515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27516   (eval "$ac_try") 2>&5
27517   ac_status=$?
27518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519   (exit $ac_status); }; }; then
27520   ac_cv_lib_m_sin=yes
27521 else
27522   echo "$as_me: failed program was:" >&5
27523 sed 's/^/| /' conftest.$ac_ext >&5
27524
27525         ac_cv_lib_m_sin=no
27526 fi
27527
27528 rm -f core conftest.err conftest.$ac_objext \
27529       conftest$ac_exeext conftest.$ac_ext
27530 LIBS=$ac_check_lib_save_LIBS
27531 fi
27532 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27533 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27534 if test $ac_cv_lib_m_sin = yes; then
27535   cat >>confdefs.h <<_ACEOF
27536 #define HAVE_LIBM 1
27537 _ACEOF
27538
27539   LIBS="-lm $LIBS"
27540
27541 fi
27542
27543 if test "$llvm_cv_os_type" = "MingW" ; then
27544
27545 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27546 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27547 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27548   echo $ECHO_N "(cached) $ECHO_C" >&6
27549 else
27550   ac_check_lib_save_LIBS=$LIBS
27551 LIBS="-limagehlp  $LIBS"
27552 cat >conftest.$ac_ext <<_ACEOF
27553 /* confdefs.h.  */
27554 _ACEOF
27555 cat confdefs.h >>conftest.$ac_ext
27556 cat >>conftest.$ac_ext <<_ACEOF
27557 /* end confdefs.h.  */
27558
27559
27560 int
27561 main ()
27562 {
27563 return main ();
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_imagehlp_main=yes
27603 else
27604   echo "$as_me: failed program was:" >&5
27605 sed 's/^/| /' conftest.$ac_ext >&5
27606
27607         ac_cv_lib_imagehlp_main=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_imagehlp_main" >&5
27615 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27616 if test $ac_cv_lib_imagehlp_main = yes; then
27617   cat >>confdefs.h <<_ACEOF
27618 #define HAVE_LIBIMAGEHLP 1
27619 _ACEOF
27620
27621   LIBS="-limagehlp $LIBS"
27622
27623 fi
27624
27625
27626 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27627 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27628 if test "${ac_cv_lib_psapi_main+set}" = set; then
27629   echo $ECHO_N "(cached) $ECHO_C" >&6
27630 else
27631   ac_check_lib_save_LIBS=$LIBS
27632 LIBS="-lpsapi  $LIBS"
27633 cat >conftest.$ac_ext <<_ACEOF
27634 /* confdefs.h.  */
27635 _ACEOF
27636 cat confdefs.h >>conftest.$ac_ext
27637 cat >>conftest.$ac_ext <<_ACEOF
27638 /* end confdefs.h.  */
27639
27640
27641 int
27642 main ()
27643 {
27644 return main ();
27645   ;
27646   return 0;
27647 }
27648 _ACEOF
27649 rm -f conftest.$ac_objext conftest$ac_exeext
27650 if { (ac_try="$ac_link"
27651 case "(($ac_try" in
27652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27653   *) ac_try_echo=$ac_try;;
27654 esac
27655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27656   (eval "$ac_link") 2>conftest.er1
27657   ac_status=$?
27658   grep -v '^ *+' conftest.er1 >conftest.err
27659   rm -f conftest.er1
27660   cat conftest.err >&5
27661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662   (exit $ac_status); } &&
27663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27664   { (case "(($ac_try" in
27665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666   *) ac_try_echo=$ac_try;;
27667 esac
27668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27669   (eval "$ac_try") 2>&5
27670   ac_status=$?
27671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672   (exit $ac_status); }; } &&
27673          { ac_try='test -s conftest$ac_exeext'
27674   { (case "(($ac_try" in
27675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676   *) ac_try_echo=$ac_try;;
27677 esac
27678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27679   (eval "$ac_try") 2>&5
27680   ac_status=$?
27681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682   (exit $ac_status); }; }; then
27683   ac_cv_lib_psapi_main=yes
27684 else
27685   echo "$as_me: failed program was:" >&5
27686 sed 's/^/| /' conftest.$ac_ext >&5
27687
27688         ac_cv_lib_psapi_main=no
27689 fi
27690
27691 rm -f core conftest.err conftest.$ac_objext \
27692       conftest$ac_exeext conftest.$ac_ext
27693 LIBS=$ac_check_lib_save_LIBS
27694 fi
27695 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27696 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27697 if test $ac_cv_lib_psapi_main = yes; then
27698   cat >>confdefs.h <<_ACEOF
27699 #define HAVE_LIBPSAPI 1
27700 _ACEOF
27701
27702   LIBS="-lpsapi $LIBS"
27703
27704 fi
27705
27706 fi
27707
27708 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27709 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27710 if test "${ac_cv_search_dlopen+set}" = set; then
27711   echo $ECHO_N "(cached) $ECHO_C" >&6
27712 else
27713   ac_func_search_save_LIBS=$LIBS
27714 cat >conftest.$ac_ext <<_ACEOF
27715 /* confdefs.h.  */
27716 _ACEOF
27717 cat confdefs.h >>conftest.$ac_ext
27718 cat >>conftest.$ac_ext <<_ACEOF
27719 /* end confdefs.h.  */
27720
27721 /* Override any GCC internal prototype to avoid an error.
27722    Use char because int might match the return type of a GCC
27723    builtin and then its argument prototype would still apply.  */
27724 #ifdef __cplusplus
27725 extern "C"
27726 #endif
27727 char dlopen ();
27728 int
27729 main ()
27730 {
27731 return dlopen ();
27732   ;
27733   return 0;
27734 }
27735 _ACEOF
27736 for ac_lib in '' dl; do
27737   if test -z "$ac_lib"; then
27738     ac_res="none required"
27739   else
27740     ac_res=-l$ac_lib
27741     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27742   fi
27743   rm -f conftest.$ac_objext conftest$ac_exeext
27744 if { (ac_try="$ac_link"
27745 case "(($ac_try" in
27746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27747   *) ac_try_echo=$ac_try;;
27748 esac
27749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27750   (eval "$ac_link") 2>conftest.er1
27751   ac_status=$?
27752   grep -v '^ *+' conftest.er1 >conftest.err
27753   rm -f conftest.er1
27754   cat conftest.err >&5
27755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756   (exit $ac_status); } &&
27757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27758   { (case "(($ac_try" in
27759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27760   *) ac_try_echo=$ac_try;;
27761 esac
27762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27763   (eval "$ac_try") 2>&5
27764   ac_status=$?
27765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766   (exit $ac_status); }; } &&
27767          { ac_try='test -s conftest$ac_exeext'
27768   { (case "(($ac_try" in
27769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27770   *) ac_try_echo=$ac_try;;
27771 esac
27772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27773   (eval "$ac_try") 2>&5
27774   ac_status=$?
27775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776   (exit $ac_status); }; }; then
27777   ac_cv_search_dlopen=$ac_res
27778 else
27779   echo "$as_me: failed program was:" >&5
27780 sed 's/^/| /' conftest.$ac_ext >&5
27781
27782
27783 fi
27784
27785 rm -f core conftest.err conftest.$ac_objext \
27786       conftest$ac_exeext
27787   if test "${ac_cv_search_dlopen+set}" = set; then
27788   break
27789 fi
27790 done
27791 if test "${ac_cv_search_dlopen+set}" = set; then
27792   :
27793 else
27794   ac_cv_search_dlopen=no
27795 fi
27796 rm conftest.$ac_ext
27797 LIBS=$ac_func_search_save_LIBS
27798 fi
27799 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27800 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27801 ac_res=$ac_cv_search_dlopen
27802 if test "$ac_res" != no; then
27803   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27804
27805 cat >>confdefs.h <<\_ACEOF
27806 #define HAVE_DLOPEN 1
27807 _ACEOF
27808
27809 else
27810   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27811 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27812 fi
27813
27814
27815 if test "$llvm_cv_enable_libffi" = "yes" ; then
27816   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27817 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27818 if test "${ac_cv_search_ffi_call+set}" = set; then
27819   echo $ECHO_N "(cached) $ECHO_C" >&6
27820 else
27821   ac_func_search_save_LIBS=$LIBS
27822 cat >conftest.$ac_ext <<_ACEOF
27823 /* confdefs.h.  */
27824 _ACEOF
27825 cat confdefs.h >>conftest.$ac_ext
27826 cat >>conftest.$ac_ext <<_ACEOF
27827 /* end confdefs.h.  */
27828
27829 /* Override any GCC internal prototype to avoid an error.
27830    Use char because int might match the return type of a GCC
27831    builtin and then its argument prototype would still apply.  */
27832 #ifdef __cplusplus
27833 extern "C"
27834 #endif
27835 char ffi_call ();
27836 int
27837 main ()
27838 {
27839 return ffi_call ();
27840   ;
27841   return 0;
27842 }
27843 _ACEOF
27844 for ac_lib in '' ffi; do
27845   if test -z "$ac_lib"; then
27846     ac_res="none required"
27847   else
27848     ac_res=-l$ac_lib
27849     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27850   fi
27851   rm -f conftest.$ac_objext conftest$ac_exeext
27852 if { (ac_try="$ac_link"
27853 case "(($ac_try" in
27854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27855   *) ac_try_echo=$ac_try;;
27856 esac
27857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27858   (eval "$ac_link") 2>conftest.er1
27859   ac_status=$?
27860   grep -v '^ *+' conftest.er1 >conftest.err
27861   rm -f conftest.er1
27862   cat conftest.err >&5
27863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864   (exit $ac_status); } &&
27865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27866   { (case "(($ac_try" in
27867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27868   *) ac_try_echo=$ac_try;;
27869 esac
27870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27871   (eval "$ac_try") 2>&5
27872   ac_status=$?
27873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874   (exit $ac_status); }; } &&
27875          { ac_try='test -s conftest$ac_exeext'
27876   { (case "(($ac_try" in
27877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27878   *) ac_try_echo=$ac_try;;
27879 esac
27880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27881   (eval "$ac_try") 2>&5
27882   ac_status=$?
27883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884   (exit $ac_status); }; }; then
27885   ac_cv_search_ffi_call=$ac_res
27886 else
27887   echo "$as_me: failed program was:" >&5
27888 sed 's/^/| /' conftest.$ac_ext >&5
27889
27890
27891 fi
27892
27893 rm -f core conftest.err conftest.$ac_objext \
27894       conftest$ac_exeext
27895   if test "${ac_cv_search_ffi_call+set}" = set; then
27896   break
27897 fi
27898 done
27899 if test "${ac_cv_search_ffi_call+set}" = set; then
27900   :
27901 else
27902   ac_cv_search_ffi_call=no
27903 fi
27904 rm conftest.$ac_ext
27905 LIBS=$ac_func_search_save_LIBS
27906 fi
27907 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27908 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27909 ac_res=$ac_cv_search_ffi_call
27910 if test "$ac_res" != no; then
27911   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27912
27913 cat >>confdefs.h <<\_ACEOF
27914 #define HAVE_FFI_CALL 1
27915 _ACEOF
27916
27917 else
27918   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27919 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27920 fi
27921
27922 fi
27923
27924 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27925 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27926 if test "${ac_cv_search_mallinfo+set}" = set; then
27927   echo $ECHO_N "(cached) $ECHO_C" >&6
27928 else
27929   ac_func_search_save_LIBS=$LIBS
27930 cat >conftest.$ac_ext <<_ACEOF
27931 /* confdefs.h.  */
27932 _ACEOF
27933 cat confdefs.h >>conftest.$ac_ext
27934 cat >>conftest.$ac_ext <<_ACEOF
27935 /* end confdefs.h.  */
27936
27937 /* Override any GCC internal prototype to avoid an error.
27938    Use char because int might match the return type of a GCC
27939    builtin and then its argument prototype would still apply.  */
27940 #ifdef __cplusplus
27941 extern "C"
27942 #endif
27943 char mallinfo ();
27944 int
27945 main ()
27946 {
27947 return mallinfo ();
27948   ;
27949   return 0;
27950 }
27951 _ACEOF
27952 for ac_lib in '' malloc; do
27953   if test -z "$ac_lib"; then
27954     ac_res="none required"
27955   else
27956     ac_res=-l$ac_lib
27957     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27958   fi
27959   rm -f conftest.$ac_objext conftest$ac_exeext
27960 if { (ac_try="$ac_link"
27961 case "(($ac_try" in
27962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27963   *) ac_try_echo=$ac_try;;
27964 esac
27965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27966   (eval "$ac_link") 2>conftest.er1
27967   ac_status=$?
27968   grep -v '^ *+' conftest.er1 >conftest.err
27969   rm -f conftest.er1
27970   cat conftest.err >&5
27971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972   (exit $ac_status); } &&
27973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27974   { (case "(($ac_try" in
27975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27976   *) ac_try_echo=$ac_try;;
27977 esac
27978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27979   (eval "$ac_try") 2>&5
27980   ac_status=$?
27981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982   (exit $ac_status); }; } &&
27983          { ac_try='test -s conftest$ac_exeext'
27984   { (case "(($ac_try" in
27985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986   *) ac_try_echo=$ac_try;;
27987 esac
27988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27989   (eval "$ac_try") 2>&5
27990   ac_status=$?
27991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992   (exit $ac_status); }; }; then
27993   ac_cv_search_mallinfo=$ac_res
27994 else
27995   echo "$as_me: failed program was:" >&5
27996 sed 's/^/| /' conftest.$ac_ext >&5
27997
27998
27999 fi
28000
28001 rm -f core conftest.err conftest.$ac_objext \
28002       conftest$ac_exeext
28003   if test "${ac_cv_search_mallinfo+set}" = set; then
28004   break
28005 fi
28006 done
28007 if test "${ac_cv_search_mallinfo+set}" = set; then
28008   :
28009 else
28010   ac_cv_search_mallinfo=no
28011 fi
28012 rm conftest.$ac_ext
28013 LIBS=$ac_func_search_save_LIBS
28014 fi
28015 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28016 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28017 ac_res=$ac_cv_search_mallinfo
28018 if test "$ac_res" != no; then
28019   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28020
28021 cat >>confdefs.h <<\_ACEOF
28022 #define HAVE_MALLINFO 1
28023 _ACEOF
28024
28025 fi
28026
28027
28028 if test "$ENABLE_THREADS" -eq 1 ; then
28029   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_init" >&5
28030 echo $ECHO_N "checking for library containing pthread_mutex_init... $ECHO_C" >&6; }
28031 if test "${ac_cv_search_pthread_mutex_init+set}" = set; then
28032   echo $ECHO_N "(cached) $ECHO_C" >&6
28033 else
28034   ac_func_search_save_LIBS=$LIBS
28035 cat >conftest.$ac_ext <<_ACEOF
28036 /* confdefs.h.  */
28037 _ACEOF
28038 cat confdefs.h >>conftest.$ac_ext
28039 cat >>conftest.$ac_ext <<_ACEOF
28040 /* end confdefs.h.  */
28041
28042 /* Override any GCC internal prototype to avoid an error.
28043    Use char because int might match the return type of a GCC
28044    builtin and then its argument prototype would still apply.  */
28045 #ifdef __cplusplus
28046 extern "C"
28047 #endif
28048 char pthread_mutex_init ();
28049 int
28050 main ()
28051 {
28052 return pthread_mutex_init ();
28053   ;
28054   return 0;
28055 }
28056 _ACEOF
28057 for ac_lib in '' pthread; do
28058   if test -z "$ac_lib"; then
28059     ac_res="none required"
28060   else
28061     ac_res=-l$ac_lib
28062     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28063   fi
28064   rm -f conftest.$ac_objext conftest$ac_exeext
28065 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
28072   ac_status=$?
28073   grep -v '^ *+' conftest.er1 >conftest.err
28074   rm -f conftest.er1
28075   cat conftest.err >&5
28076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077   (exit $ac_status); } &&
28078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28079   { (case "(($ac_try" in
28080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28081   *) ac_try_echo=$ac_try;;
28082 esac
28083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28084   (eval "$ac_try") 2>&5
28085   ac_status=$?
28086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087   (exit $ac_status); }; } &&
28088          { ac_try='test -s conftest$ac_exeext'
28089   { (case "(($ac_try" in
28090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091   *) ac_try_echo=$ac_try;;
28092 esac
28093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28094   (eval "$ac_try") 2>&5
28095   ac_status=$?
28096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097   (exit $ac_status); }; }; then
28098   ac_cv_search_pthread_mutex_init=$ac_res
28099 else
28100   echo "$as_me: failed program was:" >&5
28101 sed 's/^/| /' conftest.$ac_ext >&5
28102
28103
28104 fi
28105
28106 rm -f core conftest.err conftest.$ac_objext \
28107       conftest$ac_exeext
28108   if test "${ac_cv_search_pthread_mutex_init+set}" = set; then
28109   break
28110 fi
28111 done
28112 if test "${ac_cv_search_pthread_mutex_init+set}" = set; then
28113   :
28114 else
28115   ac_cv_search_pthread_mutex_init=no
28116 fi
28117 rm conftest.$ac_ext
28118 LIBS=$ac_func_search_save_LIBS
28119 fi
28120 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_init" >&5
28121 echo "${ECHO_T}$ac_cv_search_pthread_mutex_init" >&6; }
28122 ac_res=$ac_cv_search_pthread_mutex_init
28123 if test "$ac_res" != no; then
28124   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28125
28126 cat >>confdefs.h <<\_ACEOF
28127 #define HAVE_PTHREAD 1
28128 _ACEOF
28129
28130 fi
28131
28132   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28133 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28134 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28135   echo $ECHO_N "(cached) $ECHO_C" >&6
28136 else
28137   ac_func_search_save_LIBS=$LIBS
28138 cat >conftest.$ac_ext <<_ACEOF
28139 /* confdefs.h.  */
28140 _ACEOF
28141 cat confdefs.h >>conftest.$ac_ext
28142 cat >>conftest.$ac_ext <<_ACEOF
28143 /* end confdefs.h.  */
28144
28145 /* Override any GCC internal prototype to avoid an error.
28146    Use char because int might match the return type of a GCC
28147    builtin and then its argument prototype would still apply.  */
28148 #ifdef __cplusplus
28149 extern "C"
28150 #endif
28151 char pthread_mutex_lock ();
28152 int
28153 main ()
28154 {
28155 return pthread_mutex_lock ();
28156   ;
28157   return 0;
28158 }
28159 _ACEOF
28160 for ac_lib in '' pthread; do
28161   if test -z "$ac_lib"; then
28162     ac_res="none required"
28163   else
28164     ac_res=-l$ac_lib
28165     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28166   fi
28167   rm -f conftest.$ac_objext conftest$ac_exeext
28168 if { (ac_try="$ac_link"
28169 case "(($ac_try" in
28170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28171   *) ac_try_echo=$ac_try;;
28172 esac
28173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28174   (eval "$ac_link") 2>conftest.er1
28175   ac_status=$?
28176   grep -v '^ *+' conftest.er1 >conftest.err
28177   rm -f conftest.er1
28178   cat conftest.err >&5
28179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180   (exit $ac_status); } &&
28181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28182   { (case "(($ac_try" in
28183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28184   *) ac_try_echo=$ac_try;;
28185 esac
28186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28187   (eval "$ac_try") 2>&5
28188   ac_status=$?
28189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190   (exit $ac_status); }; } &&
28191          { ac_try='test -s conftest$ac_exeext'
28192   { (case "(($ac_try" in
28193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28194   *) ac_try_echo=$ac_try;;
28195 esac
28196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28197   (eval "$ac_try") 2>&5
28198   ac_status=$?
28199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200   (exit $ac_status); }; }; then
28201   ac_cv_search_pthread_mutex_lock=$ac_res
28202 else
28203   echo "$as_me: failed program was:" >&5
28204 sed 's/^/| /' conftest.$ac_ext >&5
28205
28206
28207 fi
28208
28209 rm -f core conftest.err conftest.$ac_objext \
28210       conftest$ac_exeext
28211   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28212   break
28213 fi
28214 done
28215 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28216   :
28217 else
28218   ac_cv_search_pthread_mutex_lock=no
28219 fi
28220 rm conftest.$ac_ext
28221 LIBS=$ac_func_search_save_LIBS
28222 fi
28223 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28224 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28225 ac_res=$ac_cv_search_pthread_mutex_lock
28226 if test "$ac_res" != no; then
28227   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28228
28229 cat >>confdefs.h <<\_ACEOF
28230 #define HAVE_PTHREAD_MUTEX_LOCK 1
28231 _ACEOF
28232
28233 fi
28234
28235   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28236 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28237 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28238   echo $ECHO_N "(cached) $ECHO_C" >&6
28239 else
28240   ac_func_search_save_LIBS=$LIBS
28241 cat >conftest.$ac_ext <<_ACEOF
28242 /* confdefs.h.  */
28243 _ACEOF
28244 cat confdefs.h >>conftest.$ac_ext
28245 cat >>conftest.$ac_ext <<_ACEOF
28246 /* end confdefs.h.  */
28247
28248 /* Override any GCC internal prototype to avoid an error.
28249    Use char because int might match the return type of a GCC
28250    builtin and then its argument prototype would still apply.  */
28251 #ifdef __cplusplus
28252 extern "C"
28253 #endif
28254 char pthread_rwlock_init ();
28255 int
28256 main ()
28257 {
28258 return pthread_rwlock_init ();
28259   ;
28260   return 0;
28261 }
28262 _ACEOF
28263 for ac_lib in '' pthread; do
28264   if test -z "$ac_lib"; then
28265     ac_res="none required"
28266   else
28267     ac_res=-l$ac_lib
28268     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28269   fi
28270   rm -f conftest.$ac_objext conftest$ac_exeext
28271 if { (ac_try="$ac_link"
28272 case "(($ac_try" in
28273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274   *) ac_try_echo=$ac_try;;
28275 esac
28276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277   (eval "$ac_link") 2>conftest.er1
28278   ac_status=$?
28279   grep -v '^ *+' conftest.er1 >conftest.err
28280   rm -f conftest.er1
28281   cat conftest.err >&5
28282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283   (exit $ac_status); } &&
28284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28285   { (case "(($ac_try" in
28286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28287   *) ac_try_echo=$ac_try;;
28288 esac
28289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28290   (eval "$ac_try") 2>&5
28291   ac_status=$?
28292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293   (exit $ac_status); }; } &&
28294          { ac_try='test -s conftest$ac_exeext'
28295   { (case "(($ac_try" in
28296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28297   *) ac_try_echo=$ac_try;;
28298 esac
28299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28300   (eval "$ac_try") 2>&5
28301   ac_status=$?
28302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303   (exit $ac_status); }; }; then
28304   ac_cv_search_pthread_rwlock_init=$ac_res
28305 else
28306   echo "$as_me: failed program was:" >&5
28307 sed 's/^/| /' conftest.$ac_ext >&5
28308
28309
28310 fi
28311
28312 rm -f core conftest.err conftest.$ac_objext \
28313       conftest$ac_exeext
28314   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28315   break
28316 fi
28317 done
28318 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28319   :
28320 else
28321   ac_cv_search_pthread_rwlock_init=no
28322 fi
28323 rm conftest.$ac_ext
28324 LIBS=$ac_func_search_save_LIBS
28325 fi
28326 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28327 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28328 ac_res=$ac_cv_search_pthread_rwlock_init
28329 if test "$ac_res" != no; then
28330   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28331
28332 cat >>confdefs.h <<\_ACEOF
28333 #define HAVE_PTHREAD_RWLOCK_INIT 1
28334 _ACEOF
28335
28336 fi
28337
28338   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28339 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28340 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28341   echo $ECHO_N "(cached) $ECHO_C" >&6
28342 else
28343   ac_func_search_save_LIBS=$LIBS
28344 cat >conftest.$ac_ext <<_ACEOF
28345 /* confdefs.h.  */
28346 _ACEOF
28347 cat confdefs.h >>conftest.$ac_ext
28348 cat >>conftest.$ac_ext <<_ACEOF
28349 /* end confdefs.h.  */
28350
28351 /* Override any GCC internal prototype to avoid an error.
28352    Use char because int might match the return type of a GCC
28353    builtin and then its argument prototype would still apply.  */
28354 #ifdef __cplusplus
28355 extern "C"
28356 #endif
28357 char pthread_getspecific ();
28358 int
28359 main ()
28360 {
28361 return pthread_getspecific ();
28362   ;
28363   return 0;
28364 }
28365 _ACEOF
28366 for ac_lib in '' pthread; do
28367   if test -z "$ac_lib"; then
28368     ac_res="none required"
28369   else
28370     ac_res=-l$ac_lib
28371     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28372   fi
28373   rm -f conftest.$ac_objext conftest$ac_exeext
28374 if { (ac_try="$ac_link"
28375 case "(($ac_try" in
28376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28377   *) ac_try_echo=$ac_try;;
28378 esac
28379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28380   (eval "$ac_link") 2>conftest.er1
28381   ac_status=$?
28382   grep -v '^ *+' conftest.er1 >conftest.err
28383   rm -f conftest.er1
28384   cat conftest.err >&5
28385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386   (exit $ac_status); } &&
28387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28388   { (case "(($ac_try" in
28389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28390   *) ac_try_echo=$ac_try;;
28391 esac
28392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28393   (eval "$ac_try") 2>&5
28394   ac_status=$?
28395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396   (exit $ac_status); }; } &&
28397          { ac_try='test -s conftest$ac_exeext'
28398   { (case "(($ac_try" in
28399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28400   *) ac_try_echo=$ac_try;;
28401 esac
28402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28403   (eval "$ac_try") 2>&5
28404   ac_status=$?
28405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406   (exit $ac_status); }; }; then
28407   ac_cv_search_pthread_getspecific=$ac_res
28408 else
28409   echo "$as_me: failed program was:" >&5
28410 sed 's/^/| /' conftest.$ac_ext >&5
28411
28412
28413 fi
28414
28415 rm -f core conftest.err conftest.$ac_objext \
28416       conftest$ac_exeext
28417   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28418   break
28419 fi
28420 done
28421 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28422   :
28423 else
28424   ac_cv_search_pthread_getspecific=no
28425 fi
28426 rm conftest.$ac_ext
28427 LIBS=$ac_func_search_save_LIBS
28428 fi
28429 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28430 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28431 ac_res=$ac_cv_search_pthread_getspecific
28432 if test "$ac_res" != no; then
28433   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28434
28435 cat >>confdefs.h <<\_ACEOF
28436 #define HAVE_PTHREAD_GETSPECIFIC 1
28437 _ACEOF
28438
28439 fi
28440
28441 fi
28442
28443
28444 # Check whether --with-udis86 was given.
28445 if test "${with_udis86+set}" = set; then
28446   withval=$with_udis86;
28447       USE_UDIS86=1
28448
28449       case "$withval" in
28450         /usr/lib|yes) ;;
28451         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28452       esac
28453
28454 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28455 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28456 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28457   echo $ECHO_N "(cached) $ECHO_C" >&6
28458 else
28459   ac_check_lib_save_LIBS=$LIBS
28460 LIBS="-ludis86  $LIBS"
28461 cat >conftest.$ac_ext <<_ACEOF
28462 /* confdefs.h.  */
28463 _ACEOF
28464 cat confdefs.h >>conftest.$ac_ext
28465 cat >>conftest.$ac_ext <<_ACEOF
28466 /* end confdefs.h.  */
28467
28468 /* Override any GCC internal prototype to avoid an error.
28469    Use char because int might match the return type of a GCC
28470    builtin and then its argument prototype would still apply.  */
28471 #ifdef __cplusplus
28472 extern "C"
28473 #endif
28474 char ud_init ();
28475 int
28476 main ()
28477 {
28478 return ud_init ();
28479   ;
28480   return 0;
28481 }
28482 _ACEOF
28483 rm -f conftest.$ac_objext conftest$ac_exeext
28484 if { (ac_try="$ac_link"
28485 case "(($ac_try" in
28486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487   *) ac_try_echo=$ac_try;;
28488 esac
28489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490   (eval "$ac_link") 2>conftest.er1
28491   ac_status=$?
28492   grep -v '^ *+' conftest.er1 >conftest.err
28493   rm -f conftest.er1
28494   cat conftest.err >&5
28495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496   (exit $ac_status); } &&
28497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28498   { (case "(($ac_try" in
28499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28500   *) ac_try_echo=$ac_try;;
28501 esac
28502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28503   (eval "$ac_try") 2>&5
28504   ac_status=$?
28505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506   (exit $ac_status); }; } &&
28507          { ac_try='test -s conftest$ac_exeext'
28508   { (case "(($ac_try" in
28509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28510   *) ac_try_echo=$ac_try;;
28511 esac
28512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28513   (eval "$ac_try") 2>&5
28514   ac_status=$?
28515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516   (exit $ac_status); }; }; then
28517   ac_cv_lib_udis86_ud_init=yes
28518 else
28519   echo "$as_me: failed program was:" >&5
28520 sed 's/^/| /' conftest.$ac_ext >&5
28521
28522         ac_cv_lib_udis86_ud_init=no
28523 fi
28524
28525 rm -f core conftest.err conftest.$ac_objext \
28526       conftest$ac_exeext conftest.$ac_ext
28527 LIBS=$ac_check_lib_save_LIBS
28528 fi
28529 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28530 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28531 if test $ac_cv_lib_udis86_ud_init = yes; then
28532   cat >>confdefs.h <<_ACEOF
28533 #define HAVE_LIBUDIS86 1
28534 _ACEOF
28535
28536   LIBS="-ludis86 $LIBS"
28537
28538 else
28539
28540         echo "Error! You need to have libudis86 around."
28541         exit -1
28542
28543 fi
28544
28545
28546 else
28547   USE_UDIS86=0
28548
28549 fi
28550
28551
28552 cat >>confdefs.h <<_ACEOF
28553 #define USE_UDIS86 $USE_UDIS86
28554 _ACEOF
28555
28556
28557
28558 # Check whether --with-oprofile was given.
28559 if test "${with_oprofile+set}" = set; then
28560   withval=$with_oprofile;
28561       USE_OPROFILE=1
28562
28563       case "$withval" in
28564         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28565         no) llvm_cv_oppath=
28566             USE_OPROFILE=0
28567  ;;
28568         *) llvm_cv_oppath="${withval}/lib/oprofile"
28569            CPPFLAGS="-I${withval}/include";;
28570       esac
28571       if test -n "$llvm_cv_oppath" ; then
28572         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28573                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28574 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28575 if test "${ac_cv_search_bfd_init+set}" = set; then
28576   echo $ECHO_N "(cached) $ECHO_C" >&6
28577 else
28578   ac_func_search_save_LIBS=$LIBS
28579 cat >conftest.$ac_ext <<_ACEOF
28580 /* confdefs.h.  */
28581 _ACEOF
28582 cat confdefs.h >>conftest.$ac_ext
28583 cat >>conftest.$ac_ext <<_ACEOF
28584 /* end confdefs.h.  */
28585
28586 /* Override any GCC internal prototype to avoid an error.
28587    Use char because int might match the return type of a GCC
28588    builtin and then its argument prototype would still apply.  */
28589 #ifdef __cplusplus
28590 extern "C"
28591 #endif
28592 char bfd_init ();
28593 int
28594 main ()
28595 {
28596 return bfd_init ();
28597   ;
28598   return 0;
28599 }
28600 _ACEOF
28601 for ac_lib in '' bfd; do
28602   if test -z "$ac_lib"; then
28603     ac_res="none required"
28604   else
28605     ac_res=-l$ac_lib
28606     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28607   fi
28608   rm -f conftest.$ac_objext conftest$ac_exeext
28609 if { (ac_try="$ac_link"
28610 case "(($ac_try" in
28611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612   *) ac_try_echo=$ac_try;;
28613 esac
28614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615   (eval "$ac_link") 2>conftest.er1
28616   ac_status=$?
28617   grep -v '^ *+' conftest.er1 >conftest.err
28618   rm -f conftest.er1
28619   cat conftest.err >&5
28620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28621   (exit $ac_status); } &&
28622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28623   { (case "(($ac_try" in
28624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28625   *) ac_try_echo=$ac_try;;
28626 esac
28627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28628   (eval "$ac_try") 2>&5
28629   ac_status=$?
28630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631   (exit $ac_status); }; } &&
28632          { ac_try='test -s conftest$ac_exeext'
28633   { (case "(($ac_try" in
28634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28635   *) ac_try_echo=$ac_try;;
28636 esac
28637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28638   (eval "$ac_try") 2>&5
28639   ac_status=$?
28640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641   (exit $ac_status); }; }; then
28642   ac_cv_search_bfd_init=$ac_res
28643 else
28644   echo "$as_me: failed program was:" >&5
28645 sed 's/^/| /' conftest.$ac_ext >&5
28646
28647
28648 fi
28649
28650 rm -f core conftest.err conftest.$ac_objext \
28651       conftest$ac_exeext
28652   if test "${ac_cv_search_bfd_init+set}" = set; then
28653   break
28654 fi
28655 done
28656 if test "${ac_cv_search_bfd_init+set}" = set; then
28657   :
28658 else
28659   ac_cv_search_bfd_init=no
28660 fi
28661 rm conftest.$ac_ext
28662 LIBS=$ac_func_search_save_LIBS
28663 fi
28664 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28665 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28666 ac_res=$ac_cv_search_bfd_init
28667 if test "$ac_res" != no; then
28668   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28669
28670 fi
28671
28672         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28673 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28674 if test "${ac_cv_search_op_open_agent+set}" = set; then
28675   echo $ECHO_N "(cached) $ECHO_C" >&6
28676 else
28677   ac_func_search_save_LIBS=$LIBS
28678 cat >conftest.$ac_ext <<_ACEOF
28679 /* confdefs.h.  */
28680 _ACEOF
28681 cat confdefs.h >>conftest.$ac_ext
28682 cat >>conftest.$ac_ext <<_ACEOF
28683 /* end confdefs.h.  */
28684
28685 /* Override any GCC internal prototype to avoid an error.
28686    Use char because int might match the return type of a GCC
28687    builtin and then its argument prototype would still apply.  */
28688 #ifdef __cplusplus
28689 extern "C"
28690 #endif
28691 char op_open_agent ();
28692 int
28693 main ()
28694 {
28695 return op_open_agent ();
28696   ;
28697   return 0;
28698 }
28699 _ACEOF
28700 for ac_lib in '' opagent; do
28701   if test -z "$ac_lib"; then
28702     ac_res="none required"
28703   else
28704     ac_res=-l$ac_lib
28705     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28706   fi
28707   rm -f conftest.$ac_objext conftest$ac_exeext
28708 if { (ac_try="$ac_link"
28709 case "(($ac_try" in
28710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28711   *) ac_try_echo=$ac_try;;
28712 esac
28713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28714   (eval "$ac_link") 2>conftest.er1
28715   ac_status=$?
28716   grep -v '^ *+' conftest.er1 >conftest.err
28717   rm -f conftest.er1
28718   cat conftest.err >&5
28719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720   (exit $ac_status); } &&
28721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28722   { (case "(($ac_try" in
28723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724   *) ac_try_echo=$ac_try;;
28725 esac
28726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727   (eval "$ac_try") 2>&5
28728   ac_status=$?
28729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730   (exit $ac_status); }; } &&
28731          { ac_try='test -s conftest$ac_exeext'
28732   { (case "(($ac_try" in
28733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28734   *) ac_try_echo=$ac_try;;
28735 esac
28736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28737   (eval "$ac_try") 2>&5
28738   ac_status=$?
28739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740   (exit $ac_status); }; }; then
28741   ac_cv_search_op_open_agent=$ac_res
28742 else
28743   echo "$as_me: failed program was:" >&5
28744 sed 's/^/| /' conftest.$ac_ext >&5
28745
28746
28747 fi
28748
28749 rm -f core conftest.err conftest.$ac_objext \
28750       conftest$ac_exeext
28751   if test "${ac_cv_search_op_open_agent+set}" = set; then
28752   break
28753 fi
28754 done
28755 if test "${ac_cv_search_op_open_agent+set}" = set; then
28756   :
28757 else
28758   ac_cv_search_op_open_agent=no
28759 fi
28760 rm conftest.$ac_ext
28761 LIBS=$ac_func_search_save_LIBS
28762 fi
28763 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28764 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28765 ac_res=$ac_cv_search_op_open_agent
28766 if test "$ac_res" != no; then
28767   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28768
28769 else
28770
28771           echo "Error! You need to have libopagent around."
28772           exit -1
28773
28774 fi
28775
28776         if test "${ac_cv_header_opagent_h+set}" = set; then
28777   { echo "$as_me:$LINENO: checking for opagent.h" >&5
28778 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28779 if test "${ac_cv_header_opagent_h+set}" = set; then
28780   echo $ECHO_N "(cached) $ECHO_C" >&6
28781 fi
28782 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28783 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28784 else
28785   # Is the header compilable?
28786 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28787 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28788 cat >conftest.$ac_ext <<_ACEOF
28789 /* confdefs.h.  */
28790 _ACEOF
28791 cat confdefs.h >>conftest.$ac_ext
28792 cat >>conftest.$ac_ext <<_ACEOF
28793 /* end confdefs.h.  */
28794 $ac_includes_default
28795 #include <opagent.h>
28796 _ACEOF
28797 rm -f conftest.$ac_objext
28798 if { (ac_try="$ac_compile"
28799 case "(($ac_try" in
28800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28801   *) ac_try_echo=$ac_try;;
28802 esac
28803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28804   (eval "$ac_compile") 2>conftest.er1
28805   ac_status=$?
28806   grep -v '^ *+' conftest.er1 >conftest.err
28807   rm -f conftest.er1
28808   cat conftest.err >&5
28809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810   (exit $ac_status); } &&
28811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28812   { (case "(($ac_try" in
28813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28814   *) ac_try_echo=$ac_try;;
28815 esac
28816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28817   (eval "$ac_try") 2>&5
28818   ac_status=$?
28819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820   (exit $ac_status); }; } &&
28821          { ac_try='test -s conftest.$ac_objext'
28822   { (case "(($ac_try" in
28823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28824   *) ac_try_echo=$ac_try;;
28825 esac
28826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28827   (eval "$ac_try") 2>&5
28828   ac_status=$?
28829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830   (exit $ac_status); }; }; then
28831   ac_header_compiler=yes
28832 else
28833   echo "$as_me: failed program was:" >&5
28834 sed 's/^/| /' conftest.$ac_ext >&5
28835
28836         ac_header_compiler=no
28837 fi
28838
28839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28841 echo "${ECHO_T}$ac_header_compiler" >&6; }
28842
28843 # Is the header present?
28844 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28845 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28846 cat >conftest.$ac_ext <<_ACEOF
28847 /* confdefs.h.  */
28848 _ACEOF
28849 cat confdefs.h >>conftest.$ac_ext
28850 cat >>conftest.$ac_ext <<_ACEOF
28851 /* end confdefs.h.  */
28852 #include <opagent.h>
28853 _ACEOF
28854 if { (ac_try="$ac_cpp conftest.$ac_ext"
28855 case "(($ac_try" in
28856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857   *) ac_try_echo=$ac_try;;
28858 esac
28859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28860   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28861   ac_status=$?
28862   grep -v '^ *+' conftest.er1 >conftest.err
28863   rm -f conftest.er1
28864   cat conftest.err >&5
28865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866   (exit $ac_status); } >/dev/null; then
28867   if test -s conftest.err; then
28868     ac_cpp_err=$ac_c_preproc_warn_flag
28869     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28870   else
28871     ac_cpp_err=
28872   fi
28873 else
28874   ac_cpp_err=yes
28875 fi
28876 if test -z "$ac_cpp_err"; then
28877   ac_header_preproc=yes
28878 else
28879   echo "$as_me: failed program was:" >&5
28880 sed 's/^/| /' conftest.$ac_ext >&5
28881
28882   ac_header_preproc=no
28883 fi
28884
28885 rm -f conftest.err conftest.$ac_ext
28886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28887 echo "${ECHO_T}$ac_header_preproc" >&6; }
28888
28889 # So?  What about this header?
28890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28891   yes:no: )
28892     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28893 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28894     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28895 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28896     ac_header_preproc=yes
28897     ;;
28898   no:yes:* )
28899     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28900 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28901     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
28902 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
28903     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28904 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28905     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
28906 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28907     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28908 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28909     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28910 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28911     ( cat <<\_ASBOX
28912 ## ----------------------------------- ##
28913 ## Report this to llvmbugs@cs.uiuc.edu ##
28914 ## ----------------------------------- ##
28915 _ASBOX
28916      ) | sed "s/^/$as_me: WARNING:     /" >&2
28917     ;;
28918 esac
28919 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28920 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28921 if test "${ac_cv_header_opagent_h+set}" = set; then
28922   echo $ECHO_N "(cached) $ECHO_C" >&6
28923 else
28924   ac_cv_header_opagent_h=$ac_header_preproc
28925 fi
28926 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28927 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28928
28929 fi
28930 if test $ac_cv_header_opagent_h = yes; then
28931   :
28932 else
28933
28934           echo "Error! You need to have opagent.h around."
28935           exit -1
28936
28937 fi
28938
28939
28940       fi
28941
28942 else
28943
28944       USE_OPROFILE=0
28945
28946
28947 fi
28948
28949
28950 cat >>confdefs.h <<_ACEOF
28951 #define USE_OPROFILE $USE_OPROFILE
28952 _ACEOF
28953
28954
28955
28956
28957
28958
28959
28960
28961 ac_header_dirent=no
28962 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28963   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28964 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28965 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28967   echo $ECHO_N "(cached) $ECHO_C" >&6
28968 else
28969   cat >conftest.$ac_ext <<_ACEOF
28970 /* confdefs.h.  */
28971 _ACEOF
28972 cat confdefs.h >>conftest.$ac_ext
28973 cat >>conftest.$ac_ext <<_ACEOF
28974 /* end confdefs.h.  */
28975 #include <sys/types.h>
28976 #include <$ac_hdr>
28977
28978 int
28979 main ()
28980 {
28981 if ((DIR *) 0)
28982 return 0;
28983   ;
28984   return 0;
28985 }
28986 _ACEOF
28987 rm -f conftest.$ac_objext
28988 if { (ac_try="$ac_compile"
28989 case "(($ac_try" in
28990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28991   *) ac_try_echo=$ac_try;;
28992 esac
28993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28994   (eval "$ac_compile") 2>conftest.er1
28995   ac_status=$?
28996   grep -v '^ *+' conftest.er1 >conftest.err
28997   rm -f conftest.er1
28998   cat conftest.err >&5
28999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000   (exit $ac_status); } &&
29001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29002   { (case "(($ac_try" in
29003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29004   *) ac_try_echo=$ac_try;;
29005 esac
29006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29007   (eval "$ac_try") 2>&5
29008   ac_status=$?
29009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010   (exit $ac_status); }; } &&
29011          { ac_try='test -s conftest.$ac_objext'
29012   { (case "(($ac_try" in
29013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29014   *) ac_try_echo=$ac_try;;
29015 esac
29016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29017   (eval "$ac_try") 2>&5
29018   ac_status=$?
29019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020   (exit $ac_status); }; }; then
29021   eval "$as_ac_Header=yes"
29022 else
29023   echo "$as_me: failed program was:" >&5
29024 sed 's/^/| /' conftest.$ac_ext >&5
29025
29026         eval "$as_ac_Header=no"
29027 fi
29028
29029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29030 fi
29031 ac_res=`eval echo '${'$as_ac_Header'}'`
29032                { echo "$as_me:$LINENO: result: $ac_res" >&5
29033 echo "${ECHO_T}$ac_res" >&6; }
29034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29035   cat >>confdefs.h <<_ACEOF
29036 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29037 _ACEOF
29038
29039 ac_header_dirent=$ac_hdr; break
29040 fi
29041
29042 done
29043 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29044 if test $ac_header_dirent = dirent.h; then
29045   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29046 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29047 if test "${ac_cv_search_opendir+set}" = set; then
29048   echo $ECHO_N "(cached) $ECHO_C" >&6
29049 else
29050   ac_func_search_save_LIBS=$LIBS
29051 cat >conftest.$ac_ext <<_ACEOF
29052 /* confdefs.h.  */
29053 _ACEOF
29054 cat confdefs.h >>conftest.$ac_ext
29055 cat >>conftest.$ac_ext <<_ACEOF
29056 /* end confdefs.h.  */
29057
29058 /* Override any GCC internal prototype to avoid an error.
29059    Use char because int might match the return type of a GCC
29060    builtin and then its argument prototype would still apply.  */
29061 #ifdef __cplusplus
29062 extern "C"
29063 #endif
29064 char opendir ();
29065 int
29066 main ()
29067 {
29068 return opendir ();
29069   ;
29070   return 0;
29071 }
29072 _ACEOF
29073 for ac_lib in '' dir; do
29074   if test -z "$ac_lib"; then
29075     ac_res="none required"
29076   else
29077     ac_res=-l$ac_lib
29078     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29079   fi
29080   rm -f conftest.$ac_objext conftest$ac_exeext
29081 if { (ac_try="$ac_link"
29082 case "(($ac_try" in
29083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29084   *) ac_try_echo=$ac_try;;
29085 esac
29086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29087   (eval "$ac_link") 2>conftest.er1
29088   ac_status=$?
29089   grep -v '^ *+' conftest.er1 >conftest.err
29090   rm -f conftest.er1
29091   cat conftest.err >&5
29092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093   (exit $ac_status); } &&
29094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29095   { (case "(($ac_try" in
29096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097   *) ac_try_echo=$ac_try;;
29098 esac
29099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100   (eval "$ac_try") 2>&5
29101   ac_status=$?
29102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29103   (exit $ac_status); }; } &&
29104          { ac_try='test -s conftest$ac_exeext'
29105   { (case "(($ac_try" in
29106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29107   *) ac_try_echo=$ac_try;;
29108 esac
29109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29110   (eval "$ac_try") 2>&5
29111   ac_status=$?
29112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29113   (exit $ac_status); }; }; then
29114   ac_cv_search_opendir=$ac_res
29115 else
29116   echo "$as_me: failed program was:" >&5
29117 sed 's/^/| /' conftest.$ac_ext >&5
29118
29119
29120 fi
29121
29122 rm -f core conftest.err conftest.$ac_objext \
29123       conftest$ac_exeext
29124   if test "${ac_cv_search_opendir+set}" = set; then
29125   break
29126 fi
29127 done
29128 if test "${ac_cv_search_opendir+set}" = set; then
29129   :
29130 else
29131   ac_cv_search_opendir=no
29132 fi
29133 rm conftest.$ac_ext
29134 LIBS=$ac_func_search_save_LIBS
29135 fi
29136 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29137 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29138 ac_res=$ac_cv_search_opendir
29139 if test "$ac_res" != no; then
29140   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29141
29142 fi
29143
29144 else
29145   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29146 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29147 if test "${ac_cv_search_opendir+set}" = set; then
29148   echo $ECHO_N "(cached) $ECHO_C" >&6
29149 else
29150   ac_func_search_save_LIBS=$LIBS
29151 cat >conftest.$ac_ext <<_ACEOF
29152 /* confdefs.h.  */
29153 _ACEOF
29154 cat confdefs.h >>conftest.$ac_ext
29155 cat >>conftest.$ac_ext <<_ACEOF
29156 /* end confdefs.h.  */
29157
29158 /* Override any GCC internal prototype to avoid an error.
29159    Use char because int might match the return type of a GCC
29160    builtin and then its argument prototype would still apply.  */
29161 #ifdef __cplusplus
29162 extern "C"
29163 #endif
29164 char opendir ();
29165 int
29166 main ()
29167 {
29168 return opendir ();
29169   ;
29170   return 0;
29171 }
29172 _ACEOF
29173 for ac_lib in '' x; do
29174   if test -z "$ac_lib"; then
29175     ac_res="none required"
29176   else
29177     ac_res=-l$ac_lib
29178     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29179   fi
29180   rm -f conftest.$ac_objext conftest$ac_exeext
29181 if { (ac_try="$ac_link"
29182 case "(($ac_try" in
29183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29184   *) ac_try_echo=$ac_try;;
29185 esac
29186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29187   (eval "$ac_link") 2>conftest.er1
29188   ac_status=$?
29189   grep -v '^ *+' conftest.er1 >conftest.err
29190   rm -f conftest.er1
29191   cat conftest.err >&5
29192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193   (exit $ac_status); } &&
29194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29195   { (case "(($ac_try" in
29196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29197   *) ac_try_echo=$ac_try;;
29198 esac
29199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29200   (eval "$ac_try") 2>&5
29201   ac_status=$?
29202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203   (exit $ac_status); }; } &&
29204          { ac_try='test -s conftest$ac_exeext'
29205   { (case "(($ac_try" in
29206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29207   *) ac_try_echo=$ac_try;;
29208 esac
29209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29210   (eval "$ac_try") 2>&5
29211   ac_status=$?
29212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213   (exit $ac_status); }; }; then
29214   ac_cv_search_opendir=$ac_res
29215 else
29216   echo "$as_me: failed program was:" >&5
29217 sed 's/^/| /' conftest.$ac_ext >&5
29218
29219
29220 fi
29221
29222 rm -f core conftest.err conftest.$ac_objext \
29223       conftest$ac_exeext
29224   if test "${ac_cv_search_opendir+set}" = set; then
29225   break
29226 fi
29227 done
29228 if test "${ac_cv_search_opendir+set}" = set; then
29229   :
29230 else
29231   ac_cv_search_opendir=no
29232 fi
29233 rm conftest.$ac_ext
29234 LIBS=$ac_func_search_save_LIBS
29235 fi
29236 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29237 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29238 ac_res=$ac_cv_search_opendir
29239 if test "$ac_res" != no; then
29240   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29241
29242 fi
29243
29244 fi
29245
29246 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29247 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29248 if test "${ac_cv_header_mmap_anon+set}" = set; then
29249   echo $ECHO_N "(cached) $ECHO_C" >&6
29250 else
29251    ac_ext=c
29252 ac_cpp='$CPP $CPPFLAGS'
29253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29256
29257   cat >conftest.$ac_ext <<_ACEOF
29258 /* confdefs.h.  */
29259 _ACEOF
29260 cat confdefs.h >>conftest.$ac_ext
29261 cat >>conftest.$ac_ext <<_ACEOF
29262 /* end confdefs.h.  */
29263 #include <sys/mman.h>
29264 #include <unistd.h>
29265 #include <fcntl.h>
29266 int
29267 main ()
29268 {
29269 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29270   ;
29271   return 0;
29272 }
29273 _ACEOF
29274 rm -f conftest.$ac_objext
29275 if { (ac_try="$ac_compile"
29276 case "(($ac_try" in
29277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29278   *) ac_try_echo=$ac_try;;
29279 esac
29280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29281   (eval "$ac_compile") 2>conftest.er1
29282   ac_status=$?
29283   grep -v '^ *+' conftest.er1 >conftest.err
29284   rm -f conftest.er1
29285   cat conftest.err >&5
29286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287   (exit $ac_status); } &&
29288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29289   { (case "(($ac_try" in
29290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291   *) ac_try_echo=$ac_try;;
29292 esac
29293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294   (eval "$ac_try") 2>&5
29295   ac_status=$?
29296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297   (exit $ac_status); }; } &&
29298          { ac_try='test -s conftest.$ac_objext'
29299   { (case "(($ac_try" in
29300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301   *) ac_try_echo=$ac_try;;
29302 esac
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304   (eval "$ac_try") 2>&5
29305   ac_status=$?
29306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307   (exit $ac_status); }; }; then
29308   ac_cv_header_mmap_anon=yes
29309 else
29310   echo "$as_me: failed program was:" >&5
29311 sed 's/^/| /' conftest.$ac_ext >&5
29312
29313         ac_cv_header_mmap_anon=no
29314 fi
29315
29316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29317   ac_ext=c
29318 ac_cpp='$CPP $CPPFLAGS'
29319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29322
29323
29324 fi
29325 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29326 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29327 if test "$ac_cv_header_mmap_anon" = yes; then
29328
29329 cat >>confdefs.h <<\_ACEOF
29330 #define HAVE_MMAP_ANONYMOUS 1
29331 _ACEOF
29332
29333 fi
29334
29335 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29336 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29337 if test "${ac_cv_header_stat_broken+set}" = set; then
29338   echo $ECHO_N "(cached) $ECHO_C" >&6
29339 else
29340   cat >conftest.$ac_ext <<_ACEOF
29341 /* confdefs.h.  */
29342 _ACEOF
29343 cat confdefs.h >>conftest.$ac_ext
29344 cat >>conftest.$ac_ext <<_ACEOF
29345 /* end confdefs.h.  */
29346 #include <sys/types.h>
29347 #include <sys/stat.h>
29348
29349 #if defined S_ISBLK && defined S_IFDIR
29350 # if S_ISBLK (S_IFDIR)
29351 You lose.
29352 # endif
29353 #endif
29354
29355 #if defined S_ISBLK && defined S_IFCHR
29356 # if S_ISBLK (S_IFCHR)
29357 You lose.
29358 # endif
29359 #endif
29360
29361 #if defined S_ISLNK && defined S_IFREG
29362 # if S_ISLNK (S_IFREG)
29363 You lose.
29364 # endif
29365 #endif
29366
29367 #if defined S_ISSOCK && defined S_IFREG
29368 # if S_ISSOCK (S_IFREG)
29369 You lose.
29370 # endif
29371 #endif
29372
29373 _ACEOF
29374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29375   $EGREP "You lose" >/dev/null 2>&1; then
29376   ac_cv_header_stat_broken=yes
29377 else
29378   ac_cv_header_stat_broken=no
29379 fi
29380 rm -f conftest*
29381
29382 fi
29383 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29384 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29385 if test $ac_cv_header_stat_broken = yes; then
29386
29387 cat >>confdefs.h <<\_ACEOF
29388 #define STAT_MACROS_BROKEN 1
29389 _ACEOF
29390
29391 fi
29392
29393 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29394 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29395 if test "${ac_cv_header_stdc+set}" = set; then
29396   echo $ECHO_N "(cached) $ECHO_C" >&6
29397 else
29398   cat >conftest.$ac_ext <<_ACEOF
29399 /* confdefs.h.  */
29400 _ACEOF
29401 cat confdefs.h >>conftest.$ac_ext
29402 cat >>conftest.$ac_ext <<_ACEOF
29403 /* end confdefs.h.  */
29404 #include <stdlib.h>
29405 #include <stdarg.h>
29406 #include <string.h>
29407 #include <float.h>
29408
29409 int
29410 main ()
29411 {
29412
29413   ;
29414   return 0;
29415 }
29416 _ACEOF
29417 rm -f conftest.$ac_objext
29418 if { (ac_try="$ac_compile"
29419 case "(($ac_try" in
29420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29421   *) ac_try_echo=$ac_try;;
29422 esac
29423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29424   (eval "$ac_compile") 2>conftest.er1
29425   ac_status=$?
29426   grep -v '^ *+' conftest.er1 >conftest.err
29427   rm -f conftest.er1
29428   cat conftest.err >&5
29429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29430   (exit $ac_status); } &&
29431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29432   { (case "(($ac_try" in
29433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29434   *) ac_try_echo=$ac_try;;
29435 esac
29436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29437   (eval "$ac_try") 2>&5
29438   ac_status=$?
29439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29440   (exit $ac_status); }; } &&
29441          { ac_try='test -s conftest.$ac_objext'
29442   { (case "(($ac_try" in
29443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29444   *) ac_try_echo=$ac_try;;
29445 esac
29446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29447   (eval "$ac_try") 2>&5
29448   ac_status=$?
29449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450   (exit $ac_status); }; }; then
29451   ac_cv_header_stdc=yes
29452 else
29453   echo "$as_me: failed program was:" >&5
29454 sed 's/^/| /' conftest.$ac_ext >&5
29455
29456         ac_cv_header_stdc=no
29457 fi
29458
29459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29460
29461 if test $ac_cv_header_stdc = yes; then
29462   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29463   cat >conftest.$ac_ext <<_ACEOF
29464 /* confdefs.h.  */
29465 _ACEOF
29466 cat confdefs.h >>conftest.$ac_ext
29467 cat >>conftest.$ac_ext <<_ACEOF
29468 /* end confdefs.h.  */
29469 #include <string.h>
29470
29471 _ACEOF
29472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29473   $EGREP "memchr" >/dev/null 2>&1; then
29474   :
29475 else
29476   ac_cv_header_stdc=no
29477 fi
29478 rm -f conftest*
29479
29480 fi
29481
29482 if test $ac_cv_header_stdc = yes; then
29483   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29484   cat >conftest.$ac_ext <<_ACEOF
29485 /* confdefs.h.  */
29486 _ACEOF
29487 cat confdefs.h >>conftest.$ac_ext
29488 cat >>conftest.$ac_ext <<_ACEOF
29489 /* end confdefs.h.  */
29490 #include <stdlib.h>
29491
29492 _ACEOF
29493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29494   $EGREP "free" >/dev/null 2>&1; then
29495   :
29496 else
29497   ac_cv_header_stdc=no
29498 fi
29499 rm -f conftest*
29500
29501 fi
29502
29503 if test $ac_cv_header_stdc = yes; then
29504   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29505   if test "$cross_compiling" = yes; then
29506   :
29507 else
29508   cat >conftest.$ac_ext <<_ACEOF
29509 /* confdefs.h.  */
29510 _ACEOF
29511 cat confdefs.h >>conftest.$ac_ext
29512 cat >>conftest.$ac_ext <<_ACEOF
29513 /* end confdefs.h.  */
29514 #include <ctype.h>
29515 #include <stdlib.h>
29516 #if ((' ' & 0x0FF) == 0x020)
29517 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29518 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29519 #else
29520 # define ISLOWER(c) \
29521                    (('a' <= (c) && (c) <= 'i') \
29522                      || ('j' <= (c) && (c) <= 'r') \
29523                      || ('s' <= (c) && (c) <= 'z'))
29524 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29525 #endif
29526
29527 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29528 int
29529 main ()
29530 {
29531   int i;
29532   for (i = 0; i < 256; i++)
29533     if (XOR (islower (i), ISLOWER (i))
29534         || toupper (i) != TOUPPER (i))
29535       return 2;
29536   return 0;
29537 }
29538 _ACEOF
29539 rm -f conftest$ac_exeext
29540 if { (ac_try="$ac_link"
29541 case "(($ac_try" in
29542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29543   *) ac_try_echo=$ac_try;;
29544 esac
29545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29546   (eval "$ac_link") 2>&5
29547   ac_status=$?
29548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29550   { (case "(($ac_try" in
29551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29552   *) ac_try_echo=$ac_try;;
29553 esac
29554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29555   (eval "$ac_try") 2>&5
29556   ac_status=$?
29557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558   (exit $ac_status); }; }; then
29559   :
29560 else
29561   echo "$as_me: program exited with status $ac_status" >&5
29562 echo "$as_me: failed program was:" >&5
29563 sed 's/^/| /' conftest.$ac_ext >&5
29564
29565 ( exit $ac_status )
29566 ac_cv_header_stdc=no
29567 fi
29568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29569 fi
29570
29571
29572 fi
29573 fi
29574 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29575 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29576 if test $ac_cv_header_stdc = yes; then
29577
29578 cat >>confdefs.h <<\_ACEOF
29579 #define STDC_HEADERS 1
29580 _ACEOF
29581
29582 fi
29583
29584 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29585 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29586 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29587   echo $ECHO_N "(cached) $ECHO_C" >&6
29588 else
29589   cat >conftest.$ac_ext <<_ACEOF
29590 /* confdefs.h.  */
29591 _ACEOF
29592 cat confdefs.h >>conftest.$ac_ext
29593 cat >>conftest.$ac_ext <<_ACEOF
29594 /* end confdefs.h.  */
29595 #include <sys/types.h>
29596 #include <sys/wait.h>
29597 #ifndef WEXITSTATUS
29598 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29599 #endif
29600 #ifndef WIFEXITED
29601 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29602 #endif
29603
29604 int
29605 main ()
29606 {
29607   int s;
29608   wait (&s);
29609   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29610   ;
29611   return 0;
29612 }
29613 _ACEOF
29614 rm -f conftest.$ac_objext
29615 if { (ac_try="$ac_compile"
29616 case "(($ac_try" in
29617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29618   *) ac_try_echo=$ac_try;;
29619 esac
29620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29621   (eval "$ac_compile") 2>conftest.er1
29622   ac_status=$?
29623   grep -v '^ *+' conftest.er1 >conftest.err
29624   rm -f conftest.er1
29625   cat conftest.err >&5
29626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627   (exit $ac_status); } &&
29628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29629   { (case "(($ac_try" in
29630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29631   *) ac_try_echo=$ac_try;;
29632 esac
29633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29634   (eval "$ac_try") 2>&5
29635   ac_status=$?
29636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637   (exit $ac_status); }; } &&
29638          { ac_try='test -s conftest.$ac_objext'
29639   { (case "(($ac_try" in
29640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29641   *) ac_try_echo=$ac_try;;
29642 esac
29643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29644   (eval "$ac_try") 2>&5
29645   ac_status=$?
29646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647   (exit $ac_status); }; }; then
29648   ac_cv_header_sys_wait_h=yes
29649 else
29650   echo "$as_me: failed program was:" >&5
29651 sed 's/^/| /' conftest.$ac_ext >&5
29652
29653         ac_cv_header_sys_wait_h=no
29654 fi
29655
29656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29657 fi
29658 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29659 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29660 if test $ac_cv_header_sys_wait_h = yes; then
29661
29662 cat >>confdefs.h <<\_ACEOF
29663 #define HAVE_SYS_WAIT_H 1
29664 _ACEOF
29665
29666 fi
29667
29668 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29669 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29670 if test "${ac_cv_header_time+set}" = set; then
29671   echo $ECHO_N "(cached) $ECHO_C" >&6
29672 else
29673   cat >conftest.$ac_ext <<_ACEOF
29674 /* confdefs.h.  */
29675 _ACEOF
29676 cat confdefs.h >>conftest.$ac_ext
29677 cat >>conftest.$ac_ext <<_ACEOF
29678 /* end confdefs.h.  */
29679 #include <sys/types.h>
29680 #include <sys/time.h>
29681 #include <time.h>
29682
29683 int
29684 main ()
29685 {
29686 if ((struct tm *) 0)
29687 return 0;
29688   ;
29689   return 0;
29690 }
29691 _ACEOF
29692 rm -f conftest.$ac_objext
29693 if { (ac_try="$ac_compile"
29694 case "(($ac_try" in
29695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29696   *) ac_try_echo=$ac_try;;
29697 esac
29698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29699   (eval "$ac_compile") 2>conftest.er1
29700   ac_status=$?
29701   grep -v '^ *+' conftest.er1 >conftest.err
29702   rm -f conftest.er1
29703   cat conftest.err >&5
29704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705   (exit $ac_status); } &&
29706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29707   { (case "(($ac_try" in
29708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29709   *) ac_try_echo=$ac_try;;
29710 esac
29711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29712   (eval "$ac_try") 2>&5
29713   ac_status=$?
29714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715   (exit $ac_status); }; } &&
29716          { ac_try='test -s conftest.$ac_objext'
29717   { (case "(($ac_try" in
29718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29719   *) ac_try_echo=$ac_try;;
29720 esac
29721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29722   (eval "$ac_try") 2>&5
29723   ac_status=$?
29724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29725   (exit $ac_status); }; }; then
29726   ac_cv_header_time=yes
29727 else
29728   echo "$as_me: failed program was:" >&5
29729 sed 's/^/| /' conftest.$ac_ext >&5
29730
29731         ac_cv_header_time=no
29732 fi
29733
29734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29735 fi
29736 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29737 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29738 if test $ac_cv_header_time = yes; then
29739
29740 cat >>confdefs.h <<\_ACEOF
29741 #define TIME_WITH_SYS_TIME 1
29742 _ACEOF
29743
29744 fi
29745
29746
29747
29748
29749
29750
29751
29752
29753 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29754 do
29755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29757   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29760   echo $ECHO_N "(cached) $ECHO_C" >&6
29761 fi
29762 ac_res=`eval echo '${'$as_ac_Header'}'`
29763                { echo "$as_me:$LINENO: result: $ac_res" >&5
29764 echo "${ECHO_T}$ac_res" >&6; }
29765 else
29766   # Is the header compilable?
29767 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29769 cat >conftest.$ac_ext <<_ACEOF
29770 /* confdefs.h.  */
29771 _ACEOF
29772 cat confdefs.h >>conftest.$ac_ext
29773 cat >>conftest.$ac_ext <<_ACEOF
29774 /* end confdefs.h.  */
29775 $ac_includes_default
29776 #include <$ac_header>
29777 _ACEOF
29778 rm -f conftest.$ac_objext
29779 if { (ac_try="$ac_compile"
29780 case "(($ac_try" in
29781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29782   *) ac_try_echo=$ac_try;;
29783 esac
29784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29785   (eval "$ac_compile") 2>conftest.er1
29786   ac_status=$?
29787   grep -v '^ *+' conftest.er1 >conftest.err
29788   rm -f conftest.er1
29789   cat conftest.err >&5
29790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791   (exit $ac_status); } &&
29792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29793   { (case "(($ac_try" in
29794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29795   *) ac_try_echo=$ac_try;;
29796 esac
29797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29798   (eval "$ac_try") 2>&5
29799   ac_status=$?
29800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801   (exit $ac_status); }; } &&
29802          { ac_try='test -s conftest.$ac_objext'
29803   { (case "(($ac_try" in
29804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29805   *) ac_try_echo=$ac_try;;
29806 esac
29807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29808   (eval "$ac_try") 2>&5
29809   ac_status=$?
29810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811   (exit $ac_status); }; }; then
29812   ac_header_compiler=yes
29813 else
29814   echo "$as_me: failed program was:" >&5
29815 sed 's/^/| /' conftest.$ac_ext >&5
29816
29817         ac_header_compiler=no
29818 fi
29819
29820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29822 echo "${ECHO_T}$ac_header_compiler" >&6; }
29823
29824 # Is the header present?
29825 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29827 cat >conftest.$ac_ext <<_ACEOF
29828 /* confdefs.h.  */
29829 _ACEOF
29830 cat confdefs.h >>conftest.$ac_ext
29831 cat >>conftest.$ac_ext <<_ACEOF
29832 /* end confdefs.h.  */
29833 #include <$ac_header>
29834 _ACEOF
29835 if { (ac_try="$ac_cpp conftest.$ac_ext"
29836 case "(($ac_try" in
29837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838   *) ac_try_echo=$ac_try;;
29839 esac
29840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29841   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29842   ac_status=$?
29843   grep -v '^ *+' conftest.er1 >conftest.err
29844   rm -f conftest.er1
29845   cat conftest.err >&5
29846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847   (exit $ac_status); } >/dev/null; then
29848   if test -s conftest.err; then
29849     ac_cpp_err=$ac_c_preproc_warn_flag
29850     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29851   else
29852     ac_cpp_err=
29853   fi
29854 else
29855   ac_cpp_err=yes
29856 fi
29857 if test -z "$ac_cpp_err"; then
29858   ac_header_preproc=yes
29859 else
29860   echo "$as_me: failed program was:" >&5
29861 sed 's/^/| /' conftest.$ac_ext >&5
29862
29863   ac_header_preproc=no
29864 fi
29865
29866 rm -f conftest.err conftest.$ac_ext
29867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29868 echo "${ECHO_T}$ac_header_preproc" >&6; }
29869
29870 # So?  What about this header?
29871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29872   yes:no: )
29873     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29877     ac_header_preproc=yes
29878     ;;
29879   no:yes:* )
29880     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29882     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29883 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29884     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29886     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29887 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29890     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29892     ( cat <<\_ASBOX
29893 ## ----------------------------------- ##
29894 ## Report this to llvmbugs@cs.uiuc.edu ##
29895 ## ----------------------------------- ##
29896 _ASBOX
29897      ) | sed "s/^/$as_me: WARNING:     /" >&2
29898     ;;
29899 esac
29900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29903   echo $ECHO_N "(cached) $ECHO_C" >&6
29904 else
29905   eval "$as_ac_Header=\$ac_header_preproc"
29906 fi
29907 ac_res=`eval echo '${'$as_ac_Header'}'`
29908                { echo "$as_me:$LINENO: result: $ac_res" >&5
29909 echo "${ECHO_T}$ac_res" >&6; }
29910
29911 fi
29912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29913   cat >>confdefs.h <<_ACEOF
29914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29915 _ACEOF
29916
29917 fi
29918
29919 done
29920
29921
29922
29923
29924
29925
29926
29927 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29928 do
29929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29931   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29934   echo $ECHO_N "(cached) $ECHO_C" >&6
29935 fi
29936 ac_res=`eval echo '${'$as_ac_Header'}'`
29937                { echo "$as_me:$LINENO: result: $ac_res" >&5
29938 echo "${ECHO_T}$ac_res" >&6; }
29939 else
29940   # Is the header compilable?
29941 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29943 cat >conftest.$ac_ext <<_ACEOF
29944 /* confdefs.h.  */
29945 _ACEOF
29946 cat confdefs.h >>conftest.$ac_ext
29947 cat >>conftest.$ac_ext <<_ACEOF
29948 /* end confdefs.h.  */
29949 $ac_includes_default
29950 #include <$ac_header>
29951 _ACEOF
29952 rm -f conftest.$ac_objext
29953 if { (ac_try="$ac_compile"
29954 case "(($ac_try" in
29955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29956   *) ac_try_echo=$ac_try;;
29957 esac
29958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29959   (eval "$ac_compile") 2>conftest.er1
29960   ac_status=$?
29961   grep -v '^ *+' conftest.er1 >conftest.err
29962   rm -f conftest.er1
29963   cat conftest.err >&5
29964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965   (exit $ac_status); } &&
29966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29967   { (case "(($ac_try" in
29968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29969   *) ac_try_echo=$ac_try;;
29970 esac
29971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29972   (eval "$ac_try") 2>&5
29973   ac_status=$?
29974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975   (exit $ac_status); }; } &&
29976          { ac_try='test -s conftest.$ac_objext'
29977   { (case "(($ac_try" in
29978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29979   *) ac_try_echo=$ac_try;;
29980 esac
29981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29982   (eval "$ac_try") 2>&5
29983   ac_status=$?
29984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985   (exit $ac_status); }; }; then
29986   ac_header_compiler=yes
29987 else
29988   echo "$as_me: failed program was:" >&5
29989 sed 's/^/| /' conftest.$ac_ext >&5
29990
29991         ac_header_compiler=no
29992 fi
29993
29994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29996 echo "${ECHO_T}$ac_header_compiler" >&6; }
29997
29998 # Is the header present?
29999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30001 cat >conftest.$ac_ext <<_ACEOF
30002 /* confdefs.h.  */
30003 _ACEOF
30004 cat confdefs.h >>conftest.$ac_ext
30005 cat >>conftest.$ac_ext <<_ACEOF
30006 /* end confdefs.h.  */
30007 #include <$ac_header>
30008 _ACEOF
30009 if { (ac_try="$ac_cpp conftest.$ac_ext"
30010 case "(($ac_try" in
30011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012   *) ac_try_echo=$ac_try;;
30013 esac
30014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30016   ac_status=$?
30017   grep -v '^ *+' conftest.er1 >conftest.err
30018   rm -f conftest.er1
30019   cat conftest.err >&5
30020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021   (exit $ac_status); } >/dev/null; then
30022   if test -s conftest.err; then
30023     ac_cpp_err=$ac_c_preproc_warn_flag
30024     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30025   else
30026     ac_cpp_err=
30027   fi
30028 else
30029   ac_cpp_err=yes
30030 fi
30031 if test -z "$ac_cpp_err"; then
30032   ac_header_preproc=yes
30033 else
30034   echo "$as_me: failed program was:" >&5
30035 sed 's/^/| /' conftest.$ac_ext >&5
30036
30037   ac_header_preproc=no
30038 fi
30039
30040 rm -f conftest.err conftest.$ac_ext
30041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30042 echo "${ECHO_T}$ac_header_preproc" >&6; }
30043
30044 # So?  What about this header?
30045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30046   yes:no: )
30047     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30051     ac_header_preproc=yes
30052     ;;
30053   no:yes:* )
30054     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30056     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30057 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30058     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30060     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30061 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30064     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30066     ( cat <<\_ASBOX
30067 ## ----------------------------------- ##
30068 ## Report this to llvmbugs@cs.uiuc.edu ##
30069 ## ----------------------------------- ##
30070 _ASBOX
30071      ) | sed "s/^/$as_me: WARNING:     /" >&2
30072     ;;
30073 esac
30074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30077   echo $ECHO_N "(cached) $ECHO_C" >&6
30078 else
30079   eval "$as_ac_Header=\$ac_header_preproc"
30080 fi
30081 ac_res=`eval echo '${'$as_ac_Header'}'`
30082                { echo "$as_me:$LINENO: result: $ac_res" >&5
30083 echo "${ECHO_T}$ac_res" >&6; }
30084
30085 fi
30086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30087   cat >>confdefs.h <<_ACEOF
30088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30089 _ACEOF
30090
30091 fi
30092
30093 done
30094
30095
30096
30097 for ac_header in utime.h windows.h
30098 do
30099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30101   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30104   echo $ECHO_N "(cached) $ECHO_C" >&6
30105 fi
30106 ac_res=`eval echo '${'$as_ac_Header'}'`
30107                { echo "$as_me:$LINENO: result: $ac_res" >&5
30108 echo "${ECHO_T}$ac_res" >&6; }
30109 else
30110   # Is the header compilable?
30111 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30113 cat >conftest.$ac_ext <<_ACEOF
30114 /* confdefs.h.  */
30115 _ACEOF
30116 cat confdefs.h >>conftest.$ac_ext
30117 cat >>conftest.$ac_ext <<_ACEOF
30118 /* end confdefs.h.  */
30119 $ac_includes_default
30120 #include <$ac_header>
30121 _ACEOF
30122 rm -f conftest.$ac_objext
30123 if { (ac_try="$ac_compile"
30124 case "(($ac_try" in
30125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126   *) ac_try_echo=$ac_try;;
30127 esac
30128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129   (eval "$ac_compile") 2>conftest.er1
30130   ac_status=$?
30131   grep -v '^ *+' conftest.er1 >conftest.err
30132   rm -f conftest.er1
30133   cat conftest.err >&5
30134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135   (exit $ac_status); } &&
30136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30137   { (case "(($ac_try" in
30138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30139   *) ac_try_echo=$ac_try;;
30140 esac
30141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30142   (eval "$ac_try") 2>&5
30143   ac_status=$?
30144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145   (exit $ac_status); }; } &&
30146          { ac_try='test -s conftest.$ac_objext'
30147   { (case "(($ac_try" in
30148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30149   *) ac_try_echo=$ac_try;;
30150 esac
30151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30152   (eval "$ac_try") 2>&5
30153   ac_status=$?
30154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155   (exit $ac_status); }; }; then
30156   ac_header_compiler=yes
30157 else
30158   echo "$as_me: failed program was:" >&5
30159 sed 's/^/| /' conftest.$ac_ext >&5
30160
30161         ac_header_compiler=no
30162 fi
30163
30164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30166 echo "${ECHO_T}$ac_header_compiler" >&6; }
30167
30168 # Is the header present?
30169 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30171 cat >conftest.$ac_ext <<_ACEOF
30172 /* confdefs.h.  */
30173 _ACEOF
30174 cat confdefs.h >>conftest.$ac_ext
30175 cat >>conftest.$ac_ext <<_ACEOF
30176 /* end confdefs.h.  */
30177 #include <$ac_header>
30178 _ACEOF
30179 if { (ac_try="$ac_cpp conftest.$ac_ext"
30180 case "(($ac_try" in
30181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30182   *) ac_try_echo=$ac_try;;
30183 esac
30184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30185   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30186   ac_status=$?
30187   grep -v '^ *+' conftest.er1 >conftest.err
30188   rm -f conftest.er1
30189   cat conftest.err >&5
30190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191   (exit $ac_status); } >/dev/null; then
30192   if test -s conftest.err; then
30193     ac_cpp_err=$ac_c_preproc_warn_flag
30194     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30195   else
30196     ac_cpp_err=
30197   fi
30198 else
30199   ac_cpp_err=yes
30200 fi
30201 if test -z "$ac_cpp_err"; then
30202   ac_header_preproc=yes
30203 else
30204   echo "$as_me: failed program was:" >&5
30205 sed 's/^/| /' conftest.$ac_ext >&5
30206
30207   ac_header_preproc=no
30208 fi
30209
30210 rm -f conftest.err conftest.$ac_ext
30211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30212 echo "${ECHO_T}$ac_header_preproc" >&6; }
30213
30214 # So?  What about this header?
30215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30216   yes:no: )
30217     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30221     ac_header_preproc=yes
30222     ;;
30223   no:yes:* )
30224     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30226     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30227 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30228     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30230     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30231 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30232     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30234     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30236     ( cat <<\_ASBOX
30237 ## ----------------------------------- ##
30238 ## Report this to llvmbugs@cs.uiuc.edu ##
30239 ## ----------------------------------- ##
30240 _ASBOX
30241      ) | sed "s/^/$as_me: WARNING:     /" >&2
30242     ;;
30243 esac
30244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30247   echo $ECHO_N "(cached) $ECHO_C" >&6
30248 else
30249   eval "$as_ac_Header=\$ac_header_preproc"
30250 fi
30251 ac_res=`eval echo '${'$as_ac_Header'}'`
30252                { echo "$as_me:$LINENO: result: $ac_res" >&5
30253 echo "${ECHO_T}$ac_res" >&6; }
30254
30255 fi
30256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30257   cat >>confdefs.h <<_ACEOF
30258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30259 _ACEOF
30260
30261 fi
30262
30263 done
30264
30265
30266
30267
30268
30269 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30270 do
30271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30273   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30276   echo $ECHO_N "(cached) $ECHO_C" >&6
30277 fi
30278 ac_res=`eval echo '${'$as_ac_Header'}'`
30279                { echo "$as_me:$LINENO: result: $ac_res" >&5
30280 echo "${ECHO_T}$ac_res" >&6; }
30281 else
30282   # Is the header compilable?
30283 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30285 cat >conftest.$ac_ext <<_ACEOF
30286 /* confdefs.h.  */
30287 _ACEOF
30288 cat confdefs.h >>conftest.$ac_ext
30289 cat >>conftest.$ac_ext <<_ACEOF
30290 /* end confdefs.h.  */
30291 $ac_includes_default
30292 #include <$ac_header>
30293 _ACEOF
30294 rm -f conftest.$ac_objext
30295 if { (ac_try="$ac_compile"
30296 case "(($ac_try" in
30297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30298   *) ac_try_echo=$ac_try;;
30299 esac
30300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30301   (eval "$ac_compile") 2>conftest.er1
30302   ac_status=$?
30303   grep -v '^ *+' conftest.er1 >conftest.err
30304   rm -f conftest.er1
30305   cat conftest.err >&5
30306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307   (exit $ac_status); } &&
30308          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30309   { (case "(($ac_try" in
30310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30311   *) ac_try_echo=$ac_try;;
30312 esac
30313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30314   (eval "$ac_try") 2>&5
30315   ac_status=$?
30316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317   (exit $ac_status); }; } &&
30318          { ac_try='test -s conftest.$ac_objext'
30319   { (case "(($ac_try" in
30320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30321   *) ac_try_echo=$ac_try;;
30322 esac
30323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30324   (eval "$ac_try") 2>&5
30325   ac_status=$?
30326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327   (exit $ac_status); }; }; then
30328   ac_header_compiler=yes
30329 else
30330   echo "$as_me: failed program was:" >&5
30331 sed 's/^/| /' conftest.$ac_ext >&5
30332
30333         ac_header_compiler=no
30334 fi
30335
30336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30338 echo "${ECHO_T}$ac_header_compiler" >&6; }
30339
30340 # Is the header present?
30341 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30343 cat >conftest.$ac_ext <<_ACEOF
30344 /* confdefs.h.  */
30345 _ACEOF
30346 cat confdefs.h >>conftest.$ac_ext
30347 cat >>conftest.$ac_ext <<_ACEOF
30348 /* end confdefs.h.  */
30349 #include <$ac_header>
30350 _ACEOF
30351 if { (ac_try="$ac_cpp conftest.$ac_ext"
30352 case "(($ac_try" in
30353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30354   *) ac_try_echo=$ac_try;;
30355 esac
30356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30357   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30358   ac_status=$?
30359   grep -v '^ *+' conftest.er1 >conftest.err
30360   rm -f conftest.er1
30361   cat conftest.err >&5
30362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363   (exit $ac_status); } >/dev/null; then
30364   if test -s conftest.err; then
30365     ac_cpp_err=$ac_c_preproc_warn_flag
30366     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30367   else
30368     ac_cpp_err=
30369   fi
30370 else
30371   ac_cpp_err=yes
30372 fi
30373 if test -z "$ac_cpp_err"; then
30374   ac_header_preproc=yes
30375 else
30376   echo "$as_me: failed program was:" >&5
30377 sed 's/^/| /' conftest.$ac_ext >&5
30378
30379   ac_header_preproc=no
30380 fi
30381
30382 rm -f conftest.err conftest.$ac_ext
30383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30384 echo "${ECHO_T}$ac_header_preproc" >&6; }
30385
30386 # So?  What about this header?
30387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30388   yes:no: )
30389     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30393     ac_header_preproc=yes
30394     ;;
30395   no:yes:* )
30396     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30398     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30399 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30400     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30402     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30403 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30404     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30406     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30408     ( cat <<\_ASBOX
30409 ## ----------------------------------- ##
30410 ## Report this to llvmbugs@cs.uiuc.edu ##
30411 ## ----------------------------------- ##
30412 _ASBOX
30413      ) | sed "s/^/$as_me: WARNING:     /" >&2
30414     ;;
30415 esac
30416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30419   echo $ECHO_N "(cached) $ECHO_C" >&6
30420 else
30421   eval "$as_ac_Header=\$ac_header_preproc"
30422 fi
30423 ac_res=`eval echo '${'$as_ac_Header'}'`
30424                { echo "$as_me:$LINENO: result: $ac_res" >&5
30425 echo "${ECHO_T}$ac_res" >&6; }
30426
30427 fi
30428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30429   cat >>confdefs.h <<_ACEOF
30430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30431 _ACEOF
30432
30433 fi
30434
30435 done
30436
30437
30438
30439
30440
30441 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30442 do
30443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30445   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30448   echo $ECHO_N "(cached) $ECHO_C" >&6
30449 fi
30450 ac_res=`eval echo '${'$as_ac_Header'}'`
30451                { echo "$as_me:$LINENO: result: $ac_res" >&5
30452 echo "${ECHO_T}$ac_res" >&6; }
30453 else
30454   # Is the header compilable?
30455 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30457 cat >conftest.$ac_ext <<_ACEOF
30458 /* confdefs.h.  */
30459 _ACEOF
30460 cat confdefs.h >>conftest.$ac_ext
30461 cat >>conftest.$ac_ext <<_ACEOF
30462 /* end confdefs.h.  */
30463 $ac_includes_default
30464 #include <$ac_header>
30465 _ACEOF
30466 rm -f conftest.$ac_objext
30467 if { (ac_try="$ac_compile"
30468 case "(($ac_try" in
30469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30470   *) ac_try_echo=$ac_try;;
30471 esac
30472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30473   (eval "$ac_compile") 2>conftest.er1
30474   ac_status=$?
30475   grep -v '^ *+' conftest.er1 >conftest.err
30476   rm -f conftest.er1
30477   cat conftest.err >&5
30478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479   (exit $ac_status); } &&
30480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30481   { (case "(($ac_try" in
30482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483   *) ac_try_echo=$ac_try;;
30484 esac
30485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30486   (eval "$ac_try") 2>&5
30487   ac_status=$?
30488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489   (exit $ac_status); }; } &&
30490          { ac_try='test -s conftest.$ac_objext'
30491   { (case "(($ac_try" in
30492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493   *) ac_try_echo=$ac_try;;
30494 esac
30495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496   (eval "$ac_try") 2>&5
30497   ac_status=$?
30498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499   (exit $ac_status); }; }; then
30500   ac_header_compiler=yes
30501 else
30502   echo "$as_me: failed program was:" >&5
30503 sed 's/^/| /' conftest.$ac_ext >&5
30504
30505         ac_header_compiler=no
30506 fi
30507
30508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30510 echo "${ECHO_T}$ac_header_compiler" >&6; }
30511
30512 # Is the header present?
30513 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30515 cat >conftest.$ac_ext <<_ACEOF
30516 /* confdefs.h.  */
30517 _ACEOF
30518 cat confdefs.h >>conftest.$ac_ext
30519 cat >>conftest.$ac_ext <<_ACEOF
30520 /* end confdefs.h.  */
30521 #include <$ac_header>
30522 _ACEOF
30523 if { (ac_try="$ac_cpp conftest.$ac_ext"
30524 case "(($ac_try" in
30525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30526   *) ac_try_echo=$ac_try;;
30527 esac
30528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30529   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30530   ac_status=$?
30531   grep -v '^ *+' conftest.er1 >conftest.err
30532   rm -f conftest.er1
30533   cat conftest.err >&5
30534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535   (exit $ac_status); } >/dev/null; then
30536   if test -s conftest.err; then
30537     ac_cpp_err=$ac_c_preproc_warn_flag
30538     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30539   else
30540     ac_cpp_err=
30541   fi
30542 else
30543   ac_cpp_err=yes
30544 fi
30545 if test -z "$ac_cpp_err"; then
30546   ac_header_preproc=yes
30547 else
30548   echo "$as_me: failed program was:" >&5
30549 sed 's/^/| /' conftest.$ac_ext >&5
30550
30551   ac_header_preproc=no
30552 fi
30553
30554 rm -f conftest.err conftest.$ac_ext
30555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30556 echo "${ECHO_T}$ac_header_preproc" >&6; }
30557
30558 # So?  What about this header?
30559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30560   yes:no: )
30561     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30565     ac_header_preproc=yes
30566     ;;
30567   no:yes:* )
30568     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30570     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30571 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30572     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30574     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30575 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30576     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30578     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30580     ( cat <<\_ASBOX
30581 ## ----------------------------------- ##
30582 ## Report this to llvmbugs@cs.uiuc.edu ##
30583 ## ----------------------------------- ##
30584 _ASBOX
30585      ) | sed "s/^/$as_me: WARNING:     /" >&2
30586     ;;
30587 esac
30588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30591   echo $ECHO_N "(cached) $ECHO_C" >&6
30592 else
30593   eval "$as_ac_Header=\$ac_header_preproc"
30594 fi
30595 ac_res=`eval echo '${'$as_ac_Header'}'`
30596                { echo "$as_me:$LINENO: result: $ac_res" >&5
30597 echo "${ECHO_T}$ac_res" >&6; }
30598
30599 fi
30600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30601   cat >>confdefs.h <<_ACEOF
30602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30603 _ACEOF
30604
30605 fi
30606
30607 done
30608
30609 if test "$ENABLE_THREADS" -eq 1 ; then
30610
30611 for ac_header in pthread.h
30612 do
30613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30615   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30618   echo $ECHO_N "(cached) $ECHO_C" >&6
30619 fi
30620 ac_res=`eval echo '${'$as_ac_Header'}'`
30621                { echo "$as_me:$LINENO: result: $ac_res" >&5
30622 echo "${ECHO_T}$ac_res" >&6; }
30623 else
30624   # Is the header compilable?
30625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30627 cat >conftest.$ac_ext <<_ACEOF
30628 /* confdefs.h.  */
30629 _ACEOF
30630 cat confdefs.h >>conftest.$ac_ext
30631 cat >>conftest.$ac_ext <<_ACEOF
30632 /* end confdefs.h.  */
30633 $ac_includes_default
30634 #include <$ac_header>
30635 _ACEOF
30636 rm -f conftest.$ac_objext
30637 if { (ac_try="$ac_compile"
30638 case "(($ac_try" in
30639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30640   *) ac_try_echo=$ac_try;;
30641 esac
30642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30643   (eval "$ac_compile") 2>conftest.er1
30644   ac_status=$?
30645   grep -v '^ *+' conftest.er1 >conftest.err
30646   rm -f conftest.er1
30647   cat conftest.err >&5
30648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649   (exit $ac_status); } &&
30650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30651   { (case "(($ac_try" in
30652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30653   *) ac_try_echo=$ac_try;;
30654 esac
30655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30656   (eval "$ac_try") 2>&5
30657   ac_status=$?
30658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659   (exit $ac_status); }; } &&
30660          { ac_try='test -s conftest.$ac_objext'
30661   { (case "(($ac_try" in
30662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30663   *) ac_try_echo=$ac_try;;
30664 esac
30665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30666   (eval "$ac_try") 2>&5
30667   ac_status=$?
30668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669   (exit $ac_status); }; }; then
30670   ac_header_compiler=yes
30671 else
30672   echo "$as_me: failed program was:" >&5
30673 sed 's/^/| /' conftest.$ac_ext >&5
30674
30675         ac_header_compiler=no
30676 fi
30677
30678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30680 echo "${ECHO_T}$ac_header_compiler" >&6; }
30681
30682 # Is the header present?
30683 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30685 cat >conftest.$ac_ext <<_ACEOF
30686 /* confdefs.h.  */
30687 _ACEOF
30688 cat confdefs.h >>conftest.$ac_ext
30689 cat >>conftest.$ac_ext <<_ACEOF
30690 /* end confdefs.h.  */
30691 #include <$ac_header>
30692 _ACEOF
30693 if { (ac_try="$ac_cpp conftest.$ac_ext"
30694 case "(($ac_try" in
30695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30696   *) ac_try_echo=$ac_try;;
30697 esac
30698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30699   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30700   ac_status=$?
30701   grep -v '^ *+' conftest.er1 >conftest.err
30702   rm -f conftest.er1
30703   cat conftest.err >&5
30704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705   (exit $ac_status); } >/dev/null; then
30706   if test -s conftest.err; then
30707     ac_cpp_err=$ac_c_preproc_warn_flag
30708     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30709   else
30710     ac_cpp_err=
30711   fi
30712 else
30713   ac_cpp_err=yes
30714 fi
30715 if test -z "$ac_cpp_err"; then
30716   ac_header_preproc=yes
30717 else
30718   echo "$as_me: failed program was:" >&5
30719 sed 's/^/| /' conftest.$ac_ext >&5
30720
30721   ac_header_preproc=no
30722 fi
30723
30724 rm -f conftest.err conftest.$ac_ext
30725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30726 echo "${ECHO_T}$ac_header_preproc" >&6; }
30727
30728 # So?  What about this header?
30729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30730   yes:no: )
30731     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30735     ac_header_preproc=yes
30736     ;;
30737   no:yes:* )
30738     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30740     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30741 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30742     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30744     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30745 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30748     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30750     ( cat <<\_ASBOX
30751 ## ----------------------------------- ##
30752 ## Report this to llvmbugs@cs.uiuc.edu ##
30753 ## ----------------------------------- ##
30754 _ASBOX
30755      ) | sed "s/^/$as_me: WARNING:     /" >&2
30756     ;;
30757 esac
30758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30761   echo $ECHO_N "(cached) $ECHO_C" >&6
30762 else
30763   eval "$as_ac_Header=\$ac_header_preproc"
30764 fi
30765 ac_res=`eval echo '${'$as_ac_Header'}'`
30766                { echo "$as_me:$LINENO: result: $ac_res" >&5
30767 echo "${ECHO_T}$ac_res" >&6; }
30768
30769 fi
30770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30771   cat >>confdefs.h <<_ACEOF
30772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30773 _ACEOF
30774  HAVE_PTHREAD=1
30775
30776 else
30777   HAVE_PTHREAD=0
30778
30779 fi
30780
30781 done
30782
30783 else
30784   HAVE_PTHREAD=0
30785
30786 fi
30787
30788 if test "$llvm_cv_enable_libffi" = "yes" ; then
30789
30790
30791 for ac_header in ffi.h ffi/ffi.h
30792 do
30793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30795   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30798   echo $ECHO_N "(cached) $ECHO_C" >&6
30799 fi
30800 ac_res=`eval echo '${'$as_ac_Header'}'`
30801                { echo "$as_me:$LINENO: result: $ac_res" >&5
30802 echo "${ECHO_T}$ac_res" >&6; }
30803 else
30804   # Is the header compilable?
30805 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30807 cat >conftest.$ac_ext <<_ACEOF
30808 /* confdefs.h.  */
30809 _ACEOF
30810 cat confdefs.h >>conftest.$ac_ext
30811 cat >>conftest.$ac_ext <<_ACEOF
30812 /* end confdefs.h.  */
30813 $ac_includes_default
30814 #include <$ac_header>
30815 _ACEOF
30816 rm -f conftest.$ac_objext
30817 if { (ac_try="$ac_compile"
30818 case "(($ac_try" in
30819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820   *) ac_try_echo=$ac_try;;
30821 esac
30822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823   (eval "$ac_compile") 2>conftest.er1
30824   ac_status=$?
30825   grep -v '^ *+' conftest.er1 >conftest.err
30826   rm -f conftest.er1
30827   cat conftest.err >&5
30828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829   (exit $ac_status); } &&
30830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30831   { (case "(($ac_try" in
30832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30833   *) ac_try_echo=$ac_try;;
30834 esac
30835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30836   (eval "$ac_try") 2>&5
30837   ac_status=$?
30838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30839   (exit $ac_status); }; } &&
30840          { ac_try='test -s conftest.$ac_objext'
30841   { (case "(($ac_try" in
30842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30843   *) ac_try_echo=$ac_try;;
30844 esac
30845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30846   (eval "$ac_try") 2>&5
30847   ac_status=$?
30848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30849   (exit $ac_status); }; }; then
30850   ac_header_compiler=yes
30851 else
30852   echo "$as_me: failed program was:" >&5
30853 sed 's/^/| /' conftest.$ac_ext >&5
30854
30855         ac_header_compiler=no
30856 fi
30857
30858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30860 echo "${ECHO_T}$ac_header_compiler" >&6; }
30861
30862 # Is the header present?
30863 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30865 cat >conftest.$ac_ext <<_ACEOF
30866 /* confdefs.h.  */
30867 _ACEOF
30868 cat confdefs.h >>conftest.$ac_ext
30869 cat >>conftest.$ac_ext <<_ACEOF
30870 /* end confdefs.h.  */
30871 #include <$ac_header>
30872 _ACEOF
30873 if { (ac_try="$ac_cpp conftest.$ac_ext"
30874 case "(($ac_try" in
30875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30876   *) ac_try_echo=$ac_try;;
30877 esac
30878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30879   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30880   ac_status=$?
30881   grep -v '^ *+' conftest.er1 >conftest.err
30882   rm -f conftest.er1
30883   cat conftest.err >&5
30884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885   (exit $ac_status); } >/dev/null; then
30886   if test -s conftest.err; then
30887     ac_cpp_err=$ac_c_preproc_warn_flag
30888     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30889   else
30890     ac_cpp_err=
30891   fi
30892 else
30893   ac_cpp_err=yes
30894 fi
30895 if test -z "$ac_cpp_err"; then
30896   ac_header_preproc=yes
30897 else
30898   echo "$as_me: failed program was:" >&5
30899 sed 's/^/| /' conftest.$ac_ext >&5
30900
30901   ac_header_preproc=no
30902 fi
30903
30904 rm -f conftest.err conftest.$ac_ext
30905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30906 echo "${ECHO_T}$ac_header_preproc" >&6; }
30907
30908 # So?  What about this header?
30909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30910   yes:no: )
30911     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30915     ac_header_preproc=yes
30916     ;;
30917   no:yes:* )
30918     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30920     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30921 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30922     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30924     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30925 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30928     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30930     ( cat <<\_ASBOX
30931 ## ----------------------------------- ##
30932 ## Report this to llvmbugs@cs.uiuc.edu ##
30933 ## ----------------------------------- ##
30934 _ASBOX
30935      ) | sed "s/^/$as_me: WARNING:     /" >&2
30936     ;;
30937 esac
30938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30941   echo $ECHO_N "(cached) $ECHO_C" >&6
30942 else
30943   eval "$as_ac_Header=\$ac_header_preproc"
30944 fi
30945 ac_res=`eval echo '${'$as_ac_Header'}'`
30946                { echo "$as_me:$LINENO: result: $ac_res" >&5
30947 echo "${ECHO_T}$ac_res" >&6; }
30948
30949 fi
30950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30951   cat >>confdefs.h <<_ACEOF
30952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30953 _ACEOF
30954
30955 fi
30956
30957 done
30958
30959 fi
30960
30961
30962
30963   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30964 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30965 if test "${ac_cv_huge_val_sanity+set}" = set; then
30966   echo $ECHO_N "(cached) $ECHO_C" >&6
30967 else
30968
30969     ac_ext=cpp
30970 ac_cpp='$CXXCPP $CPPFLAGS'
30971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30974
30975     CXXFLAGS=-pedantic
30976     if test "$cross_compiling" = yes; then
30977   ac_cv_huge_val_sanity=yes
30978 else
30979   cat >conftest.$ac_ext <<_ACEOF
30980 /* confdefs.h.  */
30981 _ACEOF
30982 cat confdefs.h >>conftest.$ac_ext
30983 cat >>conftest.$ac_ext <<_ACEOF
30984 /* end confdefs.h.  */
30985 #include <math.h>
30986 int
30987 main ()
30988 {
30989 double x = HUGE_VAL; return x != x;
30990   ;
30991   return 0;
30992 }
30993 _ACEOF
30994 rm -f conftest$ac_exeext
30995 if { (ac_try="$ac_link"
30996 case "(($ac_try" in
30997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30998   *) ac_try_echo=$ac_try;;
30999 esac
31000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31001   (eval "$ac_link") 2>&5
31002   ac_status=$?
31003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31005   { (case "(($ac_try" in
31006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31007   *) ac_try_echo=$ac_try;;
31008 esac
31009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31010   (eval "$ac_try") 2>&5
31011   ac_status=$?
31012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31013   (exit $ac_status); }; }; then
31014   ac_cv_huge_val_sanity=yes
31015 else
31016   echo "$as_me: program exited with status $ac_status" >&5
31017 echo "$as_me: failed program was:" >&5
31018 sed 's/^/| /' conftest.$ac_ext >&5
31019
31020 ( exit $ac_status )
31021 ac_cv_huge_val_sanity=no
31022 fi
31023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31024 fi
31025
31026
31027     ac_ext=c
31028 ac_cpp='$CPP $CPPFLAGS'
31029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31032
31033
31034 fi
31035 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31036 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31037   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31038
31039
31040 { echo "$as_me:$LINENO: checking for pid_t" >&5
31041 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31042 if test "${ac_cv_type_pid_t+set}" = set; then
31043   echo $ECHO_N "(cached) $ECHO_C" >&6
31044 else
31045   cat >conftest.$ac_ext <<_ACEOF
31046 /* confdefs.h.  */
31047 _ACEOF
31048 cat confdefs.h >>conftest.$ac_ext
31049 cat >>conftest.$ac_ext <<_ACEOF
31050 /* end confdefs.h.  */
31051 $ac_includes_default
31052 typedef pid_t ac__type_new_;
31053 int
31054 main ()
31055 {
31056 if ((ac__type_new_ *) 0)
31057   return 0;
31058 if (sizeof (ac__type_new_))
31059   return 0;
31060   ;
31061   return 0;
31062 }
31063 _ACEOF
31064 rm -f conftest.$ac_objext
31065 if { (ac_try="$ac_compile"
31066 case "(($ac_try" in
31067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31068   *) ac_try_echo=$ac_try;;
31069 esac
31070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31071   (eval "$ac_compile") 2>conftest.er1
31072   ac_status=$?
31073   grep -v '^ *+' conftest.er1 >conftest.err
31074   rm -f conftest.er1
31075   cat conftest.err >&5
31076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31077   (exit $ac_status); } &&
31078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31079   { (case "(($ac_try" in
31080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31081   *) ac_try_echo=$ac_try;;
31082 esac
31083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31084   (eval "$ac_try") 2>&5
31085   ac_status=$?
31086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087   (exit $ac_status); }; } &&
31088          { ac_try='test -s conftest.$ac_objext'
31089   { (case "(($ac_try" in
31090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31091   *) ac_try_echo=$ac_try;;
31092 esac
31093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31094   (eval "$ac_try") 2>&5
31095   ac_status=$?
31096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31097   (exit $ac_status); }; }; then
31098   ac_cv_type_pid_t=yes
31099 else
31100   echo "$as_me: failed program was:" >&5
31101 sed 's/^/| /' conftest.$ac_ext >&5
31102
31103         ac_cv_type_pid_t=no
31104 fi
31105
31106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31107 fi
31108 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31109 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31110 if test $ac_cv_type_pid_t = yes; then
31111   :
31112 else
31113
31114 cat >>confdefs.h <<_ACEOF
31115 #define pid_t int
31116 _ACEOF
31117
31118 fi
31119
31120 { echo "$as_me:$LINENO: checking for size_t" >&5
31121 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31122 if test "${ac_cv_type_size_t+set}" = set; then
31123   echo $ECHO_N "(cached) $ECHO_C" >&6
31124 else
31125   cat >conftest.$ac_ext <<_ACEOF
31126 /* confdefs.h.  */
31127 _ACEOF
31128 cat confdefs.h >>conftest.$ac_ext
31129 cat >>conftest.$ac_ext <<_ACEOF
31130 /* end confdefs.h.  */
31131 $ac_includes_default
31132 typedef size_t ac__type_new_;
31133 int
31134 main ()
31135 {
31136 if ((ac__type_new_ *) 0)
31137   return 0;
31138 if (sizeof (ac__type_new_))
31139   return 0;
31140   ;
31141   return 0;
31142 }
31143 _ACEOF
31144 rm -f conftest.$ac_objext
31145 if { (ac_try="$ac_compile"
31146 case "(($ac_try" in
31147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31148   *) ac_try_echo=$ac_try;;
31149 esac
31150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31151   (eval "$ac_compile") 2>conftest.er1
31152   ac_status=$?
31153   grep -v '^ *+' conftest.er1 >conftest.err
31154   rm -f conftest.er1
31155   cat conftest.err >&5
31156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31157   (exit $ac_status); } &&
31158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31159   { (case "(($ac_try" in
31160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31161   *) ac_try_echo=$ac_try;;
31162 esac
31163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31164   (eval "$ac_try") 2>&5
31165   ac_status=$?
31166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31167   (exit $ac_status); }; } &&
31168          { ac_try='test -s conftest.$ac_objext'
31169   { (case "(($ac_try" in
31170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31171   *) ac_try_echo=$ac_try;;
31172 esac
31173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31174   (eval "$ac_try") 2>&5
31175   ac_status=$?
31176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177   (exit $ac_status); }; }; then
31178   ac_cv_type_size_t=yes
31179 else
31180   echo "$as_me: failed program was:" >&5
31181 sed 's/^/| /' conftest.$ac_ext >&5
31182
31183         ac_cv_type_size_t=no
31184 fi
31185
31186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31187 fi
31188 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31189 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31190 if test $ac_cv_type_size_t = yes; then
31191   :
31192 else
31193
31194 cat >>confdefs.h <<_ACEOF
31195 #define size_t unsigned int
31196 _ACEOF
31197
31198 fi
31199
31200 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31201 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31202 if test "${ac_cv_type_signal+set}" = set; then
31203   echo $ECHO_N "(cached) $ECHO_C" >&6
31204 else
31205   cat >conftest.$ac_ext <<_ACEOF
31206 /* confdefs.h.  */
31207 _ACEOF
31208 cat confdefs.h >>conftest.$ac_ext
31209 cat >>conftest.$ac_ext <<_ACEOF
31210 /* end confdefs.h.  */
31211 #include <sys/types.h>
31212 #include <signal.h>
31213
31214 int
31215 main ()
31216 {
31217 return *(signal (0, 0)) (0) == 1;
31218   ;
31219   return 0;
31220 }
31221 _ACEOF
31222 rm -f conftest.$ac_objext
31223 if { (ac_try="$ac_compile"
31224 case "(($ac_try" in
31225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31226   *) ac_try_echo=$ac_try;;
31227 esac
31228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31229   (eval "$ac_compile") 2>conftest.er1
31230   ac_status=$?
31231   grep -v '^ *+' conftest.er1 >conftest.err
31232   rm -f conftest.er1
31233   cat conftest.err >&5
31234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31235   (exit $ac_status); } &&
31236          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31237   { (case "(($ac_try" in
31238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31239   *) ac_try_echo=$ac_try;;
31240 esac
31241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31242   (eval "$ac_try") 2>&5
31243   ac_status=$?
31244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31245   (exit $ac_status); }; } &&
31246          { ac_try='test -s conftest.$ac_objext'
31247   { (case "(($ac_try" in
31248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31249   *) ac_try_echo=$ac_try;;
31250 esac
31251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31252   (eval "$ac_try") 2>&5
31253   ac_status=$?
31254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31255   (exit $ac_status); }; }; then
31256   ac_cv_type_signal=int
31257 else
31258   echo "$as_me: failed program was:" >&5
31259 sed 's/^/| /' conftest.$ac_ext >&5
31260
31261         ac_cv_type_signal=void
31262 fi
31263
31264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31265 fi
31266 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31267 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31268
31269 cat >>confdefs.h <<_ACEOF
31270 #define RETSIGTYPE $ac_cv_type_signal
31271 _ACEOF
31272
31273
31274 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31275 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31276 if test "${ac_cv_struct_tm+set}" = set; then
31277   echo $ECHO_N "(cached) $ECHO_C" >&6
31278 else
31279   cat >conftest.$ac_ext <<_ACEOF
31280 /* confdefs.h.  */
31281 _ACEOF
31282 cat confdefs.h >>conftest.$ac_ext
31283 cat >>conftest.$ac_ext <<_ACEOF
31284 /* end confdefs.h.  */
31285 #include <sys/types.h>
31286 #include <time.h>
31287
31288 int
31289 main ()
31290 {
31291 struct tm *tp; tp->tm_sec;
31292   ;
31293   return 0;
31294 }
31295 _ACEOF
31296 rm -f conftest.$ac_objext
31297 if { (ac_try="$ac_compile"
31298 case "(($ac_try" in
31299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300   *) ac_try_echo=$ac_try;;
31301 esac
31302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303   (eval "$ac_compile") 2>conftest.er1
31304   ac_status=$?
31305   grep -v '^ *+' conftest.er1 >conftest.err
31306   rm -f conftest.er1
31307   cat conftest.err >&5
31308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309   (exit $ac_status); } &&
31310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31311   { (case "(($ac_try" in
31312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31313   *) ac_try_echo=$ac_try;;
31314 esac
31315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31316   (eval "$ac_try") 2>&5
31317   ac_status=$?
31318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319   (exit $ac_status); }; } &&
31320          { ac_try='test -s conftest.$ac_objext'
31321   { (case "(($ac_try" in
31322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31323   *) ac_try_echo=$ac_try;;
31324 esac
31325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31326   (eval "$ac_try") 2>&5
31327   ac_status=$?
31328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31329   (exit $ac_status); }; }; then
31330   ac_cv_struct_tm=time.h
31331 else
31332   echo "$as_me: failed program was:" >&5
31333 sed 's/^/| /' conftest.$ac_ext >&5
31334
31335         ac_cv_struct_tm=sys/time.h
31336 fi
31337
31338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31339 fi
31340 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31341 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31342 if test $ac_cv_struct_tm = sys/time.h; then
31343
31344 cat >>confdefs.h <<\_ACEOF
31345 #define TM_IN_SYS_TIME 1
31346 _ACEOF
31347
31348 fi
31349
31350 { echo "$as_me:$LINENO: checking for int64_t" >&5
31351 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31352 if test "${ac_cv_type_int64_t+set}" = set; then
31353   echo $ECHO_N "(cached) $ECHO_C" >&6
31354 else
31355   cat >conftest.$ac_ext <<_ACEOF
31356 /* confdefs.h.  */
31357 _ACEOF
31358 cat confdefs.h >>conftest.$ac_ext
31359 cat >>conftest.$ac_ext <<_ACEOF
31360 /* end confdefs.h.  */
31361 $ac_includes_default
31362 typedef int64_t ac__type_new_;
31363 int
31364 main ()
31365 {
31366 if ((ac__type_new_ *) 0)
31367   return 0;
31368 if (sizeof (ac__type_new_))
31369   return 0;
31370   ;
31371   return 0;
31372 }
31373 _ACEOF
31374 rm -f conftest.$ac_objext
31375 if { (ac_try="$ac_compile"
31376 case "(($ac_try" in
31377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31378   *) ac_try_echo=$ac_try;;
31379 esac
31380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31381   (eval "$ac_compile") 2>conftest.er1
31382   ac_status=$?
31383   grep -v '^ *+' conftest.er1 >conftest.err
31384   rm -f conftest.er1
31385   cat conftest.err >&5
31386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387   (exit $ac_status); } &&
31388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31389   { (case "(($ac_try" in
31390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31391   *) ac_try_echo=$ac_try;;
31392 esac
31393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31394   (eval "$ac_try") 2>&5
31395   ac_status=$?
31396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31397   (exit $ac_status); }; } &&
31398          { ac_try='test -s conftest.$ac_objext'
31399   { (case "(($ac_try" in
31400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31401   *) ac_try_echo=$ac_try;;
31402 esac
31403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31404   (eval "$ac_try") 2>&5
31405   ac_status=$?
31406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31407   (exit $ac_status); }; }; then
31408   ac_cv_type_int64_t=yes
31409 else
31410   echo "$as_me: failed program was:" >&5
31411 sed 's/^/| /' conftest.$ac_ext >&5
31412
31413         ac_cv_type_int64_t=no
31414 fi
31415
31416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31417 fi
31418 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31419 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31420 if test $ac_cv_type_int64_t = yes; then
31421
31422 cat >>confdefs.h <<_ACEOF
31423 #define HAVE_INT64_T 1
31424 _ACEOF
31425
31426
31427 else
31428   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31429 echo "$as_me: error: Type int64_t required but not found" >&2;}
31430    { (exit 1); exit 1; }; }
31431 fi
31432
31433 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31434 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31435 if test "${ac_cv_type_uint64_t+set}" = set; then
31436   echo $ECHO_N "(cached) $ECHO_C" >&6
31437 else
31438   cat >conftest.$ac_ext <<_ACEOF
31439 /* confdefs.h.  */
31440 _ACEOF
31441 cat confdefs.h >>conftest.$ac_ext
31442 cat >>conftest.$ac_ext <<_ACEOF
31443 /* end confdefs.h.  */
31444 $ac_includes_default
31445 typedef uint64_t ac__type_new_;
31446 int
31447 main ()
31448 {
31449 if ((ac__type_new_ *) 0)
31450   return 0;
31451 if (sizeof (ac__type_new_))
31452   return 0;
31453   ;
31454   return 0;
31455 }
31456 _ACEOF
31457 rm -f conftest.$ac_objext
31458 if { (ac_try="$ac_compile"
31459 case "(($ac_try" in
31460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31461   *) ac_try_echo=$ac_try;;
31462 esac
31463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31464   (eval "$ac_compile") 2>conftest.er1
31465   ac_status=$?
31466   grep -v '^ *+' conftest.er1 >conftest.err
31467   rm -f conftest.er1
31468   cat conftest.err >&5
31469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31470   (exit $ac_status); } &&
31471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31472   { (case "(($ac_try" in
31473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31474   *) ac_try_echo=$ac_try;;
31475 esac
31476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31477   (eval "$ac_try") 2>&5
31478   ac_status=$?
31479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31480   (exit $ac_status); }; } &&
31481          { ac_try='test -s conftest.$ac_objext'
31482   { (case "(($ac_try" in
31483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31484   *) ac_try_echo=$ac_try;;
31485 esac
31486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31487   (eval "$ac_try") 2>&5
31488   ac_status=$?
31489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490   (exit $ac_status); }; }; then
31491   ac_cv_type_uint64_t=yes
31492 else
31493   echo "$as_me: failed program was:" >&5
31494 sed 's/^/| /' conftest.$ac_ext >&5
31495
31496         ac_cv_type_uint64_t=no
31497 fi
31498
31499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31500 fi
31501 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31502 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31503 if test $ac_cv_type_uint64_t = yes; then
31504
31505 cat >>confdefs.h <<_ACEOF
31506 #define HAVE_UINT64_T 1
31507 _ACEOF
31508
31509
31510 else
31511   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31512 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31513 if test "${ac_cv_type_u_int64_t+set}" = set; then
31514   echo $ECHO_N "(cached) $ECHO_C" >&6
31515 else
31516   cat >conftest.$ac_ext <<_ACEOF
31517 /* confdefs.h.  */
31518 _ACEOF
31519 cat confdefs.h >>conftest.$ac_ext
31520 cat >>conftest.$ac_ext <<_ACEOF
31521 /* end confdefs.h.  */
31522 $ac_includes_default
31523 typedef u_int64_t ac__type_new_;
31524 int
31525 main ()
31526 {
31527 if ((ac__type_new_ *) 0)
31528   return 0;
31529 if (sizeof (ac__type_new_))
31530   return 0;
31531   ;
31532   return 0;
31533 }
31534 _ACEOF
31535 rm -f conftest.$ac_objext
31536 if { (ac_try="$ac_compile"
31537 case "(($ac_try" in
31538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31539   *) ac_try_echo=$ac_try;;
31540 esac
31541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31542   (eval "$ac_compile") 2>conftest.er1
31543   ac_status=$?
31544   grep -v '^ *+' conftest.er1 >conftest.err
31545   rm -f conftest.er1
31546   cat conftest.err >&5
31547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548   (exit $ac_status); } &&
31549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31550   { (case "(($ac_try" in
31551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31552   *) ac_try_echo=$ac_try;;
31553 esac
31554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31555   (eval "$ac_try") 2>&5
31556   ac_status=$?
31557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31558   (exit $ac_status); }; } &&
31559          { ac_try='test -s conftest.$ac_objext'
31560   { (case "(($ac_try" in
31561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31562   *) ac_try_echo=$ac_try;;
31563 esac
31564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31565   (eval "$ac_try") 2>&5
31566   ac_status=$?
31567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568   (exit $ac_status); }; }; then
31569   ac_cv_type_u_int64_t=yes
31570 else
31571   echo "$as_me: failed program was:" >&5
31572 sed 's/^/| /' conftest.$ac_ext >&5
31573
31574         ac_cv_type_u_int64_t=no
31575 fi
31576
31577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31578 fi
31579 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31580 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31581 if test $ac_cv_type_u_int64_t = yes; then
31582
31583 cat >>confdefs.h <<_ACEOF
31584 #define HAVE_U_INT64_T 1
31585 _ACEOF
31586
31587
31588 else
31589   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31590 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31591    { (exit 1); exit 1; }; }
31592 fi
31593
31594 fi
31595
31596
31597
31598
31599
31600
31601
31602
31603
31604
31605 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31606 do
31607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31611   echo $ECHO_N "(cached) $ECHO_C" >&6
31612 else
31613   cat >conftest.$ac_ext <<_ACEOF
31614 /* confdefs.h.  */
31615 _ACEOF
31616 cat confdefs.h >>conftest.$ac_ext
31617 cat >>conftest.$ac_ext <<_ACEOF
31618 /* end confdefs.h.  */
31619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31621 #define $ac_func innocuous_$ac_func
31622
31623 /* System header to define __stub macros and hopefully few prototypes,
31624     which can conflict with char $ac_func (); below.
31625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31626     <limits.h> exists even on freestanding compilers.  */
31627
31628 #ifdef __STDC__
31629 # include <limits.h>
31630 #else
31631 # include <assert.h>
31632 #endif
31633
31634 #undef $ac_func
31635
31636 /* Override any GCC internal prototype to avoid an error.
31637    Use char because int might match the return type of a GCC
31638    builtin and then its argument prototype would still apply.  */
31639 #ifdef __cplusplus
31640 extern "C"
31641 #endif
31642 char $ac_func ();
31643 /* The GNU C library defines this for functions which it implements
31644     to always fail with ENOSYS.  Some functions are actually named
31645     something starting with __ and the normal name is an alias.  */
31646 #if defined __stub_$ac_func || defined __stub___$ac_func
31647 choke me
31648 #endif
31649
31650 int
31651 main ()
31652 {
31653 return $ac_func ();
31654   ;
31655   return 0;
31656 }
31657 _ACEOF
31658 rm -f conftest.$ac_objext conftest$ac_exeext
31659 if { (ac_try="$ac_link"
31660 case "(($ac_try" in
31661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31662   *) ac_try_echo=$ac_try;;
31663 esac
31664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31665   (eval "$ac_link") 2>conftest.er1
31666   ac_status=$?
31667   grep -v '^ *+' conftest.er1 >conftest.err
31668   rm -f conftest.er1
31669   cat conftest.err >&5
31670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31671   (exit $ac_status); } &&
31672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31673   { (case "(($ac_try" in
31674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31675   *) ac_try_echo=$ac_try;;
31676 esac
31677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31678   (eval "$ac_try") 2>&5
31679   ac_status=$?
31680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681   (exit $ac_status); }; } &&
31682          { ac_try='test -s conftest$ac_exeext'
31683   { (case "(($ac_try" in
31684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31685   *) ac_try_echo=$ac_try;;
31686 esac
31687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31688   (eval "$ac_try") 2>&5
31689   ac_status=$?
31690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31691   (exit $ac_status); }; }; then
31692   eval "$as_ac_var=yes"
31693 else
31694   echo "$as_me: failed program was:" >&5
31695 sed 's/^/| /' conftest.$ac_ext >&5
31696
31697         eval "$as_ac_var=no"
31698 fi
31699
31700 rm -f core conftest.err conftest.$ac_objext \
31701       conftest$ac_exeext conftest.$ac_ext
31702 fi
31703 ac_res=`eval echo '${'$as_ac_var'}'`
31704                { echo "$as_me:$LINENO: result: $ac_res" >&5
31705 echo "${ECHO_T}$ac_res" >&6; }
31706 if test `eval echo '${'$as_ac_var'}'` = yes; then
31707   cat >>confdefs.h <<_ACEOF
31708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31709 _ACEOF
31710
31711 fi
31712 done
31713
31714
31715
31716
31717
31718 for ac_func in powf fmodf strtof round
31719 do
31720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31724   echo $ECHO_N "(cached) $ECHO_C" >&6
31725 else
31726   cat >conftest.$ac_ext <<_ACEOF
31727 /* confdefs.h.  */
31728 _ACEOF
31729 cat confdefs.h >>conftest.$ac_ext
31730 cat >>conftest.$ac_ext <<_ACEOF
31731 /* end confdefs.h.  */
31732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31734 #define $ac_func innocuous_$ac_func
31735
31736 /* System header to define __stub macros and hopefully few prototypes,
31737     which can conflict with char $ac_func (); below.
31738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31739     <limits.h> exists even on freestanding compilers.  */
31740
31741 #ifdef __STDC__
31742 # include <limits.h>
31743 #else
31744 # include <assert.h>
31745 #endif
31746
31747 #undef $ac_func
31748
31749 /* Override any GCC internal prototype to avoid an error.
31750    Use char because int might match the return type of a GCC
31751    builtin and then its argument prototype would still apply.  */
31752 #ifdef __cplusplus
31753 extern "C"
31754 #endif
31755 char $ac_func ();
31756 /* The GNU C library defines this for functions which it implements
31757     to always fail with ENOSYS.  Some functions are actually named
31758     something starting with __ and the normal name is an alias.  */
31759 #if defined __stub_$ac_func || defined __stub___$ac_func
31760 choke me
31761 #endif
31762
31763 int
31764 main ()
31765 {
31766 return $ac_func ();
31767   ;
31768   return 0;
31769 }
31770 _ACEOF
31771 rm -f conftest.$ac_objext conftest$ac_exeext
31772 if { (ac_try="$ac_link"
31773 case "(($ac_try" in
31774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31775   *) ac_try_echo=$ac_try;;
31776 esac
31777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31778   (eval "$ac_link") 2>conftest.er1
31779   ac_status=$?
31780   grep -v '^ *+' conftest.er1 >conftest.err
31781   rm -f conftest.er1
31782   cat conftest.err >&5
31783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784   (exit $ac_status); } &&
31785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31786   { (case "(($ac_try" in
31787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31788   *) ac_try_echo=$ac_try;;
31789 esac
31790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31791   (eval "$ac_try") 2>&5
31792   ac_status=$?
31793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31794   (exit $ac_status); }; } &&
31795          { ac_try='test -s conftest$ac_exeext'
31796   { (case "(($ac_try" in
31797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798   *) ac_try_echo=$ac_try;;
31799 esac
31800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801   (eval "$ac_try") 2>&5
31802   ac_status=$?
31803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804   (exit $ac_status); }; }; then
31805   eval "$as_ac_var=yes"
31806 else
31807   echo "$as_me: failed program was:" >&5
31808 sed 's/^/| /' conftest.$ac_ext >&5
31809
31810         eval "$as_ac_var=no"
31811 fi
31812
31813 rm -f core conftest.err conftest.$ac_objext \
31814       conftest$ac_exeext conftest.$ac_ext
31815 fi
31816 ac_res=`eval echo '${'$as_ac_var'}'`
31817                { echo "$as_me:$LINENO: result: $ac_res" >&5
31818 echo "${ECHO_T}$ac_res" >&6; }
31819 if test `eval echo '${'$as_ac_var'}'` = yes; then
31820   cat >>confdefs.h <<_ACEOF
31821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31822 _ACEOF
31823
31824 fi
31825 done
31826
31827
31828
31829
31830
31831
31832 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31833 do
31834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31835 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31838   echo $ECHO_N "(cached) $ECHO_C" >&6
31839 else
31840   cat >conftest.$ac_ext <<_ACEOF
31841 /* confdefs.h.  */
31842 _ACEOF
31843 cat confdefs.h >>conftest.$ac_ext
31844 cat >>conftest.$ac_ext <<_ACEOF
31845 /* end confdefs.h.  */
31846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31847    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31848 #define $ac_func innocuous_$ac_func
31849
31850 /* System header to define __stub macros and hopefully few prototypes,
31851     which can conflict with char $ac_func (); below.
31852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31853     <limits.h> exists even on freestanding compilers.  */
31854
31855 #ifdef __STDC__
31856 # include <limits.h>
31857 #else
31858 # include <assert.h>
31859 #endif
31860
31861 #undef $ac_func
31862
31863 /* Override any GCC internal prototype to avoid an error.
31864    Use char because int might match the return type of a GCC
31865    builtin and then its argument prototype would still apply.  */
31866 #ifdef __cplusplus
31867 extern "C"
31868 #endif
31869 char $ac_func ();
31870 /* The GNU C library defines this for functions which it implements
31871     to always fail with ENOSYS.  Some functions are actually named
31872     something starting with __ and the normal name is an alias.  */
31873 #if defined __stub_$ac_func || defined __stub___$ac_func
31874 choke me
31875 #endif
31876
31877 int
31878 main ()
31879 {
31880 return $ac_func ();
31881   ;
31882   return 0;
31883 }
31884 _ACEOF
31885 rm -f conftest.$ac_objext conftest$ac_exeext
31886 if { (ac_try="$ac_link"
31887 case "(($ac_try" in
31888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31889   *) ac_try_echo=$ac_try;;
31890 esac
31891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31892   (eval "$ac_link") 2>conftest.er1
31893   ac_status=$?
31894   grep -v '^ *+' conftest.er1 >conftest.err
31895   rm -f conftest.er1
31896   cat conftest.err >&5
31897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898   (exit $ac_status); } &&
31899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31900   { (case "(($ac_try" in
31901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31902   *) ac_try_echo=$ac_try;;
31903 esac
31904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31905   (eval "$ac_try") 2>&5
31906   ac_status=$?
31907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908   (exit $ac_status); }; } &&
31909          { ac_try='test -s conftest$ac_exeext'
31910   { (case "(($ac_try" in
31911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31912   *) ac_try_echo=$ac_try;;
31913 esac
31914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31915   (eval "$ac_try") 2>&5
31916   ac_status=$?
31917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918   (exit $ac_status); }; }; then
31919   eval "$as_ac_var=yes"
31920 else
31921   echo "$as_me: failed program was:" >&5
31922 sed 's/^/| /' conftest.$ac_ext >&5
31923
31924         eval "$as_ac_var=no"
31925 fi
31926
31927 rm -f core conftest.err conftest.$ac_objext \
31928       conftest$ac_exeext conftest.$ac_ext
31929 fi
31930 ac_res=`eval echo '${'$as_ac_var'}'`
31931                { echo "$as_me:$LINENO: result: $ac_res" >&5
31932 echo "${ECHO_T}$ac_res" >&6; }
31933 if test `eval echo '${'$as_ac_var'}'` = yes; then
31934   cat >>confdefs.h <<_ACEOF
31935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31936 _ACEOF
31937
31938 fi
31939 done
31940
31941
31942
31943
31944 for ac_func in isatty mkdtemp mkstemp
31945 do
31946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31950   echo $ECHO_N "(cached) $ECHO_C" >&6
31951 else
31952   cat >conftest.$ac_ext <<_ACEOF
31953 /* confdefs.h.  */
31954 _ACEOF
31955 cat confdefs.h >>conftest.$ac_ext
31956 cat >>conftest.$ac_ext <<_ACEOF
31957 /* end confdefs.h.  */
31958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31960 #define $ac_func innocuous_$ac_func
31961
31962 /* System header to define __stub macros and hopefully few prototypes,
31963     which can conflict with char $ac_func (); below.
31964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31965     <limits.h> exists even on freestanding compilers.  */
31966
31967 #ifdef __STDC__
31968 # include <limits.h>
31969 #else
31970 # include <assert.h>
31971 #endif
31972
31973 #undef $ac_func
31974
31975 /* Override any GCC internal prototype to avoid an error.
31976    Use char because int might match the return type of a GCC
31977    builtin and then its argument prototype would still apply.  */
31978 #ifdef __cplusplus
31979 extern "C"
31980 #endif
31981 char $ac_func ();
31982 /* The GNU C library defines this for functions which it implements
31983     to always fail with ENOSYS.  Some functions are actually named
31984     something starting with __ and the normal name is an alias.  */
31985 #if defined __stub_$ac_func || defined __stub___$ac_func
31986 choke me
31987 #endif
31988
31989 int
31990 main ()
31991 {
31992 return $ac_func ();
31993   ;
31994   return 0;
31995 }
31996 _ACEOF
31997 rm -f conftest.$ac_objext conftest$ac_exeext
31998 if { (ac_try="$ac_link"
31999 case "(($ac_try" in
32000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32001   *) ac_try_echo=$ac_try;;
32002 esac
32003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32004   (eval "$ac_link") 2>conftest.er1
32005   ac_status=$?
32006   grep -v '^ *+' conftest.er1 >conftest.err
32007   rm -f conftest.er1
32008   cat conftest.err >&5
32009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010   (exit $ac_status); } &&
32011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32012   { (case "(($ac_try" in
32013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32014   *) ac_try_echo=$ac_try;;
32015 esac
32016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32017   (eval "$ac_try") 2>&5
32018   ac_status=$?
32019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020   (exit $ac_status); }; } &&
32021          { ac_try='test -s conftest$ac_exeext'
32022   { (case "(($ac_try" in
32023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024   *) ac_try_echo=$ac_try;;
32025 esac
32026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027   (eval "$ac_try") 2>&5
32028   ac_status=$?
32029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030   (exit $ac_status); }; }; then
32031   eval "$as_ac_var=yes"
32032 else
32033   echo "$as_me: failed program was:" >&5
32034 sed 's/^/| /' conftest.$ac_ext >&5
32035
32036         eval "$as_ac_var=no"
32037 fi
32038
32039 rm -f core conftest.err conftest.$ac_objext \
32040       conftest$ac_exeext conftest.$ac_ext
32041 fi
32042 ac_res=`eval echo '${'$as_ac_var'}'`
32043                { echo "$as_me:$LINENO: result: $ac_res" >&5
32044 echo "${ECHO_T}$ac_res" >&6; }
32045 if test `eval echo '${'$as_ac_var'}'` = yes; then
32046   cat >>confdefs.h <<_ACEOF
32047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32048 _ACEOF
32049
32050 fi
32051 done
32052
32053
32054
32055
32056
32057
32058 for ac_func in mktemp realpath sbrk setrlimit strdup
32059 do
32060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32064   echo $ECHO_N "(cached) $ECHO_C" >&6
32065 else
32066   cat >conftest.$ac_ext <<_ACEOF
32067 /* confdefs.h.  */
32068 _ACEOF
32069 cat confdefs.h >>conftest.$ac_ext
32070 cat >>conftest.$ac_ext <<_ACEOF
32071 /* end confdefs.h.  */
32072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32074 #define $ac_func innocuous_$ac_func
32075
32076 /* System header to define __stub macros and hopefully few prototypes,
32077     which can conflict with char $ac_func (); below.
32078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32079     <limits.h> exists even on freestanding compilers.  */
32080
32081 #ifdef __STDC__
32082 # include <limits.h>
32083 #else
32084 # include <assert.h>
32085 #endif
32086
32087 #undef $ac_func
32088
32089 /* Override any GCC internal prototype to avoid an error.
32090    Use char because int might match the return type of a GCC
32091    builtin and then its argument prototype would still apply.  */
32092 #ifdef __cplusplus
32093 extern "C"
32094 #endif
32095 char $ac_func ();
32096 /* The GNU C library defines this for functions which it implements
32097     to always fail with ENOSYS.  Some functions are actually named
32098     something starting with __ and the normal name is an alias.  */
32099 #if defined __stub_$ac_func || defined __stub___$ac_func
32100 choke me
32101 #endif
32102
32103 int
32104 main ()
32105 {
32106 return $ac_func ();
32107   ;
32108   return 0;
32109 }
32110 _ACEOF
32111 rm -f conftest.$ac_objext conftest$ac_exeext
32112 if { (ac_try="$ac_link"
32113 case "(($ac_try" in
32114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32115   *) ac_try_echo=$ac_try;;
32116 esac
32117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32118   (eval "$ac_link") 2>conftest.er1
32119   ac_status=$?
32120   grep -v '^ *+' conftest.er1 >conftest.err
32121   rm -f conftest.er1
32122   cat conftest.err >&5
32123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124   (exit $ac_status); } &&
32125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32126   { (case "(($ac_try" in
32127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32128   *) ac_try_echo=$ac_try;;
32129 esac
32130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32131   (eval "$ac_try") 2>&5
32132   ac_status=$?
32133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134   (exit $ac_status); }; } &&
32135          { ac_try='test -s conftest$ac_exeext'
32136   { (case "(($ac_try" in
32137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32138   *) ac_try_echo=$ac_try;;
32139 esac
32140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32141   (eval "$ac_try") 2>&5
32142   ac_status=$?
32143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32144   (exit $ac_status); }; }; then
32145   eval "$as_ac_var=yes"
32146 else
32147   echo "$as_me: failed program was:" >&5
32148 sed 's/^/| /' conftest.$ac_ext >&5
32149
32150         eval "$as_ac_var=no"
32151 fi
32152
32153 rm -f core conftest.err conftest.$ac_objext \
32154       conftest$ac_exeext conftest.$ac_ext
32155 fi
32156 ac_res=`eval echo '${'$as_ac_var'}'`
32157                { echo "$as_me:$LINENO: result: $ac_res" >&5
32158 echo "${ECHO_T}$ac_res" >&6; }
32159 if test `eval echo '${'$as_ac_var'}'` = yes; then
32160   cat >>confdefs.h <<_ACEOF
32161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32162 _ACEOF
32163
32164 fi
32165 done
32166
32167
32168
32169
32170
32171 for ac_func in strerror strerror_r strerror_s setenv
32172 do
32173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32177   echo $ECHO_N "(cached) $ECHO_C" >&6
32178 else
32179   cat >conftest.$ac_ext <<_ACEOF
32180 /* confdefs.h.  */
32181 _ACEOF
32182 cat confdefs.h >>conftest.$ac_ext
32183 cat >>conftest.$ac_ext <<_ACEOF
32184 /* end confdefs.h.  */
32185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32187 #define $ac_func innocuous_$ac_func
32188
32189 /* System header to define __stub macros and hopefully few prototypes,
32190     which can conflict with char $ac_func (); below.
32191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32192     <limits.h> exists even on freestanding compilers.  */
32193
32194 #ifdef __STDC__
32195 # include <limits.h>
32196 #else
32197 # include <assert.h>
32198 #endif
32199
32200 #undef $ac_func
32201
32202 /* Override any GCC internal prototype to avoid an error.
32203    Use char because int might match the return type of a GCC
32204    builtin and then its argument prototype would still apply.  */
32205 #ifdef __cplusplus
32206 extern "C"
32207 #endif
32208 char $ac_func ();
32209 /* The GNU C library defines this for functions which it implements
32210     to always fail with ENOSYS.  Some functions are actually named
32211     something starting with __ and the normal name is an alias.  */
32212 #if defined __stub_$ac_func || defined __stub___$ac_func
32213 choke me
32214 #endif
32215
32216 int
32217 main ()
32218 {
32219 return $ac_func ();
32220   ;
32221   return 0;
32222 }
32223 _ACEOF
32224 rm -f conftest.$ac_objext conftest$ac_exeext
32225 if { (ac_try="$ac_link"
32226 case "(($ac_try" in
32227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228   *) ac_try_echo=$ac_try;;
32229 esac
32230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32231   (eval "$ac_link") 2>conftest.er1
32232   ac_status=$?
32233   grep -v '^ *+' conftest.er1 >conftest.err
32234   rm -f conftest.er1
32235   cat conftest.err >&5
32236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237   (exit $ac_status); } &&
32238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32239   { (case "(($ac_try" in
32240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32241   *) ac_try_echo=$ac_try;;
32242 esac
32243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32244   (eval "$ac_try") 2>&5
32245   ac_status=$?
32246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247   (exit $ac_status); }; } &&
32248          { ac_try='test -s conftest$ac_exeext'
32249   { (case "(($ac_try" in
32250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32251   *) ac_try_echo=$ac_try;;
32252 esac
32253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32254   (eval "$ac_try") 2>&5
32255   ac_status=$?
32256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257   (exit $ac_status); }; }; then
32258   eval "$as_ac_var=yes"
32259 else
32260   echo "$as_me: failed program was:" >&5
32261 sed 's/^/| /' conftest.$ac_ext >&5
32262
32263         eval "$as_ac_var=no"
32264 fi
32265
32266 rm -f core conftest.err conftest.$ac_objext \
32267       conftest$ac_exeext conftest.$ac_ext
32268 fi
32269 ac_res=`eval echo '${'$as_ac_var'}'`
32270                { echo "$as_me:$LINENO: result: $ac_res" >&5
32271 echo "${ECHO_T}$ac_res" >&6; }
32272 if test `eval echo '${'$as_ac_var'}'` = yes; then
32273   cat >>confdefs.h <<_ACEOF
32274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32275 _ACEOF
32276
32277 fi
32278 done
32279
32280
32281
32282
32283
32284 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32285 do
32286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32287 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32289 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32290   echo $ECHO_N "(cached) $ECHO_C" >&6
32291 else
32292   cat >conftest.$ac_ext <<_ACEOF
32293 /* confdefs.h.  */
32294 _ACEOF
32295 cat confdefs.h >>conftest.$ac_ext
32296 cat >>conftest.$ac_ext <<_ACEOF
32297 /* end confdefs.h.  */
32298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32299    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32300 #define $ac_func innocuous_$ac_func
32301
32302 /* System header to define __stub macros and hopefully few prototypes,
32303     which can conflict with char $ac_func (); below.
32304     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32305     <limits.h> exists even on freestanding compilers.  */
32306
32307 #ifdef __STDC__
32308 # include <limits.h>
32309 #else
32310 # include <assert.h>
32311 #endif
32312
32313 #undef $ac_func
32314
32315 /* Override any GCC internal prototype to avoid an error.
32316    Use char because int might match the return type of a GCC
32317    builtin and then its argument prototype would still apply.  */
32318 #ifdef __cplusplus
32319 extern "C"
32320 #endif
32321 char $ac_func ();
32322 /* The GNU C library defines this for functions which it implements
32323     to always fail with ENOSYS.  Some functions are actually named
32324     something starting with __ and the normal name is an alias.  */
32325 #if defined __stub_$ac_func || defined __stub___$ac_func
32326 choke me
32327 #endif
32328
32329 int
32330 main ()
32331 {
32332 return $ac_func ();
32333   ;
32334   return 0;
32335 }
32336 _ACEOF
32337 rm -f conftest.$ac_objext conftest$ac_exeext
32338 if { (ac_try="$ac_link"
32339 case "(($ac_try" in
32340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32341   *) ac_try_echo=$ac_try;;
32342 esac
32343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32344   (eval "$ac_link") 2>conftest.er1
32345   ac_status=$?
32346   grep -v '^ *+' conftest.er1 >conftest.err
32347   rm -f conftest.er1
32348   cat conftest.err >&5
32349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32350   (exit $ac_status); } &&
32351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32352   { (case "(($ac_try" in
32353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32354   *) ac_try_echo=$ac_try;;
32355 esac
32356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32357   (eval "$ac_try") 2>&5
32358   ac_status=$?
32359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32360   (exit $ac_status); }; } &&
32361          { ac_try='test -s conftest$ac_exeext'
32362   { (case "(($ac_try" in
32363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32364   *) ac_try_echo=$ac_try;;
32365 esac
32366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32367   (eval "$ac_try") 2>&5
32368   ac_status=$?
32369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32370   (exit $ac_status); }; }; then
32371   eval "$as_ac_var=yes"
32372 else
32373   echo "$as_me: failed program was:" >&5
32374 sed 's/^/| /' conftest.$ac_ext >&5
32375
32376         eval "$as_ac_var=no"
32377 fi
32378
32379 rm -f core conftest.err conftest.$ac_objext \
32380       conftest$ac_exeext conftest.$ac_ext
32381 fi
32382 ac_res=`eval echo '${'$as_ac_var'}'`
32383                { echo "$as_me:$LINENO: result: $ac_res" >&5
32384 echo "${ECHO_T}$ac_res" >&6; }
32385 if test `eval echo '${'$as_ac_var'}'` = yes; then
32386   cat >>confdefs.h <<_ACEOF
32387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32388 _ACEOF
32389
32390 fi
32391 done
32392
32393
32394
32395
32396
32397 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32398 do
32399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32400 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32402 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32403   echo $ECHO_N "(cached) $ECHO_C" >&6
32404 else
32405   cat >conftest.$ac_ext <<_ACEOF
32406 /* confdefs.h.  */
32407 _ACEOF
32408 cat confdefs.h >>conftest.$ac_ext
32409 cat >>conftest.$ac_ext <<_ACEOF
32410 /* end confdefs.h.  */
32411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32412    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32413 #define $ac_func innocuous_$ac_func
32414
32415 /* System header to define __stub macros and hopefully few prototypes,
32416     which can conflict with char $ac_func (); below.
32417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32418     <limits.h> exists even on freestanding compilers.  */
32419
32420 #ifdef __STDC__
32421 # include <limits.h>
32422 #else
32423 # include <assert.h>
32424 #endif
32425
32426 #undef $ac_func
32427
32428 /* Override any GCC internal prototype to avoid an error.
32429    Use char because int might match the return type of a GCC
32430    builtin and then its argument prototype would still apply.  */
32431 #ifdef __cplusplus
32432 extern "C"
32433 #endif
32434 char $ac_func ();
32435 /* The GNU C library defines this for functions which it implements
32436     to always fail with ENOSYS.  Some functions are actually named
32437     something starting with __ and the normal name is an alias.  */
32438 #if defined __stub_$ac_func || defined __stub___$ac_func
32439 choke me
32440 #endif
32441
32442 int
32443 main ()
32444 {
32445 return $ac_func ();
32446   ;
32447   return 0;
32448 }
32449 _ACEOF
32450 rm -f conftest.$ac_objext conftest$ac_exeext
32451 if { (ac_try="$ac_link"
32452 case "(($ac_try" in
32453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32454   *) ac_try_echo=$ac_try;;
32455 esac
32456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32457   (eval "$ac_link") 2>conftest.er1
32458   ac_status=$?
32459   grep -v '^ *+' conftest.er1 >conftest.err
32460   rm -f conftest.er1
32461   cat conftest.err >&5
32462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463   (exit $ac_status); } &&
32464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32465   { (case "(($ac_try" in
32466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32467   *) ac_try_echo=$ac_try;;
32468 esac
32469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32470   (eval "$ac_try") 2>&5
32471   ac_status=$?
32472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32473   (exit $ac_status); }; } &&
32474          { ac_try='test -s conftest$ac_exeext'
32475   { (case "(($ac_try" in
32476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32477   *) ac_try_echo=$ac_try;;
32478 esac
32479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32480   (eval "$ac_try") 2>&5
32481   ac_status=$?
32482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32483   (exit $ac_status); }; }; then
32484   eval "$as_ac_var=yes"
32485 else
32486   echo "$as_me: failed program was:" >&5
32487 sed 's/^/| /' conftest.$ac_ext >&5
32488
32489         eval "$as_ac_var=no"
32490 fi
32491
32492 rm -f core conftest.err conftest.$ac_objext \
32493       conftest$ac_exeext conftest.$ac_ext
32494 fi
32495 ac_res=`eval echo '${'$as_ac_var'}'`
32496                { echo "$as_me:$LINENO: result: $ac_res" >&5
32497 echo "${ECHO_T}$ac_res" >&6; }
32498 if test `eval echo '${'$as_ac_var'}'` = yes; then
32499   cat >>confdefs.h <<_ACEOF
32500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32501 _ACEOF
32502
32503 fi
32504 done
32505
32506 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32507 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32508 if test "${llvm_cv_c_printf_a+set}" = set; then
32509   echo $ECHO_N "(cached) $ECHO_C" >&6
32510 else
32511   ac_ext=c
32512 ac_cpp='$CPP $CPPFLAGS'
32513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32516
32517  if test "$cross_compiling" = yes; then
32518   llvmac_cv_c_printf_a=no
32519 else
32520   cat >conftest.$ac_ext <<_ACEOF
32521
32522   /* confdefs.h.  */
32523 _ACEOF
32524 cat confdefs.h >>conftest.$ac_ext
32525 cat >>conftest.$ac_ext <<_ACEOF
32526 /* end confdefs.h.  */
32527
32528 #include <stdio.h>
32529 #include <stdlib.h>
32530
32531 int
32532 main ()
32533 {
32534
32535 volatile double A, B;
32536 char Buffer[100];
32537 A = 1;
32538 A /= 10.0;
32539 sprintf(Buffer, "%a", A);
32540 B = atof(Buffer);
32541 if (A != B)
32542   return (1);
32543 if (A != 0x1.999999999999ap-4)
32544   return (1);
32545 return (0);
32546   ;
32547   return 0;
32548 }
32549 _ACEOF
32550 rm -f conftest$ac_exeext
32551 if { (ac_try="$ac_link"
32552 case "(($ac_try" in
32553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32554   *) ac_try_echo=$ac_try;;
32555 esac
32556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32557   (eval "$ac_link") 2>&5
32558   ac_status=$?
32559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32560   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32561   { (case "(($ac_try" in
32562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32563   *) ac_try_echo=$ac_try;;
32564 esac
32565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32566   (eval "$ac_try") 2>&5
32567   ac_status=$?
32568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32569   (exit $ac_status); }; }; then
32570   llvm_cv_c_printf_a=yes
32571 else
32572   echo "$as_me: program exited with status $ac_status" >&5
32573 echo "$as_me: failed program was:" >&5
32574 sed 's/^/| /' conftest.$ac_ext >&5
32575
32576 ( exit $ac_status )
32577 llvmac_cv_c_printf_a=no
32578 fi
32579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32580 fi
32581
32582
32583  ac_ext=c
32584 ac_cpp='$CPP $CPPFLAGS'
32585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32588
32589 fi
32590 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32591 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32592  if test "$llvm_cv_c_printf_a" = "yes"; then
32593
32594 cat >>confdefs.h <<\_ACEOF
32595 #define HAVE_PRINTF_A 1
32596 _ACEOF
32597
32598  fi
32599
32600 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32601 # for constant arguments.  Useless!
32602 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32603 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32604 if test "${ac_cv_working_alloca_h+set}" = set; then
32605   echo $ECHO_N "(cached) $ECHO_C" >&6
32606 else
32607   cat >conftest.$ac_ext <<_ACEOF
32608 /* confdefs.h.  */
32609 _ACEOF
32610 cat confdefs.h >>conftest.$ac_ext
32611 cat >>conftest.$ac_ext <<_ACEOF
32612 /* end confdefs.h.  */
32613 #include <alloca.h>
32614 int
32615 main ()
32616 {
32617 char *p = (char *) alloca (2 * sizeof (int));
32618                           if (p) return 0;
32619   ;
32620   return 0;
32621 }
32622 _ACEOF
32623 rm -f conftest.$ac_objext conftest$ac_exeext
32624 if { (ac_try="$ac_link"
32625 case "(($ac_try" in
32626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32627   *) ac_try_echo=$ac_try;;
32628 esac
32629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32630   (eval "$ac_link") 2>conftest.er1
32631   ac_status=$?
32632   grep -v '^ *+' conftest.er1 >conftest.err
32633   rm -f conftest.er1
32634   cat conftest.err >&5
32635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636   (exit $ac_status); } &&
32637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32638   { (case "(($ac_try" in
32639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32640   *) ac_try_echo=$ac_try;;
32641 esac
32642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32643   (eval "$ac_try") 2>&5
32644   ac_status=$?
32645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646   (exit $ac_status); }; } &&
32647          { ac_try='test -s conftest$ac_exeext'
32648   { (case "(($ac_try" in
32649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32650   *) ac_try_echo=$ac_try;;
32651 esac
32652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32653   (eval "$ac_try") 2>&5
32654   ac_status=$?
32655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32656   (exit $ac_status); }; }; then
32657   ac_cv_working_alloca_h=yes
32658 else
32659   echo "$as_me: failed program was:" >&5
32660 sed 's/^/| /' conftest.$ac_ext >&5
32661
32662         ac_cv_working_alloca_h=no
32663 fi
32664
32665 rm -f core conftest.err conftest.$ac_objext \
32666       conftest$ac_exeext conftest.$ac_ext
32667 fi
32668 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32669 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32670 if test $ac_cv_working_alloca_h = yes; then
32671
32672 cat >>confdefs.h <<\_ACEOF
32673 #define HAVE_ALLOCA_H 1
32674 _ACEOF
32675
32676 fi
32677
32678 { echo "$as_me:$LINENO: checking for alloca" >&5
32679 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32680 if test "${ac_cv_func_alloca_works+set}" = set; then
32681   echo $ECHO_N "(cached) $ECHO_C" >&6
32682 else
32683   cat >conftest.$ac_ext <<_ACEOF
32684 /* confdefs.h.  */
32685 _ACEOF
32686 cat confdefs.h >>conftest.$ac_ext
32687 cat >>conftest.$ac_ext <<_ACEOF
32688 /* end confdefs.h.  */
32689 #ifdef __GNUC__
32690 # define alloca __builtin_alloca
32691 #else
32692 # ifdef _MSC_VER
32693 #  include <malloc.h>
32694 #  define alloca _alloca
32695 # else
32696 #  if HAVE_ALLOCA_H
32697 #   include <alloca.h>
32698 #  else
32699 #   ifdef _AIX
32700  #pragma alloca
32701 #   else
32702 #    ifndef alloca /* predefined by HP cc +Olibcalls */
32703 char *alloca ();
32704 #    endif
32705 #   endif
32706 #  endif
32707 # endif
32708 #endif
32709
32710 int
32711 main ()
32712 {
32713 char *p = (char *) alloca (1);
32714                                     if (p) return 0;
32715   ;
32716   return 0;
32717 }
32718 _ACEOF
32719 rm -f conftest.$ac_objext conftest$ac_exeext
32720 if { (ac_try="$ac_link"
32721 case "(($ac_try" in
32722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32723   *) ac_try_echo=$ac_try;;
32724 esac
32725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32726   (eval "$ac_link") 2>conftest.er1
32727   ac_status=$?
32728   grep -v '^ *+' conftest.er1 >conftest.err
32729   rm -f conftest.er1
32730   cat conftest.err >&5
32731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732   (exit $ac_status); } &&
32733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32734   { (case "(($ac_try" in
32735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32736   *) ac_try_echo=$ac_try;;
32737 esac
32738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32739   (eval "$ac_try") 2>&5
32740   ac_status=$?
32741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742   (exit $ac_status); }; } &&
32743          { ac_try='test -s conftest$ac_exeext'
32744   { (case "(($ac_try" in
32745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32746   *) ac_try_echo=$ac_try;;
32747 esac
32748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32749   (eval "$ac_try") 2>&5
32750   ac_status=$?
32751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32752   (exit $ac_status); }; }; then
32753   ac_cv_func_alloca_works=yes
32754 else
32755   echo "$as_me: failed program was:" >&5
32756 sed 's/^/| /' conftest.$ac_ext >&5
32757
32758         ac_cv_func_alloca_works=no
32759 fi
32760
32761 rm -f core conftest.err conftest.$ac_objext \
32762       conftest$ac_exeext conftest.$ac_ext
32763 fi
32764 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32765 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32766
32767 if test $ac_cv_func_alloca_works = yes; then
32768
32769 cat >>confdefs.h <<\_ACEOF
32770 #define HAVE_ALLOCA 1
32771 _ACEOF
32772
32773 else
32774   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32775 # that cause trouble.  Some versions do not even contain alloca or
32776 # contain a buggy version.  If you still want to use their alloca,
32777 # use ar to extract alloca.o from them instead of compiling alloca.c.
32778
32779 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32780
32781 cat >>confdefs.h <<\_ACEOF
32782 #define C_ALLOCA 1
32783 _ACEOF
32784
32785
32786 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32787 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32788 if test "${ac_cv_os_cray+set}" = set; then
32789   echo $ECHO_N "(cached) $ECHO_C" >&6
32790 else
32791   cat >conftest.$ac_ext <<_ACEOF
32792 /* confdefs.h.  */
32793 _ACEOF
32794 cat confdefs.h >>conftest.$ac_ext
32795 cat >>conftest.$ac_ext <<_ACEOF
32796 /* end confdefs.h.  */
32797 #if defined CRAY && ! defined CRAY2
32798 webecray
32799 #else
32800 wenotbecray
32801 #endif
32802
32803 _ACEOF
32804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32805   $EGREP "webecray" >/dev/null 2>&1; then
32806   ac_cv_os_cray=yes
32807 else
32808   ac_cv_os_cray=no
32809 fi
32810 rm -f conftest*
32811
32812 fi
32813 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32814 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32815 if test $ac_cv_os_cray = yes; then
32816   for ac_func in _getb67 GETB67 getb67; do
32817     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32821   echo $ECHO_N "(cached) $ECHO_C" >&6
32822 else
32823   cat >conftest.$ac_ext <<_ACEOF
32824 /* confdefs.h.  */
32825 _ACEOF
32826 cat confdefs.h >>conftest.$ac_ext
32827 cat >>conftest.$ac_ext <<_ACEOF
32828 /* end confdefs.h.  */
32829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32831 #define $ac_func innocuous_$ac_func
32832
32833 /* System header to define __stub macros and hopefully few prototypes,
32834     which can conflict with char $ac_func (); below.
32835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32836     <limits.h> exists even on freestanding compilers.  */
32837
32838 #ifdef __STDC__
32839 # include <limits.h>
32840 #else
32841 # include <assert.h>
32842 #endif
32843
32844 #undef $ac_func
32845
32846 /* Override any GCC internal prototype to avoid an error.
32847    Use char because int might match the return type of a GCC
32848    builtin and then its argument prototype would still apply.  */
32849 #ifdef __cplusplus
32850 extern "C"
32851 #endif
32852 char $ac_func ();
32853 /* The GNU C library defines this for functions which it implements
32854     to always fail with ENOSYS.  Some functions are actually named
32855     something starting with __ and the normal name is an alias.  */
32856 #if defined __stub_$ac_func || defined __stub___$ac_func
32857 choke me
32858 #endif
32859
32860 int
32861 main ()
32862 {
32863 return $ac_func ();
32864   ;
32865   return 0;
32866 }
32867 _ACEOF
32868 rm -f conftest.$ac_objext conftest$ac_exeext
32869 if { (ac_try="$ac_link"
32870 case "(($ac_try" in
32871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32872   *) ac_try_echo=$ac_try;;
32873 esac
32874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32875   (eval "$ac_link") 2>conftest.er1
32876   ac_status=$?
32877   grep -v '^ *+' conftest.er1 >conftest.err
32878   rm -f conftest.er1
32879   cat conftest.err >&5
32880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32881   (exit $ac_status); } &&
32882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32883   { (case "(($ac_try" in
32884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32885   *) ac_try_echo=$ac_try;;
32886 esac
32887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32888   (eval "$ac_try") 2>&5
32889   ac_status=$?
32890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32891   (exit $ac_status); }; } &&
32892          { ac_try='test -s conftest$ac_exeext'
32893   { (case "(($ac_try" in
32894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32895   *) ac_try_echo=$ac_try;;
32896 esac
32897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32898   (eval "$ac_try") 2>&5
32899   ac_status=$?
32900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901   (exit $ac_status); }; }; then
32902   eval "$as_ac_var=yes"
32903 else
32904   echo "$as_me: failed program was:" >&5
32905 sed 's/^/| /' conftest.$ac_ext >&5
32906
32907         eval "$as_ac_var=no"
32908 fi
32909
32910 rm -f core conftest.err conftest.$ac_objext \
32911       conftest$ac_exeext conftest.$ac_ext
32912 fi
32913 ac_res=`eval echo '${'$as_ac_var'}'`
32914                { echo "$as_me:$LINENO: result: $ac_res" >&5
32915 echo "${ECHO_T}$ac_res" >&6; }
32916 if test `eval echo '${'$as_ac_var'}'` = yes; then
32917
32918 cat >>confdefs.h <<_ACEOF
32919 #define CRAY_STACKSEG_END $ac_func
32920 _ACEOF
32921
32922     break
32923 fi
32924
32925   done
32926 fi
32927
32928 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32929 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32930 if test "${ac_cv_c_stack_direction+set}" = set; then
32931   echo $ECHO_N "(cached) $ECHO_C" >&6
32932 else
32933   if test "$cross_compiling" = yes; then
32934   ac_cv_c_stack_direction=0
32935 else
32936   cat >conftest.$ac_ext <<_ACEOF
32937 /* confdefs.h.  */
32938 _ACEOF
32939 cat confdefs.h >>conftest.$ac_ext
32940 cat >>conftest.$ac_ext <<_ACEOF
32941 /* end confdefs.h.  */
32942 $ac_includes_default
32943 int
32944 find_stack_direction ()
32945 {
32946   static char *addr = 0;
32947   auto char dummy;
32948   if (addr == 0)
32949     {
32950       addr = &dummy;
32951       return find_stack_direction ();
32952     }
32953   else
32954     return (&dummy > addr) ? 1 : -1;
32955 }
32956
32957 int
32958 main ()
32959 {
32960   return find_stack_direction () < 0;
32961 }
32962 _ACEOF
32963 rm -f conftest$ac_exeext
32964 if { (ac_try="$ac_link"
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_link") 2>&5
32971   ac_status=$?
32972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32974   { (case "(($ac_try" in
32975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32976   *) ac_try_echo=$ac_try;;
32977 esac
32978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32979   (eval "$ac_try") 2>&5
32980   ac_status=$?
32981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982   (exit $ac_status); }; }; then
32983   ac_cv_c_stack_direction=1
32984 else
32985   echo "$as_me: program exited with status $ac_status" >&5
32986 echo "$as_me: failed program was:" >&5
32987 sed 's/^/| /' conftest.$ac_ext >&5
32988
32989 ( exit $ac_status )
32990 ac_cv_c_stack_direction=-1
32991 fi
32992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32993 fi
32994
32995
32996 fi
32997 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32998 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32999
33000 cat >>confdefs.h <<_ACEOF
33001 #define STACK_DIRECTION $ac_cv_c_stack_direction
33002 _ACEOF
33003
33004
33005 fi
33006
33007
33008 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33009 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33010 if test "${ac_cv_func_rand48+set}" = set; then
33011   echo $ECHO_N "(cached) $ECHO_C" >&6
33012 else
33013   ac_ext=cpp
33014 ac_cpp='$CXXCPP $CPPFLAGS'
33015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33018
33019    cat >conftest.$ac_ext <<_ACEOF
33020 /* confdefs.h.  */
33021 _ACEOF
33022 cat confdefs.h >>conftest.$ac_ext
33023 cat >>conftest.$ac_ext <<_ACEOF
33024 /* end confdefs.h.  */
33025 #include <stdlib.h>
33026 int
33027 main ()
33028 {
33029 srand48(0);lrand48();drand48();
33030   ;
33031   return 0;
33032 }
33033 _ACEOF
33034 rm -f conftest.$ac_objext
33035 if { (ac_try="$ac_compile"
33036 case "(($ac_try" in
33037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038   *) ac_try_echo=$ac_try;;
33039 esac
33040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041   (eval "$ac_compile") 2>conftest.er1
33042   ac_status=$?
33043   grep -v '^ *+' conftest.er1 >conftest.err
33044   rm -f conftest.er1
33045   cat conftest.err >&5
33046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047   (exit $ac_status); } &&
33048          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33049   { (case "(($ac_try" in
33050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33051   *) ac_try_echo=$ac_try;;
33052 esac
33053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33054   (eval "$ac_try") 2>&5
33055   ac_status=$?
33056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057   (exit $ac_status); }; } &&
33058          { ac_try='test -s conftest.$ac_objext'
33059   { (case "(($ac_try" in
33060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33061   *) ac_try_echo=$ac_try;;
33062 esac
33063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33064   (eval "$ac_try") 2>&5
33065   ac_status=$?
33066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33067   (exit $ac_status); }; }; then
33068   ac_cv_func_rand48=yes
33069 else
33070   echo "$as_me: failed program was:" >&5
33071 sed 's/^/| /' conftest.$ac_ext >&5
33072
33073         ac_cv_func_rand48=no
33074 fi
33075
33076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33077   ac_ext=c
33078 ac_cpp='$CPP $CPPFLAGS'
33079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33082
33083 fi
33084 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33085 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33086
33087 if test "$ac_cv_func_rand48" = "yes" ; then
33088
33089 cat >>confdefs.h <<\_ACEOF
33090 #define HAVE_RAND48 1
33091 _ACEOF
33092
33093 fi
33094
33095
33096 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33097 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33098 if test "${ac_cv_cxx_namespaces+set}" = set; then
33099   echo $ECHO_N "(cached) $ECHO_C" >&6
33100 else
33101   ac_ext=cpp
33102 ac_cpp='$CXXCPP $CPPFLAGS'
33103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33106
33107  cat >conftest.$ac_ext <<_ACEOF
33108 /* confdefs.h.  */
33109 _ACEOF
33110 cat confdefs.h >>conftest.$ac_ext
33111 cat >>conftest.$ac_ext <<_ACEOF
33112 /* end confdefs.h.  */
33113 namespace Outer { namespace Inner { int i = 0; }}
33114 int
33115 main ()
33116 {
33117 using namespace Outer::Inner; return i;
33118   ;
33119   return 0;
33120 }
33121 _ACEOF
33122 rm -f conftest.$ac_objext
33123 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
33130   ac_status=$?
33131   grep -v '^ *+' conftest.er1 >conftest.err
33132   rm -f conftest.er1
33133   cat conftest.err >&5
33134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135   (exit $ac_status); } &&
33136          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33137   { (case "(($ac_try" in
33138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33139   *) ac_try_echo=$ac_try;;
33140 esac
33141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33142   (eval "$ac_try") 2>&5
33143   ac_status=$?
33144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145   (exit $ac_status); }; } &&
33146          { ac_try='test -s conftest.$ac_objext'
33147   { (case "(($ac_try" in
33148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33149   *) ac_try_echo=$ac_try;;
33150 esac
33151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33152   (eval "$ac_try") 2>&5
33153   ac_status=$?
33154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155   (exit $ac_status); }; }; then
33156   ac_cv_cxx_namespaces=yes
33157 else
33158   echo "$as_me: failed program was:" >&5
33159 sed 's/^/| /' conftest.$ac_ext >&5
33160
33161         ac_cv_cxx_namespaces=no
33162 fi
33163
33164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33165  ac_ext=c
33166 ac_cpp='$CPP $CPPFLAGS'
33167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33170
33171
33172 fi
33173 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33174 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33175 if test "$ac_cv_cxx_namespaces" = yes; then
33176
33177 cat >>confdefs.h <<\_ACEOF
33178 #define HAVE_NAMESPACES
33179 _ACEOF
33180
33181 fi
33182
33183 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33184 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33185 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33186   echo $ECHO_N "(cached) $ECHO_C" >&6
33187 else
33188
33189   ac_ext=cpp
33190 ac_cpp='$CXXCPP $CPPFLAGS'
33191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33194
33195   cat >conftest.$ac_ext <<_ACEOF
33196 /* confdefs.h.  */
33197 _ACEOF
33198 cat confdefs.h >>conftest.$ac_ext
33199 cat >>conftest.$ac_ext <<_ACEOF
33200 /* end confdefs.h.  */
33201 #include <iterator>
33202 #ifdef HAVE_NAMESPACES
33203 using namespace std;
33204 #endif
33205 int
33206 main ()
33207 {
33208 iterator<int,int,int> t; return 0;
33209   ;
33210   return 0;
33211 }
33212 _ACEOF
33213 rm -f conftest.$ac_objext
33214 if { (ac_try="$ac_compile"
33215 case "(($ac_try" in
33216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33217   *) ac_try_echo=$ac_try;;
33218 esac
33219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33220   (eval "$ac_compile") 2>conftest.er1
33221   ac_status=$?
33222   grep -v '^ *+' conftest.er1 >conftest.err
33223   rm -f conftest.er1
33224   cat conftest.err >&5
33225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226   (exit $ac_status); } &&
33227          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33228   { (case "(($ac_try" in
33229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33230   *) ac_try_echo=$ac_try;;
33231 esac
33232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33233   (eval "$ac_try") 2>&5
33234   ac_status=$?
33235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33236   (exit $ac_status); }; } &&
33237          { ac_try='test -s conftest.$ac_objext'
33238   { (case "(($ac_try" in
33239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33240   *) ac_try_echo=$ac_try;;
33241 esac
33242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33243   (eval "$ac_try") 2>&5
33244   ac_status=$?
33245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246   (exit $ac_status); }; }; then
33247   ac_cv_cxx_have_std_iterator=yes
33248 else
33249   echo "$as_me: failed program was:" >&5
33250 sed 's/^/| /' conftest.$ac_ext >&5
33251
33252         ac_cv_cxx_have_std_iterator=no
33253 fi
33254
33255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33256   ac_ext=c
33257 ac_cpp='$CPP $CPPFLAGS'
33258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33261
33262
33263 fi
33264 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33265 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33266 if test "$ac_cv_cxx_have_std_iterator" = yes
33267 then
33268
33269 cat >>confdefs.h <<\_ACEOF
33270 #define HAVE_STD_ITERATOR 1
33271 _ACEOF
33272
33273 else
33274
33275 cat >>confdefs.h <<\_ACEOF
33276 #define HAVE_STD_ITERATOR 0
33277 _ACEOF
33278
33279 fi
33280
33281 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33282 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33283 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33284   echo $ECHO_N "(cached) $ECHO_C" >&6
33285 else
33286
33287   ac_ext=cpp
33288 ac_cpp='$CXXCPP $CPPFLAGS'
33289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33292
33293   cat >conftest.$ac_ext <<_ACEOF
33294 /* confdefs.h.  */
33295 _ACEOF
33296 cat confdefs.h >>conftest.$ac_ext
33297 cat >>conftest.$ac_ext <<_ACEOF
33298 /* end confdefs.h.  */
33299 #include <iterator>
33300 #ifdef HAVE_NAMESPACES
33301 using namespace std;
33302 #endif
33303 int
33304 main ()
33305 {
33306 bidirectional_iterator<int,int> t; return 0;
33307   ;
33308   return 0;
33309 }
33310 _ACEOF
33311 rm -f conftest.$ac_objext
33312 if { (ac_try="$ac_compile"
33313 case "(($ac_try" in
33314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33315   *) ac_try_echo=$ac_try;;
33316 esac
33317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33318   (eval "$ac_compile") 2>conftest.er1
33319   ac_status=$?
33320   grep -v '^ *+' conftest.er1 >conftest.err
33321   rm -f conftest.er1
33322   cat conftest.err >&5
33323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324   (exit $ac_status); } &&
33325          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33326   { (case "(($ac_try" in
33327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33328   *) ac_try_echo=$ac_try;;
33329 esac
33330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33331   (eval "$ac_try") 2>&5
33332   ac_status=$?
33333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334   (exit $ac_status); }; } &&
33335          { ac_try='test -s conftest.$ac_objext'
33336   { (case "(($ac_try" in
33337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33338   *) ac_try_echo=$ac_try;;
33339 esac
33340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33341   (eval "$ac_try") 2>&5
33342   ac_status=$?
33343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33344   (exit $ac_status); }; }; then
33345   ac_cv_cxx_have_bi_iterator=yes
33346 else
33347   echo "$as_me: failed program was:" >&5
33348 sed 's/^/| /' conftest.$ac_ext >&5
33349
33350         ac_cv_cxx_have_bi_iterator=no
33351 fi
33352
33353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33354   ac_ext=c
33355 ac_cpp='$CPP $CPPFLAGS'
33356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33359
33360
33361 fi
33362 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33363 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33364 if test "$ac_cv_cxx_have_bi_iterator" = yes
33365 then
33366
33367 cat >>confdefs.h <<\_ACEOF
33368 #define HAVE_BI_ITERATOR 1
33369 _ACEOF
33370
33371 else
33372
33373 cat >>confdefs.h <<\_ACEOF
33374 #define HAVE_BI_ITERATOR 0
33375 _ACEOF
33376
33377 fi
33378
33379 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33380 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33381 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33382   echo $ECHO_N "(cached) $ECHO_C" >&6
33383 else
33384
33385   ac_ext=cpp
33386 ac_cpp='$CXXCPP $CPPFLAGS'
33387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33390
33391   cat >conftest.$ac_ext <<_ACEOF
33392 /* confdefs.h.  */
33393 _ACEOF
33394 cat confdefs.h >>conftest.$ac_ext
33395 cat >>conftest.$ac_ext <<_ACEOF
33396 /* end confdefs.h.  */
33397 #include <iterator>
33398 #ifdef HAVE_NAMESPACES
33399 using namespace std;
33400 #endif
33401 int
33402 main ()
33403 {
33404 forward_iterator<int,int> t; return 0;
33405   ;
33406   return 0;
33407 }
33408 _ACEOF
33409 rm -f conftest.$ac_objext
33410 if { (ac_try="$ac_compile"
33411 case "(($ac_try" in
33412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33413   *) ac_try_echo=$ac_try;;
33414 esac
33415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33416   (eval "$ac_compile") 2>conftest.er1
33417   ac_status=$?
33418   grep -v '^ *+' conftest.er1 >conftest.err
33419   rm -f conftest.er1
33420   cat conftest.err >&5
33421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33422   (exit $ac_status); } &&
33423          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33424   { (case "(($ac_try" in
33425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33426   *) ac_try_echo=$ac_try;;
33427 esac
33428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33429   (eval "$ac_try") 2>&5
33430   ac_status=$?
33431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33432   (exit $ac_status); }; } &&
33433          { ac_try='test -s conftest.$ac_objext'
33434   { (case "(($ac_try" in
33435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33436   *) ac_try_echo=$ac_try;;
33437 esac
33438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33439   (eval "$ac_try") 2>&5
33440   ac_status=$?
33441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33442   (exit $ac_status); }; }; then
33443   ac_cv_cxx_have_fwd_iterator=yes
33444 else
33445   echo "$as_me: failed program was:" >&5
33446 sed 's/^/| /' conftest.$ac_ext >&5
33447
33448         ac_cv_cxx_have_fwd_iterator=no
33449 fi
33450
33451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33452   ac_ext=c
33453 ac_cpp='$CPP $CPPFLAGS'
33454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33457
33458
33459 fi
33460 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33461 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33462 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33463 then
33464
33465 cat >>confdefs.h <<\_ACEOF
33466 #define HAVE_FWD_ITERATOR 1
33467 _ACEOF
33468
33469 else
33470
33471 cat >>confdefs.h <<\_ACEOF
33472 #define HAVE_FWD_ITERATOR 0
33473 _ACEOF
33474
33475 fi
33476
33477
33478 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33479 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33480 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33481   echo $ECHO_N "(cached) $ECHO_C" >&6
33482 else
33483   ac_ext=cpp
33484 ac_cpp='$CXXCPP $CPPFLAGS'
33485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33488
33489    cat >conftest.$ac_ext <<_ACEOF
33490 /* confdefs.h.  */
33491 _ACEOF
33492 cat confdefs.h >>conftest.$ac_ext
33493 cat >>conftest.$ac_ext <<_ACEOF
33494 /* end confdefs.h.  */
33495 #include <math.h>
33496 int
33497 main ()
33498 {
33499 float f; isnan(f);
33500   ;
33501   return 0;
33502 }
33503 _ACEOF
33504 rm -f conftest.$ac_objext
33505 if { (ac_try="$ac_compile"
33506 case "(($ac_try" in
33507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33508   *) ac_try_echo=$ac_try;;
33509 esac
33510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33511   (eval "$ac_compile") 2>conftest.er1
33512   ac_status=$?
33513   grep -v '^ *+' conftest.er1 >conftest.err
33514   rm -f conftest.er1
33515   cat conftest.err >&5
33516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33517   (exit $ac_status); } &&
33518          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33519   { (case "(($ac_try" in
33520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33521   *) ac_try_echo=$ac_try;;
33522 esac
33523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33524   (eval "$ac_try") 2>&5
33525   ac_status=$?
33526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33527   (exit $ac_status); }; } &&
33528          { ac_try='test -s conftest.$ac_objext'
33529   { (case "(($ac_try" in
33530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33531   *) ac_try_echo=$ac_try;;
33532 esac
33533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33534   (eval "$ac_try") 2>&5
33535   ac_status=$?
33536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537   (exit $ac_status); }; }; then
33538   ac_cv_func_isnan_in_math_h=yes
33539 else
33540   echo "$as_me: failed program was:" >&5
33541 sed 's/^/| /' conftest.$ac_ext >&5
33542
33543         ac_cv_func_isnan_in_math_h=no
33544 fi
33545
33546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33547   ac_ext=c
33548 ac_cpp='$CPP $CPPFLAGS'
33549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33552
33553 fi
33554 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33555 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33556
33557
33558 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33559
33560 cat >>confdefs.h <<\_ACEOF
33561 #define HAVE_ISNAN_IN_MATH_H 1
33562 _ACEOF
33563
33564 fi
33565
33566 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33567 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33568 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33569   echo $ECHO_N "(cached) $ECHO_C" >&6
33570 else
33571   ac_ext=cpp
33572 ac_cpp='$CXXCPP $CPPFLAGS'
33573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33576
33577    cat >conftest.$ac_ext <<_ACEOF
33578 /* confdefs.h.  */
33579 _ACEOF
33580 cat confdefs.h >>conftest.$ac_ext
33581 cat >>conftest.$ac_ext <<_ACEOF
33582 /* end confdefs.h.  */
33583 #include <cmath>
33584 int
33585 main ()
33586 {
33587 float f; isnan(f);
33588   ;
33589   return 0;
33590 }
33591 _ACEOF
33592 rm -f conftest.$ac_objext
33593 if { (ac_try="$ac_compile"
33594 case "(($ac_try" in
33595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33596   *) ac_try_echo=$ac_try;;
33597 esac
33598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33599   (eval "$ac_compile") 2>conftest.er1
33600   ac_status=$?
33601   grep -v '^ *+' conftest.er1 >conftest.err
33602   rm -f conftest.er1
33603   cat conftest.err >&5
33604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33605   (exit $ac_status); } &&
33606          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33607   { (case "(($ac_try" in
33608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33609   *) ac_try_echo=$ac_try;;
33610 esac
33611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33612   (eval "$ac_try") 2>&5
33613   ac_status=$?
33614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615   (exit $ac_status); }; } &&
33616          { ac_try='test -s conftest.$ac_objext'
33617   { (case "(($ac_try" in
33618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33619   *) ac_try_echo=$ac_try;;
33620 esac
33621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33622   (eval "$ac_try") 2>&5
33623   ac_status=$?
33624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33625   (exit $ac_status); }; }; then
33626   ac_cv_func_isnan_in_cmath=yes
33627 else
33628   echo "$as_me: failed program was:" >&5
33629 sed 's/^/| /' conftest.$ac_ext >&5
33630
33631         ac_cv_func_isnan_in_cmath=no
33632 fi
33633
33634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33635   ac_ext=c
33636 ac_cpp='$CPP $CPPFLAGS'
33637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33640
33641 fi
33642 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33643 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33644
33645 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33646
33647 cat >>confdefs.h <<\_ACEOF
33648 #define HAVE_ISNAN_IN_CMATH 1
33649 _ACEOF
33650
33651 fi
33652
33653 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33654 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33655 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33656   echo $ECHO_N "(cached) $ECHO_C" >&6
33657 else
33658   ac_ext=cpp
33659 ac_cpp='$CXXCPP $CPPFLAGS'
33660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33663
33664    cat >conftest.$ac_ext <<_ACEOF
33665 /* confdefs.h.  */
33666 _ACEOF
33667 cat confdefs.h >>conftest.$ac_ext
33668 cat >>conftest.$ac_ext <<_ACEOF
33669 /* end confdefs.h.  */
33670 #include <cmath>
33671 int
33672 main ()
33673 {
33674 float f; std::isnan(f);
33675   ;
33676   return 0;
33677 }
33678 _ACEOF
33679 rm -f conftest.$ac_objext
33680 if { (ac_try="$ac_compile"
33681 case "(($ac_try" in
33682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33683   *) ac_try_echo=$ac_try;;
33684 esac
33685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33686   (eval "$ac_compile") 2>conftest.er1
33687   ac_status=$?
33688   grep -v '^ *+' conftest.er1 >conftest.err
33689   rm -f conftest.er1
33690   cat conftest.err >&5
33691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692   (exit $ac_status); } &&
33693          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33694   { (case "(($ac_try" in
33695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33696   *) ac_try_echo=$ac_try;;
33697 esac
33698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33699   (eval "$ac_try") 2>&5
33700   ac_status=$?
33701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33702   (exit $ac_status); }; } &&
33703          { ac_try='test -s conftest.$ac_objext'
33704   { (case "(($ac_try" in
33705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33706   *) ac_try_echo=$ac_try;;
33707 esac
33708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33709   (eval "$ac_try") 2>&5
33710   ac_status=$?
33711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712   (exit $ac_status); }; }; then
33713   ac_cv_func_std_isnan_in_cmath=yes
33714 else
33715   echo "$as_me: failed program was:" >&5
33716 sed 's/^/| /' conftest.$ac_ext >&5
33717
33718         ac_cv_func_std_isnan_in_cmath=no
33719 fi
33720
33721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33722   ac_ext=c
33723 ac_cpp='$CPP $CPPFLAGS'
33724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33727
33728 fi
33729 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33730 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33731
33732 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33733
33734 cat >>confdefs.h <<\_ACEOF
33735 #define HAVE_STD_ISNAN_IN_CMATH 1
33736 _ACEOF
33737
33738 fi
33739
33740
33741 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33742 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33743 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33744   echo $ECHO_N "(cached) $ECHO_C" >&6
33745 else
33746   ac_ext=cpp
33747 ac_cpp='$CXXCPP $CPPFLAGS'
33748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33751
33752    cat >conftest.$ac_ext <<_ACEOF
33753 /* confdefs.h.  */
33754 _ACEOF
33755 cat confdefs.h >>conftest.$ac_ext
33756 cat >>conftest.$ac_ext <<_ACEOF
33757 /* end confdefs.h.  */
33758 #include <math.h>
33759 int
33760 main ()
33761 {
33762 float f; isinf(f);
33763   ;
33764   return 0;
33765 }
33766 _ACEOF
33767 rm -f conftest.$ac_objext
33768 if { (ac_try="$ac_compile"
33769 case "(($ac_try" in
33770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33771   *) ac_try_echo=$ac_try;;
33772 esac
33773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33774   (eval "$ac_compile") 2>conftest.er1
33775   ac_status=$?
33776   grep -v '^ *+' conftest.er1 >conftest.err
33777   rm -f conftest.er1
33778   cat conftest.err >&5
33779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33780   (exit $ac_status); } &&
33781          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33782   { (case "(($ac_try" in
33783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33784   *) ac_try_echo=$ac_try;;
33785 esac
33786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33787   (eval "$ac_try") 2>&5
33788   ac_status=$?
33789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790   (exit $ac_status); }; } &&
33791          { ac_try='test -s conftest.$ac_objext'
33792   { (case "(($ac_try" in
33793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33794   *) ac_try_echo=$ac_try;;
33795 esac
33796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33797   (eval "$ac_try") 2>&5
33798   ac_status=$?
33799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800   (exit $ac_status); }; }; then
33801   ac_cv_func_isinf_in_math_h=yes
33802 else
33803   echo "$as_me: failed program was:" >&5
33804 sed 's/^/| /' conftest.$ac_ext >&5
33805
33806         ac_cv_func_isinf_in_math_h=no
33807 fi
33808
33809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33810   ac_ext=c
33811 ac_cpp='$CPP $CPPFLAGS'
33812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33815
33816 fi
33817 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33818 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33819
33820 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33821
33822 cat >>confdefs.h <<\_ACEOF
33823 #define HAVE_ISINF_IN_MATH_H 1
33824 _ACEOF
33825
33826 fi
33827
33828 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33829 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33830 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33831   echo $ECHO_N "(cached) $ECHO_C" >&6
33832 else
33833   ac_ext=cpp
33834 ac_cpp='$CXXCPP $CPPFLAGS'
33835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33838
33839    cat >conftest.$ac_ext <<_ACEOF
33840 /* confdefs.h.  */
33841 _ACEOF
33842 cat confdefs.h >>conftest.$ac_ext
33843 cat >>conftest.$ac_ext <<_ACEOF
33844 /* end confdefs.h.  */
33845 #include <cmath>
33846 int
33847 main ()
33848 {
33849 float f; isinf(f);
33850   ;
33851   return 0;
33852 }
33853 _ACEOF
33854 rm -f conftest.$ac_objext
33855 if { (ac_try="$ac_compile"
33856 case "(($ac_try" in
33857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33858   *) ac_try_echo=$ac_try;;
33859 esac
33860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33861   (eval "$ac_compile") 2>conftest.er1
33862   ac_status=$?
33863   grep -v '^ *+' conftest.er1 >conftest.err
33864   rm -f conftest.er1
33865   cat conftest.err >&5
33866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33867   (exit $ac_status); } &&
33868          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33869   { (case "(($ac_try" in
33870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33871   *) ac_try_echo=$ac_try;;
33872 esac
33873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33874   (eval "$ac_try") 2>&5
33875   ac_status=$?
33876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33877   (exit $ac_status); }; } &&
33878          { ac_try='test -s conftest.$ac_objext'
33879   { (case "(($ac_try" in
33880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33881   *) ac_try_echo=$ac_try;;
33882 esac
33883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33884   (eval "$ac_try") 2>&5
33885   ac_status=$?
33886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33887   (exit $ac_status); }; }; then
33888   ac_cv_func_isinf_in_cmath=yes
33889 else
33890   echo "$as_me: failed program was:" >&5
33891 sed 's/^/| /' conftest.$ac_ext >&5
33892
33893         ac_cv_func_isinf_in_cmath=no
33894 fi
33895
33896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33897   ac_ext=c
33898 ac_cpp='$CPP $CPPFLAGS'
33899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33902
33903 fi
33904 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33905 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33906
33907 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33908
33909 cat >>confdefs.h <<\_ACEOF
33910 #define HAVE_ISINF_IN_CMATH 1
33911 _ACEOF
33912
33913 fi
33914
33915 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33916 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33917 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33918   echo $ECHO_N "(cached) $ECHO_C" >&6
33919 else
33920   ac_ext=cpp
33921 ac_cpp='$CXXCPP $CPPFLAGS'
33922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33925
33926    cat >conftest.$ac_ext <<_ACEOF
33927 /* confdefs.h.  */
33928 _ACEOF
33929 cat confdefs.h >>conftest.$ac_ext
33930 cat >>conftest.$ac_ext <<_ACEOF
33931 /* end confdefs.h.  */
33932 #include <cmath>
33933 int
33934 main ()
33935 {
33936 float f; std::isinf(f)}
33937   ;
33938   return 0;
33939 }
33940 _ACEOF
33941 rm -f conftest.$ac_objext
33942 if { (ac_try="$ac_compile"
33943 case "(($ac_try" in
33944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33945   *) ac_try_echo=$ac_try;;
33946 esac
33947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33948   (eval "$ac_compile") 2>conftest.er1
33949   ac_status=$?
33950   grep -v '^ *+' conftest.er1 >conftest.err
33951   rm -f conftest.er1
33952   cat conftest.err >&5
33953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954   (exit $ac_status); } &&
33955          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33956   { (case "(($ac_try" in
33957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958   *) ac_try_echo=$ac_try;;
33959 esac
33960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961   (eval "$ac_try") 2>&5
33962   ac_status=$?
33963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964   (exit $ac_status); }; } &&
33965          { ac_try='test -s conftest.$ac_objext'
33966   { (case "(($ac_try" in
33967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33968   *) ac_try_echo=$ac_try;;
33969 esac
33970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33971   (eval "$ac_try") 2>&5
33972   ac_status=$?
33973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974   (exit $ac_status); }; }; then
33975   ac_cv_func_std_isinf_in_cmath=yes
33976 else
33977   echo "$as_me: failed program was:" >&5
33978 sed 's/^/| /' conftest.$ac_ext >&5
33979
33980         ac_cv_func_std_isinf_in_cmath=no
33981 fi
33982
33983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33984   ac_ext=c
33985 ac_cpp='$CPP $CPPFLAGS'
33986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33989
33990 fi
33991 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33992 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33993
33994 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33995
33996 cat >>confdefs.h <<\_ACEOF
33997 #define HAVE_STD_ISINF_IN_CMATH 1
33998 _ACEOF
33999
34000 fi
34001
34002 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34003 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34004 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34005   echo $ECHO_N "(cached) $ECHO_C" >&6
34006 else
34007   ac_ext=cpp
34008 ac_cpp='$CXXCPP $CPPFLAGS'
34009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34012
34013    cat >conftest.$ac_ext <<_ACEOF
34014 /* confdefs.h.  */
34015 _ACEOF
34016 cat confdefs.h >>conftest.$ac_ext
34017 cat >>conftest.$ac_ext <<_ACEOF
34018 /* end confdefs.h.  */
34019 #include <ieeefp.h>
34020 int
34021 main ()
34022 {
34023 float f; finite(f);
34024   ;
34025   return 0;
34026 }
34027 _ACEOF
34028 rm -f conftest.$ac_objext
34029 if { (ac_try="$ac_compile"
34030 case "(($ac_try" in
34031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34032   *) ac_try_echo=$ac_try;;
34033 esac
34034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34035   (eval "$ac_compile") 2>conftest.er1
34036   ac_status=$?
34037   grep -v '^ *+' conftest.er1 >conftest.err
34038   rm -f conftest.er1
34039   cat conftest.err >&5
34040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34041   (exit $ac_status); } &&
34042          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34043   { (case "(($ac_try" in
34044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34045   *) ac_try_echo=$ac_try;;
34046 esac
34047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34048   (eval "$ac_try") 2>&5
34049   ac_status=$?
34050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051   (exit $ac_status); }; } &&
34052          { ac_try='test -s conftest.$ac_objext'
34053   { (case "(($ac_try" in
34054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34055   *) ac_try_echo=$ac_try;;
34056 esac
34057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34058   (eval "$ac_try") 2>&5
34059   ac_status=$?
34060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061   (exit $ac_status); }; }; then
34062   ac_cv_func_finite_in_ieeefp_h=yes
34063 else
34064   echo "$as_me: failed program was:" >&5
34065 sed 's/^/| /' conftest.$ac_ext >&5
34066
34067         ac_cv_func_finite_in_ieeefp_h=no
34068 fi
34069
34070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34071   ac_ext=c
34072 ac_cpp='$CPP $CPPFLAGS'
34073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34076
34077 fi
34078 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34079 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34080
34081 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34082
34083 cat >>confdefs.h <<\_ACEOF
34084 #define HAVE_FINITE_IN_IEEEFP_H 1
34085 _ACEOF
34086
34087 fi
34088
34089
34090
34091 if test "$llvm_cv_platform_type" = "Unix" ; then
34092
34093
34094 for ac_header in stdlib.h unistd.h
34095 do
34096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34098   { echo "$as_me:$LINENO: checking for $ac_header" >&5
34099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34101   echo $ECHO_N "(cached) $ECHO_C" >&6
34102 fi
34103 ac_res=`eval echo '${'$as_ac_Header'}'`
34104                { echo "$as_me:$LINENO: result: $ac_res" >&5
34105 echo "${ECHO_T}$ac_res" >&6; }
34106 else
34107   # Is the header compilable?
34108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34110 cat >conftest.$ac_ext <<_ACEOF
34111 /* confdefs.h.  */
34112 _ACEOF
34113 cat confdefs.h >>conftest.$ac_ext
34114 cat >>conftest.$ac_ext <<_ACEOF
34115 /* end confdefs.h.  */
34116 $ac_includes_default
34117 #include <$ac_header>
34118 _ACEOF
34119 rm -f conftest.$ac_objext
34120 if { (ac_try="$ac_compile"
34121 case "(($ac_try" in
34122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34123   *) ac_try_echo=$ac_try;;
34124 esac
34125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34126   (eval "$ac_compile") 2>conftest.er1
34127   ac_status=$?
34128   grep -v '^ *+' conftest.er1 >conftest.err
34129   rm -f conftest.er1
34130   cat conftest.err >&5
34131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34132   (exit $ac_status); } &&
34133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34134   { (case "(($ac_try" in
34135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34136   *) ac_try_echo=$ac_try;;
34137 esac
34138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34139   (eval "$ac_try") 2>&5
34140   ac_status=$?
34141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34142   (exit $ac_status); }; } &&
34143          { ac_try='test -s conftest.$ac_objext'
34144   { (case "(($ac_try" in
34145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34146   *) ac_try_echo=$ac_try;;
34147 esac
34148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34149   (eval "$ac_try") 2>&5
34150   ac_status=$?
34151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34152   (exit $ac_status); }; }; then
34153   ac_header_compiler=yes
34154 else
34155   echo "$as_me: failed program was:" >&5
34156 sed 's/^/| /' conftest.$ac_ext >&5
34157
34158         ac_header_compiler=no
34159 fi
34160
34161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34163 echo "${ECHO_T}$ac_header_compiler" >&6; }
34164
34165 # Is the header present?
34166 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34168 cat >conftest.$ac_ext <<_ACEOF
34169 /* confdefs.h.  */
34170 _ACEOF
34171 cat confdefs.h >>conftest.$ac_ext
34172 cat >>conftest.$ac_ext <<_ACEOF
34173 /* end confdefs.h.  */
34174 #include <$ac_header>
34175 _ACEOF
34176 if { (ac_try="$ac_cpp conftest.$ac_ext"
34177 case "(($ac_try" in
34178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34179   *) ac_try_echo=$ac_try;;
34180 esac
34181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34182   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34183   ac_status=$?
34184   grep -v '^ *+' conftest.er1 >conftest.err
34185   rm -f conftest.er1
34186   cat conftest.err >&5
34187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34188   (exit $ac_status); } >/dev/null; then
34189   if test -s conftest.err; then
34190     ac_cpp_err=$ac_c_preproc_warn_flag
34191     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34192   else
34193     ac_cpp_err=
34194   fi
34195 else
34196   ac_cpp_err=yes
34197 fi
34198 if test -z "$ac_cpp_err"; then
34199   ac_header_preproc=yes
34200 else
34201   echo "$as_me: failed program was:" >&5
34202 sed 's/^/| /' conftest.$ac_ext >&5
34203
34204   ac_header_preproc=no
34205 fi
34206
34207 rm -f conftest.err conftest.$ac_ext
34208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34209 echo "${ECHO_T}$ac_header_preproc" >&6; }
34210
34211 # So?  What about this header?
34212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34213   yes:no: )
34214     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34218     ac_header_preproc=yes
34219     ;;
34220   no:yes:* )
34221     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34223     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34224 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34225     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34227     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34228 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34231     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34233     ( cat <<\_ASBOX
34234 ## ----------------------------------- ##
34235 ## Report this to llvmbugs@cs.uiuc.edu ##
34236 ## ----------------------------------- ##
34237 _ASBOX
34238      ) | sed "s/^/$as_me: WARNING:     /" >&2
34239     ;;
34240 esac
34241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34244   echo $ECHO_N "(cached) $ECHO_C" >&6
34245 else
34246   eval "$as_ac_Header=\$ac_header_preproc"
34247 fi
34248 ac_res=`eval echo '${'$as_ac_Header'}'`
34249                { echo "$as_me:$LINENO: result: $ac_res" >&5
34250 echo "${ECHO_T}$ac_res" >&6; }
34251
34252 fi
34253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34254   cat >>confdefs.h <<_ACEOF
34255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34256 _ACEOF
34257
34258 fi
34259
34260 done
34261
34262
34263 for ac_func in getpagesize
34264 do
34265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34266 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34268 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34269   echo $ECHO_N "(cached) $ECHO_C" >&6
34270 else
34271   cat >conftest.$ac_ext <<_ACEOF
34272 /* confdefs.h.  */
34273 _ACEOF
34274 cat confdefs.h >>conftest.$ac_ext
34275 cat >>conftest.$ac_ext <<_ACEOF
34276 /* end confdefs.h.  */
34277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34279 #define $ac_func innocuous_$ac_func
34280
34281 /* System header to define __stub macros and hopefully few prototypes,
34282     which can conflict with char $ac_func (); below.
34283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34284     <limits.h> exists even on freestanding compilers.  */
34285
34286 #ifdef __STDC__
34287 # include <limits.h>
34288 #else
34289 # include <assert.h>
34290 #endif
34291
34292 #undef $ac_func
34293
34294 /* Override any GCC internal prototype to avoid an error.
34295    Use char because int might match the return type of a GCC
34296    builtin and then its argument prototype would still apply.  */
34297 #ifdef __cplusplus
34298 extern "C"
34299 #endif
34300 char $ac_func ();
34301 /* The GNU C library defines this for functions which it implements
34302     to always fail with ENOSYS.  Some functions are actually named
34303     something starting with __ and the normal name is an alias.  */
34304 #if defined __stub_$ac_func || defined __stub___$ac_func
34305 choke me
34306 #endif
34307
34308 int
34309 main ()
34310 {
34311 return $ac_func ();
34312   ;
34313   return 0;
34314 }
34315 _ACEOF
34316 rm -f conftest.$ac_objext conftest$ac_exeext
34317 if { (ac_try="$ac_link"
34318 case "(($ac_try" in
34319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34320   *) ac_try_echo=$ac_try;;
34321 esac
34322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34323   (eval "$ac_link") 2>conftest.er1
34324   ac_status=$?
34325   grep -v '^ *+' conftest.er1 >conftest.err
34326   rm -f conftest.er1
34327   cat conftest.err >&5
34328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34329   (exit $ac_status); } &&
34330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34331   { (case "(($ac_try" in
34332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34333   *) ac_try_echo=$ac_try;;
34334 esac
34335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34336   (eval "$ac_try") 2>&5
34337   ac_status=$?
34338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34339   (exit $ac_status); }; } &&
34340          { ac_try='test -s conftest$ac_exeext'
34341   { (case "(($ac_try" in
34342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34343   *) ac_try_echo=$ac_try;;
34344 esac
34345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34346   (eval "$ac_try") 2>&5
34347   ac_status=$?
34348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34349   (exit $ac_status); }; }; then
34350   eval "$as_ac_var=yes"
34351 else
34352   echo "$as_me: failed program was:" >&5
34353 sed 's/^/| /' conftest.$ac_ext >&5
34354
34355         eval "$as_ac_var=no"
34356 fi
34357
34358 rm -f core conftest.err conftest.$ac_objext \
34359       conftest$ac_exeext conftest.$ac_ext
34360 fi
34361 ac_res=`eval echo '${'$as_ac_var'}'`
34362                { echo "$as_me:$LINENO: result: $ac_res" >&5
34363 echo "${ECHO_T}$ac_res" >&6; }
34364 if test `eval echo '${'$as_ac_var'}'` = yes; then
34365   cat >>confdefs.h <<_ACEOF
34366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34367 _ACEOF
34368
34369 fi
34370 done
34371
34372 { echo "$as_me:$LINENO: checking for working mmap" >&5
34373 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34374 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34375   echo $ECHO_N "(cached) $ECHO_C" >&6
34376 else
34377   if test "$cross_compiling" = yes; then
34378   ac_cv_func_mmap_fixed_mapped=no
34379 else
34380   cat >conftest.$ac_ext <<_ACEOF
34381 /* confdefs.h.  */
34382 _ACEOF
34383 cat confdefs.h >>conftest.$ac_ext
34384 cat >>conftest.$ac_ext <<_ACEOF
34385 /* end confdefs.h.  */
34386 $ac_includes_default
34387 /* malloc might have been renamed as rpl_malloc. */
34388 #undef malloc
34389
34390 /* Thanks to Mike Haertel and Jim Avera for this test.
34391    Here is a matrix of mmap possibilities:
34392         mmap private not fixed
34393         mmap private fixed at somewhere currently unmapped
34394         mmap private fixed at somewhere already mapped
34395         mmap shared not fixed
34396         mmap shared fixed at somewhere currently unmapped
34397         mmap shared fixed at somewhere already mapped
34398    For private mappings, we should verify that changes cannot be read()
34399    back from the file, nor mmap's back from the file at a different
34400    address.  (There have been systems where private was not correctly
34401    implemented like the infamous i386 svr4.0, and systems where the
34402    VM page cache was not coherent with the file system buffer cache
34403    like early versions of FreeBSD and possibly contemporary NetBSD.)
34404    For shared mappings, we should conversely verify that changes get
34405    propagated back to all the places they're supposed to be.
34406
34407    Grep wants private fixed already mapped.
34408    The main things grep needs to know about mmap are:
34409    * does it exist and is it safe to write into the mmap'd area
34410    * how to use it (BSD variants)  */
34411
34412 #include <fcntl.h>
34413 #include <sys/mman.h>
34414
34415 #if !STDC_HEADERS && !HAVE_STDLIB_H
34416 char *malloc ();
34417 #endif
34418
34419 /* This mess was copied from the GNU getpagesize.h.  */
34420 #if !HAVE_GETPAGESIZE
34421 /* Assume that all systems that can run configure have sys/param.h.  */
34422 # if !HAVE_SYS_PARAM_H
34423 #  define HAVE_SYS_PARAM_H 1
34424 # endif
34425
34426 # ifdef _SC_PAGESIZE
34427 #  define getpagesize() sysconf(_SC_PAGESIZE)
34428 # else /* no _SC_PAGESIZE */
34429 #  if HAVE_SYS_PARAM_H
34430 #   include <sys/param.h>
34431 #   ifdef EXEC_PAGESIZE
34432 #    define getpagesize() EXEC_PAGESIZE
34433 #   else /* no EXEC_PAGESIZE */
34434 #    ifdef NBPG
34435 #     define getpagesize() NBPG * CLSIZE
34436 #     ifndef CLSIZE
34437 #      define CLSIZE 1
34438 #     endif /* no CLSIZE */
34439 #    else /* no NBPG */
34440 #     ifdef NBPC
34441 #      define getpagesize() NBPC
34442 #     else /* no NBPC */
34443 #      ifdef PAGESIZE
34444 #       define getpagesize() PAGESIZE
34445 #      endif /* PAGESIZE */
34446 #     endif /* no NBPC */
34447 #    endif /* no NBPG */
34448 #   endif /* no EXEC_PAGESIZE */
34449 #  else /* no HAVE_SYS_PARAM_H */
34450 #   define getpagesize() 8192   /* punt totally */
34451 #  endif /* no HAVE_SYS_PARAM_H */
34452 # endif /* no _SC_PAGESIZE */
34453
34454 #endif /* no HAVE_GETPAGESIZE */
34455
34456 int
34457 main ()
34458 {
34459   char *data, *data2, *data3;
34460   int i, pagesize;
34461   int fd;
34462
34463   pagesize = getpagesize ();
34464
34465   /* First, make a file with some known garbage in it. */
34466   data = (char *) malloc (pagesize);
34467   if (!data)
34468     return 1;
34469   for (i = 0; i < pagesize; ++i)
34470     *(data + i) = rand ();
34471   umask (0);
34472   fd = creat ("conftest.mmap", 0600);
34473   if (fd < 0)
34474     return 1;
34475   if (write (fd, data, pagesize) != pagesize)
34476     return 1;
34477   close (fd);
34478
34479   /* Next, try to mmap the file at a fixed address which already has
34480      something else allocated at it.  If we can, also make sure that
34481      we see the same garbage.  */
34482   fd = open ("conftest.mmap", O_RDWR);
34483   if (fd < 0)
34484     return 1;
34485   data2 = (char *) malloc (2 * pagesize);
34486   if (!data2)
34487     return 1;
34488   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34489   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34490                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
34491     return 1;
34492   for (i = 0; i < pagesize; ++i)
34493     if (*(data + i) != *(data2 + i))
34494       return 1;
34495
34496   /* Finally, make sure that changes to the mapped area do not
34497      percolate back to the file as seen by read().  (This is a bug on
34498      some variants of i386 svr4.0.)  */
34499   for (i = 0; i < pagesize; ++i)
34500     *(data2 + i) = *(data2 + i) + 1;
34501   data3 = (char *) malloc (pagesize);
34502   if (!data3)
34503     return 1;
34504   if (read (fd, data3, pagesize) != pagesize)
34505     return 1;
34506   for (i = 0; i < pagesize; ++i)
34507     if (*(data + i) != *(data3 + i))
34508       return 1;
34509   close (fd);
34510   return 0;
34511 }
34512 _ACEOF
34513 rm -f conftest$ac_exeext
34514 if { (ac_try="$ac_link"
34515 case "(($ac_try" in
34516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34517   *) ac_try_echo=$ac_try;;
34518 esac
34519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34520   (eval "$ac_link") 2>&5
34521   ac_status=$?
34522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34524   { (case "(($ac_try" in
34525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34526   *) ac_try_echo=$ac_try;;
34527 esac
34528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34529   (eval "$ac_try") 2>&5
34530   ac_status=$?
34531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532   (exit $ac_status); }; }; then
34533   ac_cv_func_mmap_fixed_mapped=yes
34534 else
34535   echo "$as_me: program exited with status $ac_status" >&5
34536 echo "$as_me: failed program was:" >&5
34537 sed 's/^/| /' conftest.$ac_ext >&5
34538
34539 ( exit $ac_status )
34540 ac_cv_func_mmap_fixed_mapped=no
34541 fi
34542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34543 fi
34544
34545
34546 fi
34547 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34548 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34549 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34550
34551 cat >>confdefs.h <<\_ACEOF
34552 #define HAVE_MMAP 1
34553 _ACEOF
34554
34555 fi
34556 rm -f conftest.mmap
34557
34558   { echo "$as_me:$LINENO: checking for mmap of files" >&5
34559 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34560 if test "${ac_cv_func_mmap_file+set}" = set; then
34561   echo $ECHO_N "(cached) $ECHO_C" >&6
34562 else
34563    ac_ext=c
34564 ac_cpp='$CPP $CPPFLAGS'
34565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34568
34569   if test "$cross_compiling" = yes; then
34570   ac_cv_func_mmap_file=no
34571 else
34572   cat >conftest.$ac_ext <<_ACEOF
34573
34574     /* confdefs.h.  */
34575 _ACEOF
34576 cat confdefs.h >>conftest.$ac_ext
34577 cat >>conftest.$ac_ext <<_ACEOF
34578 /* end confdefs.h.  */
34579
34580 #include <sys/types.h>
34581 #include <sys/mman.h>
34582 #include <fcntl.h>
34583
34584 int
34585 main ()
34586 {
34587
34588   int fd;
34589   fd = creat ("foo",0777);
34590   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34591   unlink ("foo");
34592   return (fd != (int) MAP_FAILED);
34593   ;
34594   return 0;
34595 }
34596 _ACEOF
34597 rm -f conftest$ac_exeext
34598 if { (ac_try="$ac_link"
34599 case "(($ac_try" in
34600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34601   *) ac_try_echo=$ac_try;;
34602 esac
34603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34604   (eval "$ac_link") 2>&5
34605   ac_status=$?
34606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34608   { (case "(($ac_try" in
34609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34610   *) ac_try_echo=$ac_try;;
34611 esac
34612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34613   (eval "$ac_try") 2>&5
34614   ac_status=$?
34615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616   (exit $ac_status); }; }; then
34617   ac_cv_func_mmap_file=yes
34618 else
34619   echo "$as_me: program exited with status $ac_status" >&5
34620 echo "$as_me: failed program was:" >&5
34621 sed 's/^/| /' conftest.$ac_ext >&5
34622
34623 ( exit $ac_status )
34624 ac_cv_func_mmap_file=no
34625 fi
34626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34627 fi
34628
34629
34630   ac_ext=c
34631 ac_cpp='$CPP $CPPFLAGS'
34632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34635
34636
34637 fi
34638 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34639 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34640 if test "$ac_cv_func_mmap_file" = yes; then
34641
34642 cat >>confdefs.h <<\_ACEOF
34643 #define HAVE_MMAP_FILE
34644 _ACEOF
34645
34646    MMAP_FILE=yes
34647
34648 fi
34649
34650   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34651 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34652 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34653   echo $ECHO_N "(cached) $ECHO_C" >&6
34654 else
34655   if test "$llvm_cv_os_type" = "Interix" ; then
34656    ac_cv_need_dev_zero_for_mmap=yes
34657  else
34658    ac_cv_need_dev_zero_for_mmap=no
34659  fi
34660
34661 fi
34662 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34663 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34664 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34665
34666 cat >>confdefs.h <<\_ACEOF
34667 #define NEED_DEV_ZERO_FOR_MMAP 1
34668 _ACEOF
34669
34670 fi
34671
34672   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34673   then
34674     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34675 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34676   fi
34677   if test "$ac_cv_func_mmap_file" = "no"
34678   then
34679     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34680 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34681   fi
34682 fi
34683
34684 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34685 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34686 cat >conftest.$ac_ext <<_ACEOF
34687 /* confdefs.h.  */
34688 _ACEOF
34689 cat confdefs.h >>conftest.$ac_ext
34690 cat >>conftest.$ac_ext <<_ACEOF
34691 /* end confdefs.h.  */
34692 int main() {
34693         volatile unsigned long val = 1;
34694         __sync_synchronize();
34695         __sync_val_compare_and_swap(&val, 1, 0);
34696         __sync_add_and_fetch(&val, 1);
34697         __sync_sub_and_fetch(&val, 1);
34698         return 0;
34699       }
34700
34701 _ACEOF
34702 rm -f conftest.$ac_objext conftest$ac_exeext
34703 if { (ac_try="$ac_link"
34704 case "(($ac_try" in
34705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34706   *) ac_try_echo=$ac_try;;
34707 esac
34708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34709   (eval "$ac_link") 2>conftest.er1
34710   ac_status=$?
34711   grep -v '^ *+' conftest.er1 >conftest.err
34712   rm -f conftest.er1
34713   cat conftest.err >&5
34714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34715   (exit $ac_status); } &&
34716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34717   { (case "(($ac_try" in
34718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34719   *) ac_try_echo=$ac_try;;
34720 esac
34721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34722   (eval "$ac_try") 2>&5
34723   ac_status=$?
34724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34725   (exit $ac_status); }; } &&
34726          { ac_try='test -s conftest$ac_exeext'
34727   { (case "(($ac_try" in
34728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34729   *) ac_try_echo=$ac_try;;
34730 esac
34731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34732   (eval "$ac_try") 2>&5
34733   ac_status=$?
34734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34735   (exit $ac_status); }; }; then
34736   { echo "$as_me:$LINENO: result: yes" >&5
34737 echo "${ECHO_T}yes" >&6; }
34738
34739 cat >>confdefs.h <<\_ACEOF
34740 #define LLVM_MULTITHREADED 1
34741 _ACEOF
34742
34743 else
34744   echo "$as_me: failed program was:" >&5
34745 sed 's/^/| /' conftest.$ac_ext >&5
34746
34747         { echo "$as_me:$LINENO: result: no" >&5
34748 echo "${ECHO_T}no" >&6; }
34749
34750 cat >>confdefs.h <<\_ACEOF
34751 #define LLVM_MULTITHREADED 0
34752 _ACEOF
34753
34754   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34755 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34756 fi
34757
34758 rm -f core conftest.err conftest.$ac_objext \
34759       conftest$ac_exeext conftest.$ac_ext
34760
34761
34762
34763 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34764   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34765 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34766 if test "${llvm_cv_linux_mixed+set}" = set; then
34767   echo $ECHO_N "(cached) $ECHO_C" >&6
34768 else
34769    ac_ext=c
34770 ac_cpp='$CPP $CPPFLAGS'
34771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34774
34775   cat >conftest.$ac_ext <<_ACEOF
34776 /* confdefs.h.  */
34777 _ACEOF
34778 cat confdefs.h >>conftest.$ac_ext
34779 cat >>conftest.$ac_ext <<_ACEOF
34780 /* end confdefs.h.  */
34781 #ifndef __x86_64__
34782        error: Not x86-64 even if uname says so!
34783       #endif
34784
34785 int
34786 main ()
34787 {
34788
34789   ;
34790   return 0;
34791 }
34792 _ACEOF
34793 rm -f conftest.$ac_objext
34794 if { (ac_try="$ac_compile"
34795 case "(($ac_try" in
34796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34797   *) ac_try_echo=$ac_try;;
34798 esac
34799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34800   (eval "$ac_compile") 2>conftest.er1
34801   ac_status=$?
34802   grep -v '^ *+' conftest.er1 >conftest.err
34803   rm -f conftest.er1
34804   cat conftest.err >&5
34805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34806   (exit $ac_status); } &&
34807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34808   { (case "(($ac_try" in
34809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34810   *) ac_try_echo=$ac_try;;
34811 esac
34812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34813   (eval "$ac_try") 2>&5
34814   ac_status=$?
34815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34816   (exit $ac_status); }; } &&
34817          { ac_try='test -s conftest.$ac_objext'
34818   { (case "(($ac_try" in
34819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34820   *) ac_try_echo=$ac_try;;
34821 esac
34822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34823   (eval "$ac_try") 2>&5
34824   ac_status=$?
34825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826   (exit $ac_status); }; }; then
34827   llvm_cv_linux_mixed=no
34828 else
34829   echo "$as_me: failed program was:" >&5
34830 sed 's/^/| /' conftest.$ac_ext >&5
34831
34832         llvm_cv_linux_mixed=yes
34833 fi
34834
34835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34836   ac_ext=c
34837 ac_cpp='$CPP $CPPFLAGS'
34838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34841
34842
34843 fi
34844 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34845 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34846
34847   if test "$llvm_cv_linux_mixed" = "yes"; then
34848     llvm_cv_target_arch="x86"
34849     ARCH="x86"
34850   fi
34851 fi
34852
34853
34854 for ac_func in __dso_handle
34855 do
34856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34857 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34859 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34860   echo $ECHO_N "(cached) $ECHO_C" >&6
34861 else
34862   cat >conftest.$ac_ext <<_ACEOF
34863 /* confdefs.h.  */
34864 _ACEOF
34865 cat confdefs.h >>conftest.$ac_ext
34866 cat >>conftest.$ac_ext <<_ACEOF
34867 /* end confdefs.h.  */
34868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34869    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34870 #define $ac_func innocuous_$ac_func
34871
34872 /* System header to define __stub macros and hopefully few prototypes,
34873     which can conflict with char $ac_func (); below.
34874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34875     <limits.h> exists even on freestanding compilers.  */
34876
34877 #ifdef __STDC__
34878 # include <limits.h>
34879 #else
34880 # include <assert.h>
34881 #endif
34882
34883 #undef $ac_func
34884
34885 /* Override any GCC internal prototype to avoid an error.
34886    Use char because int might match the return type of a GCC
34887    builtin and then its argument prototype would still apply.  */
34888 #ifdef __cplusplus
34889 extern "C"
34890 #endif
34891 char $ac_func ();
34892 /* The GNU C library defines this for functions which it implements
34893     to always fail with ENOSYS.  Some functions are actually named
34894     something starting with __ and the normal name is an alias.  */
34895 #if defined __stub_$ac_func || defined __stub___$ac_func
34896 choke me
34897 #endif
34898
34899 int
34900 main ()
34901 {
34902 return $ac_func ();
34903   ;
34904   return 0;
34905 }
34906 _ACEOF
34907 rm -f conftest.$ac_objext conftest$ac_exeext
34908 if { (ac_try="$ac_link"
34909 case "(($ac_try" in
34910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34911   *) ac_try_echo=$ac_try;;
34912 esac
34913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34914   (eval "$ac_link") 2>conftest.er1
34915   ac_status=$?
34916   grep -v '^ *+' conftest.er1 >conftest.err
34917   rm -f conftest.er1
34918   cat conftest.err >&5
34919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34920   (exit $ac_status); } &&
34921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34922   { (case "(($ac_try" in
34923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34924   *) ac_try_echo=$ac_try;;
34925 esac
34926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34927   (eval "$ac_try") 2>&5
34928   ac_status=$?
34929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930   (exit $ac_status); }; } &&
34931          { ac_try='test -s conftest$ac_exeext'
34932   { (case "(($ac_try" in
34933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34934   *) ac_try_echo=$ac_try;;
34935 esac
34936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34937   (eval "$ac_try") 2>&5
34938   ac_status=$?
34939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34940   (exit $ac_status); }; }; then
34941   eval "$as_ac_var=yes"
34942 else
34943   echo "$as_me: failed program was:" >&5
34944 sed 's/^/| /' conftest.$ac_ext >&5
34945
34946         eval "$as_ac_var=no"
34947 fi
34948
34949 rm -f core conftest.err conftest.$ac_objext \
34950       conftest$ac_exeext conftest.$ac_ext
34951 fi
34952 ac_res=`eval echo '${'$as_ac_var'}'`
34953                { echo "$as_me:$LINENO: result: $ac_res" >&5
34954 echo "${ECHO_T}$ac_res" >&6; }
34955 if test `eval echo '${'$as_ac_var'}'` = yes; then
34956   cat >>confdefs.h <<_ACEOF
34957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34958 _ACEOF
34959
34960 fi
34961 done
34962
34963
34964 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34965 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34966 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34967   echo $ECHO_N "(cached) $ECHO_C" >&6
34968 else
34969   llvm_cv_llvmgcc_sanity="no"
34970 if test -x "$LLVMGCC" ; then
34971   cp /dev/null conftest.c
34972   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34973       grep 'target datalayout =' > /dev/null 2>&1
34974   if test $? -eq 0 ; then
34975     llvm_cv_llvmgcc_sanity="yes"
34976   fi
34977   rm conftest.c
34978 fi
34979 fi
34980 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34981 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34982
34983 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34984   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34985 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34986   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34987   LLVMCC1=$llvmcc1path
34988
34989   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34990   LLVMCC1PLUS=$llvmcc1pluspath
34991
34992   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34993   LLVMGCCDIR=$llvmgccdir
34994
34995   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34996   LLVMGCCLIBEXEC=$llvmgcclibexec
34997
34998   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34999   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35000   LLVMGCC_VERSION=$llvmgccversion
35001
35002   LLVMGCC_MAJVERS=$llvmgccmajvers
35003
35004   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35005   LLVMGCC_LANGS=$llvmgcclangs
35006
35007   { echo "$as_me:$LINENO: result: ok" >&5
35008 echo "${ECHO_T}ok" >&6; }
35009 fi
35010
35011 SHLIBEXT=$libltdl_cv_shlibext
35012
35013
35014 # Translate the various configuration directories and other basic
35015 # information into substitutions that will end up in Makefile.config.in
35016 # that these configured values can be used by the makefiles
35017 if test "${prefix}" = "NONE" ; then
35018   prefix="/usr/local"
35019 fi
35020 eval LLVM_PREFIX="${prefix}";
35021 eval LLVM_BINDIR="${prefix}/bin";
35022 eval LLVM_LIBDIR="${prefix}/lib";
35023 eval LLVM_DATADIR="${prefix}/share/llvm";
35024 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35025 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35026 eval LLVM_INCLUDEDIR="${prefix}/include";
35027 eval LLVM_INFODIR="${prefix}/info";
35028 eval LLVM_MANDIR="${prefix}/man";
35029 LLVM_CONFIGTIME=`date`
35030
35031
35032
35033
35034
35035
35036
35037
35038
35039
35040
35041 # Place the various directores into the config.h file as #defines so that we
35042 # can know about the installation paths within LLVM.
35043
35044 cat >>confdefs.h <<_ACEOF
35045 #define LLVM_PREFIX "$LLVM_PREFIX"
35046 _ACEOF
35047
35048
35049 cat >>confdefs.h <<_ACEOF
35050 #define LLVM_BINDIR "$LLVM_BINDIR"
35051 _ACEOF
35052
35053
35054 cat >>confdefs.h <<_ACEOF
35055 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35056 _ACEOF
35057
35058
35059 cat >>confdefs.h <<_ACEOF
35060 #define LLVM_DATADIR "$LLVM_DATADIR"
35061 _ACEOF
35062
35063
35064 cat >>confdefs.h <<_ACEOF
35065 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35066 _ACEOF
35067
35068
35069 cat >>confdefs.h <<_ACEOF
35070 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35071 _ACEOF
35072
35073
35074 cat >>confdefs.h <<_ACEOF
35075 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35076 _ACEOF
35077
35078
35079 cat >>confdefs.h <<_ACEOF
35080 #define LLVM_INFODIR "$LLVM_INFODIR"
35081 _ACEOF
35082
35083
35084 cat >>confdefs.h <<_ACEOF
35085 #define LLVM_MANDIR "$LLVM_MANDIR"
35086 _ACEOF
35087
35088
35089 cat >>confdefs.h <<_ACEOF
35090 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35091 _ACEOF
35092
35093
35094 cat >>confdefs.h <<_ACEOF
35095 #define LLVM_HOSTTRIPLE "$host"
35096 _ACEOF
35097
35098
35099 # Determine which bindings to build.
35100 if test "$BINDINGS_TO_BUILD" = auto ; then
35101   BINDINGS_TO_BUILD=""
35102   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35103     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35104   fi
35105 fi
35106 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35107
35108
35109 # This isn't really configurey, but it avoids having to repeat the list in
35110 # other files.
35111 ALL_BINDINGS=ocaml
35112
35113
35114 # Do any work necessary to ensure that bindings have what they need.
35115 binding_prereqs_failed=0
35116 for a_binding in $BINDINGS_TO_BUILD ; do
35117   case "$a_binding" in
35118   ocaml)
35119     if test "x$OCAMLC" = x ; then
35120       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35121 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35122       binding_prereqs_failed=1
35123     fi
35124     if test "x$OCAMLDEP" = x ; then
35125       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35126 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35127       binding_prereqs_failed=1
35128     fi
35129     if test "x$OCAMLOPT" = x ; then
35130       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35131 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35132           fi
35133     if test "x$with_ocaml_libdir" != xauto ; then
35134       OCAML_LIBDIR=$with_ocaml_libdir
35135
35136     else
35137       ocaml_stdlib="`"$OCAMLC" -where`"
35138       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35139       then
35140         # ocaml stdlib is beneath our prefix; use stdlib
35141         OCAML_LIBDIR=$ocaml_stdlib
35142
35143       else
35144         # ocaml stdlib is outside our prefix; use libdir/ocaml
35145         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35146
35147       fi
35148     fi
35149     ;;
35150   esac
35151 done
35152 if test "$binding_prereqs_failed" = 1 ; then
35153   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35154 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35155    { (exit 1); exit 1; }; }
35156 fi
35157
35158 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35159 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35160 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35161   echo $ECHO_N "(cached) $ECHO_C" >&6
35162 else
35163    ac_ext=cpp
35164 ac_cpp='$CXXCPP $CPPFLAGS'
35165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35168
35169   oldcxxflags="$CXXFLAGS"
35170   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35171   cat >conftest.$ac_ext <<_ACEOF
35172 /* confdefs.h.  */
35173 _ACEOF
35174 cat confdefs.h >>conftest.$ac_ext
35175 cat >>conftest.$ac_ext <<_ACEOF
35176 /* end confdefs.h.  */
35177
35178 int
35179 main ()
35180 {
35181
35182   ;
35183   return 0;
35184 }
35185 _ACEOF
35186 rm -f conftest.$ac_objext
35187 if { (ac_try="$ac_compile"
35188 case "(($ac_try" in
35189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35190   *) ac_try_echo=$ac_try;;
35191 esac
35192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35193   (eval "$ac_compile") 2>conftest.er1
35194   ac_status=$?
35195   grep -v '^ *+' conftest.er1 >conftest.err
35196   rm -f conftest.er1
35197   cat conftest.err >&5
35198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35199   (exit $ac_status); } &&
35200          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35201   { (case "(($ac_try" in
35202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35203   *) ac_try_echo=$ac_try;;
35204 esac
35205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35206   (eval "$ac_try") 2>&5
35207   ac_status=$?
35208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35209   (exit $ac_status); }; } &&
35210          { ac_try='test -s conftest.$ac_objext'
35211   { (case "(($ac_try" in
35212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35213   *) ac_try_echo=$ac_try;;
35214 esac
35215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35216   (eval "$ac_try") 2>&5
35217   ac_status=$?
35218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35219   (exit $ac_status); }; }; then
35220   llvm_cv_cxx_visibility_inlines_hidden=yes
35221 else
35222   echo "$as_me: failed program was:" >&5
35223 sed 's/^/| /' conftest.$ac_ext >&5
35224
35225         llvm_cv_cxx_visibility_inlines_hidden=no
35226 fi
35227
35228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35229   CXXFLAGS="$oldcxxflags"
35230   ac_ext=c
35231 ac_cpp='$CPP $CPPFLAGS'
35232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35235
35236
35237 fi
35238 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35239 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35240 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35241   ENABLE_VISIBILITY_INLINES_HIDDEN=1
35242
35243 else
35244   ENABLE_VISIBILITY_INLINES_HIDDEN=0
35245
35246 fi
35247
35248
35249 if test "$llvm_cv_link_use_r" = "yes" ; then
35250   RPATH="-Wl,-R"
35251 else
35252   RPATH="-Wl,-rpath"
35253 fi
35254
35255
35256 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35257   RDYNAMIC="-Wl,-export-dynamic"
35258 else
35259   RDYNAMIC=""
35260 fi
35261
35262
35263
35264 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35265
35266 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35267
35268 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35269
35270 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35271
35272 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35273
35274
35275 ac_config_files="$ac_config_files Makefile.config"
35276
35277
35278 ac_config_files="$ac_config_files llvm.spec"
35279
35280
35281 ac_config_files="$ac_config_files docs/doxygen.cfg"
35282
35283
35284 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35285
35286
35287 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35288
35289
35290 ac_config_commands="$ac_config_commands setup"
35291
35292 ac_config_commands="$ac_config_commands Makefile"
35293
35294
35295 ac_config_commands="$ac_config_commands Makefile.common"
35296
35297
35298 ac_config_commands="$ac_config_commands examples/Makefile"
35299
35300
35301 ac_config_commands="$ac_config_commands lib/Makefile"
35302
35303
35304 ac_config_commands="$ac_config_commands runtime/Makefile"
35305
35306
35307 ac_config_commands="$ac_config_commands test/Makefile"
35308
35309
35310 ac_config_commands="$ac_config_commands test/Makefile.tests"
35311
35312
35313 ac_config_commands="$ac_config_commands unittests/Makefile"
35314
35315
35316 ac_config_commands="$ac_config_commands tools/Makefile"
35317
35318
35319 ac_config_commands="$ac_config_commands utils/Makefile"
35320
35321
35322 ac_config_commands="$ac_config_commands projects/Makefile"
35323
35324
35325 ac_config_commands="$ac_config_commands bindings/Makefile"
35326
35327
35328 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35329
35330
35331
35332 cat >confcache <<\_ACEOF
35333 # This file is a shell script that caches the results of configure
35334 # tests run on this system so they can be shared between configure
35335 # scripts and configure runs, see configure's option --config-cache.
35336 # It is not useful on other systems.  If it contains results you don't
35337 # want to keep, you may remove or edit it.
35338 #
35339 # config.status only pays attention to the cache file if you give it
35340 # the --recheck option to rerun configure.
35341 #
35342 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35343 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35344 # following values.
35345
35346 _ACEOF
35347
35348 # The following way of writing the cache mishandles newlines in values,
35349 # but we know of no workaround that is simple, portable, and efficient.
35350 # So, we kill variables containing newlines.
35351 # Ultrix sh set writes to stderr and can't be redirected directly,
35352 # and sets the high bit in the cache file unless we assign to the vars.
35353 (
35354   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35355     eval ac_val=\$$ac_var
35356     case $ac_val in #(
35357     *${as_nl}*)
35358       case $ac_var in #(
35359       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35360 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35361       esac
35362       case $ac_var in #(
35363       _ | IFS | as_nl) ;; #(
35364       *) $as_unset $ac_var ;;
35365       esac ;;
35366     esac
35367   done
35368
35369   (set) 2>&1 |
35370     case $as_nl`(ac_space=' '; set) 2>&1` in #(
35371     *${as_nl}ac_space=\ *)
35372       # `set' does not quote correctly, so add quotes (double-quote
35373       # substitution turns \\\\ into \\, and sed turns \\ into \).
35374       sed -n \
35375         "s/'/'\\\\''/g;
35376           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35377       ;; #(
35378     *)
35379       # `set' quotes correctly as required by POSIX, so do not add quotes.
35380       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35381       ;;
35382     esac |
35383     sort
35384 ) |
35385   sed '
35386      /^ac_cv_env_/b end
35387      t clear
35388      :clear
35389      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35390      t end
35391      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35392      :end' >>confcache
35393 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35394   if test -w "$cache_file"; then
35395     test "x$cache_file" != "x/dev/null" &&
35396       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35397 echo "$as_me: updating cache $cache_file" >&6;}
35398     cat confcache >$cache_file
35399   else
35400     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35401 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35402   fi
35403 fi
35404 rm -f confcache
35405
35406 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35407 # Let make expand exec_prefix.
35408 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35409
35410 DEFS=-DHAVE_CONFIG_H
35411
35412 ac_libobjs=
35413 ac_ltlibobjs=
35414 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35415   # 1. Remove the extension, and $U if already installed.
35416   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35417   ac_i=`echo "$ac_i" | sed "$ac_script"`
35418   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35419   #    will be set to the directory where LIBOBJS objects are built.
35420   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35421   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35422 done
35423 LIBOBJS=$ac_libobjs
35424
35425 LTLIBOBJS=$ac_ltlibobjs
35426
35427
35428 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35429   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35430 Usually this means the macro was only invoked conditionally." >&5
35431 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35432 Usually this means the macro was only invoked conditionally." >&2;}
35433    { (exit 1); exit 1; }; }
35434 fi
35435 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35436   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35437 Usually this means the macro was only invoked conditionally." >&5
35438 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35439 Usually this means the macro was only invoked conditionally." >&2;}
35440    { (exit 1); exit 1; }; }
35441 fi
35442
35443 : ${CONFIG_STATUS=./config.status}
35444 ac_clean_files_save=$ac_clean_files
35445 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35446 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35447 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35448 cat >$CONFIG_STATUS <<_ACEOF
35449 #! $SHELL
35450 # Generated by $as_me.
35451 # Run this file to recreate the current configuration.
35452 # Compiler output produced by configure, useful for debugging
35453 # configure, is in config.log if it exists.
35454
35455 debug=false
35456 ac_cs_recheck=false
35457 ac_cs_silent=false
35458 SHELL=\${CONFIG_SHELL-$SHELL}
35459 _ACEOF
35460
35461 cat >>$CONFIG_STATUS <<\_ACEOF
35462 ## --------------------- ##
35463 ## M4sh Initialization.  ##
35464 ## --------------------- ##
35465
35466 # Be Bourne compatible
35467 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35468   emulate sh
35469   NULLCMD=:
35470   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35471   # is contrary to our usage.  Disable this feature.
35472   alias -g '${1+"$@"}'='"$@"'
35473   setopt NO_GLOB_SUBST
35474 else
35475   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35476 fi
35477 BIN_SH=xpg4; export BIN_SH # for Tru64
35478 DUALCASE=1; export DUALCASE # for MKS sh
35479
35480
35481 # PATH needs CR
35482 # Avoid depending upon Character Ranges.
35483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35486 as_cr_digits='0123456789'
35487 as_cr_alnum=$as_cr_Letters$as_cr_digits
35488
35489 # The user is always right.
35490 if test "${PATH_SEPARATOR+set}" != set; then
35491   echo "#! /bin/sh" >conf$$.sh
35492   echo  "exit 0"   >>conf$$.sh
35493   chmod +x conf$$.sh
35494   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35495     PATH_SEPARATOR=';'
35496   else
35497     PATH_SEPARATOR=:
35498   fi
35499   rm -f conf$$.sh
35500 fi
35501
35502 # Support unset when possible.
35503 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35504   as_unset=unset
35505 else
35506   as_unset=false
35507 fi
35508
35509
35510 # IFS
35511 # We need space, tab and new line, in precisely that order.  Quoting is
35512 # there to prevent editors from complaining about space-tab.
35513 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35514 # splitting by setting IFS to empty value.)
35515 as_nl='
35516 '
35517 IFS=" ""        $as_nl"
35518
35519 # Find who we are.  Look in the path if we contain no directory separator.
35520 case $0 in
35521   *[\\/]* ) as_myself=$0 ;;
35522   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35523 for as_dir in $PATH
35524 do
35525   IFS=$as_save_IFS
35526   test -z "$as_dir" && as_dir=.
35527   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35528 done
35529 IFS=$as_save_IFS
35530
35531      ;;
35532 esac
35533 # We did not find ourselves, most probably we were run as `sh COMMAND'
35534 # in which case we are not to be found in the path.
35535 if test "x$as_myself" = x; then
35536   as_myself=$0
35537 fi
35538 if test ! -f "$as_myself"; then
35539   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35540   { (exit 1); exit 1; }
35541 fi
35542
35543 # Work around bugs in pre-3.0 UWIN ksh.
35544 for as_var in ENV MAIL MAILPATH
35545 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35546 done
35547 PS1='$ '
35548 PS2='> '
35549 PS4='+ '
35550
35551 # NLS nuisances.
35552 for as_var in \
35553   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35554   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35555   LC_TELEPHONE LC_TIME
35556 do
35557   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35558     eval $as_var=C; export $as_var
35559   else
35560     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35561   fi
35562 done
35563
35564 # Required to use basename.
35565 if expr a : '\(a\)' >/dev/null 2>&1 &&
35566    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35567   as_expr=expr
35568 else
35569   as_expr=false
35570 fi
35571
35572 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35573   as_basename=basename
35574 else
35575   as_basename=false
35576 fi
35577
35578
35579 # Name of the executable.
35580 as_me=`$as_basename -- "$0" ||
35581 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35582          X"$0" : 'X\(//\)$' \| \
35583          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35584 echo X/"$0" |
35585     sed '/^.*\/\([^/][^/]*\)\/*$/{
35586             s//\1/
35587             q
35588           }
35589           /^X\/\(\/\/\)$/{
35590             s//\1/
35591             q
35592           }
35593           /^X\/\(\/\).*/{
35594             s//\1/
35595             q
35596           }
35597           s/.*/./; q'`
35598
35599 # CDPATH.
35600 $as_unset CDPATH
35601
35602
35603
35604   as_lineno_1=$LINENO
35605   as_lineno_2=$LINENO
35606   test "x$as_lineno_1" != "x$as_lineno_2" &&
35607   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35608
35609   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35610   # uniformly replaced by the line number.  The first 'sed' inserts a
35611   # line-number line after each line using $LINENO; the second 'sed'
35612   # does the real work.  The second script uses 'N' to pair each
35613   # line-number line with the line containing $LINENO, and appends
35614   # trailing '-' during substitution so that $LINENO is not a special
35615   # case at line end.
35616   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35617   # scripts with optimization help from Paolo Bonzini.  Blame Lee
35618   # E. McMahon (1931-1989) for sed's syntax.  :-)
35619   sed -n '
35620     p
35621     /[$]LINENO/=
35622   ' <$as_myself |
35623     sed '
35624       s/[$]LINENO.*/&-/
35625       t lineno
35626       b
35627       :lineno
35628       N
35629       :loop
35630       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35631       t loop
35632       s/-\n.*//
35633     ' >$as_me.lineno &&
35634   chmod +x "$as_me.lineno" ||
35635     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35636    { (exit 1); exit 1; }; }
35637
35638   # Don't try to exec as it changes $[0], causing all sort of problems
35639   # (the dirname of $[0] is not the place where we might find the
35640   # original and so on.  Autoconf is especially sensitive to this).
35641   . "./$as_me.lineno"
35642   # Exit status is that of the last command.
35643   exit
35644 }
35645
35646
35647 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35648   as_dirname=dirname
35649 else
35650   as_dirname=false
35651 fi
35652
35653 ECHO_C= ECHO_N= ECHO_T=
35654 case `echo -n x` in
35655 -n*)
35656   case `echo 'x\c'` in
35657   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35658   *)   ECHO_C='\c';;
35659   esac;;
35660 *)
35661   ECHO_N='-n';;
35662 esac
35663
35664 if expr a : '\(a\)' >/dev/null 2>&1 &&
35665    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35666   as_expr=expr
35667 else
35668   as_expr=false
35669 fi
35670
35671 rm -f conf$$ conf$$.exe conf$$.file
35672 if test -d conf$$.dir; then
35673   rm -f conf$$.dir/conf$$.file
35674 else
35675   rm -f conf$$.dir
35676   mkdir conf$$.dir
35677 fi
35678 echo >conf$$.file
35679 if ln -s conf$$.file conf$$ 2>/dev/null; then
35680   as_ln_s='ln -s'
35681   # ... but there are two gotchas:
35682   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35683   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35684   # In both cases, we have to default to `cp -p'.
35685   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35686     as_ln_s='cp -p'
35687 elif ln conf$$.file conf$$ 2>/dev/null; then
35688   as_ln_s=ln
35689 else
35690   as_ln_s='cp -p'
35691 fi
35692 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35693 rmdir conf$$.dir 2>/dev/null
35694
35695 if mkdir -p . 2>/dev/null; then
35696   as_mkdir_p=:
35697 else
35698   test -d ./-p && rmdir ./-p
35699   as_mkdir_p=false
35700 fi
35701
35702 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
35703 # systems may use methods other than mode bits to determine executability.
35704 cat >conf$$.file <<_ASEOF
35705 #! /bin/sh
35706 exit 0
35707 _ASEOF
35708 chmod +x conf$$.file
35709 if test -x conf$$.file >/dev/null 2>&1; then
35710   as_executable_p="test -x"
35711 else
35712   as_executable_p=:
35713 fi
35714 rm -f conf$$.file
35715
35716 # Sed expression to map a string onto a valid CPP name.
35717 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35718
35719 # Sed expression to map a string onto a valid variable name.
35720 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35721
35722
35723 exec 6>&1
35724
35725 # Save the log message, to keep $[0] and so on meaningful, and to
35726 # report actual input values of CONFIG_FILES etc. instead of their
35727 # values after options handling.
35728 ac_log="
35729 This file was extended by llvm $as_me 2.7svn, which was
35730 generated by GNU Autoconf 2.60.  Invocation command line was
35731
35732   CONFIG_FILES    = $CONFIG_FILES
35733   CONFIG_HEADERS  = $CONFIG_HEADERS
35734   CONFIG_LINKS    = $CONFIG_LINKS
35735   CONFIG_COMMANDS = $CONFIG_COMMANDS
35736   $ $0 $@
35737
35738 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35739 "
35740
35741 _ACEOF
35742
35743 cat >>$CONFIG_STATUS <<_ACEOF
35744 # Files that config.status was made for.
35745 config_files="$ac_config_files"
35746 config_headers="$ac_config_headers"
35747 config_commands="$ac_config_commands"
35748
35749 _ACEOF
35750
35751 cat >>$CONFIG_STATUS <<\_ACEOF
35752 ac_cs_usage="\
35753 \`$as_me' instantiates files from templates according to the
35754 current configuration.
35755
35756 Usage: $0 [OPTIONS] [FILE]...
35757
35758   -h, --help       print this help, then exit
35759   -V, --version    print version number, then exit
35760   -q, --quiet      do not print progress messages
35761   -d, --debug      don't remove temporary files
35762       --recheck    update $as_me by reconfiguring in the same conditions
35763   --file=FILE[:TEMPLATE]
35764                    instantiate the configuration file FILE
35765   --header=FILE[:TEMPLATE]
35766                    instantiate the configuration header FILE
35767
35768 Configuration files:
35769 $config_files
35770
35771 Configuration headers:
35772 $config_headers
35773
35774 Configuration commands:
35775 $config_commands
35776
35777 Report bugs to <bug-autoconf@gnu.org>."
35778
35779 _ACEOF
35780 cat >>$CONFIG_STATUS <<_ACEOF
35781 ac_cs_version="\\
35782 llvm config.status 2.7svn
35783 configured by $0, generated by GNU Autoconf 2.60,
35784   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35785
35786 Copyright (C) 2006 Free Software Foundation, Inc.
35787 This config.status script is free software; the Free Software Foundation
35788 gives unlimited permission to copy, distribute and modify it."
35789
35790 ac_pwd='$ac_pwd'
35791 srcdir='$srcdir'
35792 INSTALL='$INSTALL'
35793 _ACEOF
35794
35795 cat >>$CONFIG_STATUS <<\_ACEOF
35796 # If no file are specified by the user, then we need to provide default
35797 # value.  By we need to know if files were specified by the user.
35798 ac_need_defaults=:
35799 while test $# != 0
35800 do
35801   case $1 in
35802   --*=*)
35803     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35804     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35805     ac_shift=:
35806     ;;
35807   *)
35808     ac_option=$1
35809     ac_optarg=$2
35810     ac_shift=shift
35811     ;;
35812   esac
35813
35814   case $ac_option in
35815   # Handling of the options.
35816   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35817     ac_cs_recheck=: ;;
35818   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35819     echo "$ac_cs_version"; exit ;;
35820   --debug | --debu | --deb | --de | --d | -d )
35821     debug=: ;;
35822   --file | --fil | --fi | --f )
35823     $ac_shift
35824     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35825     ac_need_defaults=false;;
35826   --header | --heade | --head | --hea )
35827     $ac_shift
35828     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35829     ac_need_defaults=false;;
35830   --he | --h)
35831     # Conflict between --help and --header
35832     { echo "$as_me: error: ambiguous option: $1
35833 Try \`$0 --help' for more information." >&2
35834    { (exit 1); exit 1; }; };;
35835   --help | --hel | -h )
35836     echo "$ac_cs_usage"; exit ;;
35837   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35838   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35839     ac_cs_silent=: ;;
35840
35841   # This is an error.
35842   -*) { echo "$as_me: error: unrecognized option: $1
35843 Try \`$0 --help' for more information." >&2
35844    { (exit 1); exit 1; }; } ;;
35845
35846   *) ac_config_targets="$ac_config_targets $1"
35847      ac_need_defaults=false ;;
35848
35849   esac
35850   shift
35851 done
35852
35853 ac_configure_extra_args=
35854
35855 if $ac_cs_silent; then
35856   exec 6>/dev/null
35857   ac_configure_extra_args="$ac_configure_extra_args --silent"
35858 fi
35859
35860 _ACEOF
35861 cat >>$CONFIG_STATUS <<_ACEOF
35862 if \$ac_cs_recheck; then
35863   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35864   CONFIG_SHELL=$SHELL
35865   export CONFIG_SHELL
35866   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35867 fi
35868
35869 _ACEOF
35870 cat >>$CONFIG_STATUS <<\_ACEOF
35871 exec 5>>config.log
35872 {
35873   echo
35874   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35875 ## Running $as_me. ##
35876 _ASBOX
35877   echo "$ac_log"
35878 } >&5
35879
35880 _ACEOF
35881 cat >>$CONFIG_STATUS <<_ACEOF
35882 #
35883 # INIT-COMMANDS
35884 #
35885 llvm_src="${srcdir}"
35886
35887 _ACEOF
35888
35889 cat >>$CONFIG_STATUS <<\_ACEOF
35890
35891 # Handling of arguments.
35892 for ac_config_target in $ac_config_targets
35893 do
35894   case $ac_config_target in
35895     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35896     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35897     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35898     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35899     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35900     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35901     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35902     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35903     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35904     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35905     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35906     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35907     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35908     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35909     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35910     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35911     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35912     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35913     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35914     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35915     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35916     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35917     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35918     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35919
35920   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35921 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35922    { (exit 1); exit 1; }; };;
35923   esac
35924 done
35925
35926
35927 # If the user did not use the arguments to specify the items to instantiate,
35928 # then the envvar interface is used.  Set only those that are not.
35929 # We use the long form for the default assignment because of an extremely
35930 # bizarre bug on SunOS 4.1.3.
35931 if $ac_need_defaults; then
35932   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35933   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35934   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35935 fi
35936
35937 # Have a temporary directory for convenience.  Make it in the build tree
35938 # simply because there is no reason against having it here, and in addition,
35939 # creating and moving files from /tmp can sometimes cause problems.
35940 # Hook for its removal unless debugging.
35941 # Note that there is a small window in which the directory will not be cleaned:
35942 # after its creation but before its name has been assigned to `$tmp'.
35943 $debug ||
35944 {
35945   tmp=
35946   trap 'exit_status=$?
35947   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35948 ' 0
35949   trap '{ (exit 1); exit 1; }' 1 2 13 15
35950 }
35951 # Create a (secure) tmp directory for tmp files.
35952
35953 {
35954   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35955   test -n "$tmp" && test -d "$tmp"
35956 }  ||
35957 {
35958   tmp=./conf$$-$RANDOM
35959   (umask 077 && mkdir "$tmp")
35960 } ||
35961 {
35962    echo "$me: cannot create a temporary directory in ." >&2
35963    { (exit 1); exit 1; }
35964 }
35965
35966 #
35967 # Set up the sed scripts for CONFIG_FILES section.
35968 #
35969
35970 # No need to generate the scripts if there are no CONFIG_FILES.
35971 # This happens for instance when ./config.status config.h
35972 if test -n "$CONFIG_FILES"; then
35973
35974 _ACEOF
35975
35976
35977
35978 ac_delim='%!_!# '
35979 for ac_last_try in false false false false false :; do
35980   cat >conf$$subs.sed <<_ACEOF
35981 SHELL!$SHELL$ac_delim
35982 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35983 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35984 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35985 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35986 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35987 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35988 exec_prefix!$exec_prefix$ac_delim
35989 prefix!$prefix$ac_delim
35990 program_transform_name!$program_transform_name$ac_delim
35991 bindir!$bindir$ac_delim
35992 sbindir!$sbindir$ac_delim
35993 libexecdir!$libexecdir$ac_delim
35994 datarootdir!$datarootdir$ac_delim
35995 datadir!$datadir$ac_delim
35996 sysconfdir!$sysconfdir$ac_delim
35997 sharedstatedir!$sharedstatedir$ac_delim
35998 localstatedir!$localstatedir$ac_delim
35999 includedir!$includedir$ac_delim
36000 oldincludedir!$oldincludedir$ac_delim
36001 docdir!$docdir$ac_delim
36002 infodir!$infodir$ac_delim
36003 htmldir!$htmldir$ac_delim
36004 dvidir!$dvidir$ac_delim
36005 pdfdir!$pdfdir$ac_delim
36006 psdir!$psdir$ac_delim
36007 libdir!$libdir$ac_delim
36008 localedir!$localedir$ac_delim
36009 mandir!$mandir$ac_delim
36010 DEFS!$DEFS$ac_delim
36011 ECHO_C!$ECHO_C$ac_delim
36012 ECHO_N!$ECHO_N$ac_delim
36013 ECHO_T!$ECHO_T$ac_delim
36014 LIBS!$LIBS$ac_delim
36015 build_alias!$build_alias$ac_delim
36016 host_alias!$host_alias$ac_delim
36017 target_alias!$target_alias$ac_delim
36018 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36019 subdirs!$subdirs$ac_delim
36020 build!$build$ac_delim
36021 build_cpu!$build_cpu$ac_delim
36022 build_vendor!$build_vendor$ac_delim
36023 build_os!$build_os$ac_delim
36024 host!$host$ac_delim
36025 host_cpu!$host_cpu$ac_delim
36026 host_vendor!$host_vendor$ac_delim
36027 host_os!$host_os$ac_delim
36028 target!$target$ac_delim
36029 target_cpu!$target_cpu$ac_delim
36030 target_vendor!$target_vendor$ac_delim
36031 target_os!$target_os$ac_delim
36032 OS!$OS$ac_delim
36033 HOST_OS!$HOST_OS$ac_delim
36034 TARGET_OS!$TARGET_OS$ac_delim
36035 LINKALL!$LINKALL$ac_delim
36036 NOLINKALL!$NOLINKALL$ac_delim
36037 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36038 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36039 ARCH!$ARCH$ac_delim
36040 ENDIAN!$ENDIAN$ac_delim
36041 CC!$CC$ac_delim
36042 CFLAGS!$CFLAGS$ac_delim
36043 LDFLAGS!$LDFLAGS$ac_delim
36044 CPPFLAGS!$CPPFLAGS$ac_delim
36045 ac_ct_CC!$ac_ct_CC$ac_delim
36046 EXEEXT!$EXEEXT$ac_delim
36047 OBJEXT!$OBJEXT$ac_delim
36048 CPP!$CPP$ac_delim
36049 GREP!$GREP$ac_delim
36050 EGREP!$EGREP$ac_delim
36051 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36052 BUILD_CC!$BUILD_CC$ac_delim
36053 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36054 BUILD_CXX!$BUILD_CXX$ac_delim
36055 CVSBUILD!$CVSBUILD$ac_delim
36056 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36057 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36058 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36059 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36060 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36061 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36062 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
36063 JIT!$JIT$ac_delim
36064 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36065 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36066 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36067 ENABLE_PIC!$ENABLE_PIC$ac_delim
36068 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36069 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36070 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36071 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36072 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36073 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36074 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36075 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36076 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36077 CXX!$CXX$ac_delim
36078 _ACEOF
36079
36080   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36081     break
36082   elif $ac_last_try; then
36083     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36084 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36085    { (exit 1); exit 1; }; }
36086   else
36087     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36088   fi
36089 done
36090
36091 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36092 if test -n "$ac_eof"; then
36093   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36094   ac_eof=`expr $ac_eof + 1`
36095 fi
36096
36097 cat >>$CONFIG_STATUS <<_ACEOF
36098 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36100 _ACEOF
36101 sed '
36102 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36103 s/^/s,@/; s/!/@,|#_!!_#|/
36104 :n
36105 t n
36106 s/'"$ac_delim"'$/,g/; t
36107 s/$/\\/; p
36108 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36109 ' >>$CONFIG_STATUS <conf$$subs.sed
36110 rm -f conf$$subs.sed
36111 cat >>$CONFIG_STATUS <<_ACEOF
36112 CEOF$ac_eof
36113 _ACEOF
36114
36115
36116 ac_delim='%!_!# '
36117 for ac_last_try in false false false false false :; do
36118   cat >conf$$subs.sed <<_ACEOF
36119 CXXFLAGS!$CXXFLAGS$ac_delim
36120 ac_ct_CXX!$ac_ct_CXX$ac_delim
36121 NM!$NM$ac_delim
36122 ifGNUmake!$ifGNUmake$ac_delim
36123 LN_S!$LN_S$ac_delim
36124 CMP!$CMP$ac_delim
36125 CP!$CP$ac_delim
36126 DATE!$DATE$ac_delim
36127 FIND!$FIND$ac_delim
36128 MKDIR!$MKDIR$ac_delim
36129 MV!$MV$ac_delim
36130 RANLIB!$RANLIB$ac_delim
36131 RM!$RM$ac_delim
36132 SED!$SED$ac_delim
36133 TAR!$TAR$ac_delim
36134 BINPWD!$BINPWD$ac_delim
36135 GRAPHVIZ!$GRAPHVIZ$ac_delim
36136 DOT!$DOT$ac_delim
36137 FDP!$FDP$ac_delim
36138 NEATO!$NEATO$ac_delim
36139 TWOPI!$TWOPI$ac_delim
36140 CIRCO!$CIRCO$ac_delim
36141 GV!$GV$ac_delim
36142 DOTTY!$DOTTY$ac_delim
36143 PERL!$PERL$ac_delim
36144 HAVE_PERL!$HAVE_PERL$ac_delim
36145 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36146 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36147 INSTALL_DATA!$INSTALL_DATA$ac_delim
36148 BZIP2!$BZIP2$ac_delim
36149 DOXYGEN!$DOXYGEN$ac_delim
36150 GROFF!$GROFF$ac_delim
36151 GZIP!$GZIP$ac_delim
36152 POD2HTML!$POD2HTML$ac_delim
36153 POD2MAN!$POD2MAN$ac_delim
36154 RUNTEST!$RUNTEST$ac_delim
36155 TCLSH!$TCLSH$ac_delim
36156 ZIP!$ZIP$ac_delim
36157 OCAMLC!$OCAMLC$ac_delim
36158 OCAMLOPT!$OCAMLOPT$ac_delim
36159 OCAMLDEP!$OCAMLDEP$ac_delim
36160 OCAMLDOC!$OCAMLDOC$ac_delim
36161 GAS!$GAS$ac_delim
36162 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36163 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36164 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36165 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36166 LIBADD_DL!$LIBADD_DL$ac_delim
36167 ECHO!$ECHO$ac_delim
36168 AR!$AR$ac_delim
36169 STRIP!$STRIP$ac_delim
36170 CXXCPP!$CXXCPP$ac_delim
36171 F77!$F77$ac_delim
36172 FFLAGS!$FFLAGS$ac_delim
36173 ac_ct_F77!$ac_ct_F77$ac_delim
36174 LIBTOOL!$LIBTOOL$ac_delim
36175 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36176 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36177 LLVMGCC!$LLVMGCC$ac_delim
36178 LLVMGXX!$LLVMGXX$ac_delim
36179 USE_UDIS86!$USE_UDIS86$ac_delim
36180 USE_OPROFILE!$USE_OPROFILE$ac_delim
36181 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36182 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36183 ALLOCA!$ALLOCA$ac_delim
36184 MMAP_FILE!$MMAP_FILE$ac_delim
36185 LLVMCC1!$LLVMCC1$ac_delim
36186 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36187 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36188 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36189 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36190 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36191 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36192 SHLIBEXT!$SHLIBEXT$ac_delim
36193 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36194 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36195 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36196 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36197 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36198 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36199 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36200 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36201 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36202 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36203 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36204 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36205 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36206 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36207 RPATH!$RPATH$ac_delim
36208 RDYNAMIC!$RDYNAMIC$ac_delim
36209 LIBOBJS!$LIBOBJS$ac_delim
36210 LTLIBOBJS!$LTLIBOBJS$ac_delim
36211 _ACEOF
36212
36213   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
36214     break
36215   elif $ac_last_try; then
36216     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36217 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36218    { (exit 1); exit 1; }; }
36219   else
36220     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36221   fi
36222 done
36223
36224 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36225 if test -n "$ac_eof"; then
36226   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36227   ac_eof=`expr $ac_eof + 1`
36228 fi
36229
36230 cat >>$CONFIG_STATUS <<_ACEOF
36231 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36232 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36233 _ACEOF
36234 sed '
36235 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36236 s/^/s,@/; s/!/@,|#_!!_#|/
36237 :n
36238 t n
36239 s/'"$ac_delim"'$/,g/; t
36240 s/$/\\/; p
36241 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36242 ' >>$CONFIG_STATUS <conf$$subs.sed
36243 rm -f conf$$subs.sed
36244 cat >>$CONFIG_STATUS <<_ACEOF
36245 :end
36246 s/|#_!!_#|//g
36247 CEOF$ac_eof
36248 _ACEOF
36249
36250
36251 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36252 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36253 # trailing colons and then remove the whole line if VPATH becomes empty
36254 # (actually we leave an empty line to preserve line numbers).
36255 if test "x$srcdir" = x.; then
36256   ac_vpsub='/^[  ]*VPATH[        ]*=/{
36257 s/:*\$(srcdir):*/:/
36258 s/:*\${srcdir}:*/:/
36259 s/:*@srcdir@:*/:/
36260 s/^\([^=]*=[     ]*\):*/\1/
36261 s/:*$//
36262 s/^[^=]*=[       ]*$//
36263 }'
36264 fi
36265
36266 cat >>$CONFIG_STATUS <<\_ACEOF
36267 fi # test -n "$CONFIG_FILES"
36268
36269
36270 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
36271 do
36272   case $ac_tag in
36273   :[FHLC]) ac_mode=$ac_tag; continue;;
36274   esac
36275   case $ac_mode$ac_tag in
36276   :[FHL]*:*);;
36277   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36278 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36279    { (exit 1); exit 1; }; };;
36280   :[FH]-) ac_tag=-:-;;
36281   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36282   esac
36283   ac_save_IFS=$IFS
36284   IFS=:
36285   set x $ac_tag
36286   IFS=$ac_save_IFS
36287   shift
36288   ac_file=$1
36289   shift
36290
36291   case $ac_mode in
36292   :L) ac_source=$1;;
36293   :[FH])
36294     ac_file_inputs=
36295     for ac_f
36296     do
36297       case $ac_f in
36298       -) ac_f="$tmp/stdin";;
36299       *) # Look for the file first in the build tree, then in the source tree
36300          # (if the path is not absolute).  The absolute path cannot be DOS-style,
36301          # because $ac_f cannot contain `:'.
36302          test -f "$ac_f" ||
36303            case $ac_f in
36304            [\\/$]*) false;;
36305            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36306            esac ||
36307            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36308 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36309    { (exit 1); exit 1; }; };;
36310       esac
36311       ac_file_inputs="$ac_file_inputs $ac_f"
36312     done
36313
36314     # Let's still pretend it is `configure' which instantiates (i.e., don't
36315     # use $as_me), people would be surprised to read:
36316     #    /* config.h.  Generated by config.status.  */
36317     configure_input="Generated from "`IFS=:
36318           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36319     if test x"$ac_file" != x-; then
36320       configure_input="$ac_file.  $configure_input"
36321       { echo "$as_me:$LINENO: creating $ac_file" >&5
36322 echo "$as_me: creating $ac_file" >&6;}
36323     fi
36324
36325     case $ac_tag in
36326     *:-:* | *:-) cat >"$tmp/stdin";;
36327     esac
36328     ;;
36329   esac
36330
36331   ac_dir=`$as_dirname -- "$ac_file" ||
36332 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36333          X"$ac_file" : 'X\(//\)[^/]' \| \
36334          X"$ac_file" : 'X\(//\)$' \| \
36335          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36336 echo X"$ac_file" |
36337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36338             s//\1/
36339             q
36340           }
36341           /^X\(\/\/\)[^/].*/{
36342             s//\1/
36343             q
36344           }
36345           /^X\(\/\/\)$/{
36346             s//\1/
36347             q
36348           }
36349           /^X\(\/\).*/{
36350             s//\1/
36351             q
36352           }
36353           s/.*/./; q'`
36354   { as_dir="$ac_dir"
36355   case $as_dir in #(
36356   -*) as_dir=./$as_dir;;
36357   esac
36358   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36359     as_dirs=
36360     while :; do
36361       case $as_dir in #(
36362       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36363       *) as_qdir=$as_dir;;
36364       esac
36365       as_dirs="'$as_qdir' $as_dirs"
36366       as_dir=`$as_dirname -- "$as_dir" ||
36367 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36368          X"$as_dir" : 'X\(//\)[^/]' \| \
36369          X"$as_dir" : 'X\(//\)$' \| \
36370          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36371 echo X"$as_dir" |
36372     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36373             s//\1/
36374             q
36375           }
36376           /^X\(\/\/\)[^/].*/{
36377             s//\1/
36378             q
36379           }
36380           /^X\(\/\/\)$/{
36381             s//\1/
36382             q
36383           }
36384           /^X\(\/\).*/{
36385             s//\1/
36386             q
36387           }
36388           s/.*/./; q'`
36389       test -d "$as_dir" && break
36390     done
36391     test -z "$as_dirs" || eval "mkdir $as_dirs"
36392   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36393 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36394    { (exit 1); exit 1; }; }; }
36395   ac_builddir=.
36396
36397 case "$ac_dir" in
36398 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36399 *)
36400   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36401   # A ".." for each directory in $ac_dir_suffix.
36402   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36403   case $ac_top_builddir_sub in
36404   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36405   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36406   esac ;;
36407 esac
36408 ac_abs_top_builddir=$ac_pwd
36409 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36410 # for backward compatibility:
36411 ac_top_builddir=$ac_top_build_prefix
36412
36413 case $srcdir in
36414   .)  # We are building in place.
36415     ac_srcdir=.
36416     ac_top_srcdir=$ac_top_builddir_sub
36417     ac_abs_top_srcdir=$ac_pwd ;;
36418   [\\/]* | ?:[\\/]* )  # Absolute name.
36419     ac_srcdir=$srcdir$ac_dir_suffix;
36420     ac_top_srcdir=$srcdir
36421     ac_abs_top_srcdir=$srcdir ;;
36422   *) # Relative name.
36423     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36424     ac_top_srcdir=$ac_top_build_prefix$srcdir
36425     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36426 esac
36427 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36428
36429
36430   case $ac_mode in
36431   :F)
36432   #
36433   # CONFIG_FILE
36434   #
36435
36436   case $INSTALL in
36437   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36438   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36439   esac
36440 _ACEOF
36441
36442 cat >>$CONFIG_STATUS <<\_ACEOF
36443 # If the template does not know about datarootdir, expand it.
36444 # FIXME: This hack should be removed a few years after 2.60.
36445 ac_datarootdir_hack=; ac_datarootdir_seen=
36446
36447 case `sed -n '/datarootdir/ {
36448   p
36449   q
36450 }
36451 /@datadir@/p
36452 /@docdir@/p
36453 /@infodir@/p
36454 /@localedir@/p
36455 /@mandir@/p
36456 ' $ac_file_inputs` in
36457 *datarootdir*) ac_datarootdir_seen=yes;;
36458 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36459   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36460 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36461 _ACEOF
36462 cat >>$CONFIG_STATUS <<_ACEOF
36463   ac_datarootdir_hack='
36464   s&@datadir@&$datadir&g
36465   s&@docdir@&$docdir&g
36466   s&@infodir@&$infodir&g
36467   s&@localedir@&$localedir&g
36468   s&@mandir@&$mandir&g
36469     s&\\\${datarootdir}&$datarootdir&g' ;;
36470 esac
36471 _ACEOF
36472
36473 # Neutralize VPATH when `$srcdir' = `.'.
36474 # Shell code in configure.ac might set extrasub.
36475 # FIXME: do we really want to maintain this feature?
36476 cat >>$CONFIG_STATUS <<_ACEOF
36477   sed "$ac_vpsub
36478 $extrasub
36479 _ACEOF
36480 cat >>$CONFIG_STATUS <<\_ACEOF
36481 :t
36482 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36483 s&@configure_input@&$configure_input&;t t
36484 s&@top_builddir@&$ac_top_builddir_sub&;t t
36485 s&@srcdir@&$ac_srcdir&;t t
36486 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36487 s&@top_srcdir@&$ac_top_srcdir&;t t
36488 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36489 s&@builddir@&$ac_builddir&;t t
36490 s&@abs_builddir@&$ac_abs_builddir&;t t
36491 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36492 s&@INSTALL@&$ac_INSTALL&;t t
36493 $ac_datarootdir_hack
36494 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36495
36496 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36497   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36498   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36499   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36500 which seems to be undefined.  Please make sure it is defined." >&5
36501 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36502 which seems to be undefined.  Please make sure it is defined." >&2;}
36503
36504   rm -f "$tmp/stdin"
36505   case $ac_file in
36506   -) cat "$tmp/out"; rm -f "$tmp/out";;
36507   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36508   esac
36509  ;;
36510   :H)
36511   #
36512   # CONFIG_HEADER
36513   #
36514 _ACEOF
36515
36516 # Transform confdefs.h into a sed script `conftest.defines', that
36517 # substitutes the proper values into config.h.in to produce config.h.
36518 rm -f conftest.defines conftest.tail
36519 # First, append a space to every undef/define line, to ease matching.
36520 echo 's/$/ /' >conftest.defines
36521 # Then, protect against being on the right side of a sed subst, or in
36522 # an unquoted here document, in config.status.  If some macros were
36523 # called several times there might be several #defines for the same
36524 # symbol, which is useless.  But do not sort them, since the last
36525 # AC_DEFINE must be honored.
36526 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36527 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36528 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36529 # PARAMS is the parameter list in the macro definition--in most cases, it's
36530 # just an empty string.
36531 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
36532 ac_dB='\\)[      (].*,\\1define\\2'
36533 ac_dC=' '
36534 ac_dD=' ,'
36535
36536 uniq confdefs.h |
36537   sed -n '
36538         t rset
36539         :rset
36540         s/^[     ]*#[    ]*define[       ][      ]*//
36541         t ok
36542         d
36543         :ok
36544         s/[\\&,]/\\&/g
36545         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36546         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36547   ' >>conftest.defines
36548
36549 # Remove the space that was appended to ease matching.
36550 # Then replace #undef with comments.  This is necessary, for
36551 # example, in the case of _POSIX_SOURCE, which is predefined and required
36552 # on some systems where configure will not decide to define it.
36553 # (The regexp can be short, since the line contains either #define or #undef.)
36554 echo 's/ $//
36555 s,^[     #]*u.*,/* & */,' >>conftest.defines
36556
36557 # Break up conftest.defines:
36558 ac_max_sed_lines=50
36559
36560 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36561 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36562 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36563 # et cetera.
36564 ac_in='$ac_file_inputs'
36565 ac_out='"$tmp/out1"'
36566 ac_nxt='"$tmp/out2"'
36567
36568 while :
36569 do
36570   # Write a here document:
36571     cat >>$CONFIG_STATUS <<_ACEOF
36572     # First, check the format of the line:
36573     cat >"\$tmp/defines.sed" <<\\CEOF
36574 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
36575 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
36576 b
36577 :def
36578 _ACEOF
36579   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36580   echo 'CEOF
36581     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36582   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36583   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36584   grep . conftest.tail >/dev/null || break
36585   rm -f conftest.defines
36586   mv conftest.tail conftest.defines
36587 done
36588 rm -f conftest.defines conftest.tail
36589
36590 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36591 cat >>$CONFIG_STATUS <<\_ACEOF
36592   if test x"$ac_file" != x-; then
36593     echo "/* $configure_input  */" >"$tmp/config.h"
36594     cat "$ac_result" >>"$tmp/config.h"
36595     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36596       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36597 echo "$as_me: $ac_file is unchanged" >&6;}
36598     else
36599       rm -f $ac_file
36600       mv "$tmp/config.h" $ac_file
36601     fi
36602   else
36603     echo "/* $configure_input  */"
36604     cat "$ac_result"
36605   fi
36606   rm -f "$tmp/out12"
36607  ;;
36608
36609   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36610 echo "$as_me: executing $ac_file commands" >&6;}
36611  ;;
36612   esac
36613
36614
36615   case $ac_file$ac_mode in
36616     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36617    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36618     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36619    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36620     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36621    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36622     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36623    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36624     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36625    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36626     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36627    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36628     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36629    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36630     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36631    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36632     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36633    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36634     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36635    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36636     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36637    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36638     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36639    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36640     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36641    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36642
36643   esac
36644 done # for ac_tag
36645
36646
36647 { (exit 0); exit 0; }
36648 _ACEOF
36649 chmod +x $CONFIG_STATUS
36650 ac_clean_files=$ac_clean_files_save
36651
36652
36653 # configure is writing to config.log, and then calls config.status.
36654 # config.status does its own redirection, appending to config.log.
36655 # Unfortunately, on DOS this fails, as config.log is still kept open
36656 # by configure, so config.status won't be able to write to it; its
36657 # output is simply discarded.  So we exec the FD to /dev/null,
36658 # effectively closing config.log, so it can be properly (re)opened and
36659 # appended to by config.status.  When coming back to configure, we
36660 # need to make the FD available again.
36661 if test "$no_create" != yes; then
36662   ac_cs_success=:
36663   ac_config_status_args=
36664   test "$silent" = yes &&
36665     ac_config_status_args="$ac_config_status_args --quiet"
36666   exec 5>/dev/null
36667   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36668   exec 5>>config.log
36669   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36670   # would make configure fail if this is the last instruction.
36671   $ac_cs_success || { (exit 1); exit 1; }
36672 fi
36673
36674 #
36675 # CONFIG_SUBDIRS section.
36676 #
36677 if test "$no_recursion" != yes; then
36678
36679   # Remove --cache-file and --srcdir arguments so they do not pile up.
36680   ac_sub_configure_args=
36681   ac_prev=
36682   eval "set x $ac_configure_args"
36683   shift
36684   for ac_arg
36685   do
36686     if test -n "$ac_prev"; then
36687       ac_prev=
36688       continue
36689     fi
36690     case $ac_arg in
36691     -cache-file | --cache-file | --cache-fil | --cache-fi \
36692     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36693       ac_prev=cache_file ;;
36694     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36695     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36696     | --c=*)
36697       ;;
36698     --config-cache | -C)
36699       ;;
36700     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36701       ac_prev=srcdir ;;
36702     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36703       ;;
36704     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36705       ac_prev=prefix ;;
36706     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36707       ;;
36708     *)
36709       case $ac_arg in
36710       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36711       esac
36712       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36713     esac
36714   done
36715
36716   # Always prepend --prefix to ensure using the same prefix
36717   # in subdir configurations.
36718   ac_arg="--prefix=$prefix"
36719   case $ac_arg in
36720   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36721   esac
36722   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36723
36724   ac_popdir=`pwd`
36725   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36726
36727     # Do not complain, so a configure script can configure whichever
36728     # parts of a large source tree are present.
36729     test -d "$srcdir/$ac_dir" || continue
36730
36731     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36732     echo "$as_me:$LINENO: $ac_msg" >&5
36733     echo "$ac_msg" >&6
36734     { as_dir="$ac_dir"
36735   case $as_dir in #(
36736   -*) as_dir=./$as_dir;;
36737   esac
36738   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36739     as_dirs=
36740     while :; do
36741       case $as_dir in #(
36742       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36743       *) as_qdir=$as_dir;;
36744       esac
36745       as_dirs="'$as_qdir' $as_dirs"
36746       as_dir=`$as_dirname -- "$as_dir" ||
36747 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36748          X"$as_dir" : 'X\(//\)[^/]' \| \
36749          X"$as_dir" : 'X\(//\)$' \| \
36750          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36751 echo X"$as_dir" |
36752     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36753             s//\1/
36754             q
36755           }
36756           /^X\(\/\/\)[^/].*/{
36757             s//\1/
36758             q
36759           }
36760           /^X\(\/\/\)$/{
36761             s//\1/
36762             q
36763           }
36764           /^X\(\/\).*/{
36765             s//\1/
36766             q
36767           }
36768           s/.*/./; q'`
36769       test -d "$as_dir" && break
36770     done
36771     test -z "$as_dirs" || eval "mkdir $as_dirs"
36772   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36773 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36774    { (exit 1); exit 1; }; }; }
36775     ac_builddir=.
36776
36777 case "$ac_dir" in
36778 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36779 *)
36780   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36781   # A ".." for each directory in $ac_dir_suffix.
36782   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36783   case $ac_top_builddir_sub in
36784   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36785   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36786   esac ;;
36787 esac
36788 ac_abs_top_builddir=$ac_pwd
36789 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36790 # for backward compatibility:
36791 ac_top_builddir=$ac_top_build_prefix
36792
36793 case $srcdir in
36794   .)  # We are building in place.
36795     ac_srcdir=.
36796     ac_top_srcdir=$ac_top_builddir_sub
36797     ac_abs_top_srcdir=$ac_pwd ;;
36798   [\\/]* | ?:[\\/]* )  # Absolute name.
36799     ac_srcdir=$srcdir$ac_dir_suffix;
36800     ac_top_srcdir=$srcdir
36801     ac_abs_top_srcdir=$srcdir ;;
36802   *) # Relative name.
36803     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36804     ac_top_srcdir=$ac_top_build_prefix$srcdir
36805     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36806 esac
36807 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36808
36809
36810     cd "$ac_dir"
36811
36812     # Check for guested configure; otherwise get Cygnus style configure.
36813     if test -f "$ac_srcdir/configure.gnu"; then
36814       ac_sub_configure=$ac_srcdir/configure.gnu
36815     elif test -f "$ac_srcdir/configure"; then
36816       ac_sub_configure=$ac_srcdir/configure
36817     elif test -f "$ac_srcdir/configure.in"; then
36818       # This should be Cygnus configure.
36819       ac_sub_configure=$ac_aux_dir/configure
36820     else
36821       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36822 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36823       ac_sub_configure=
36824     fi
36825
36826     # The recursion is here.
36827     if test -n "$ac_sub_configure"; then
36828       # Make the cache file name correct relative to the subdirectory.
36829       case $cache_file in
36830       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36831       *) # Relative name.
36832         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36833       esac
36834
36835       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36836 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36837       # The eval makes quoting arguments work.
36838       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36839            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36840         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36841 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36842    { (exit 1); exit 1; }; }
36843     fi
36844
36845     cd "$ac_popdir"
36846   done
36847 fi
36848